| @@ 55-92 (lines=38) @@ | ||
| 52 | ||
| 53 | </header> |
|
| 54 | ||
| 55 | <?php if ( have_posts() ) : ?> |
|
| 56 | ||
| 57 | <?php |
|
| 58 | /** |
|
| 59 | * woocommerce_before_shop_loop hook. |
|
| 60 | * |
|
| 61 | * @hooked woocommerce_result_count - 20 |
|
| 62 | * @hooked woocommerce_catalog_ordering - 30 |
|
| 63 | */ |
|
| 64 | do_action( 'woocommerce_before_shop_loop' ); |
|
| 65 | ?> |
|
| 66 | ||
| 67 | <?php woocommerce_product_loop_start(); ?> |
|
| 68 | ||
| 69 | <?php woocommerce_product_subcategories(); ?> |
|
| 70 | ||
| 71 | <?php while ( have_posts() ) : the_post(); ?> |
|
| 72 | ||
| 73 | <?php wc_get_template_part( 'content', 'product' ); ?> |
|
| 74 | ||
| 75 | <?php endwhile; // end of the loop. ?> |
|
| 76 | ||
| 77 | <?php woocommerce_product_loop_end(); ?> |
|
| 78 | ||
| 79 | <?php |
|
| 80 | /** |
|
| 81 | * woocommerce_after_shop_loop hook. |
|
| 82 | * |
|
| 83 | * @hooked woocommerce_pagination - 10 |
|
| 84 | */ |
|
| 85 | do_action( 'woocommerce_after_shop_loop' ); |
|
| 86 | ?> |
|
| 87 | ||
| 88 | <?php elseif ( ! woocommerce_product_subcategories( array( 'before' => woocommerce_product_loop_start( false ), 'after' => woocommerce_product_loop_end( false ) ) ) ) : ?> |
|
| 89 | ||
| 90 | <?php wc_get_template( 'loop/no-products-found.php' ); ?> |
|
| 91 | ||
| 92 | <?php endif; ?> |
|
| 93 | ||
| 94 | <?php |
|
| 95 | /** |
|
| @@ 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 wc_get_template( 'loop/no-products-found.php' ); ?> |
|
| 427 | ||
| 428 | <?php endif; |
|
| 429 | ||
| 430 | } |
|
| 431 | } |
|