';
// Calling the right sidebar
if ( is_active_sidebar( 'magcast_right_sidebar' ) ) :
dynamic_sidebar( 'magcast_right_sidebar' );
endif;
echo '';
}elseif( class_exists( 'WooCommerce' ) && is_woocommerce() && $magcast_content_layout == 'left' ){
echo '
';
// Calling the left sidebar
if ( is_active_sidebar( 'magcast_left_sidebar' ) ) :
dynamic_sidebar( 'magcast_left_sidebar' );
endif;
echo '
';
}
if( !class_exists( 'WooCommerce' ) || ( class_exists( 'WooCommerce' ) && !is_woocommerce()) ){
// Calling the right sidebar
if ( is_active_sidebar( 'magcast_right_sidebar' ) ) :
dynamic_sidebar( 'magcast_right_sidebar' );
endif;
}
?>