diff options
| author | 阔落 <45323514+BigCoke233@users.noreply.github.com> | 2019-03-30 15:30:52 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-30 15:30:52 +0800 |
| commit | 9ae13dfa011baab12843b6855c2e9a4d6ca92075 (patch) | |
| tree | 07399ca9dfed868bc74a4ace8bc14e11d31e364d /post.php | |
| parent | d5ff633699d665803d400551dc66c14ec480bb5f (diff) | |
Add files via upload
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -13,12 +13,12 @@ <!-- 文章内容 -->
<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>
@@ -27,13 +27,11 @@ <i class="glyphicon glyphicon-comment"></i> <?php $this->commentsNum('%d'); ?>
</span>
</div>
- </div>
+
+ <hr />
<div class="post-content">
- <?php
- $content = preg_replace('/<img(.*?)src="(.*?)"(.*?)>/s','<a data-fancybox="gallery" href="${2}"><img${1}src="${2}"${3}></a>',$this->content);
- echo $content
- ?>
+ <?php $this->need('includes/post-content.php'); ?>
</div>
<div class="post-footer">
|
