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


if ( ! is_active_sidebar( 'sidebar-1' ) || ! is_active_sidebar( 'shop-sidebar-1' )) {
	return;
}


if(class_exists( 'WooCommerce' ) && is_shop() && is_active_sidebar( 'shop-sidebar-1' )) { ?>
	
<aside id="secondary" class="widget-area edify-sidebar">
	<?php {
		dynamic_sidebar( 'shop-sidebar-1' );
	}
	
	?>
</aside>
<?php 
} else { ?>


<aside id="secondary" class="widget-area edify-sidebar">
	<?php {
		dynamic_sidebar( 'sidebar-1' );
	}

	?>
</aside>
<?php 
}

?>

