ÿØÿÛ C 

ÿØÿÛ C 

<?php
/**
 * Template Name: Blog Full Width
 */

get_header();
?>
<section id="post-section" class="post-section av-py-default">
	<div class="av-container">
		<div class="av-columns-area">
			<div id="av-primary-content" class="av-column-12">

				<?php
					$marin_paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
					$args        = array(
						'post_type' => 'post',
						'paged'     => $marin_paged,
					);

					$loop = new WP_Query( $args );
					if ( $loop->have_posts() ) :
						// Start the Loop.
						while ( $loop->have_posts() ) :
							$loop->the_post();
							// includelude the post format-specific template for the content.
							get_template_part( 'template-parts/content/content', 'page' );
						endwhile;
						?>

					<!-- Custom Pagination -->
						<?php
						$big        = 999999999; // Set a big number to ensure all pages are included in the pagination links.
						$pagination = paginate_links(
							array(
								'base'      => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
								'format'    => '?paged=%#%',
								'current'   => max( 1, get_query_var( 'paged' ) ),
								'total'     => $loop->max_num_pages,
								'prev_text' => '<i class="fa fa-angle-double-left"></i>',
								'next_text' => '<i class="fa fa-angle-double-right"></i>',
								'type'      => 'array', // Generate an array of links.
							)
						);

						if ( $pagination ) :
							?>
							<nav class="navigation pagination" aria-label="Posts">
								<h2 class="screen-reader-text">Posts navigation</h2>
								<div class="nav-links">
								<?php
								foreach ( $pagination as $page_link ) {
									echo $page_link;
								}
								?>
								</div>
							</nav>
							<?php endif; ?>
						<!-- Custom Pagination -->

				<?php else : ?>
					<?php get_template_part( 'template-parts/content/content', 'none' ); ?>
				<?php endif; ?>
			</div>
		</div>
	</div>
</section>

<?php
get_footer();
