-
Notifications
You must be signed in to change notification settings - Fork 1
/
woocommerce.php
59 lines (56 loc) · 1.92 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
* The Template for displaying all single products.
*
* Override this template by copying it to yourtheme/woocommerce/single-product.php
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
get_header();
$kt_sidebar_are = edo_option('kt_woo_shop_sidebar_are','full');
// option Single product
if(is_product()){
$kt_sidebar_are = edo_option('kt_woo_single_sidebar_are','full');
}
$sidebar_are_layout = 'sidebar-'.$kt_sidebar_are;
if( $kt_sidebar_are == "left" || $kt_sidebar_are == "right" ){
$col_class = "main-content col-xs-12 col-sm-8 col-md-9";
}else{
$col_class = "main-content col-xs-12 col-sm-12 col-md-12";
}
?>
<div id="primary" class="content-area <?php echo esc_attr($sidebar_are_layout);?>">
<main id="main" class="site-main">
<div class="container">
<div class="row">
<?php breadcrumb_trail();?>
</div>
<div class="row">
<div class="row">
<div class="<?php echo esc_attr($col_class);?>">
<?php do_action( 'kt_before_shop_product' ); ?>
<?php woocommerce_content(); ?>
<?php do_action( 'kt_after_shop_product' ); ?>
</div>
<?php
if($kt_sidebar_are!='full'){
?>
<div class="col-xs-12 col-sm-4 col-md-3">
<div class="sidebar">
<?php get_sidebar('shop');?>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
</main><!-- .site-main -->
</div><!-- .content-area -->
<?php get_footer(); ?>