-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathecho_log.php
More file actions
90 lines (87 loc) · 3.49 KB
/
echo_log.php
File metadata and controls
90 lines (87 loc) · 3.49 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
79
80
81
82
83
84
85
86
87
88
89
90
<?php
/**
* 阅读文章页面
*/
if(!defined('EMLOG_ROOT')) {exit('error!');}
?>
<main>
<div class="section" id="log-banner">
<div class="container margin-top">
<div class="row margin-bottom">
<div class="col s12">
<h4 class="header center-on-small-only">
<?php echo $log_title; ?>
</h4>
</div>
</div>
</div>
</div>
<div class="parallax-container">
<?php if(Option::get('topimg')): ?>
<div class="parallax">
<img src="<?php echo BLOG_URL.Option::get('topimg'); ?>">
</div>
<?php endif;?>
</div>
<div class="container light padding-top" id="content">
<?php echo $log_content; ?>
<div class="margin-vertical">
<?php if(!empty($log_cache_sort[$logid])): ?>
<span class="light red-text text-lighten-2">分类: </span>
<a class="light red-text text-lighten-2" href="<?php echo Url::sort($log_cache_sort[$logid]['id']); ?>">
<?php echo $log_cache_sort[$logid]['name']; ?>
</a>
<?php endif;?>
/
<div class="tag" style="display: inline-block;">
<span class="light red-text text-lighten-2">标签: </span>
<?php if (!empty($log_cache_tags[$logid])):?>
<?php foreach ($log_cache_tags[$logid] as $tag):?>
<a class="light" href="<?php echo Url::tag($tag['tagurl']);?>">
<span class="tag-badge">
<?php echo $tag['tagname'];?>
</span>
</a>
<?php endforeach;?>
<?php endif;?>
</div>
/
<span class="light red-text text-lighten-2">浏览量: <?php echo $views; ?></span>
<div class="right info" style="display: inline-block;">
<?php echo gmdate('Y-n-j G:i l', $date); ?>
</div>
</div>
<?php doAction('log_related', $logData); ?>
<div class="row nextlog">
<?php extract($neighborLog); ?>
<div class="col s12 m6 truncate">
<?php if($prevLog):?>
<i>上一篇: </i>
<a class="light teal-text text-darken-2" href="<?php echo Url::log($prevLog['gid']) ?>">
<?php echo $prevLog['title'];?>
</a>
<?php if($nextLog):?>
<span class="right hide-on-small-only">|</span>
<?php endif;?>
<?php endif;?>
</div>
<div class="col s12 m6 truncate right-align">
<?php if($nextLog):?>
<i>下一篇: </i>
<a class="light teal-text text-darken-2" href="<?php echo Url::log($nextLog['gid']) ?>">
<?php echo $nextLog['title'];?>
</a>
<?php endif;?>
</div>
</div>
<div class="comments padding-top">
<?php include View::getView('modules/comments');?>
</div>
<div class="comment-post">
<?php include View::getView('modules/comments_post');?>
</div>
<div style="clear:both;"></div>
</div>
</main>
<?php include View::getView('footer');?>