/home/coolpkct/public_html/websites/1.sanso.co/wp-content/themes/hoshi/woocommerce.php
<?php
/*
Template Name: WooCommerce
*/
?>
<?php

global $woocommerce;

$id      = get_option('woocommerce_shop_page_id');
$shop    = get_post($id);
$sidebar = hoshi_mikado_sidebar_layout();

if(get_post_meta($id, 'mkd_page_background_color', true) != '') {
	$background_color = 'background-color: '.esc_attr(get_post_meta($id, 'mkd_page_background_color', true));
} else {
	$background_color = '';
}

$content_style = '';
if(get_post_meta($id, 'mkd_content-top-padding', true) != '') {
	if(get_post_meta($id, 'mkd_content-top-padding-mobile', true) == 'yes') {
		$content_style = 'padding-top:'.esc_attr(get_post_meta($id, 'mkd_content-top-padding', true)).'px !important';
	} else {
		$content_style = 'padding-top:'.esc_attr(get_post_meta($id, 'mkd_content-top-padding', true)).'px';
	}
}

if(get_query_var('paged')) {
	$paged = get_query_var('paged');
} elseif(get_query_var('page')) {
	$paged = get_query_var('page');
} else {
	$paged = 1;
}

get_header();

hoshi_mikado_get_title();
get_template_part('slider');

$full_width = false;

if(hoshi_mikado_options()->getOptionValue('mkd_woo_products_list_full_width') == 'yes' && !is_singular('product')) {
	$full_width = true;
}

if($full_width) { ?>
<div class="mkd-full-width" <?php hoshi_mikado_inline_style($background_color); ?>>
	<?php } else { ?>
	<div class="mkd-container" <?php hoshi_mikado_inline_style($background_color); ?>>
		<?php }
		if($full_width) { ?>
		<div class="mkd-full-width-inner" <?php hoshi_mikado_inline_style($content_style); ?>>
			<?php } else { ?>
			<div class="mkd-container-inner clearfix" <?php hoshi_mikado_inline_style($content_style); ?>>
				<?php }

				//Woocommerce content
				if(!is_singular('product')) {

					switch($sidebar) {

						case 'sidebar-33-right': ?>
							<div class="mkd-two-columns-66-33 grid2 mkd-woocommerce-with-sidebar clearfix">
								<div class="mkd-column1">
									<div class="mkd-column-inner">
										<?php hoshi_mikado_woocommerce_content(); ?>
									</div>
								</div>
								<div class="mkd-column2">
									<?php get_sidebar(); ?>
								</div>
							</div>
							<?php
							break;
						case 'sidebar-25-right': ?>
							<div class="mkd-two-columns-75-25 grid2 mkd-woocommerce-with-sidebar clearfix">
								<div class="mkd-column1 mkd-content-left-from-sidebar">
									<div class="mkd-column-inner">
										<?php hoshi_mikado_woocommerce_content(); ?>
									</div>
								</div>
								<div class="mkd-column2">
									<?php get_sidebar(); ?>
								</div>
							</div>
							<?php
							break;
						case 'sidebar-33-left': ?>
							<div class="mkd-two-columns-33-66 grid2 mkd-woocommerce-with-sidebar clearfix">
								<div class="mkd-column1">
									<?php get_sidebar(); ?>
								</div>
								<div class="mkd-column2">
									<div class="mkd-column-inner">
										<?php hoshi_mikado_woocommerce_content(); ?>
									</div>
								</div>
							</div>
							<?php
							break;
						case 'sidebar-25-left': ?>
							<div class="mkd-two-columns-25-75 grid2 mkd-woocommerce-with-sidebar clearfix">
								<div class="mkd-column1">
									<?php get_sidebar(); ?>
								</div>
								<div class="mkd-column2 mkd-content-right-from-sidebar">
									<div class="mkd-column-inner">
										<?php hoshi_mikado_woocommerce_content(); ?>
									</div>
								</div>
							</div>
							<?php
							break;
						default:
							hoshi_mikado_woocommerce_content();
					}

				} else {
					hoshi_mikado_woocommerce_content();
				} ?>

			</div>
		</div>
		<?php get_footer(); ?>