Completed
Push — master ( e0588f...db5968 )
by SILENT
05:36
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 WordPress
6
 * @subpackage Strip
7
 */
8
9
get_header(); ?>
10
<div class="wrap">
11
	<section id="primary"
12
	<main id="content" role="main">
13
14
		<?php if ( have_posts() ) : ?>
15
16
			<header class="page-header">
17
				<h1 class="page-title"><?php printf( esc_html__( 'Search Results for: %s', 'strip' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
18
			</header><!-- .page-header -->
19
20
			<?php /* Start the Loop */ ?>
21
			<?php while ( have_posts() ) :
22
				the_post();
23
24
				get_template_part( 'content', get_post_format() );
25
26
			endwhile;
27
28
		strip_content_nav( 'nav-below' );
29
30
		else {
0 ignored issues
show
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected '{', expecting ':'
Loading history...
31
			: ?>
32
33
<article id="post-0" class="no-results">
34
	<header class="page-header">
35
		<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'strip' );
36
		}
37
		?></h1>
38
	</header><!-- .page-header -->
39
<div class="entry-content">
40
			<p> <?php esc_html_e( 'Bummer, I cannot find what you are looking for.
41
				Would you like to search in the', 'strip' ); ?>
42
43
			<a href="<?php echo esc_url( get_post_type_archive_link( 'comic' ) ); ?>">Comics Archive</a>? Great stuff there.</p>
44
45
			<p><?php esc_html_e( 'Or do you prefer trying another search with different keywords?', 'strip' ); ?></p>
46
47
			<?php get_search_form(); ?>
48
49
		<?php endif; ?>
50
		</div><!-- .entry-content -->
51
	</main><!-- #content -->
52
</section><!-- #primary -->
53
</div><!-- .wrap -->
54
55
<?php get_footer(); ?>
56