summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorouttime <i@timewk.cn>2019-12-19 14:00:44 +0800
committerouttime <i@timewk.cn>2019-12-19 14:00:44 +0800
commitac788031c593bd89e283e24b00d2331927a1cc88 (patch)
tree689855a6179c2c449720b592cd14ca2df9380fcc
parent10a300457816273792bf5df22bfb1a907650a956 (diff)
🔧Fix:修正有关蹦跶颜文字的问题
-rw-r--r--includes/footer.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/footer.php b/includes/footer.php
index 6b9b26e..754d25d 100644
--- a/includes/footer.php
+++ b/includes/footer.php
@@ -5,7 +5,10 @@
<div class="footer-info footer-dark">
<?php
echo $this->options->build_time?"记录已延续了 <span id=\"build-time\"></span>":"";
- if($faces=$this->options->anime_face)$faces = "<span class=\"anime-face\">".$faces[rand(0,count($faces))]."</span>";
+ if($faces=$this->options->anime_face){
+ $faces = explode("&&",$faces);
+ $faces = "<span class=\"anime-face\">".$faces[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 />