-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.php
63 lines (58 loc) · 2.74 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<<<<<<< HEAD
<?php
$this->need('header.php');
?>
<div class="content">
<article class="post">
<header>
<div class="icon"></div>
<a href="<?php $this->permalink() ?>">
<time datetime="<?php $this->date('Y-m-d'); ?>">
<?php $this->date('Y-m-d'); ?>
</time>
</a>
<h1 class="title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h1>
</header>
<div class="entry"><?php $this->content(); ?></div>
<footer>
<div class="tags">
<?php $this->tags(', ', true, ''); ?>
</div>
<div class="clearfix"></div>
</footer>
</article>
<?php $this->need('comments.php'); ?>
</div>
</div>
<?php $this->need('footer.php'); ?>
=======
<?php $this->need('header.php'); ?>
<div class="container" id="main">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-body">
<h3 class="post-title"><a href="<?php $this->permalink() ?>" target="_blank"><?php $this->title() ?></a></h3>
<div class="post-meta">
<span><i class="fa fa-calendar"></i> <?php $this->date('Y-m-d'); ?> </span>
<span><i class="fa fa-user"></i> <a href="<?php $this->author->permalink(); ?>"><?php $this->author(); ?></a> </span>
<span><i class="fa fa-eye"></i> 阅读 <?php $this->views()._e(' ') ?> </span>
<span><i class="fa fa-book"></i> <?php $this->category(','); ?> </span>
<span><i class="fa fa-comments-o"></i> <a href="<?php $this->permalink() ?>"><?php $this->commentsNum('%d 评论'); ?></a></span>
</div>
<div class="post-content"><?php $this->content(); ?></div>
<p class="arctags text-right"><span aria-hidden="true" class="glyphicon glyphicon-tags"></span> <?php $this->tags(' , ', true, '无标签'); ?></p>
</div>
</div>
<div class="panel panel-default prenext">
<div class="panel-body">
<?php $this->thePrev('<span class="label label-danger">上一篇</span> %s','<span class="label label-default">上一篇</span> 没有了');?>
</div>
<div class="panel-body">
<?php $this->theNext('<span class="label label-danger">下一篇</span> %s','<span class="label label-default">下一篇</span> 没有了');?>
</div>
</div>
<?php $this->need('comments.php'); ?>
</div>
<?php $this->need('footer.php'); ?>
>>>>>>> bb6e707ccbdd7d58b48099ffe2714b65c57e953c