-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsearch.php
60 lines (51 loc) · 2.34 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php get_header(); ?>
<div class="container">
<div class="row">
<div id="main" class="col-lg-9">
<?php if (have_posts()) : ?>
<h1 class="archive-title"><span><?php _e('Search Results for', 'blankout'); ?>:</span> <?php the_search_query(); ?></h1>
<?php while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
<header class="article-header page-header">
<h1 class="entry-title page-title" itemprop="headline"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
</h1>
<small class="byline vcard"><?php _e("Posted", 'blankout'); ?>
<time class="updated" datetime="<?php the_time('Y-m-d'); ?>"><?php the_time(get_option('date_format', 'l, F j, Y')); ?></time> <?php _e("by", 'blankout'); ?>
<span class="author"><?php the_author_posts_link(); ?></span> <span class="amp">&</span> <?php _e("filed under", 'blankout'); ?> <?php the_category(', '); ?>.
</small>
</header>
<section class="entry-content">
<?php if (function_exists('mapi_excerpt')) {
echo mapi_excerpt() . mapi_excerpt_more();
} ?>
</section>
<footer class="article-footer"></footer>
</article>
<?php endwhile; ?>
<?php if (function_exists('blankout_page_nav')) : ?>
<?php blankout_page_nav(); ?>
<?php else : ?>
<nav class="wp-prev-next">
<ul class="clearfix">
<li class="prev-link"><?php next_posts_link(__('« Older Entries', 'blankout')) ?></li>
<li class="next-link"><?php previous_posts_link(__('Newer Entries »', 'blankout')) ?></li>
</ul>
</nav>
<?php endif; ?>
<?php else : ?>
<h1 class="archive-title"><span><?php _e('Search Results for', 'blankout'); ?>:</span> <?php the_search_query(); ?></h1>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
<header class="article-header page-header">
<h4 class="entry-title page-title" itemprop="headline"><?php _e('Try a different search term?', 'blankout'); ?></h4>
</header>
<section class="entry-content">
<?php get_search_form(); ?>
</section>
<footer class="article-footer"></footer>
</article>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>