-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy patharchive.php
44 lines (44 loc) · 1.71 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
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('head.php');
$this->need('nav.php');
?>
<?php $this->header(); ?>
<div id="pjax">
<header class="intro-header relate" style="background-image: url('<?php $this->options->backgroundImage();?>');">
<div class="mdui-container">
<div class="post-heading">
<h1 class="header-title">
<?php $this->archiveTitle(array(
'category' => _t('分类:%s'),
'search' => _t('搜索:%s'),
'tag' => _t('标签:%s'),
'author' => _t('作者:%s')
), '', ''); ?>
</h1>
</div>
</div>
</header>
<div class="mdui-container">
<div class="mdui-row">
<div class="mdui-col-md-9 mdui-col-sm-12">
<?php if ($this->have()): ?>
<?php while($this->next()): ?>
<?php $this->need('post-list.php'); ?>
<?php endwhile; ?>
<?php else: ?>
<div class="mdui-card card-fixed mdui-hoverable">
<div class="mdui-card-primary">
<a class="mdui-card-primary-title title-fixed" href="#">没有找到结果</a>
</div>
<div class="mdui-card-content nokatex">请注意空格及大小写等。</div>
</div>
<?php endif; ?>
<div class="page-nav">
<?php $this->pageNav('<span><i class="mdui-icon material-icons"></i></span>', '<span><i class="mdui-icon material-icons"></i></span>', 1, '...', 'wrapClass=pager&prevClass=prev&nextClass=next'); ?>
</div>
</div>
<?php $this->need('sidebar.php'); ?>
</div>
</div>
<?php $this->need('footer.php'); ?>