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

$sidebar = 'pagli-right-sidebar';
if(class_exists('Woocommerce')) {
	if(is_woocommerce()) {
		$sidebar = 'pagli-woo-sidebar';
	}
}

if ( ! is_active_sidebar( $sidebar ) ) {
	return;
}
?>

<aside id="secondary" class="widget-area" role="complementary">
	<?php dynamic_sidebar( $sidebar ); ?>
</aside><!-- #secondary -->
