File: /var/www/ruby/wp-content/themes/echooling/woocommerce.php
<?php
get_header();
global $echooling_option;
// Layout class
$mevim_layout_class = 'col-sm-12 col-xs-12';
if(!empty($echooling_option['shop-layout']) ) {
if ( $echooling_option['shop-layout'] == 'full' ) {
$mevim_layout_class = 'col-sm-12 col-xs-12';
}
elseif( $echooling_option['shop-layout'] == 'left-col' || $echooling_option['shop-layout'] == 'right-col'){
$mevim_layout_class = 'col-md-8 col-xs-12';
}
else{
$mevim_layout_class = 'col-sm-12 col-xs-12';
}
}
?>
<div class="row">
<?php
if(!empty($echooling_option['disable-sidebar']) && is_product()){
?>
<div class="col-sm-12 col-xs-12">
<?php
woocommerce_content();
?>
</div>
<?php
}else{
if ( !empty($echooling_option['shop-layout']) && $echooling_option['shop-layout'] == 'left-col' ) {
get_sidebar('woocommerce');
}
?>
<div class="<?php echo esc_attr($mevim_layout_class);?>">
<?php
woocommerce_content();
?>
</div>
<?php
if (!empty($echooling_option['shop-layout']) && $echooling_option['shop-layout'] == 'right-col' ) {
get_sidebar('woocommerce');
}
}
?>
</div>
<?php
get_footer();