<?php

/**
 * woocommerce-page.php
 * @package WordPress
 * @subpackage Froday
 * @since Froday 1.0
 * 
 */

?>

<?php get_header(); ?>
		<?php if( ot_get_option( 'woocommerce_shop_layout' ) == 'left-sidebar') { ?>
			<main id="mainContent" class="main-content">
				<div class="page-container ptb-60">
					<div class="container">
						<div class="row row-rl-10 row-tb-20">
							<div class="page-sidebar col-md-4 col-xs-12">

								<aside class="sidebar blog-sidebar">
									<div class="row row-tb-10">
										<?php if ( is_active_sidebar( 'shop-sidebar' ) ) { ?>
										  
											 <?php dynamic_sidebar( 'shop-sidebar' ); ?>
										<?php } ?> 
									</div>
								</aside>
							</div>
							<div class="page-content col-xs-12 col-md-8">
							
								<section class="section deals-area">
									<?php woocommerce_content(); ?>
								</section>
							</div>
						</div>
					</div>
				</div>
			</main>
		<?php } elseif( ot_get_option( 'woocommerce_shop_layout' ) == 'right-sidebar') { ?>
			<main id="mainContent" class="main-content">
				<div class="page-container ptb-60">
					<div class="container">
						<div class="row row-rl-10 row-tb-20">
							<div class="page-content col-xs-12 col-md-8">
							
								<section class="section deals-area">
									<?php woocommerce_content(); ?>
								</section>
							</div>
							<div class="page-sidebar col-md-4 col-xs-12">

								<aside class="sidebar blog-sidebar">
									<div class="row row-tb-10">
										<?php if ( is_active_sidebar( 'shop-sidebar' ) ) { ?>
										  
											 <?php dynamic_sidebar( 'shop-sidebar' ); ?>
										<?php } ?> 
									</div>
								</aside>
							</div>
						</div>
					</div>
				</div>
			</main>
		<?php } else { ?>
			<main id="mainContent" class="main-content">
				<div class="page-container ptb-10">
					<div class="container">
						<section class="section deals-area ptb-30">
							<?php woocommerce_content(); ?>
						</section>
					</div>
				</div>
			</main>
		<?php } ?>
<?php get_footer(); ?>