-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecho_log.php
More file actions
78 lines (72 loc) · 3.11 KB
/
echo_log.php
File metadata and controls
78 lines (72 loc) · 3.11 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/**
* 阅读文章页面
*/
if(!defined('EMLOG_ROOT')) {exit('error!');}
?>
<!--面包屑导航-->
<div class="breadthumb">
<div class="container">
<a href="<?php echo BLOG_URL;?>" class="bread-item">首页</a>
<a href="" class="bread-item"><?php echo $log_title; ?></a>
</div>
</div>
<!--面包屑导航-->
<div class="main container">
<div class="content-wrap">
<div class="content" id="content">
<div class="panel echo_log">
<div class="panel-body">
<h3 class="log-title"><?php topflg($top); ?><?php echo $log_title; ?></h3>
<div class="log-info">
<i class="iconfont icon-user"></i>
<?php blog_author($author); ?>
<i class="iconfont icon-time"></i> <?php echo gmdate('Y-n-j', $date); ?>
<i class="iconfont icon-comment"></i> <a href="#comments"><?php echo $comnum;?></a>
<i class="iconfont icon-view"></i> <?php echo $views;?>
<?php editflg($logid,$author); ?>
</div>
<div class="log-body">
<?php echo $log_content; ?>
<p class="tags"><?php blog_tag($logid); ?></p>
<?php doAction('log_related', $logData); ?>
</div>
</div>
</div>
<div class="panel relief">
<div class="panel-body">
<?php echo $config['relief'];?>
</div>
</div>
<div class="panel">
<div class="panel-heading">
<?php $the_author = get_author_by_uid($author);?>
作者: <?php blog_author($author); ?>
<span class="pull-right">本文最后编辑于<?php echo gmdate('Y-n-j h:i:s', $date); ?></span>
</div>
<div class="panel-body author">
<img src="<?php echo !empty($the_author['avatar']) ? BLOG_URL . $the_author['avatar'] : TEMPLATE_URL . 'dist/images/default_avatar.png';?>" alt="<?php echo $the_author['name'];?>" class="avatar">
<p class="author-desc"><?php echo $the_author['des'];?></p>
<a href="<?php echo $config['weibo_url'];?>"><img src="<?php echo TEMPLATE_URL;?>/dist/images/weibo_48_48.png" alt="作者的微博" class="icon"></a>
</div>
</div>
<div class="panel">
<div class="panel-body neighbor">
<?php neighbor_log($neighborLog); ?>
</div>
</div>
<!--Todo:评论-->
<div class="panel comment-box">
<div class="panel-body">
<?php blog_comments($comments); ?>
<?php blog_comments_post($logid,$ckname,$ckmail,$ckurl,$verifyCode,$allow_remark); ?>
</div>
</div>
</div>
</div>
<?php include View::getView('side');?>
<div class="clearfix"></div>
</div>
<?php
include View::getView('footer');
?>