<?php
/**
 * The template for displaying search results pages.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
 *
 * @package News25
 */

get_header();
?>
<section id="post-section" class="post-section st-py-default3 search-page">
	<div class="container">
		<div class="row gy-4">
			<div id="av-primary-content" class="<?php esc_attr(news25_post_layout()); ?>">
				<div class="row">
				<?php if( have_posts() ): ?>
				
					<?php while( have_posts() ) : the_post();
						echo '<div class="'.esc_attr(news25_post_cols_layout()).'">';
							get_template_part('template-parts/content/content','page'); 
						echo '</div>';	
					endwhile; 
					// the_posts_navigation();
					//<!-- Pagination -->
													
						// Previous/next page navigation.
						the_posts_pagination( array(
						'prev_text'          => '<i class="fa fa-angle-double-left"></i>',
						'next_text'          => '<i class="fa fa-angle-double-right"></i>',
						) ); 
					//<!-- Pagination -->
					?>
					
				<?php else: ?>
				
					<?php get_template_part('template-parts/content/content','none'); ?>
					
				<?php endif; ?>
				</div>
			</div>
			<?php  get_sidebar(); ?>
		</div>
	</div>
</section> 
<?php get_footer(); ?>
