2012-01-07 03:25:13 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2016-09-27 06:22:29 +00:00
|
|
|
* The template for displaying search results pages
|
2012-01-07 03:25:13 +00:00
|
|
|
*
|
2015-07-01 15:21:44 +00:00
|
|
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
|
|
|
|
*
|
2012-01-07 03:25:13 +00:00
|
|
|
* @package _s
|
|
|
|
*/
|
|
|
|
|
|
|
|
get_header(); ?>
|
|
|
|
|
2013-03-05 00:41:38 +00:00
|
|
|
<section id="primary" class="content-area">
|
2013-07-30 19:12:45 +00:00
|
|
|
<main id="main" class="site-main" role="main">
|
2012-01-07 03:25:13 +00:00
|
|
|
|
2015-11-11 21:59:40 +00:00
|
|
|
<?php
|
|
|
|
if ( have_posts() ) : ?>
|
2012-01-07 03:25:13 +00:00
|
|
|
|
2013-03-05 00:41:38 +00:00
|
|
|
<header class="page-header">
|
2015-05-05 10:39:26 +00:00
|
|
|
<h1 class="page-title"><?php printf( esc_html__( 'Search Results for: %s', '_s' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
|
2013-03-05 00:41:38 +00:00
|
|
|
</header><!-- .page-header -->
|
2012-01-07 03:25:13 +00:00
|
|
|
|
2015-11-11 21:59:40 +00:00
|
|
|
<?php
|
|
|
|
/* Start the Loop */
|
|
|
|
while ( have_posts() ) : the_post();
|
2012-01-07 03:25:13 +00:00
|
|
|
|
2014-05-13 06:37:56 +00:00
|
|
|
/**
|
|
|
|
* Run the loop for the search to output the results.
|
|
|
|
* If you want to overload this in a child theme then include a file
|
|
|
|
* called content-search.php and that will be used instead.
|
|
|
|
*/
|
2015-04-29 01:42:12 +00:00
|
|
|
get_template_part( 'template-parts/content', 'search' );
|
2012-01-07 03:25:13 +00:00
|
|
|
|
2015-11-11 21:59:40 +00:00
|
|
|
endwhile;
|
2012-01-07 03:25:13 +00:00
|
|
|
|
2015-11-11 21:59:40 +00:00
|
|
|
the_posts_navigation();
|
2012-01-07 03:25:13 +00:00
|
|
|
|
2015-11-11 21:59:40 +00:00
|
|
|
else :
|
2012-01-07 03:25:13 +00:00
|
|
|
|
2015-11-11 21:59:40 +00:00
|
|
|
get_template_part( 'template-parts/content', 'none' );
|
2012-01-07 03:25:13 +00:00
|
|
|
|
2015-11-11 21:59:40 +00:00
|
|
|
endif; ?>
|
2012-01-07 03:25:13 +00:00
|
|
|
|
2013-07-30 19:12:45 +00:00
|
|
|
</main><!-- #main -->
|
2013-03-05 00:41:38 +00:00
|
|
|
</section><!-- #primary -->
|
2012-01-07 03:25:13 +00:00
|
|
|
|
2015-11-11 21:59:40 +00:00
|
|
|
<?php
|
|
|
|
get_sidebar();
|
|
|
|
get_footer();
|