-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpost.php
executable file
·43 lines (30 loc) · 1.24 KB
/
post.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
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$this->load->view('header');
?>
<div id="main"><!-- main -->
<div class="post">
<h3><strong><?php echo $post->title;?></strong></h3>
<h4 class="metadata">
<span>发布于: <?php echo $post->published; ?></span>
<span>分类: <?php echo Common::format_metas($post->categories, ',');?></span>
<span class="no-border">作者: <?php echo anchor(site_url('authors/'. $post->authorId), $post->screenName);?></span>
</h4>
<div class="content">
<?php echo $post->content;?>
</div>
<div class="related">
<h4><strong>相关日志:</strong></h4>
<ul>
<?php $this->plugin->trigger('Widget::Posts::Related', $post->pid, 5, '<li><a href="{permalink}">{title}</a> ({date})</li>');?>
</ul>
</div>
<div class="tags">
<?php if(!empty($post->tags)):?>
<h4><strong>标签:</strong> <?php echo Common::format_metas($post->tags, ',');?></h4>
<?php endif;?>
</div>
</div>
<?php $this->load->view('comments');?>
</div><!-- //main -->
<?php $this->load->view('sidebar');?>
<?php $this->load->view('footer');?>