File: /www/wwwroot/www.weaqj.com/wp-content/themes/bajaar/author.php
<?php
/**
* the template for displaying archive pages.
*/
get_header();
get_template_part( 'template-parts/banner/content', 'banner-blog' );
$blog_sidebar = bajaar_option('blog_sidebar', 'right-sidebar');
$column = ($blog_sidebar == 'no-sidebar' || !is_active_sidebar('sidebar-1')) ? 'col-lg-12' : 'col-lg-8 col-md-12';
$blog_sidebar_class = '';
if ($blog_sidebar != 'no-sidebar') {
$blog_sidebar_class = 'sidebar-active';
} else {
$blog_sidebar_class = 'sidebar-inactive';
}
?>
<section id="main-content" class="blog main-container <?php echo esc_attr($blog_sidebar_class); ?>" role="main">
<div class="container">
<div class="row">
<?php if($blog_sidebar == 'left-sidebar'){
get_sidebar();
} ?>
<div class="<?php echo esc_attr($column);?>">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/blog/contents/content', get_post_format() ); ?>
<?php endwhile; ?>
<?php get_template_part( 'template-parts/blog/paginations/pagination', 'style1' ); ?>
<?php else : ?>
<?php get_template_part( 'template-parts/blog/contents/content', 'none' ); ?>
<?php endif; ?>
</div><!-- .col-md-8 -->
<?php if($blog_sidebar == 'right-sidebar'){
get_sidebar();
} ?>
</div><!-- .row -->
</div><!-- .container -->
</section><!-- #main-content -->
<?php get_footer(); ?>