<?php
/**
 * Template: Sidebar.php
 *
 * @package EvoLve
 * @subpackage Template
 */
$sidebar_css = '';
if(class_exists('Woocommerce')) {
	if(is_cart() || is_checkout() || is_account_page() || (get_option('woocommerce_thanks_page_id') && is_page(get_option('woocommerce_thanks_page_id')))) {
		$sidebar_css = 'display:none';
	}
}
?>
<!--BEGIN #secondary-2 .aside-->
<div id="secondary-2" class="aside <?php evolve_sidebar_class(); ?>"
<?php if(class_exists('Woocommerce')):
echo 'style="'.$sidebar_css.'"';endif;?>>

<?php /* Widgetized Area */
if (dynamic_sidebar( 'sidebar-2' )) : ?>
<?php endif; /* (!function_exists('dynamic_sidebar') */ ?>

</div><!--END #secondary-2 .aside-->