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

$designlayout = $ezy_theme_options['ezy-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 -->

