Passed
Push — development ( 65a7cc...764dda )
by
unknown
10:32
created

search.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * The template for displaying search results pages.
4
 *
5
 * @package spurs
6
 */
7
// Exit if accessed directly.
8
defined( 'ABSPATH' ) || exit;
9
10
if ( have_posts() ) : ?>
11
	<header class="page-header">
12
		<h1 class="page-title"><?php printf(
13
			/* translators:*/
14
				esc_html__( 'Search Results for: %s', 'spurs' ),
15
				'<span>' . get_search_query() . '</span>' ); ?></h1>
16
	</header><!-- .page-header -->
17
18
	<?php /* Start the Loop */
19
	while ( have_posts() ) : the_post();
0 ignored issues
show
Please always use braces to surround the code block of WHILE statements.
Loading history...
20
		/**
21
		 * Run the loop for the search to output the results.
22
		 * If you want to overload this in a child theme then include a file
23
		 * called content-search.php and that will be used instead.
24
		 */
25
		get_template_part( 'templates/loop/content', 'search' );
26
	endwhile;
27
else :
28
	get_template_part( 'templates/loop/content', 'none' );
29
endif;
30