-
Notifications
You must be signed in to change notification settings - Fork 135
/
archive-product.php
47 lines (36 loc) · 1.48 KB
/
archive-product.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* The template for displaying Woo Commerce products
*
* @package Layers
* @since Layers 1.0.0
*/
get_header(); ?>
<?php get_template_part( 'partials/header' , 'page-title' ); ?>
<section class="<?php if( 'layout-fullwidth' != layers_get_theme_mod( 'content-layout-layout' ) ) echo 'container'; ?> clearfix content-main">
<?php /**
* Maybe show the left sidebar
*/
layers_maybe_get_sidebar( 'left-woocommerce-sidebar', 'column pull-left sidebar span-3' );?>
<?php if ( have_posts()) : ?>
<section <?php layers_center_column_class(); ?>>
<div class="row push-bottom woocommerce-result-count-container">
<?php do_action('woocommerce_before_shop_loop'); ?>
</div>
<?php // Sub category listing
woocommerce_product_subcategories(); ?>
<ul class="products row">
<?php while (have_posts()) : the_post(); ?>
<?php woocommerce_get_template_part( 'content' , 'product' ); ?>
<?php endwhile; ?>
</ul>
<?php layers_pagination(); ?>
<?php woocommerce_product_loop_end(); ?>
</section>
<?php endif; ?>
<?php /**
* Maybe show the right sidebar
*/
layers_maybe_get_sidebar( 'right-woocommerce-sidebar', 'column pull-right sidebar span-3 no-gutter' ); ?>
</section>
<?php get_footer(); ?>