diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-04-11 17:13:10 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-04-11 17:13:10 +0800 |
| commit | 64158ac0227168cfa9d5cac0c0b58318189e1f34 (patch) | |
| tree | be2d0463da38fff556bf2445f0f71719196ea93c /includes/header.php | |
| parent | 6bd243b6f91b2223617a3bc5f2f578336ca37c70 (diff) | |
| parent | 121e28fd44cbaf5a2fe1efdcdd2b778a99e52cbd (diff) | |
Merge branch 'master' of https://github.com/BigCoke233/miracles
Diffstat (limited to 'includes/header.php')
| -rw-r--r-- | includes/header.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/header.php b/includes/header.php index 2d4728b..c38fb55 100644 --- a/includes/header.php +++ b/includes/header.php @@ -124,11 +124,11 @@ <header> <!-- Banner --> <?php if($this->is('post') || $this->is('page')): ?> - <div role="banner" class="index-banner" style="background-position:center;<?php if($this->fields->banner && $this->fields->banner=!''): ?>background:url('<?php $this->fields->banner(); ?>') no-repeat;<?php else: ?>background-color:#f1f1f1;<?php endif; ?>height:<?php $this->options->bannerHeight(); ?>vh;background-size:cover;"> + <div role="banner" class="index-banner" style="<?php if($this->fields->banner && $this->fields->banner=!''): ?>background:url('<?php $this->fields->banner(); ?>') no-repeat;<?php else: ?>background-color:#f1f1f1;<?php endif; ?>height:<?php $this->options->bannerHeight(); ?>vh;background-size:cover;background-position:center;"> <?php elseif($this->is('archive')): ?> - <div role="banner" class="index-banner" style="height:<?php $this->options->bannerHeight(); ?>vh;background-position:center;<?php if($this->options->bannerUrl!=''): echo $this->options->bannerUrl(); endif; ?>"> + <div role="banner" class="index-banner" style="height:<?php $this->options->bannerHeight(); ?>vh;<?php if($this->options->bannerUrl!=''): echo $this->options->bannerUrl(); endif; ?>"> <?php else: ?> - <div role="banner" class="index-banner" style="background-position:center;background:url('<?php $this->options->bannerUrl(); ?>') no-repeat;height:<?php $this->options->bannerHeight(); ?>vh;background-size:cover;"> + <div role="banner" class="index-banner" style="background:url('<?php $this->options->bannerUrl(); ?>') no-repeat;height:<?php $this->options->bannerHeight(); ?>vh;background-size:cover;background-position:center;"> <?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;?>> @@ -164,4 +164,4 @@ </div> </div> </div> - </header>
\ No newline at end of file + </header> |
