forked from nehalist/gitsta
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsearch.php
More file actions
40 lines (31 loc) · 1.21 KB
/
search.php
File metadata and controls
40 lines (31 loc) · 1.21 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
<?php get_header(); ?>
<div class="subhead">
<div class="container">
<h3><?php _e('Results for:', 'gitsta'); ?> <em><?php echo get_search_query(); ?></em></h3>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-10">
<?php if ( have_posts() ) : ?>
<?php while(have_posts()): the_post(); ?>
<?php
get_template_part('content');
?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part('content', 'none'); ?>
<?php endif; ?>
<?php wp_link_pages(); ?>
<ul class="pager">
<li class="previous"><?php next_posts_link( __('Older posts', 'gitsta') ); ?></li>
<li class="next"><?php previous_posts_link( __('Newer posts', 'gitsta') ); ?></li>
</ul>
</div>
<div class="col-md-2">
<div class="with-subhead">
<?php get_sidebar(); ?>
</div>
</div>
</div>
<?php get_footer(); ?>