-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathindex.php
42 lines (40 loc) · 1.75 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
<?php
/**
* 这是一套简洁的博客主题 <a href="https://mwordstar.misterma.com/" target="_blank">点击查看使用说明</a>
*
* @package MWordStar
* @author Mr. Ma
* @version 开发板(暂无版本号)
* @link https://www.misterma.com
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
// 获取元素风格设置
$rounded = $this->options->rounded == 'rightAngle'?'rounded-0':'';
$GLOBALS['page'] = 'index';
// 语言初始化
languageInit($this->options->language);
// 检查数据库字段
checkField();
// 头文件
$this->need('components/header.php');
?>
<div id="main">
<div class="container home main-content">
<div class="row">
<div class="article-list col-md-12 col-lg-8 col-sm-12 content-area">
<?php if ($this->have()): ?>
<?php $this->need('components/post-list.php'); ?>
<nav aria-label="<?php echo $GLOBALS['t']['pagination']['pagination']; ?>" class="pagination-nav">
<?php $this->pageNav('<i class="icon-chevron-left"></i>', '<i class="icon-chevron-right"></i>', 1, '...', array('wrapTag' => 'ul', 'wrapClass' => 'pagination justify-content-center', 'itemTag' => 'li', 'textTag' => 'a', 'currentClass' => 'active', 'prevClass' => 'prev', 'nextClass' => 'next')); ?>
</nav>
<?php else: ?>
<article class="post no-post-message mwordstar-block">
<h4 class="post-title" role="alert"><?php echo $GLOBALS['t']['sidebar']['noPostsAvailableToDisplay']; ?></h4>
</article>
<?php endif; ?>
</div>
<?php $this->need('components/sidebar.php'); ?>
</div>
</div>
</div>
<?php $this->need('components/footer.php'); ?>