<?php
/**
 * @author  Axilthemes
 * @since   1.0
 * @version 1.0
 * @package blogar
 */
$axil_options = Helper::axil_get_options();
$wc_single_product_sidebar =  isset($axil_options['wc_single_product_sidebar']) && !empty($axil_options['wc_single_product_sidebar']) ? $axil_options['wc_single_product_sidebar'] : "no";
$wc_general_sidebar =  isset($axil_options['wc_general_sidebar']) && !empty($axil_options['wc_general_sidebar']) ? $axil_options['wc_general_sidebar'] : "no";


if(is_single()){
    $blogar_shop_wrapper_class = ($wc_single_product_sidebar === 'no') || !is_active_sidebar( 'sidebar-shop' ) ? 'col-12' : 'col-lg-8 col-md-12 col-12';

} else {
    $blogar_shop_wrapper_class = ($wc_general_sidebar === 'no') || !is_active_sidebar( 'sidebar-shop' ) ? 'col-12' : 'col-lg-8 col-md-12 col-12';
}
$blogar_product_sidebar = ($wc_single_product_sidebar === 'left') && is_active_sidebar( 'sidebar-shop' ) && is_single() ? 'blogar-has-left-sidebar' : '';
$blogar_shop_sidebar = ($wc_general_sidebar === 'left') && is_active_sidebar( 'sidebar-shop' )  && !is_single() ? 'blogar-has-left-sidebar' : '';
?>
<div class="axil-container axil-section-gap bg-color-white <?php echo esc_attr($blogar_product_sidebar); ?> <?php echo esc_attr($blogar_shop_sidebar); ?>">
	<div class="container">
		<div class="row">
            <!-- Left Sidebar here-->

            <?php if(is_single()){
                if ( is_active_sidebar( 'sidebar-shop' ) && $wc_single_product_sidebar == 'left') { ?>
                    <div class="col-lg-4 col-md-12 col-12 mt_md--40 mt_sm--40">
                        <div class="blogar-shop-sidebar blogar-shop-sidebar-left">
                            <?php dynamic_sidebar('sidebar-shop'); ?>
                        </div>
                    </div>
                <?php }
            } else {
                if ( is_active_sidebar( 'sidebar-shop' ) && $wc_general_sidebar == 'left') { ?>
                    <div class="col-lg-4 col-md-12 col-12 mt_md--40 mt_sm--40">
                        <div class="blogar-shop-sidebar blogar-shop-sidebar-left">
                            <?php dynamic_sidebar('sidebar-shop'); ?>
                        </div>
                    </div>
                <?php }
            } ?>

			<div class="<?php echo esc_attr($blogar_shop_wrapper_class); ?>">
				<div class="blogar-container-content ">