forked from aspirepress/site-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
36 lines (27 loc) · 1.06 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
<?php get_header(); ?>
<div class="col-sm-9 search-main">
<header class="search-header page-header">
<?php
$type = '';
if ((isset($_GET['post_type']) && $_GET['post_type'] == 'talk')) {
$type = ' (talks only)';
} ?>
<h1 class="page-title"><?php printf(__('Search Results for: %s', 'shape'), '<span>' . get_search_query() . '</span>' . $type); ?></h1>
</header>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post() ?>
<?php get_template_part('content', get_post_format()) ?>
<?php endwhile; ?>
<?php else: ?>
<p>No results found</p>
<?php endif; ?>
<nav>
<ul class="pager">
<li><?php next_posts_link('Older') ?></li>
<li><?php previous_posts_link('Newer') ?></li>
</ul>
</nav>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
<!-- index.php -->