-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
66 lines (37 loc) · 1.94 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
61
62
63
64
65
66
<?php $theme->display( 'header'); ?>
<body id="home">
<div id="shadow">
<div id="rap">
<?php // get the nav etc ?>
<?php include "topbanner.php"; ?>
<?php // get sidebar ?>
<?php $theme->display ( 'sidebar' ); ?>
<div id="content">
<!-- home -->
<?php foreach ( $posts as $post ) { ?>
<div class="post" id="post-<?php echo $post->id; ?>">
<!-- Post title -->
<?php if ( User::identify()->loggedin ) { ?>
<span class="editbutton"><a href="<?php URL::out( 'admin', 'page=publish&id=' . $post->id); ?>" title="<?php _e('Edit post'); ?>"><?php _e('Edit »'); ?></a></span>
<?php } ?> <h3 class="storytitle" id="post-<?php echo $post->id; ?>">
<a href="<?php echo $post->permalink; ?>" rel="bookmark" title="Permanent Link: <?php echo $post->title; ?>"><?php echo $post->title; ?></a> <span class="commentcount"><a href="<?php echo $post->permalink; ?>#comments" title="<?php _e('Comments to this post'); ?>"><?php echo $post->comments->approved->count; ?> <?php echo _n( 'Comment', 'Comments', $post->comments->approved->count ); ?></a></span></h3>
<!-- Post meta -->
<div class="meta">
<?php echo date('j', strtotime($post->pubdate_out)); ?> <?php echo date('F', strtotime($post->pubdate_out)); ?>, <?php echo date('Y', strtotime($post->pubdate_out)); ?> <?php if ( $show_author ) { _e( '· By %s', array( $post->author->displayname ) ); } ?> · Tagged: <?php echo $post->tags_out; ?></div>
<!-- Actual post -->
<div class="storycontent">
<?php echo $post->content_out; ?>
</div>
</div>
<?php } ?>
<div style="clear: both;"></div>
<div id="page-selector">
<?php $theme->prev_page_link(); ?> <?php $theme->page_selector( null, array( 'leftSide' => 2, 'rightSide' => 2 ) ); ?> <?php $theme->next_page_link(); ?>
</div>
</div>
<?php // get footer ?>
<?php $theme->display ('footer'); ?>
</div>
</div>
</body>
</html>