-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
33 lines (24 loc) · 860 Bytes
/
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
<?php get_header(); ?>
<div role="main">
<?php if (have_posts()) : ?>
<header>
<h1><?php _e('Search Results for', 'essence'); ?> <?php echo get_search_query(); ?></h1>
</header>
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part('loop', get_post_format()); // Loop posts ?>
<?php endwhile; ?>
<?php essence_content_nav() ?>
<?php else : ?>
<article id="post-0" class="post no-results not-found">
<header>
<h1><?php _e('Nothing Found', 'essence'); ?>></h1>
</header>
<div class="entry-content">
<p><?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'essence'); ?></p>
<?php get_search_form(); ?>
</div>
</article>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>