<?php
/**
* The template for displaying Search Results pages

*/
get_header();
$layout = magazina_page_get_layout();
?>
</div>
<div class="container clearfix">
<div class="page-title breadcrumb">
	<h1><?php printf( __( 'Search Results for: %s', 'magazina' ), get_search_query() ); ?></h1>
</div>
</div>
<div id="page" class="clearfix <?php echo esc_attr($layout); ?>" >
<div class="content">
			<main id="main" class="site-main" role="main">
			<?php if ( have_posts() ) :
			$grid_layout = get_theme_mod('magazina_listing_layout','two-grid-layout');
			?>
			<ul class="load_post <?php echo esc_attr($grid_layout); ?>">
				<?php
				while ( have_posts() ) : the_post();
					if($grid_layout == 'standard-layout'):
							// Start the post formate loop.
					get_template_part( 'content', get_post_format() );
					else :
						// Start the post formate grid.
					get_template_part( 'content', 'grid');
					endif;
				endwhile;
				?>
			</ul>
			<div class="clearfix"></div>
			<?php
				magazina_pagination();
			else :
				// If no content, include the "No posts found" template.
				get_template_part( 'content', 'none' );
			endif;
			?>
			</main><!-- .site-main -->
			<div class="clearfix"></div>
		</div>
<div class="sidebar-wrapper">
<?php get_sidebar(); ?>
</div>
</div>
<!-- / Content End -->
<?php get_footer(); ?>