diff options
| author | Eltrac <45323514+BigCoke233@users.noreply.github.com> | 2020-01-24 15:07:24 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-24 15:07:24 +0800 |
| commit | 81fb49d641db3a0b5660d3a8bd4eb9b3c4a0d8e5 (patch) | |
| tree | 48f476945240edf34940339fcf7e5300416f55a3 /includes | |
| parent | 33577435acdf723718e5cdd28dcda3c6e9d3b1b4 (diff) | |
📌 Perf: 移除无用的属性 & 将自定义页脚和默认页脚置于同一个 p 标签中
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/footer.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/includes/footer.php b/includes/footer.php index 9e8e8f7..6157c8b 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -1,10 +1,9 @@ <?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> - </div><!-- 结束 pjax-container --> - <!-- Footer Information --> + <!-- 结束 pjax-container --></div> <footer> <div class="footer-info footer-dark"> - <?php $this->options->footerEcho(); ?> - <p class="copyright">Powered by <a href="http://typecho.org">Typecho</a> | Theme <a href="https://guhub.cn/p/miracles.html">Miracles</a> by <a href="https://guhub.cn">Eltrac</a><br> + <p class="copyright"><?php $this->options->footerEcho(); ?> + Powered by <a href="http://typecho.org">Typecho</a> | Theme <a href="https://guhub.cn/p/miracles.html">Miracles</a> by <a href="https://guhub.cn">Eltrac</a><br> © <?php echo date('Y'); ?> <a href="<?php $this->options->SiteUrl(); ?>"><?php $this->options->title(); ?></a> All rights reserved.<br> <?php echo $this->options->build_time?"记录已延续了 <span id=\"build-time\"></span>":""; @@ -18,7 +17,7 @@ </footer> <!-- Raised Buttons --> <div class="fixed-tools"> - <button title="返回顶部" class="fixed-button gotop-button" id="gotop" style="color:white;"><i class="iconfont icon-chevron-up"></i></button> + <button title="返回顶部" class="fixed-button gotop-button" id="gotop"><i class="iconfont icon-chevron-up"></i></button> </div> <!-- JavaScript --> <?php @@ -29,7 +28,7 @@ <script> var allowNavAero = <?php if($this->options->navAero):?>false<?php else:?>true<?php endif;?>; var siteurl = '<?php $this->options->SiteUrl() ;?>'; - var owoJson = '<?php Utils::indexTheme('assets/OwO.json'); ?>'; + var owoJson = '<?php Utils::indexTheme("assets/OwO.json"); ?>'; <?php if($this->options->pjax && $this->options->pjax!=0) :?>var loadPjax = true; beforePjax = function() {NProgress.start();}; afterPjax = function() {owoLoad();<?php $this->options->pjax_complete(); ?>};<?php endif; ?></script> @@ -40,7 +39,7 @@ <?php if($this->options->build_time)echo "startTime(\"".$this->options->build_time."\");" ?> </script> <!-- Send News and Loaders --> - <script><?php if($this->is('index')): ?><?php if($this->options->news==!''): ?>alertSend('公告:<?php echo $this->options->news(); ?>');<?php endif; ?><?php endif; ?><?php if($this->is('post') || $this->is('page')): ?>owoLoad();<?php endif; ?><?php $this->options->jsEcho(); ?></script> + <script><?php if($this->is('post') || $this->is('page')): ?>owoLoad();<?php endif; ?><?php $this->options->jsEcho(); ?></script> <!-- Others --> <?php $this->footer(); ?> </body> |
