<?php get_header(); 
?>

<section class="page-section main-content-section search-results-page">
	<div class="container">
		<div class="page-title">



		</div>
		<div class="row">

			<div class="col s12 m10 push-m1 l8 push-l2">
				<div class="index-content">
					<h1 class="center-align">Search Results</h1>
                    
				<div class="search-page-search-form">
					<div class="search-icon">
					    <?php echo file_get_contents(get_template_directory() . '/assets/img/icons/search-grey.svg'); ?>
					</div>
                    <?php include (TEMPLATEPATH . '/searchform.php'); ?>
                </div>

					<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
						
							<?php get_template_part('partials/template', 'search-card'); ?>
						
					<?php endwhile; else : ?>
						<p><?php _e( 'Sorry, nothing was found.' ); ?></p>
					<?php endif; ?>

				</div>

				<div class="pagination">
					<?php m2_pagination(); ?>
				</div> 
			</div>


		</div> 
	</div>
</section>
<?php get_footer(); ?>