<?php
/**
 * The template for displaying search results pages.
 */

get_header();

global $post;
?>

		<div id="search_result_list">
			
			<?php if (have_posts ()) { ?>
			
				<div class="row">
					<div class="isotope_container_wrap">
						<div class="isotope-container clearfix">

							<?php while (have_posts ()) : the_post(); ?>
								
								<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
									<div class="post-content-wrapper clearfix">
										<div class="post-descr-wrap clearfix">
											<span class="post_type"><?php echo ucfirst( get_post_type( $post->ID ) ); ?></span>
											<h2 class="post-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__('Permalink to %s', 'restorator'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
											<div class="post-meta">
												<span class="post-meta-date theme_color"><?php the_time('j F, Y'); ?></span>
											</div>
										</div>
									</div>
								</article>

							<?php endwhile; ?>
					
							<?php wp_reset_postdata(); ?>
					
						</div>
					</div>
				</div>
			
			<?php restorator_pagination(); ?>
			
			<?php } else { ?>
			
				<div id="error404-container" class="container">
					<h4 class="error404"><?php esc_html_e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'restorator');?></h4>
				</div>
				
			<?php } ?>
			
		</div>

<?php get_footer(); ?>