diff --git a/woocommerce/loop/orderby.php b/woocommerce/loop/orderby.php new file mode 100755 index 0000000..0edd386 --- /dev/null +++ b/woocommerce/loop/orderby.php @@ -0,0 +1,45 @@ + +
+ + $val ) { + if ( 'orderby' === $key || 'submit' === $key ) { + continue; + } + if ( is_array( $val ) ) { + foreach( $val as $innerVal ) { + echo ''; + } + } else { + echo ''; + } + } + ?> +
diff --git a/woocommerce/single-product/product-thumbnails.php b/woocommerce/single-product/product-thumbnails.php new file mode 100755 index 0000000..4d944a3 --- /dev/null +++ b/woocommerce/single-product/product-thumbnails.php @@ -0,0 +1,71 @@ +get_gallery_attachment_ids(); + +if ( $attachment_ids ) { + $loop = 0; + $columns = apply_filters( 'woocommerce_product_thumbnails_columns', 3 ); + ?> +
%s', + esc_url( $props['url'] ), + esc_attr( $image_class ), + esc_attr( $props['caption'] ), + wp_get_attachment_image( $attachment_id, apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ), 0, $props ) + ), + $attachment_id, + $post->ID, + esc_attr( $image_class ) + ); + + $loop++; + } + + ?>
+ get_rating_count(); +$review_count = $product->get_review_count(); +$average = $product->get_average_rating(); + +if ( $rating_count > 0 ) : ?> + +
+
+ + ', '' ); ?> + ' . $rating_count . '' ); ?> + +
+ (' . $review_count . '' ); ?>) +
+ + diff --git a/woocommerce/single-product/review-rating.php b/woocommerce/single-product/review-rating.php new file mode 100755 index 0000000..1d33eb7 --- /dev/null +++ b/woocommerce/single-product/review-rating.php @@ -0,0 +1,32 @@ +comment_ID, 'rating', true ) ); + +if ( $rating && get_option( 'woocommerce_enable_review_rating' ) === 'yes' ) { ?> + +
+ +
+ +post_excerpt ) { + return; +} + +?> +
+ post_excerpt ) ?> +