Current File : /home/kelaby89/iluxelectrical.com.au/wp-content/themes/strnix/single.php |
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package strnix
*/
get_header();
if (is_active_sidebar('sidebar-1')) :
$blog_post_list_class = 'col-lg-8';
else :
$blog_post_list_class = 'col-lg-12';
endif;
?>
<div class="sidebar-page-container">
<div class="auto-container">
<div class="row clearfix">
<!--Content Side-->
<div class="content-side <?php echo esc_attr($blog_post_list_class); ?> col-md-12 col-sm-12">
<div class="blog-content">
<?php
if (have_posts()) :
while (have_posts()) :
the_post();
get_template_part('template-parts/single/content', get_post_format());
// If comments are open or we have at least one comment, load up the comment template.
if (comments_open() || get_comments_number()) :
comments_template();
endif;
endwhile;
endif;
?>
</div>
</div>
<?php if (is_active_sidebar('sidebar-1')) { ?>
<div class="sidebar-side col-lg-4 col-md-12 col-sm-12">
<aside class="sidebar blog-sidebar">
<?php get_sidebar(); ?>
</aside>
</div>
<?php } ?>
</div>
</div>
</div>
<?php
get_footer();