<?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://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package dexen
 */

get_header();
?>

<?php get_template_part('components/header/breadcrumb/breadcrumb-search'); ?>
    <!--Sidebar Page Container-->
<section class="blog-one sec-pad">
	<div class="container">                
		<div class="row">
			<?php
				if (have_posts()) :
					
					while (have_posts()) :
						the_post();
						get_template_part('template-parts/content', get_post_format());

					endwhile;
				else :
					get_template_part('template-parts/content', 'none');
				endif;
			?>
			
		</div>
		<!--Styled Pagination-->
		<div class="blog-post-pagination text-center content-margin-80">
		<?php
			the_posts_pagination(array(
				'mid_size' => 2,
				'prev_text' => '<i class="fa fa-arrow-left"></i>',
				'next_text' => '<i class="fa fa-arrow-right"></i>'
			));
		?>
		</div>
    </div>
</section>
<?php
get_footer();
