@@ 406-428 (lines=23) @@ | ||
403 | ||
404 | <?php do_action( 'woocommerce_archive_description' ); ?> |
|
405 | ||
406 | <?php if ( have_posts() ) : ?> |
|
407 | ||
408 | <?php do_action('woocommerce_before_shop_loop'); ?> |
|
409 | ||
410 | <?php woocommerce_product_loop_start(); ?> |
|
411 | ||
412 | <?php woocommerce_product_subcategories(); ?> |
|
413 | ||
414 | <?php while ( have_posts() ) : the_post(); ?> |
|
415 | ||
416 | <?php wc_get_template_part( 'content', 'product' ); ?> |
|
417 | ||
418 | <?php endwhile; // end of the loop. ?> |
|
419 | ||
420 | <?php woocommerce_product_loop_end(); ?> |
|
421 | ||
422 | <?php do_action('woocommerce_after_shop_loop'); ?> |
|
423 | ||
424 | <?php elseif ( ! woocommerce_product_subcategories( array( 'before' => woocommerce_product_loop_start( false ), 'after' => woocommerce_product_loop_end( false ) ) ) ) : ?> |
|
425 | ||
426 | <?php do_action( 'woocommerce_no_products_found' ); ?> |
|
427 | ||
428 | <?php endif; |
|
429 | ||
430 | } |
|
431 | } |
@@ 56-100 (lines=45) @@ | ||
53 | ||
54 | </header> |
|
55 | ||
56 | <?php if ( have_posts() ) : ?> |
|
57 | ||
58 | <?php |
|
59 | /** |
|
60 | * woocommerce_before_shop_loop hook. |
|
61 | * |
|
62 | * @hooked woocommerce_result_count - 20 |
|
63 | * @hooked woocommerce_catalog_ordering - 30 |
|
64 | */ |
|
65 | do_action( 'woocommerce_before_shop_loop' ); |
|
66 | ?> |
|
67 | ||
68 | <?php woocommerce_product_loop_start(); ?> |
|
69 | ||
70 | <?php woocommerce_product_subcategories(); ?> |
|
71 | ||
72 | <?php while ( have_posts() ) : the_post(); ?> |
|
73 | ||
74 | <?php wc_get_template_part( 'content', 'product' ); ?> |
|
75 | ||
76 | <?php endwhile; // end of the loop. ?> |
|
77 | ||
78 | <?php woocommerce_product_loop_end(); ?> |
|
79 | ||
80 | <?php |
|
81 | /** |
|
82 | * woocommerce_after_shop_loop hook. |
|
83 | * |
|
84 | * @hooked woocommerce_pagination - 10 |
|
85 | */ |
|
86 | do_action( 'woocommerce_after_shop_loop' ); |
|
87 | ?> |
|
88 | ||
89 | <?php elseif ( ! woocommerce_product_subcategories( array( 'before' => woocommerce_product_loop_start( false ), 'after' => woocommerce_product_loop_end( false ) ) ) ) : ?> |
|
90 | ||
91 | <?php |
|
92 | /** |
|
93 | * woocommerce_no_products_found hook. |
|
94 | * |
|
95 | * @hooked wc_no_products_found - 10 |
|
96 | */ |
|
97 | do_action( 'woocommerce_no_products_found' ); |
|
98 | ?> |
|
99 | ||
100 | <?php endif; ?> |
|
101 | ||
102 | <?php |
|
103 | /** |