<?php
/**
*
* @author Gaviasthemes Team
* @copyright Copyright (C) 2020 gaviasthemes. All Rights Reserved.
* @license GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
*
*/
$columns_lg = indutri_get_option('blog_columns_lg', '2');
$columns_md = indutri_get_option('blog_columns_md', '2');
$columns_sm = indutri_get_option('blog_columns_sm', '1');
$columns_xs = indutri_get_option('blog_columns_xs', '1');
?>
<div class="clearfix">
<?php do_action( 'indutri_page_content_before' ); ?>
<div class="posts-grids blog-grid-style">
<div class="post-items lg-block-grid-<?php echo esc_attr($columns_lg) ?> md-block-grid-<?php echo esc_attr($columns_md) ?> sm-block-grid-<?php echo esc_attr($columns_sm) ?> xs-block-grid-<?php echo esc_attr($columns_xs) ?>">
<?php if ( have_posts() ) : ?>
<?php
// Start the Loop.
while ( have_posts() ) : the_post();
/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
echo '<div class="item-columns">';
set_query_var( 'thumbnail_size', 'post-thumbnail' );
get_template_part( 'content', get_post_format() );
echo '</div>';
endwhile;
// Previous/next page navigation.
else :
// If no content, include the "No posts found" template.
get_template_part( 'content', 'none' );
endif;
?>
</div>
</div>
<div class="pagination">
<?php echo indutri_pagination(); ?>
</div>
<?php do_action( 'indutri_page_content_after' ); ?>
</div>