-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
52 lines (38 loc) · 1.36 KB
/
search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* The template for displaying Search Results pages.
*
* @package WordPress
* @subpackage Strip
*/
get_header(); ?>
<div class="wrap">
<section id="primary"
<main id="content" role="main">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<h1 class="page-title"><?php printf( esc_html__( 'Search Results for: %s', 'strip' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
</header><!-- .page-header -->
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) :
the_post();
get_template_part( 'content', get_post_format() );
endwhile;
the_posts_pagination();
else : ?>
<article id="post-0" class="no-results">
<header class="page-header">
<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'strip' ); ?></h1>
</header><!-- .page-header -->
<div class="entry-content">
<p> <?php esc_html_e( 'Bummer, I cannot find what you are looking for.
Would you like to search in the', 'strip' ); ?>
<a href="<?php echo esc_url( get_post_type_archive_link( 'comic' ) ); ?>">Comics Archive</a>? Great stuff there.</p>
<p><?php esc_html_e( 'Or do you prefer trying another search with different keywords?', 'strip' ); ?></p>
<?php get_search_form(); ?>
<?php endif; ?>
</div><!-- .entry-content -->
</main><!-- #content -->
</section><!-- #primary -->
</div><!-- .wrap -->
<?php get_footer(); ?>