-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathindex.php
More file actions
148 lines (144 loc) · 8.53 KB
/
Copy pathindex.php
File metadata and controls
148 lines (144 loc) · 8.53 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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php
/**
* 需要关闭 “垃圾评论保护” 和 “检查评论来源页 URL 是否与文章链接一致 QQ1544020198 有问题联系”
*
* @package Wanna
* @author Void
* @version 1.3
* @link http://typecho.org
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<div class="blogBody mdui-container-fluid">
<div class="vContainer">
<div class="mdui-row">
<div class="left-page-list mdui-col-md-8 .mdui-col-lg-12" id="qwq">
<?php while($this->next()): ?>
<div class="pageTag shadow-5">
<div class="cardImage">
<a href="<?php $this->permalink() ?>">
<?php if($this->options->slimg && 'guanbi'==$this->options->slimg): ?>
<?php else: ?>
<?php if($this->options->slimg && 'showoff'==$this->options->slimg): ?><a href="<?php $this->permalink() ?>" ><?php showThumbnail($this); ?></a>
<?php else: ?>
<div class="cardImage-img" style="background-image: url('<?php showThumbnail($this); ?>')"></div>
<?php endif; ?>
<?php endif; ?>
<div class="readMore">
<div><i class="mdui-icon material-icons">keyboard_arrow_left</i></div>
<div class="sqReadMore"></div>
</div>
</a>
<div class="hiddenSquare"></div>
</div>
<div class="cardContent">
<div class="mdui-text-truncate pageCard-data">
<a><?php $this->author(); ?></a> 
<a><?php $this->date(); ?></a> 
<a><?php $this->category(','); ?></a>
</div>
<div class="pageCard-excerpt">
<div class="pageTitle">
<h4><?php $this->title() ?></h4>
</div>
<p><?php $this->excerpt(50,'...'); ?></p>
</div>
<div class="ovo">
<a href="<?php $this->permalink() ?>">Link</a>
<div class="ovo-icon">
<div class="dataIcon mdui-ripple">
Comments
<span style="margin: 0 3px">:</span>
<span><?php $this->commentsNum('%d'); ?></span>
</div>
<div class="dataIcon mdui-ripple">
Views
<span style="margin: 0 3px">:</span>
<span><?php get_post_view($this) ?></span>
</div>
</div>
</div>
</div>
</div>
<?php endwhile; ?><!--循环输出文章-->
<div class="nav-position">
<div class="nav">
<?php $this->pageNav('<i class="mdui-icon material-icons">keyboard_arrow_left</i>', '<i class="mdui-icon material-icons"></i>',0, '...', 'wrapTag=ul&wrapClass=page-navigator&itemTag=li&textTag=span&tClass=current&prevClass=prev&nextClass=next'); ?>
</div>
</div>
</div>
<div class="right-pageTagMenu mdui-col-md-4">
<div class="vBox">
<div class="control shadow-2">
<div class="sortBy">
<div>
<button class="mdui-btn mdui-ripple flexTag" value="0">最新回复</button>
<div class="cat cat1"></div>
</div>
<div>
<button class="mdui-btn mdui-ripple flexTag" value="1">最新文章</button>
</div>
<div>
<button class="mdui-btn mdui-ripple flexTag" value="2">文章分类</button>
</div>
</div>
<div class="colorBar"></div>
<div>
<div class="tabCard firstTabCard">
<div class="boaCon marCenter">
<ul class="reply-comments">
<?php
$this->widget('Widget_Comments_Recent','pageSize='.Typecho_Widget::widget('Widget_Options')->comNum)->to($comments);
?>
<?php while($comments->next()): ?>
<li>
<?php $comments->gravatar('50', ''); ?>
<div class="newCom-data">
<h6><?php $comments->author(false); ?></h6>
<p><?php $comments->excerpt(15, '...'); ?></p>
<a href="<?php $comments->permalink(); ?>" class="com-readmore">
<button class="mdui-btn mdui-btn-icon mdui-ripple">
<i class="mdui-icon material-icons" style="font-size: 18px"></i>
</button>
</a>
</div>
</li>
<?php endwhile; ?>
</ul>
</div>
</div>
<div class="tabCard">
<?php
$recent = $this->widget('Widget_Contents_Post_Recent','pageSize=5');
if($recent->have()):
while($recent->next()):
?>
<div class="nextNewPage">
<a href="<?php $recent->permalink(); ?>" class="newPageTile">
<div><?php $recent->title();?></div>
</a>
<div class="newPageItem-Data">
<span><?php $recent->date(); ?></span>
<span class="mdui-float-right nextNewPageData">
<i class="mdui-icon material-icons">drafts</i>
<a><?php $recent->commentsNum('%d'); ?></a>
</span>
</div>
</div>
<?php endwhile; endif;?>
</div>
<div class="tabCard">
<ul class="classList mdui-list">
<?php $this->widget('Widget_Metas_Category_List')
->parse('<li class="mdui-list-item"><a href="{permalink}">{name}</a> <span class="classListItem-num">({count})</span></li>'); ?>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php $this->need('footer.php'); ?>