-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlog_list.php
74 lines (68 loc) · 2.8 KB
/
log_list.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
67
68
69
70
71
72
73
74
<?php
/**
* 站点首页模板 多说建议本地化
*/
if(!defined('EMLOG_ROOT')) {exit('error!');}
?>
<div id="content">
<div id="contentleftt"style="background-color: rgba(255, 255, 255, 0.6);">
<?php doAction('index_loglist_top'); ?>
<?php
if (!empty($logs)):
foreach($logs as $value):
?><article class="post-list" role="article">
<h2>
<!-- 说明:判断浏览量 -->
<?php
if ($value['views'] >= 500) echo '<span class="hot-label">热门</span><i class="hot-arrow"></i> ';
?>
<!-- 说明:判断时间 -->
<?php
$t=time() - 1*24*60*60;
$log_t=gmdate('Y-m-d',$value['date']);
$diy_t=date("Y-m-d",$t);
if($log_t > $diy_t) echo '<span class="new-label">近期更新</span><i class="new-arrow"></i>';
?>
<a href="<?php echo $value['log_url']; ?>" title="<?php echo $value['log_title']; ?>"class="shake shake-little"><?php echo $value['log_title']; ?></a></h2>
<div class="date1"><span class="ptime"></span>时间:<?php echo gmdate('Y-n-j', $value['date']); ?>
<span class="pauthor"></span>作者:<?php blog_author($value['author']); ?>
<span class="pcata"></span>分类:<?php blog_sort($value['logid']); ?>
<span class="pview"></span>热度:<a href="<?php echo $value['log_url']; ?>"><?php echo $value['views']; ?></a>°
<!--原评论代码 <a href="<?php echo $value['log_url']; ?>#comments">评论:<?php echo $value['comnum']; ?></a> -->
<!-- 多说评论代码 -->
<a href="<?php echo $value['log_url']; ?>#comments"><span class="ds-thread-count" data-thread-key="<?php echo $value['logid']; ?>" data-count-type="comments"></span></a>
<?php editflg($value['logid'],$value['author']); ?>
</div>
<div class="date3">
时间:<?php echo gmdate('Y-n-j', $value['date']); ?>
分类:<?php blog_sort($value['logid']); ?>
热度:<a href="<?php echo $value['log_url']; ?>"><?php echo $value['views']; ?></a>
</div>
<div class="fl thumbnail_box">
<div class="thumbnail1">
<a href="<?php echo $value['log_url']; ?>" title="<?php echo $value['log_title']; ?>">
<div class="boder_round"><img src="<?php iitboy_zwimg($value['content']); ?>"width="180px" height="120px"class="shake shake-little hint--top hint--error"alt="<?php echo $value['log_title']; ?>"</img></div></a>
</div>
</div>
<?php echo $value['log_description']; ?>
<div style="clear:both;"></div>
<div class="r">
<a href="<?php echo $value['log_url']; ?>">
<i class="fa fa-list"></i> 阅读全文»</a></div>
<div id="gaodu1"></div><div class="line"></div>
</article>
<?php
endforeach;
else:
?>
<h2>未找到</h2>
<p>抱歉,没有符合您查询条件的结果。</p>
<?php endif;?>
<div id="pagemenui">
<?php echo $page_url;?>
</div>
</div><!-- end #contentleftt-->
<?php
include View::getView('side');
include View::getView('footer');
?>