-
Notifications
You must be signed in to change notification settings - Fork 0
/
woocommerce.php
executable file
·42 lines (41 loc) · 1.18 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
<?php
/**
* The template for displaying WooCommerce.
*
* @package WordPress
* @subpackage illdy
*/
?>
<?php get_header(); ?>
<div class="container">
<div class="row">
<div class="col-sm-7">
<section id="blog">
<?php woocommerce_content(); ?>
</section><!--/#blog-->
</div><!--/.col-sm-7-->
<?php if ( is_active_sidebar( 'woocommerce-sidebar' ) ) : ?>
<div class="col-sm-4">
<div id="sidebar">
<?php dynamic_sidebar( 'woocommerce-sidebar' ); ?>
</div><!--/#sidebar-->
</div><!--/.col-sm-4-->
<?php else : ?>
<div class="col-sm-4">
<div id="sidebar">
<?php
$the_widget_title = array(
'before_widget' => '<div class="widget">',
'after_widget' => '</div>',
'before_title' => '<div class="widget-title"><h3>',
'after_title' => '</h3></div>',
);
the_widget( 'WC_Widget_Cart', 'title=' . __( 'WooCommerce Title', 'illdy' ), $the_widget_title );
the_widget( 'WC_Widget_Product_Categories', 'title=' . __( 'Product Categories', 'illdy' ), $the_widget_title );
?>
</div><!--/#sidebar-->
</div><!--/.col-sm-4-->
<?php endif; ?>
</div><!--/.row-->
</div><!--/.container-->
<?php get_footer(); ?>