<?php
/**
 * The sidebar containing the main widget area.
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package bloge
 */
global $bloge_theme_options;

$designlayout = $bloge_theme_options['bloge-layout'];

if ( ! is_active_sidebar( 'sidebar-1' ) || 'no-sidebar' == $designlayout ) {

	return;
}
$side_col = 'left-s-bar';

if( 'left-sidebar' == $designlayout ){

	$side_col = 'right-s-bar order-md-1';
}

?>
<aside id="secondary" class="col-sm-12 col-md-4 widget-area <?php echo esc_attr($side_col ); ?>" role="complementary">

	<?php dynamic_sidebar( 'sidebar-1' ); ?>

</aside><!-- #secondary -->

