-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.php
35 lines (34 loc) · 1.6 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
<?php $theme->display ( 'header' ); ?>
<div id="entries">
<?php if (isset($post)) : ?>
<p class="prompt"><?php $theme->search_prompt( htmlspecialchars( $criteria ), true ); ?></p>
<?php foreach ( $posts as $post ): ?>
<div class="entry">
<div class="entry-title">
<h2><a href="<?php echo $post->permalink; ?>" title="<?php printf ( _t( 'Read %s' ), $post->title); ?>"><?php echo $post->title_out; ?></a></h2>
</div>
<?php if ( $post->info->summary ) : ?>
<div class="entry-subtitle">
<h3><?php echo $post->info->summary; ?></h3>
</div>
<?php endif; ?>
<div class="entry-content clearfix">
<p> <a href="<?php echo $post->permalink; ?>" title="<?php printf ( _t( 'Read %s' ), $post->title); ?>">Read this article»</a><p>
</div>
<?php if ( $user ) : ?>
<div class="entry-footer">
<p><?php printf( _t('You are logged in as %1$s and you can %2$s.'), $user->displayname, '<a href="' . URL::get( 'admin', 'page=publish&slug=' . $post->slug) . '" title="">' . _t('edit this article') . '</a>'); ?></p>
</div>
<?php endif; ?>
</div>
<?php endforeach; ?>
<?php else: ?>
<p class="prompt"><?php $theme->search_prompt( htmlspecialchars( $criteria ), false ); ?></p>
<?php endif; ?>
<div id="pagination">
<?php $theme->prev_page_link(); ?> <?php $theme->page_selector( null, array( 'leftSide' => 2, 'rightSide' => 2 ) ); ?> <?php $theme->next_page_link(); ?>
</div>
</div>
<?php $theme->display ( 'sidebar' ); ?>
<?php $theme->display ( 'secondary' ); ?>
<?php $theme->display ( 'footer' ); ?>