-
Notifications
You must be signed in to change notification settings - Fork 0
/
woocommerce.php
31 lines (25 loc) · 987 Bytes
/
woocommerce.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
<?php get_header();
$baxel_woo_layout = get_theme_mod( 'baxel_woo_layout', '2col_sidebar' );
$baxel_show_woobar = get_theme_mod( 'baxel_show_woobar', 1 );
if ( $baxel_woo_layout == '2col_sidebar' ) { $woo_layout = '-sidebar'; } else { $woo_layout = ''; }
if ( is_product() ) { if ( $baxel_show_woobar ) { $woo_layout = '-sidebar'; } else { $woo_layout = ''; } }
?>
<div class="main-container<?php echo esc_attr( $woo_layout ); ?>">
<article <?php post_class( 'clearfix' ); ?>>
<div class="article-content-outer<?php echo esc_attr( $woo_layout ); ?>">
<div class="article-content-inner">
<div class="article-pure-content clearfix"><?php woocommerce_content(); ?></div>
</div>
</div>
</article>
</div><!-- /main-container -->
<!-- sidebar -->
<?php
if ( $woo_layout == '-sidebar' ) {
$baxel_s_type = 'woo';
baxel_insert_sidebar( $baxel_s_type );
}
?>
<!-- /sidebar -->
</div><!-- /site-mid -->
<?php get_footer(); ?>