-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy patharchive.php
66 lines (65 loc) · 3.15 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('layout/header.php'); ?>
<div class="container">
<div class="row">
<div class="col col-lg-2 col-md-2 col-sm-2 col-xs-2 d-none d-lg-block left">
<?php $this->need('layout/left.php'); ?>
</div>
<div class="col-lg-10 col-md-12 col-xs-10">
<div class="container">
<div class="row">
<div class="main">
<?php $this->need('component/index.toolbar.php'); ?>
<section class="article-info mb-3">
<div class="article-detail">
<h1 class="archive-title text-center p-3"><?php $this->archiveTitle(array(
'category' => _t('分类 %s 下的文章'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
), '', ''); ?></h1>
</div>
<div class="article-cover-inner">
<img src="<?= $this->fields->banner ?: utils::indexTheme('assets/img/default.jpg'); ?>"
alt="cover">
</div>
</section>
<?php if ($this->have()): ?>
<?php $this->need('component/index.article.php'); ?>
<?php else: ?>
<article class="post">
<h2 class="post-title"><?php _e('没有找到内容'); ?></h2>
</article>
<?php endif; ?>
<?php
$this->pageNav(
'<svg class="icon" aria-hidden="true">
<use xlink:href="#icon-zuo"></use>
</svg>',
'<svg class="icon" aria-hidden="true">
<use xlink:href="#icon-you"></use>
</svg>',
3, '...', array(
'wrapTag' => 'ul',
'wrapClass' => 'pagination justify-content-center',
'itemTag' => 'li',
'itemClass' => 'page-item',
'linkClass' => 'page-link',
'currentClass' => 'active'
));
?>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-3 right d-none d-lg-block">
<?php $this->need('layout/right.php'); ?>
</div>
</div>
</div>
</div>
<div class="col-12 d-lg-none" style="text-align:center">
<?php $this->need('layout/footer.php'); ?>
</div>
</div>
</div>
<?php $this->need('component/js.php'); ?>
</body>
</html>