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

get_header('page'); ?>

	<section id="primary" class="content-area">
		<main id="main" class="site-main" role="main">
        <div class="page-container">
         <div class="container">
         
           <div class="breadcrumb-box">
            <?php onepagescroll_breadcrumbs(array("before"=>"","show_browse"=>false));?>
        </div>

		<?php if ( have_posts() ) : ?>

			<header class="page-header">
				<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'one-page-scroll' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
			</header><!-- .page-header -->

			<?php /* Start the Loop */ ?>
			<?php while ( have_posts() ) : the_post(); ?>

				<?php
				get_template_part( 'content', 'search' );
				?>

			<?php endwhile; ?>

		<?php else : ?>

			<?php get_template_part( 'content', 'none' ); ?>

		<?php endif; ?>
           </div>
            </div>
		</main><!-- #main -->
	</section><!-- #primary -->

<?php get_footer('page'); ?>
