-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsearch.php
executable file
·47 lines (39 loc) · 1.43 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
<?php theme_include('header'); ?>
<section class="grid 1of1 content">
<p>You searched for “<?php echo search_term(); ?>”.</p>
<hr />
<?php if(has_search_results()): ?>
<ul class="items">
<?php $i = 0; while(search_results()): ?>
<li>
<article class="article-preview">
<div class="grid 2of3 stick-to-grid remove-padding">
<h3 class="remove-bottom">
<!--<a href="<?php echo article_url(); ?>" title="<?php echo article_title(); ?>">--><?php echo article_title(); ?><!--</a>-->
</h3>
<footer>
<small>
Posted <time datetime="<?php echo date(DATE_W3C, article_time()); ?>"><?php echo relative_time(article_time()); ?></time> by <?php echo article_author('real_name'); ?>.
</small>
</footer>
</div>
<div class="grid 1of3 stick-to-grid remove-padding center">
<a href="<?php echo article_url(); ?>" title="<?php echo article_title(); ?>" class="buttonlink">Read this Article</a>
</div>
</article>
</li>
<?php endwhile; ?>
</ul>
<?php if(has_pagination()): ?>
<nav class="pagination">
<div class="wrap">
<?php echo search_prev(); ?>
<?php echo search_next(); ?>
</div>
</nav>
<?php endif; ?>
<?php else: ?>
<p class="wrap">Unfortunately, there's no results for “<?php echo search_term(); ?>”. Did you spell everything correctly?</p>
<?php endif; ?>
</section>
<?php theme_include('footer'); ?>