/
index.php
54 lines (50 loc) · 1.73 KB
/
index.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
<?php
/**
* @package xups
* @author Jelon
* @version 0.0.1
* @since 2015-01-05
* @todo 首页以及说明文件
* @link http://jelon.in
*
*/
?>
<?php $this->need('header.php'); ?>
<!-- 文章部分 -->
<section class="content">
<div class="content-main widget">
<h3 class="widget-hd"><strong>最近动态</strong></h3>
<?php while ($this->next()): ?>
<!-- 文章 -->
<article class="post">
<header>
<?php $this->category(','); ?>
<h4 class="post-title"><a href="<?php $this->permalink(); ?>"><?php $this->title(); ?></a></h4>
</header>
<p class="post-meta"><a href="<?php $this->author->permalink(); ?>"><?php $this->author(); ?></a> 发表于 <?php $this->date('Y-m-d'); ?></p>
<div class="post-content">
<div class="post-excerpt">
<?php $this->excerpt(360, ' ... '); ?>
<p class="more"><a href="<?php $this->permalink(); ?>" title="<?php $this->title(); ?>">阅读剩下更多</a></p>
</div>
<div class="post-thumbnail">
<?php Thumbnail_Plugin::show($this); ?>
</div>
</div>
<p class="post-meta">
<span class="post-views">阅读 (<?php Views_Plugin::theViews('', '', 1); ?>)</span>
<a href="<?php $this->permalink(); ?>/#comments" class="post-comments ds-thread-count" data-thread-key="<?php echo $this->cid; ?>" data-count-type="comments"></a>
<span class="post-tags">
标签:
<?php $this->tags(' / ', true, '无'); ?>
</span>
</p>
</article>
<?php endwhile; ?>
<!-- 分页 -->
<?php $this->pageNav('前一页', '后一页'); ?>
</div>
</section>
<!-- / 文章部分 -->
<?php $this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>