summaryrefslogtreecommitdiff
path: root/file.php
diff options
context:
space:
mode:
author阔落 <45323514+BigCoke233@users.noreply.github.com>2019-03-30 15:30:52 +0800
committerGitHub <noreply@github.com>2019-03-30 15:30:52 +0800
commit9ae13dfa011baab12843b6855c2e9a4d6ca92075 (patch)
tree07399ca9dfed868bc74a4ace8bc14e11d31e364d /file.php
parentd5ff633699d665803d400551dc66c14ec480bb5f (diff)
Add files via upload
Diffstat (limited to 'file.php')
-rw-r--r--file.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/file.php b/file.php
index 0bf18ee..5315316 100644
--- a/file.php
+++ b/file.php
@@ -20,20 +20,22 @@
<!-- 文章内容 -->
<article class="item">
+ <?php if($this->fields->banner && $this->fields->banner!='') :?>
<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>
+ <?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-bookmark"></i> <?php $this->category(',', true, '木有分类'); ?>&nbsp;&nbsp;/&nbsp;&nbsp;
<i class="glyphicon glyphicon-comment"></i> <?php $this->commentsNum('%d'); ?>
</span>
</div>
- </div>
+
+ <hr />
<div class="archive-list">
<ul class="post-ul">