-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsearch.php
More file actions
71 lines (36 loc) · 1.55 KB
/
search.php
File metadata and controls
71 lines (36 loc) · 1.55 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php get_header(); ?>
<div class="wrapper section medium-padding">
<div class="page-title section-inner">
<h5><?php _e( 'Search results', 'baskerville'); ?> </h5>
<h3><?php echo ' "' . get_search_query() . '"'; ?></h3>
</div>
<div class="content section-inner">
<?php if ( have_posts() ) : ?>
<div class="posts">
<?php while ( have_posts() ) : the_post(); ?>
<div class="post-container">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php get_template_part( 'content', get_post_format() ); ?>
</div> <!-- /post -->
</div> <!-- /post-container -->
<?php endwhile; ?>
</div> <!-- /posts -->
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<div class="archive-nav">
<?php echo get_next_posts_link( '« ' . __('Older posts', 'baskerville')); ?>
<?php echo get_previous_posts_link( __('Newer posts', 'baskerville') . ' »'); ?>
<div class="clear"></div>
</div>
<?php endif; ?>
<?php else : ?>
<div class="section-inner">
<div class="post-content">
<p><?php _e('No results. Try again, would you kindly?', 'baskerville'); ?></p>
</div> <!-- /post-content -->
</div> <!-- /section-inner -->
<div class="clear"></div>
<?php endif; ?>
</div> <!-- /content -->
<div class="clear"></div>
</div> <!-- /wrapper -->
<?php get_footer(); ?>