-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsearch.php
43 lines (30 loc) · 1.07 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
<?php
/**
* @package WordPress
* @subpackage PulsePress
*/
?>
<?php get_header(); ?>
<div class="sleeve_main">
<div id="main">
<h2 class="archive-title search-title"><?php printf( __( 'Search Results for: %s', 'pulse_press' ), get_search_query() ); ?></h2>
<?php if ( have_posts() ) : ?>
<ul id="postlist">
<?php while ( have_posts() ) : the_post(); ?>
<?php pulse_press_load_entry() // loads entry.php ?>
<?php endwhile; ?>
</ul>
<?php else : ?>
<div class="no-posts">
<h3><?php _e( 'No posts found!', 'pulse_press' ); ?></h3>
<p><?php _e( 'Apologies, but the page you requested could not be found. Perhaps searching will help.', 'pulse_press' ); ?></p>
<?php get_search_form(); ?>
</div>
<?php endif ?>
<div class="navigation">
<p class="nav-older"><?php next_posts_link( __( '← Older posts', 'pulse_press' ) ); ?></p>
<p class="nav-newer"><?php previous_posts_link( __( 'Newer posts →</span>', 'pulse_press' ) ); ?></p>
</div>
</div> <!-- main -->
</div> <!-- sleeve -->
<?php get_footer(); ?>