forked from rimochiko/Typecho-theme-zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
97 lines (87 loc) · 3.39 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<body class="animated fadeIn">
<div class="mck-loading-wrapper" id="mck-loading-wrapper">
<div class="mck-loading">
<p>LOADING...</p>
</div>
</div>
<div class="mck-wrapper" data-mcs-theme="minimal-dark" id="mck-wrapper">
<header class="mck-header">
<div class="mck-header-title-wrapper">
<p class="mck-header-subtitle"><?php $this->options->description() ?></p>
<a class="mck-header-maintitle" href="index.html"><?php $this->options->title(); ?></a>
</div>
<div class="mck-header-btn">
</div>
</header>
<main class="mck-main">
<nav class="mck-nav" id="mck-nav">
<ul>
<li><a href="<?php $this->options->siteUrl(); ?>">HOME</a></li>
<?php $this->widget('Widget_Contents_Page_List')
->parse('<li><a href="{permalink}">{title}</a></li>'); ?>
</ul>
</nav>
<div class="mck-content">
<!-- left begin -->
<div class="mck-index-left">
<div class="mck-article">
<div class="mck-div-title">
<h1 class="mck-div-maintitle">文章<span class="mck-div-title_ani">_<span></h1>
<p class="mck-div-subtitle">Posts</p>
</div>
<div class="mck-article-list">
<?php while($this->next()): ?>
<a href="<?php $this->permalink() ?>" class="mck-article-single">
<?php if($this->fields->cover){?>
<div class="mck-article-cover-wrapper">
<figure class="mck-article-cover" style="background-image:url(<?php echo $this->fields->cover; ?>)"></figure>
</div>
<?php } ?>
<div class="mck-article-info-wrapper">
<p class="mck-article-type">[ <?php $this->category(',', false);?> ]</p>
</div>
<div class="mck-article-info-wrapper">
<p class="mck-article-title"><?php $this->title() ?></p>
</div>
<div class="mck-article-info-wrapper mck-article-des">
<?php $this->excerpt(100,'...'); ?>
</div>
<ul class="mck-article-info-wrapper mck-article-tips">
<li class="mck-article-time"><?php $this->date('F j, Y'); ?></li>
<?php if($this->tags) {
$result = array();
foreach ($this->tags as $tag) {
echo "<li>".$tag['name']."</li>";
}}?>
</ul>
</a>
<?php endwhile; ?>
</div>
<?php $this->pageNav('< 上一页', '下一页 >', 3, '...', array('wrapTag' => 'ol', 'wrapClass' => 'mck-article-pagenav', 'itemTag' => 'li', 'textTag' => 'span', 'currentClass' => 'mck-active')); ?>
</div>
</div><!-- left end-->
<!-- right begin-->
<div class="mck-index-right">
<div class="mck-type mck-aside-wrapper">
<div class="mck-div-title">
<h1 class="mck-div-maintitle">分类<span class="mck-div-title_ani">_<span></h1>
<p class="mck-div-subtitle">My types</p>
</div>
<?php $this->widget('Widget_Metas_Category_List')->listCategories('wrapClass=mck-linklist')?>
</div>
<div class="mck-type mck-aside-wrapper">
<div class="mck-div-title">
<h1 class="mck-div-maintitle">归档<span class="mck-div-title_ani">_<span></h1>
<p class="mck-div-subtitle">My times</p>
</div>
<ul class="mck-linklist">
<?php $this->widget('Widget_Contents_Post_Date', 'type=month&format=F Y')
->parse('<li><a href="{permalink}">{date}</a></li>'); ?>
</ul>
</div>
</div>
</div>
</main>
<?php $this->need('footer.php'); ?>