diff options
| author | Eltrac <45323514+BigCoke233@users.noreply.github.com> | 2019-11-30 16:21:58 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-30 16:21:58 +0800 |
| commit | 1c8d7cc5d2afcc0f873408811d9238861a4d408e (patch) | |
| tree | 5147937de123fc43516c7637cb70d2884a6ce4fe /includes/header.php | |
| parent | de25804dd118ca41b1475da90c5c3ac30961d6d0 (diff) | |
🌂 Fix: 头图å—体颜色判æ–问题
Diffstat (limited to 'includes/header.php')
| -rw-r--r-- | includes/header.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/header.php b/includes/header.php index 644fe75..d41d493 100644 --- a/includes/header.php +++ b/includes/header.php @@ -154,9 +154,9 @@ <?php else: ?> <div class="index-banner" style="background-position:center;background:url('<?php $this->options->bannerUrl(); ?>') no-repeat;height:<?php $this->options->bannerHeight(); ?>vh;background-size:cover;background-color:<?php $this->options->bannerColor(); ?>"> <?php endif; ?> - <div class="banner-mask"<?php if($this->options->bannerUrl && $this->options->bannerUrl=!''): ?><?php else:?> style="background:rgba(0,0,0,0)!important"<?php endif;?>> + <div class="banner-mask"<?php if($this->is('post') || $this->is('page')):?><?php if($this->fields->banner==''):?> style="background:rgba(0,0,0,0)!important"<?php endif;?><?php endif; ?><?php if($this->is('index')):?><?php if($this->options->bannerUrl && $this->options->bannerUrl=!''): ?><?php else:?> style="background:rgba(0,0,0,0)!important"<?php endif;?><?php endif;?>> <div class="main-container container"> - <div class="banner-content<?php if($this->options->bannerFont==1): ?> banner-font-black<?php endif;?>"> + <div class="banner-content<?php if($this->is('index') && $this->options->bannerFont==1): ?> banner-font-black<?php endif; ?><?php if($this->is('page') || $this->is('post')): if($this->fields->banner==''): ?> banner-font-black<?php endif; endif; ?>"> <?php if($this->is('index')): ?> <h1><?php $this->options->bannerTitle(); ?></h1> <p><?php $this->options->bannerIntro(); ?></p> |
