File: /home/cafsindia/public_html/wp-content/themes/excitor/single-bt_services.php
<?php get_header(); ?>
<?php
global $excitor_options;
$fullwidth = isset($excitor_options['single_services_fullwidth'])&&$excitor_options['single_services_fullwidth'] ? 'fullwidth': 'container';
$sidebar_width = (int) isset($excitor_options['single_services_sidebar_width']) ? $excitor_options['single_services_sidebar_width']: 3;
$sidebar_position = function_exists( 'fw_ext_sidebars_get_current_position' ) ? fw_ext_sidebars_get_current_position() : 'right';
$sidebar_class = 'col-md-'.$sidebar_width;
if($sidebar_position == 'left' || $sidebar_position == 'right'){
$content_width = 12 - $sidebar_width;
$content_class = 'col-md-'.$content_width;
}elseif($sidebar_position == 'left_right'){
$content_width = 12 - 2*$sidebar_width;
$content_class = 'col-md-'.$content_width;
}else{
$content_class = 'col-md-12';
}
$single_services_titlebar = isset($excitor_options['single_services_titlebar']) ? $excitor_options['single_services_titlebar']: true;
if($single_services_titlebar) excitor_titlebar();
?>
<div class="bt-main-content">
<div class="<?php echo esc_attr($fullwidth); ?>">
<div class="row">
<!-- Start Left Sidebar -->
<?php if($sidebar_position == 'left' || $sidebar_position == 'left_right'){ ?>
<div class="bt-sidebar bt-left-sidebar <?php echo esc_attr($sidebar_class); ?>">
<?php echo get_sidebar('left'); ?>
</div>
<?php } ?>
<!-- End Left Sidebar -->
<!-- Start Content -->
<div class="bt-content <?php echo esc_attr($content_class); ?>">
<?php
while ( have_posts() ) : the_post();
get_template_part( 'framework/templates/services/single/entry');
endwhile;
?>
</div>
<!-- End Content -->
<!-- Start Right Sidebar -->
<?php if($sidebar_position == 'right' || $sidebar_position == 'left_right'){ ?>
<div class="bt-sidebar bt-right-sidebar <?php echo esc_attr($sidebar_class); ?>">
<?php echo get_sidebar('right'); ?>
</div>
<?php } ?>
<!-- End Right Sidebar -->
</div>
</div>
</div>
<?php get_footer(); ?>