-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog_list.php
More file actions
40 lines (39 loc) · 1.36 KB
/
log_list.php
File metadata and controls
40 lines (39 loc) · 1.36 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
<?php
/**
* 站点首页模板
*/
if(!defined('EMLOG_ROOT')) {exit('error!');}
doAction('index_loglist_top');
?>
<div id="content" class="post-index">
<?php
if(!empty($logs)):
foreach($logs as $value):
if(pic_thumb($value['content'])){
$imgsrc = "<p><a href=\"{$value['log_url']}\" class=\"post-title\" title=\"{$value['log_title']}\" rel=\"bookmark\" ><img width=\"455\" height=\"341\" src=\"".pic_thumb($value['content'])."\" class=\"attachment-post-thumbnail wp-post-image\" /></a></p>";
}else{
$imgsrc = '';
}
?>
<article id="post-<?php echo $value['logid']; ?>" class="post-<?php echo $value['logid']; ?> post type-post" >
<div class="article-wrap">
<header class="entry-header">
<h1>
<a href="<?php echo $value['log_url']; ?>" rel="bookmark" class="post-title" title = "<?php echo $value['log_title']; ?>"><?php echo $value['log_title']; ?></a>
<span class="meta-time"><?php echo gmdate('h月i日', $value['date']); ?></span>
</h1>
</header>
<div class="entry-content">
<?php echo $imgsrc; ?>
<p><?php echo clean(blog_tool_purecontent($value['content'],500)); ?></p>
</div>
</div>
</article><!--post-index-->
<?php
endforeach;
else:
?>
<?php endif; ?>
</div><!--content-->
<?php echo static_page($lognum,$index_lognum,$page,$pageurl); ?>
<?php include View::getView('footer'); ?>