This repository was archived by the owner on Mar 4, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathsearch.php
More file actions
52 lines (42 loc) · 1.77 KB
/
search.php
File metadata and controls
52 lines (42 loc) · 1.77 KB
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 get_header(); ?>
<div id="content" class="section">
<?php arras_above_content() ?>
<?php if (have_posts()) : ?>
<div class="search-results">
<h2><?php _e('Search Results', 'arras') ?></h2>
<div class="search-results-content clearfix">
<p><?php printf( __('Search Results for <strong>‘' . '%s' . '’</strong></p>', 'arras'), esc_html($s, 1) ) ?>
<?php get_search_form(); ?>
</div>
</div>
<div id="archive-posts">
<?php arras_render_posts( null, arras_get_option('archive_display') ); ?>
</div>
<?php if(function_exists('wp_pagenavi')) wp_pagenavi(); else { ?>
<div class="navigation clearfix">
<div class="floatleft"><?php previous_posts_link( __('Newer Entries »', 'arras') ) ?></div>
<div class="floatright"><?php next_posts_link( __('« Older Entries', 'arras') ) ?></div>
</div>
<?php } ?>
<?php else: ?>
<div class="search-results">
<h2>Search Results</h2>
<div class="search-results-content clearfix">
<p><?php _e('<strong>Sorry, we couldn\'t find any results based on your search query.</strong>', 'arras') ?></p>
<?php get_search_form() ?>
</div>
</div>
<h2 class="home-title"><?php _e('Blog Archive', 'arras') ?></h2>
<?php query_posts(''); ?>
<?php arras_render_posts( null, arras_get_option('archive_display') ) ?>
<?php if(function_exists('wp_pagenavi')) wp_pagenavi(); else { ?>
<div class="navigation clearfix">
<div class="floatleft"><?php next_posts_link( __('« Older Entries', 'arras') ) ?></div>
<div class="floatright"><?php previous_posts_link( __('Newer Entries »', 'arras') ) ?></div>
</div>
<?php } ?>
<?php endif; ?>
<?php arras_below_content() ?>
</div><!-- #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>