forked from jchristopher/Franklin-Street-Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
executable file
·44 lines (43 loc) · 1.08 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
<?php
/**
* @package Frank
*/
?>
<?php get_header(); ?>
<div id="content" class="archive">
<div class="row">
<main id="content-primary" role="main">
<?php if ( have_posts() ) : ?>
<header>
<h1 class="page-title">
<?php
_e( 'Search Results for', 'frank_theme' );
echo ' ';
echo '‘'; // left single quotation mark
echo the_search_query();
echo '’'; // right single quotation mark
?>
</h1>
</header>
<div class="posts">
<?php while ( have_posts() ): ?>
<?php the_post(); ?>
<?php get_template_part( 'partials/posts/post' ); ?>
<?php endwhile; ?>
<?php get_template_part( 'partials/post-pagination' ); ?>
<?php else : ?>
<div class="post">
<h2>
<?php _e( 'No Results Were Found', 'frank_theme' ); ?>
</h2>
<p>
<?php _e( 'There were no matches for your search. Please try a different search term.', 'frank_theme' ); ?>
</p>
</div>
</div>
<?php endif; ?>
</main>
<?php get_template_part( 'partials/sidebars/sidebar', 'archive' ); ?>
</div>
</div>
<?php get_footer(); ?>