%PDF- %PDF-
| Direktori : /home/casasmonvl/landing/wp-content__cd4a429/themes/landkit/ |
| Current File : /home/casasmonvl/landing/wp-content__cd4a429/themes/landkit/woocommerce.php |
<?php
// =============================================================================
// INDEX.PHP
// =============================================================================
global $query;
$woo_cnt = "";
$sidebar = "";
$sw = array("left"=>"col-md-3","right"=>"col-md-3","content"=>"col-md-9");
if (defined("HC_PLUGIN_PATH")) {
include_once(HC_PLUGIN_PATH . "/global-content.php");
$woo_cnt = hc_get_container_template();
if (is_shop() || is_product_category() || is_product_tag()) $sidebar = hc_get_setting('woocommerce-sidebar-shop');
else $sidebar = hc_get_setting('woocommerce-sidebar-single');
$sw = hc_get_sidebars_width($sidebar);
}
get_header();
if (defined("HC_PLUGIN_PATH")) {
hc_default_title();
} else { ?>
<div class="header-base">
<div class="container">
<div class="row">
<div class="col-md-9">
<div class="title-base text-left">
<h1>
<?php _e("Shop","landkit") ?>
</h1>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
<div <?php post_class("content-parallax woocommerce-cnt " . $woo_cnt . (($sidebar != "") ? " sidebar-content":"")); ?>>
<div class="section-empty">
<div class="container content">
<?php if ($sidebar == "left") { ?>
<div class="row">
<div class="<?php echo esc_attr($sw["left"]) ?> widget">
<?php
if (is_shop() || is_product_category() || is_product_tag()) {
if (is_active_sidebar("woocommerce_shop_left_side_bar")) dynamic_sidebar("woocommerce_shop_left_side_bar");
} else {
if (is_active_sidebar("woocommerce_single_left_side_bar")) dynamic_sidebar("woocommerce_single_left_side_bar");
}
?>
</div>
<div class="<?php echo esc_attr($sw["content"]) ?>">
<?php woocommerce_content() ?>
</div>
</div>
<?php
}
if ($sidebar == "right") {
?>
<div class="row">
<div class="<?php echo esc_attr($sw["content"]) ?>">
<?php woocommerce_content() ?>
</div>
<div class="<?php echo esc_attr($sw["right"]) ?> widget">
<?php
if (is_shop() || is_product_category() || is_product_tag()) {
if (is_active_sidebar("woocommerce_shop_right_side_bar")) dynamic_sidebar("woocommerce_shop_right_side_bar");
} else {
if (is_active_sidebar("woocommerce_single_right_side_bar")) dynamic_sidebar("woocommerce_single_right_side_bar");
}
?>
</div>
</div>
<?php
}
if ($sidebar == "right-left") {
?>
<div class="row">
<div class="<?php echo esc_attr($sw["left"]) ?> widget">
<?php
if (is_shop() || is_product_category() || is_product_tag()) {
if (is_active_sidebar("woocommerce_shop_left_side_bar")) dynamic_sidebar("woocommerce_shop_left_side_bar");
} else {
if (is_active_sidebar("woocommerce_single_left_side_bar")) dynamic_sidebar("woocommerce_single_left_side_bar");
}
?>
</div>
<div class="<?php echo esc_attr($sw["content"]) ?>">
<?php woocommerce_content() ?>
</div>
<div class="<?php echo esc_attr($sw["right"]) ?> widget">
<?php
if (is_shop() || is_product_category() || is_product_tag()) {
if (is_active_sidebar("woocommerce_shop_right_side_bar")) dynamic_sidebar("woocommerce_shop_right_side_bar");
} else {
if (is_active_sidebar("woocommerce_single_right_side_bar")) dynamic_sidebar("woocommerce_single_right_side_bar");
}
?>
</div>
</div>
<?php
}
if ($sidebar == "") {
woocommerce_content();
}
?>
</div>
</div>
</div>
<?php
get_footer();
?>