<?php
/**
 * The Search template file
 * */
get_header(); ?>
<section>
<div class="inner-pages">
		<div class="page-title col-md-12">
			<div class="container theme-container">
				<div class="row">
					<div class="col-md-6 col-sm-6 page-title-captions">
						<h4><?php esc_html_e('Search Results for ', 'bizzbee');
							echo ": " . get_search_query(); ?></h4>
					</div>
					<div class="col-md-6 col-sm-6 breadcrumbs">
						<ul>
							<?php bizzbee_custom_breadcrumbs(); ?>
						</ul>
					</div>
				</div>
			</div>
		</div>
	<div class="section-row col-md-12 col-sm-12 col-xs-12">
	<div class="container theme-container">
		<div class="row">
			<?php if (have_posts()) : ?>
			<div class="content-blog col-md-7">
				<?php while (have_posts()) : the_post(); ?>
				<div class="ourblog-box">
					<?php if ( has_post_thumbnail() ) : ?>
					<div class="post-header">
						<div class="image-wrapper">
							<div class="blur-img"></div>
								<a href="<?php echo esc_url(get_permalink()); ?>"> 
								  <?php the_post_thumbnail( 'bizzbee-post-image', array( 'alt' => get_the_title(), 'class' => 'img-responsive') ); ?>
								</a>
						</div>
					</div>
				   <?php endif; ?>							
					<div class="post-detail">
						<a href="<?php echo esc_url(get_permalink()); ?>" class="post-title"><?php the_title(); ?></a>
 					    <?php bizzbee_entry_meta();
							the_excerpt(); ?>	
					</div>
				</div>
				<?php endwhile; ?> 
				<div class="site-pagination col-md-12">      
					<nav role="navigation" class="navigation pagination">
						<div class="nav-links">
							 <?php // Previous/next page navigation.
								the_posts_pagination(); ?>
						</div>
					</nav>		
				</div>
			</div>
			<?php get_sidebar(); else : ?>
		<div class="latest-blog-img">
			<div class="col-sm-12 search-formmain">
				<p class="spage"><?php esc_html_e('Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'bizzbee'); ?></p> 
				<p><?php get_search_form(); ?></p>
			</div>
		</div>
	<?php endif; ?>
		</div>
	</div>
</div>
</div>		
</section>
<?php get_footer(); ?>