<?php
	samatex_enovathemes_global_variables();
	$product_sidebar = (isset($GLOBALS['samatex_enovathemes']['product-sidebar']) && $GLOBALS['samatex_enovathemes']['product-sidebar']) ? $GLOBALS['samatex_enovathemes']['product-sidebar'] : "none";

	if (is_active_sidebar('shop-widgets') && $product_sidebar  == "none") {
		$product_sidebar = 'right';
	}

?>
<div class="container et-clearfix">
	<?php if ($product_sidebar == "left"): ?>
		<div class="layout-sidebar product-sidebar et-clearfix">
			<?php get_sidebar('shop'); ?>
		</div>
		<div class="layout-content product-content et-clearfix">
			<?php woocommerce_content(); ?>
		</div>
	<?php elseif ($product_sidebar == "right"): ?>
		<div class="layout-content product-content et-clearfix">
			<?php woocommerce_content(); ?>
		</div>
		<div class="layout-sidebar product-sidebar et-clearfix">
			<?php get_sidebar('shop'); ?>
		</div>
	<?php else: ?>
		<?php woocommerce_content(); ?>
	<?php endif ?>
</div>
