-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwoocommerce.php
More file actions
35 lines (25 loc) · 793 Bytes
/
woocommerce.php
File metadata and controls
35 lines (25 loc) · 793 Bytes
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
<?php
get_header();
$full_width = get_theme_mod('full_width_layout', false);
?>
<div class="row">
<?php if ($full_width == false) { ?>
<?php if (is_product_category() || is_shop() || is_product_tag()){ ?>
<div class="<?php pipdig_left_or_right(); ?> content-area" role="main">
<?php } else { ?>
<div class="col-xs-12 content-area" role="main">
<?php } // end if ?>
<?php } else { ?>
<div class="col-xs-12 content-area" role="main">
<?php } // end if ?>
<?php woocommerce_content(); ?>
</div><!-- .content-area -->
<?php //Show sidebar? i.e. not on products
if ($full_width == false) {
if (is_product_category() || is_shop() || is_product_tag()){
get_sidebar();
}
}
?>
</div>
<?php get_footer(); ?>