summaryrefslogtreecommitdiff
path: root/file.php
diff options
context:
space:
mode:
author阔落 <45323514+BigCoke233@users.noreply.github.com>2019-03-24 18:02:09 +0800
committerGitHub <noreply@github.com>2019-03-24 18:02:09 +0800
commit107e63005d013dd3caea541c921dcf8be415014e (patch)
tree88b800d76e8724b8a9cdbb296d7492ae546f8750 /file.php
parent86e235a247a0c34232f2cb60c111482a3e068aaf (diff)
Add files via upload
Diffstat (limited to 'file.php')
-rw-r--r--file.php70
1 files changed, 70 insertions, 0 deletions
diff --git a/file.php b/file.php
new file mode 100644
index 0000000..0bf18ee
--- /dev/null
+++ b/file.php
@@ -0,0 +1,70 @@
+<?php
+/**
+ * 归档页面
+ *
+ * @package custom
+ */
+ ?>
+<?php $this->need('includes/head.php'); ?>
+<?php $this->need('includes/header.php'); ?>
+
+ <main class="container" id="pjax-container"><div class="row">
+
+ <!-- 主体 -->
+ <div class="col-md-8">
+ <!-- 面包屑 -->
+ <div class="item post-bread">
+ <i class="glyphicon glyphicon-folder-close"></i> <a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title(); ?></a> / <?php $this->title() ?>
+ </div>
+ <br />
+ <!-- 文章内容 -->
+
+ <article class="item">
+ <div class="post-banner">
+ <?php if($this->fields->banner && $this->fields->banner!='') :?>
+ <div class="media-banner" style="background-position:center center;background:url(<?php $this->fields->banner(); ?>);background-repeat:no-repeat;background-size:cover;"></div>
+ <?php else: ?>
+ <div class="media-banner" style="background-position:center center;background:url(<?php $this->fields->default_banner(); ?>);background-repeat:no-repeat;background-size:cover;"></div>
+ <?php endif; ?>
+ <div class="post-header">
+ <h2><?php $this->title() ?></h4>
+ <span>
+ <i class="glyphicon glyphicon-time"></i> <?php $this->date('Y-m-d'); ?>&nbsp;&nbsp;/&nbsp;&nbsp;
+ <i class="glyphicon glyphicon-comment"></i> <?php $this->commentsNum('%d'); ?>
+ </span>
+ </div>
+ </div>
+
+ <div class="archive-list">
+ <ul class="post-ul">
+ <?php
+ $stat = Typecho_Widget::widget('Widget_Stat');
+ $this->widget('Widget_Contents_Post_Recent', 'pageSize='.$stat->publishedPostsNum)->to($archives);
+ $year=0; $mon=0; $i=0; $j=0;
+ while($archives->next()){
+ $year_tmp = date('Y',$archives->created);
+ $mon_tmp = date('m',$archives->created);
+ $y=$year; $m=$mon;
+ if ($year > $year_tmp || $mon > $mon_tmp) {
+ $output .= '</ul>';
+ }
+ $output .= '<li><span>'. $year_tmp .' - '. $mon_tmp .' | </span><a href="'.$archives->permalink .'">'. $archives->title .'</a><br /></li>';
+ }
+ $output .= '</ul>';
+ echo $output;
+ ?>
+ </ul>
+ </div>
+ </article>
+
+ </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