HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/shootinschool/wp-content/themes/shootinschool/woocommerce.php
<?php get_header();

$shop_sidebar_id = get_theme_mod('shop_sidebar', 'no_sidebar');
$shop_sidebar_position = get_theme_mod('shop_sidebar_position', 'left');
$show_sidebar = get_theme_mod('single_product_sidebar', 'show');


if(!empty($shop_sidebar_id)) {
	$shop_sidebar = get_post( $shop_sidebar_id );
} else {
	$shop_sidebar = '';
}

if($shop_sidebar_id == 'no_sidebar') {
	$shop_sidebar_id = false;
}



$stm_sidebar_layout_mode = splash_sidebar_layout_mode($shop_sidebar_position, $shop_sidebar_id);



if(is_product() && $show_sidebar != "show"){
	$stm_sidebar_layout_mode['content_before'] = '<div class="col-md-12 col-sm-12 col-xs-12"><div class="sidebar-margin-top clearfix"></div>';
}

?>

	<?php get_template_part('partials/global/title-box'); ?>

	<div class="container">
		<div class="row">

			<?php echo wp_kses_post($stm_sidebar_layout_mode['content_before']); ?>
			<?php
				if( have_posts() ){
					woocommerce_content();
				}
			?>
			<?php echo wp_kses_post($stm_sidebar_layout_mode['content_after']); ?>

			<?php if(!is_product() || is_product() && $show_sidebar == "show") : ?>
			<!--Sidebar-->
			<?php splash_display_sidebar(
				$shop_sidebar_id,
				$stm_sidebar_layout_mode['sidebar_before'],
				$stm_sidebar_layout_mode['sidebar_after'],
				$shop_sidebar
			); ?>
			<?php endif; ?>

		</div> <!--row-->
	</div> <!--container-->

	
<?php get_footer(); ?>