summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEltrac <45323514+BigCoke233@users.noreply.github.com>2019-12-21 19:29:33 +0800
committerGitHub <noreply@github.com>2019-12-21 19:29:33 +0800
commit13f5801ca356da370214675103ebc2e9eea36040 (patch)
tree5d48e3a3b57e55447f9ab31978cc46955802f834
parent1d13395cbe8dbc813bbaa2beb9ffd914bd1331fa (diff)
📏 Perf: 页脚排版更加紧凑
-rw-r--r--includes/footer.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/includes/footer.php b/includes/footer.php
index 81b153d..9e8e8f7 100644
--- a/includes/footer.php
+++ b/includes/footer.php
@@ -3,19 +3,17 @@
<!-- Footer Information -->
<footer>
<div class="footer-info footer-dark">
- <?php
+ <?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>
+ &copy; <?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>":"";
if($faces=$this->options->anime_face){
$faces = explode("&&",$faces);
- $faces = "<span class=\"anime-face\">".$faces[rand(0,count($faces))]."</span>";
+ $faces = "<span class=\"anime-face\">".$faces[mt_rand(0,count($faces))]."</span>";
}
if($faces && $this->options->build_time)echo $faces;
- ?>
- <p class="copyright">&copy; <?php echo date('Y'); ?> <a href="<?php $this->options->SiteUrl(); ?>"><?php $this->options->title(); ?></a> All rights reserved.<br />
- <?php
- if($faces && !$this->options->build_time)echo $faces;
- $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></p>
+ ?></p>
</div>
</footer>
<!-- Raised Buttons -->