<?php
/**
* The main template file
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Prinox
*/
get_header();
prinox_blog_breadcrumb();
$prinoxPostClass = '';
if(is_active_sidebar('sidebar-1')){
$prinoxPostClass = 'content-side col-lg-9 col-md-12 col-sm-12';
}else{
$prinoxPostClass = 'col-lg-10 offset-lg-1 no-active-sidebar';
}
?>
<!-- Sidebar Page Container -->
<div class="sidebar-page-container">
<div class="auto-container">
<div class="row clearfix">
<!-- Content Side -->
<div class="<?php echo esc_attr($prinoxPostClass)?>">
<div class="blog-classic">
<?php prinox_post_loop();?>
</div>
</div>
<?php get_sidebar();?>
</div>
</div>
</div>
<?php
get_footer();