ÿØÿÛ C 

ÿØÿÛ C 

<?php
/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package marin
 */

get_header();
?>
<section id="post-section" class="post-section av-py-default">
	<div class="av-container">
		<div class="av-columns-area">
			<?php
			$marin_archive_blog_pages_layout = get_theme_mod( 'marin_archive_blog_pages_layout', 'marin_right_sidebar' );
			if ( 'marin_left_sidebar' === $marin_archive_blog_pages_layout ) :
				get_sidebar();
					endif;
			?>
			<div id="av-primary-content" class="<?php esc_attr( marin_post_layout() ); ?>">

				<?php
					$marin_paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
					$args        = array(
						'post_type' => 'post',
						'paged'     => $marin_paged,
					);
					?>
				<?php if ( have_posts() ) : ?>
					<?php
					while ( have_posts() ) :
						the_post();
							get_template_part( 'template-parts/content/content', 'page' );
					endwhile;
					?>

					<!-- Pagination -->
						<?php
						$posts_pagination = get_the_posts_pagination(
							array(
								'mid_size'  => 1,
								'prev_text' => '<i class="fa fa-angle-double-left"></i>',
								'next_text' => '<i class="fa fa-angle-double-right"></i>',
							)
						);
						echo $posts_pagination;
						?>
					<!-- Pagination -->	

				<?php else : ?>
					<?php get_template_part( 'template-parts/content/content', 'none' ); ?>
				<?php endif; ?>
			</div>
			<?php if ( 'marin_right_sidebar' === $marin_archive_blog_pages_layout ) : ?>
				<?php get_sidebar(); ?>
			<?php endif; ?>
		</div>
	</div>
</section>
<?php get_footer(); ?>
