-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
121 lines (109 loc) · 10 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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
/**
* Lpisme是Typecho的一套主题模板,Lpisme这个主题的名字由来,Lp是我女朋友的名字的首个字母,没错我女朋友的名字只有两个字。So,很容易看出,Lp is me。一开始是打算起Lpismine,但太长了同时觉得还是要有点chinese的感觉,故Lpisme诞生,意味着女朋友是我的。
*
* @package Lpisme Theme
* @author Chakhsu Lau
* @version 3.2.0
* @link www.linpx.com
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<div class="container">
<div class="index-wrapper">
<div class="index-posts <?php if ($this->options->listCol == "one") echo "index-posts-onecol"; ?> cf">
<?php while($this->next()): ?>
<article class="index-post <?php if ($this->options->listCol == "one") echo "index-post-onecol"; ?> cf" itemscope itemtype="http://schema.org/BlogPosting">
<div class="index-post-inner">
<div class="index-post-header cf">
<?php if (isset($this->fields->eye)): ?>
<span class="index-post-avatar icon-eyeglass left">
<span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span>
</span>
<?php elseif (isset($this->fields->code)): ?>
<span class="index-post-avatar icon-coding left">
<span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span><span class="path7"></span><span class="path8"></span><span class="path9"></span><span class="path10"></span><span class="path11"></span><span class="path12"></span><span class="path13"></span><span class="path14"></span><span class="path15"></span><span class="path16"></span><span class="path17"></span><span class="path18"></span><span class="path19"></span><span class="path20"></span><span class="path21"></span><span class="path22"></span><span class="path23"></span><span class="path24"></span><span class="path25"></span><span class="path26"></span><span class="path27"></span><span class="path28"></span><span class="path29"></span><span class="path30"></span><span class="path31"></span><span class="path32"></span><span class="path33"></span><span class="path34"></span><span class="path35"></span><span class="path36"></span><span class="path37"></span><span class="path38"></span><span class="path39"></span><span class="path40"></span><span class="path41"></span><span class="path42"></span><span class="path43"></span><span class="path44"></span>
</span>
<?php elseif (isset($this->fields->list)): ?>
<span class="index-post-avatar icon-list left">
<span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span><span class="path7"></span><span class="path8"></span><span class="path9"></span><span class="path10"></span><span class="path11"></span><span class="path12"></span><span class="path13"></span><span class="path14"></span><span class="path15"></span><span class="path16"></span><span class="path17"></span><span class="path18"></span><span class="path19"></span><span class="path20"></span><span class="path21"></span>
</span>
<?php elseif (isset($this->fields->quote)): ?>
<span class="index-post-avatar icon-ss left">
<span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span>
</span>
<?php elseif (isset($this->fields->share)): ?>
<span class="index-post-avatar icon-share left">
<span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span><span class="path7"></span><span class="path8"></span><span class="path9"></span><span class="path10"></span><span class="path11"></span><span class="path12"></span><span class="path13"></span><span class="path14"></span><span class="path15"></span><span class="path16"></span><span class="path17"></span><span class="path18"></span><span class="path19"></span><span class="path20"></span><span class="path21"></span><span class="path22"></span><span class="path23"></span><span class="path24"></span><span class="path25"></span>
</span>
<?php elseif (isset($this->fields->chat)): ?>
<span class="index-post-avatar icon-chat left">
<span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span><span class="path7"></span>
</span>
<?php elseif (isset($this->fields->locked)): ?>
<span class="index-post-avatar icon-locked left">
<span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span>
</span>
<?php elseif (isset($this->fields->images)): ?>
<span class="index-post-avatar icon-images left">
<span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span><span class="path7"></span><span class="path8"></span><span class="path9"></span><span class="path10"></span><span class="path11"></span><span class="path12"></span>
</span>
<?php elseif (isset($this->fields->ad)): ?>
<span class="index-post-avatar icon-ad left">
<span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span><span class="path7"></span><span class="path8"></span><span class="path9"></span>
</span>
<?php elseif (isset($this->fields->lamp)): ?>
<span class="index-post-avatar icon-lamp left">
<span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span><span class="path7"></span><span class="path8"></span><span class="path9"></span><span class="path10"></span>
</span>
<?php else : ?>
<?php endif; ?>
<div class="index-post-date" itemprop="datePublished">
<?php $this->date('F jS , Y'); ?>
</div>
<div class="index-post-title" itemprop="name headline">
<a href="<?php $this->permalink() ?>" title="<?php $this->title() ?>" itemtype="url"><?php $this->title() ?></a>
</div>
</div>
<div class="index-post-content" itemprop="articleBody">
<?php $this->description(); ?>
</div>
<?php if(isset($this->fields->thumb)): ?>
<div class="index-post-thumb">
<a class="index-post-cover" href="<?php $this->permalink() ?>">
<img class="thumb" src="<?php echo $this->fields->thumb;?>">
</a>
</div>
<?php else : ?>
<?php $thumb = showThumb($this,null,true); if(!empty($thumb)):?>
<div class="index-post-thumb">
<a class="index-post-cover" href="<?php $this->permalink() ?>">
<img class="thumb" src="<?php echo $thumb;?>">
</a>
</div>
<?php endif; ?>
<?php endif; ?>
<div class="index-post-meta cf">
<div class="index-post-button"><a href="<?php $this->permalink() ?>"> Read more </a>
</div>
<div class="index-post-button index-post-comments">
<a href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum(_t(' No comment '), _t(' 1 comment '), _t(' %d comments ')); ?></a>
</div>
<div class="index-post-category">
<?php $this->category(''); ?>
</div>
</div>
</div>
</article>
<?php endwhile; ?>
</div>
<div class="index-pagenav <?php if ($this->options->listCol == "one") echo "index-pagenav-onecol"; ?> cf">
<div class="page-nav">
<div class="page-prev left" title="<?php _e('上一页');?>"><?php $this->pageLink('<i class="icon icon-left"></i> Previous','prev');?></div>
<div class="page-next right" title="<?php _e('下一页');?>"><?php $this->pageLink('Next <i class="icon icon-right"></i>','next');?></div>
</div>
</div>
</div>
</div>
<?php $this->need('footer.php'); ?>