File: /home/assibfaf/public_html/wp-content/themes/zzero/blog.php
<?php
/*
* Template Name: Blog
*/
get_header();?>
<?php
$posts_query = new WP_Query(array(
'posts_per_page' => 10,
'post_type' => 'post',
'paged' => get_query_var( 'paged' ),
));
?>
<section class="section pt-5" style="padding-top: 50px;">
<div class="container">
<div class="row">
<div class="col-lg-8">
<?php if ( $posts_query->have_posts() ) : ?>
<?php while ( $posts_query->have_posts() ) : $posts_query->the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<a class="post-link" href="<?php echo esc_url( gringo_get_link_url() ); ?>" target="_blank"><span class="genericon genericon-link"><span class="screen-reader-text"><?php printf( __( 'External link to %s', 'gringo' ), the_title( '', '', false ) ); ?></span></span></a>
<header class="entry-header">
<?php
gringo_entry_categories();
the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( gringo_get_link_url() ) ), '</a></h1>' ); ?>
</header><!-- .entry-header -->
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-content -->
<div class="entry-meta">
<?php gringo_entry_meta(); ?>
</div><!-- .entry-meta -->
</article><!-- #post-## -->
<?php endwhile; ?>
<!-- Start of pagination -->
<div class="pagination">
<?php readable_pagination($posts_query); ?>
</div>
<!-- End of pagination -->
<?php else : ?>
<div class="error404">
<div class="section-404">
<h1 class="mb-5 text-center">Nothing Found</h1>
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'gringo' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
<?php elseif ( is_search() ) : ?>
<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'gringo' ); ?></p>
<?php get_search_form(); ?>
<?php else : ?>
<p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'gringo' ); ?></p>
<?php get_search_form(); ?>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
</div>
<div class="col-lg-4 d-none d-lg-block">
<?php get_sidebar(); ?>
</div>
</div>
</div>
</section>
<?php get_template_part( 'widgets/cta', 'calculator' ); ?>
<section class="section features-section">
<div class="container">
<?php get_template_part( 'widgets/features' ); ?>
</div>
</section>
<?php get_template_part( 'widgets/guarantees' ); ?>
<?php get_footer(); ?>