-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathsearch.php
More file actions
45 lines (39 loc) · 883 Bytes
/
Copy pathsearch.php
File metadata and controls
45 lines (39 loc) · 883 Bytes
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
<?php
/**
* The template for displaying search results pages.
*
* @author Javis <javismay@gmail.com>
* @license MIT
*/
get_header();
?>
<?php
if( have_posts() ){
?>
<div class="box archive-meta">
<h3 class="title-meta"><?php _e('Search Results', 'quench')?></h3>
<?php echo '<div class="desc-meta"><span class="top">◆</span>'; printf(__('Searching for %s', 'quench' ), $s); echo '</div>'; ?>
</div>
<?php
while ( have_posts() ) {
the_post();
get_template_part( 'inc/post-format/content', get_post_format() );
}
} else {
?>
<div class="box archive-meta">
<h3 class="title-meta"><?php _e('Apologies, but no results were found.', 'quench')?></h3>
</div>
<?php
}
?>
<?php if($wp_query->max_num_pages > 1 ) { ?>
<div class="pagination clearfix">
<?php pagenavi($range = 3);?>
</div>
<?php } ?>
</div></div>
<?php
get_sidebar();
get_footer();
?>