-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwoocommerce.php
More file actions
64 lines (56 loc) · 1.49 KB
/
Copy pathwoocommerce.php
File metadata and controls
64 lines (56 loc) · 1.49 KB
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
60
61
62
63
64
<?php
/**
* @Packge : Winter
* @Version : 1.0
* @Author : Colorlib
* @Author URI : http://colorlib.com/wp/
*
*/
get_header();
if ( is_product() ) {
$winter_wc_wrapper_class = 'product_image_area section_padding';
$winter_wc_row_class = 'row s_product_inner justify-content-between';
$winter_shop_row_class = '';
} else {
$winter_wc_wrapper_class = 'cat_product_area section_padding border_top';
$winter_wc_row_class = 'row';
$winter_shop_row_class = 'row';
}
?>
<!-- Content page -->
<section class="<?php echo esc_attr( $winter_wc_wrapper_class )?>">
<div class="container">
<div class="<?php echo esc_attr( $winter_wc_row_class )?>">
<?php
// sidebar
$col = '12';
if ( ! is_product() ) {
get_sidebar( 'woo' );
$col = '9';
}
?>
<div class="col-lg-<?php echo esc_attr( $col ); ?>">
<?php echo $winter_shop_row_class != '' ? '<div class="row">' : '' ?>
<?php
if ( have_posts() ) {
// Woocommerce Content
woocommerce_content();
} else {
get_template_part( 'templates/content', 'none' );
}
?>
<?php echo $winter_shop_row_class != '' ? '</div>' : '' ?>
</div>
</div>
</div>
</section>
<?php if ( is_product() && winter_opt( 'winter-woo-related-product-settings' ) ) : ?>
<section class="product_list best_seller padding_bottom">
<div class="container">
<?php woocommerce_output_related_products(); ?>
</div>
</section>
<?php endif; ?>
<?php
get_footer();
?>