-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathindex.php
49 lines (48 loc) · 2.64 KB
/
index.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
<?php
/**
* Jasmine,一款精致的Typecho博客主题。
* <br/>
* 预览地址:<a href="https://www.liaocp.cn" target="_blank">时光散记</a>
* 文档地址:<a href="https://github.com/liaocp666/Jasmine/wiki"target="_blank">地址1</a> | <a href="https://gitee.com/LiaoChunping/Jasmine/wikis/Home"target="_blank">地址2</a>
* 下载地址:<a href="https://github.com/liaocp666/Jasmine/archive/refs/heads/main.zip"target="_blank">地址1</a> | <a href="https://gitee.com/LiaoChunping/Jasmine/repository/archive/main.zip"target="_blank">地址2</a>
* QQ 群:<a href="https://qm.qq.com/cgi-bin/qm/qr?k=oXM0EmLxXmgKfE1UDRlBY-g7Rkrx30oL&jump_from=webapi&authKey=uQdwWraveNKYBm/BQs88WXkNagEUr9tCkf/gbdQ9FasOviKYVhUd/wUME0q0AtnI" target="_blank">539165194</a>
*
*
* @package Jasmine
* @author Kent Liao
* @version 3.0.0
* @link https://www.liaocp.cn
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('template-parts/header.php');
?>
<?php $this->need('template-parts/left.php'); ?>
<div class="col-md-12 col-lg-8" id="middle">
<?php $this->need('template-parts/navbar.php'); ?>
<div class="container-fluid p-4 d-flex flex-column row-gap-4" id="index-content">
<?php if ($this->have()): ?>
<?php $this->need('template-parts/top-up-post.php') ?>
<?php while ($this->next()): ?>
<?php if ($this->fields->postType): ?>
<?php if ('1' == $this->fields->postType): ?>
<?php $this->need('template-parts/index-default.php') ?>
<?php endif; ?>
<?php if ('2' == $this->fields->postType): ?>
<?php $this->need('template-parts/index-moment.php') ?>
<?php endif; ?>
<?php else: ?>
<?php $this->need('template-parts/index-default.php') ?>
<?php endif; ?>
<?php endwhile; ?>
<div class="col-12 d-flex justify-content-center align-items-center my-3" id="pagination">
<nav aria-label="Page navigation">
<?php $this->pageNav(_t('«'), _t('»'), 1, '...', array('wrapTag' => 'ul', 'wrapClass' => 'pagination justify-content-center align-items-center column-gap-3 my-0', 'itemTag' => 'li')); ?>
</nav>
</div>
<?php else: ?>
<h5 class="post-title"><?php _e('没有找到内容!'); ?></h5>
<?php endif; ?>
</div>
</div>
<?php $this->need('template-parts/right.php'); ?>
<?php $this->need('template-parts/footer.php'); ?>