-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
33 lines (21 loc) · 935 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(); ?>
<?php get_sidebar(); ?>
<div id="container" class="clearfix">
<div id="content" class="masonry">
<?php if( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content' ); ?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<div class="navigation">
<?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'dw-wallpress' ) ); ?>
<?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'dw-wallpress' ) ); ?>
</div>
<?php endif; ?>
<?php endwhile; else :?>
<h1 class="entry-title"><?php _e( 'Nothing Found', 'dw-wallpress' ); ?></h1>
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'dw-wallpress' ); ?></p>
<?php endif; ?>
</div>
<!-- #content -->
</div>
<!-- #container -->
<?php get_footer(); ?>