File: //proc/self/cwd/wp-content/themes/kingstore/page.php
<?php get_header(); ?>
<?php
$kingstore_sidebar_template = get_post_meta( get_the_ID(), 'page_sidebar_layout', true );
$kingstore_sidebar = get_post_meta( get_the_ID(), 'page_sidebar_template', true );
?>
<?php kingstore_breadcrumb_title(); ?>
<div class="container">
<div class="row">
<?php
if ( is_active_sidebar( $kingstore_sidebar ) && $kingstore_sidebar_template != 'right' && $kingstore_sidebar_template !='full' ):
$kingstore_left_span_class = 'col-lg-'.sw_options('sidebar_left_expand');
$kingstore_left_span_class .= ' col-md-'.sw_options('sidebar_left_expand_md');
$kingstore_left_span_class .= ' col-sm-'.sw_options('sidebar_left_expand_sm');
?>
<aside id="left" class="sidebar <?php echo esc_attr( $kingstore_left_span_class ); ?>">
<?php dynamic_sidebar( $kingstore_sidebar ); ?>
</aside>
<?php endif; ?>
<div id="contents" role="main" class="main-page <?php kingstore_content_page(); ?>">
<?php
get_template_part('templates/content', 'page')
?>
</div>
<?php
if ( is_active_sidebar( $kingstore_sidebar ) && $kingstore_sidebar_template != 'left' && $kingstore_sidebar_template !='full' ):
$kingstore_left_span_class = 'col-lg-'.sw_options('sidebar_left_expand');
$kingstore_left_span_class .= ' col-md-'.sw_options('sidebar_left_expand_md');
$kingstore_left_span_class .= ' col-sm-'.sw_options('sidebar_left_expand_sm');
?>
<aside id="right" class="sidebar <?php echo esc_attr($kingstore_left_span_class); ?>">
<?php dynamic_sidebar( $kingstore_sidebar ); ?>
</aside>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>