-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy patharchive.php
executable file
·140 lines (126 loc) · 7.29 KB
/
archive.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?php $this->need('header.php'); ?>
<div class="demo-blog mdl-layout mdl-js-layout has-drawer is-upgraded <?php if (!empty($this->options->switch) && in_array('ShowLoadingLine', $this->options->switch)): ?>fade out<?php endif; ?>">
<main class="mdl-layout__content">
<div id="top"></div>
<!-- Sidebar hamburger button -->
<button class="MD-burger-icon sidebar-toggle">
<span class="MD-burger-layer"></span>
</button>
<!-- Top-left-corner home button -->
<div class="demo-back" id="backhome-div">
<a class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon" href="#" onClick="window.history.back();return false;" title="go back" role="button">
<!-- For modern browsers. -->
<i class="material-icons" role="presentation">arrow_back</i>
</a>
</div>
<div class="mdl-tooltip" for="backhome-div">Back</div>
<div class="demo-blog__posts mdl-grid">
<?php while ($this->next()): ?>
<!-- Article fragment -->
<div class="mdl-card mdl-cell mdl-cell--12-col article-module">
<!-- Article link & title -->
<?php if ($this->options->ThumbnailOption == '1'): ?>
<div class="mdl-card__media mdl-color-text--grey-50 " style="background-image:url(<?php showThumbnail($this); ?>)">
<p class="article-headline-p"><a href="<?php $this->permalink() ?>" target="_self"><?php $this->title() ?></a></p>
</div>
<?php elseif ($this->options->ThumbnailOption == '2'): ?>
<div class="mdl-card__media mdl-color-text--grey-50" style="background-color:<?php $this->options->TitleColor()?> !important;color:#757575 !important;">
<p class="article-headline-p-nopic">
<a href="<?php $this->permalink() ?>" target="_self">
“</br><?php $this->title() ?></br>”
</a>
</p>
</div>
<?php elseif ($this->options->ThumbnailOption == '3'): ?>
<div class="mdl-card__media mdl-color-text--grey-50 " style="background-image:url(<?php randomThumbnail($this); ?>)">
<p class="article-headline-p"><a href="<?php $this->permalink() ?>" target="_self"><?php $this->title() ?></a></p>
</div>
<?php endif; ?>
<!-- Article content -->
<div class="mdl-color-text--grey-600 mdl-card__supporting-text index-article-content">
<!-- $this->content('Continue Reading...'); -->
<?php $this->excerpt(80, '...'); ?>
<span>
<a href="<?php $this->permalink(); ?>" target="_self">
<?php if ($this->options->langis == '0'): ?>
Continue Reading
<?php elseif ($this->options->langis == '1'): ?>
继续阅读
<?php elseif ($this->options->langis == '2'): ?>
繼續閱讀
<?php endif; ?>
</a>
</span>
</div>
<!-- Articli info-->
<div id="article-info">
<div class="mdl-card__supporting-text meta mdl-color-text--grey-600 " id="article-author-date">
<!-- Author avatar -->
<div id="author-avatar">
<div id="author-avatar">
<?php if (!empty($this->options->avatarURL)): ?>
<img src="<?php $this->options->avatarURL() ?>" width="44px" height="44px" />
<?php else: ?>
<?php $this->author->gravatar(44); ?>
<?php endif; ?>
</div>
</div>
<div>
<span class="author-name-span"><a href="<?php $this->author->permalink(); ?>"><?php $this->author(); ?></a></span>
<span>
<?php if ($this->options->langis == '0'): ?>
<?php $this->date('F j, Y'); ?>
<?php else: ?>
<?php $this->dateWord(); ?>
<?php endif; ?>
</span>
</div>
</div>
<div id="article-category-comment" style="color:<?php $this->options->alinkcolor(); ?>">
<?php $this->category(', '); ?> |
<a href="<?php $this->permalink() ?>">
<!-- 使用多说评论 -->
<?php if ($this->options->commentis == '1'): ?><span class="ds-thread-count" data-thread-key="<?php echo $this->cid;?>" data-count-type="comments"></span>
<!-- 使用原生评论 -->
<?php else: ?>
<?php $this->commentsNum('%d 评论'); ?>
<?php endif; ?>
</a>
<?php if (class_exists("Stat_Plugin")): ?> |
<?php $this->views(); ?>
<?php $this->sticky(); ?>
<?php if ($this->options->langis == '0'): ?>Views
<?php elseif ($this->options->langis == '1'): ?>浏览
<?php elseif ($this->options->langis == '2'): ?>流覽
<?php endif; ?>
<?php endif; ?>
</div>
</div>
</div>
<?php endwhile; ?>
<nav class="demo-nav mdl-cell mdl-cell--12-col">
<?php $this->pageLink('
<button class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon">
<!-- For modern browsers. -->
<i class="material-icons" role="presentation">arrow_back</i>
</button>
'); ?>
<div class="section-spacer"></div>
page
<?php if ($this->_currentPage>1) {
echo $this->_currentPage;
} else {
echo 1;
}?> of
<?php echo ceil($this->getTotal() / $this->parameter->pageSize); ?>
<div class="section-spacer"></div>
<?php $this->pageLink('
<button class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon">
<!-- For modern browsers. -->
<i class="material-icons" role="presentation">arrow_forward</i>
</button>
', 'next'); ?>
</nav>
</div>
<?php include('sidebar.php'); ?>
<?php include('footer.php'); ?>