<?php
/**
 * The template for displaying Search Results pages.
 *
 * @package Noteskine
 */

get_header(); ?>

	<section id="primary" class="content-area">
		<div id="content" class="site-content" role="main">

		<?php if ( have_posts() ) : ?>
			
			<header class="archive-header">
				<h1 class="archive-title"><?php printf( '<i class="fa fa-search"></i> ' . __( 'Результаты поиска по запросу: %s', 'noteskine' ), get_search_query() ); ?></h1>
			</header>
		
			<?php /* The loop */ ?>
			<?php while ( have_posts() ) : the_post(); ?>
				<?php get_template_part( 'content', get_post_format() ); ?>
			<?php endwhile; ?>
			
			<?php noteskine_pagination(); ?>

		<?php else : ?>
			<?php get_template_part( 'content', 'none' ); ?>
		<?php endif; ?>
		
		</div><!-- #content -->
	</section><!-- #primary -->

<?php get_footer(); ?>