forked from Innei/Typecho-Theme-Paul
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
50 lines (47 loc) · 1.47 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php
/**
* 归档(预留)
* @author Innei
* @package custom
*/
$this->need('header.php');
require_once 'pages.php';
?>
<main class="is-article">
<nav class="navigation">
<a href="<?php $this->options->siteUrl(); ?>">首页</a>
<a href="<?php echo $GLOBALS['note']; ?>">日记</a>
<a href="<?php echo $GLOBALS['archive']; ?>" class="active">归档</a>
</nav>
<article class="note-content post-content">
<h1><?php $this->archiveTitle(array(
'category' => _t('%s'),
'search' => _t('%s'),
'tag' => _t('%s'),
'author' => _t('%s')
), '', ''); ?></h1>
<div class="archive-wrap">
<?php if ($this->have()): ?>
<?php while ($this->next()): ?>
<li>
<div class="float-50"><?php $this->date('Y年m月d日 H:i:s'); ?></div>
<div class="float-50"><a href="<?php $this->permalink() ?>">
<?php $this->title() ?>
</a></div>
</li>
<?php endwhile; ?>
<?php else: ?>
<script>
ks.notice("(´°̥̥̥̥̥̥̥̥ω°̥̥̥̥̥̥̥̥`) 什么都没有找到唉...", {
color: red,
})
</script>
<?php endif; ?>
</div>
<div class="text-center">
<?php $this->pageNav('«', '»'); ?>
</div>
</article>
</main>
<?php $this->need('footer.php') ?>