File: /mnt/data/dev/dev-mentoring-wp/wp-content/themes/mentoring/archive.php
<?php
/**
* The template for displaying archive pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package mentoring
*/
get_header();
$post_style = mentoring_get_option('blog-style', 'style-8');
?>
<div class="page-content">
<div class="container">
<div class="row">
<div id="primary" class="content-area col-lg-8 <?php //echo esc_attr(mentoring_grid_column_classes()); ?>">
<main id="main" class="site-main test">
<?php if (have_posts()) :
$row_masonry = (mentoring_get_option('masonry_layout') == true) ? 'masonry' : '';
?>
<div class="row<?php echo esc_attr($row_masonry); ?>">
<?php
/* Start the Loop */
while (have_posts()) :
the_post();
SigmaBase_Blog::get_blog_style($post_style);
endwhile;
?>
</div>
<?php if (get_next_posts_link() != '' || get_previous_posts_link() != '') { ?>
<div class="post-pagination">
<?php the_posts_pagination(); ?>
</div>
<?php } ?>
<?php
else :
get_template_part('template-parts/content', 'none');
endif;
?>
</main><!-- #main -->
</div><!-- #primary -->
<div class="col-lg-4 col-md-12">
<?php get_sidebar(); ?>
</div>
</div>
</div>
</div>
<?php
get_footer();