diff options
| author | 阔落 <45323514+BigCoke233@users.noreply.github.com> | 2019-03-24 18:02:09 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-24 18:02:09 +0800 |
| commit | 107e63005d013dd3caea541c921dcf8be415014e (patch) | |
| tree | 88b800d76e8724b8a9cdbb296d7492ae546f8750 /index.php | |
| parent | 86e235a247a0c34232f2cb60c111482a3e068aaf (diff) | |
Add files via upload
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/index.php b/index.php new file mode 100644 index 0000000..5c7be02 --- /dev/null +++ b/index.php @@ -0,0 +1,58 @@ +<?php
+/**
+ * Mark-那永不消逝的痕迹
+ *
+ * @package Mark
+ * @author BigCoke
+ * @version 2.0.0
+ * @link http://cokewithice.com
+ */
+$this->need('includes/head.php');
+$this->need('includes/header.php');
+?>
+
+ <main class="container" id="pjax-container"><div class="row">
+
+ <!-- 主体 -->
+ <div class="col-md-8">
+ <?php if ($this->is('index')): ?>
+ <!-- 公告 -->
+ <div class="item news">
+ <i class="fa fa-volume-up"></i> <?php $this->options->news(); ?>
+ </div>
+ <br />
+ <?php endif; ?>
+ <!-- archive -->
+ <?php if ($this->is('archive')): ?>
+ <div class="item">
+ <?php $this->archiveTitle(array(
+ 'category'=>_t('分类 %s 下的文章'),
+ 'search'=>_t('包含关键字 %s 的文章'),
+ 'tag' =>_t('标签 %s 下的文章'),
+ 'author'=>_t('%s 的主页')
+ ), '', ''); ?>
+ <?php if ($this->have()): ?>
+ <?php else: ?>
+ <h2>居然没有找到相关内容Σ(⊙▽⊙"a</h2>
+ <?php endif; ?>
+ </div>
+ <br />
+ <?php endif; ?>
+ <!-- 文章列表 -->
+ <?php while($this->next()): ?>
+ <?php $this->need('includes/post-item.php'); ?>
+ <?php endwhile; ?>
+
+ <div class="pagenav"><?php $this->pageNav('<i class="glyphicon glyphicon-hand-left"></i>', '<i class="glyphicon glyphicon-hand-right"></i>',4, '...'); ?></div>
+ </div>
+
+ <!-- 侧边栏 -->
+ <div class="col-md-4">
+ <?php $this->need('includes/sidebar.php'); ?>
+ </div>
+
+ <?php $this->need('includes/toolbar.php'); ?>
+ </div></main>
+
+
+<?php $this->need('includes/footer.php'); ?>
\ No newline at end of file |
