-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
55 lines (53 loc) · 1.9 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
<?php namespace Habari; ?>
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<?php include 'header.php'; ?>
<?php if (isset($post)) : ?>
<div id="main-posts">
<p class="prompt"><?php echo $theme->search_prompt( Utils::htmlspecialchars( $criteria ), true ); ?></p>
<?php foreach ($posts as $post): ?>
<div class="post multi">
<?php if ( count( $post->tags ) && ($tags_in_multiple) ) : ?>
<div class="post-tags">
<?php echo $post->tags_out;?>
</div>
<?php endif; ?>
<div class="post-title">
<h3>
<a href="<?php echo $post->permalink; ?>" title="<?php echo $post->title; ?>"><?php echo $post->title_out; ?></a>
</h3>
</div>
<div class="post-sup">
<span class="post-date"><?php $post->pubdate->out(); ?></span>
<span class="post-comments-link">
<a href="<?php echo $post->permalink.'#comment-form'; ?>" title="<?php _e( "Comments on this post" ); ?>"><?php echo $theme->post_comments_link( $post ); ?></a>
</span>
<span class="clear"></span>
</div>
<div class="post-entry">
<?php echo $post->content_excerpt; ?>
</div>
</div>
<?php endforeach; ?>
</div>
<?php else: ?>
<div id="main-posts">
<p class="prompt"><?php echo $theme->search_prompt( Utils::htmlspecialchars( $criteria ), false ); ?></p>
<div class="post multi"></div>
</div>
<?php endif; ?>
</div>
<div id="top-secondary">
<?php include'sidebar.php' ?></div>
<div class="clear"></div>
</div>
</div>
<div id="page-bottom">
<div id="wrapper-bottom">
<div id="bottom-primary">
<div id="prev-posts-footer">
<span class="nav-next"><?php echo $theme->prev_page_link( _t('Newer Posts') ); ?></span>
<span class="nav-prev"><?php echo $theme->next_page_link( _t('Older Posts') ); ?></span>
<br class="clear">
</div>
<?php $theme->display_archives() ;?>
<?php include 'footer.php'; ?>