summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorouttime <i@timewk.cn>2019-12-19 14:41:27 +0800
committerouttime <i@timewk.cn>2019-12-19 14:41:27 +0800
commit4a675768d3a2b9c525e862c22eeeb3c624821742 (patch)
treea2b2119748c62f1b74df1fce33bf18519a7a334f /includes
parentb78ec636d0f617df4c2acbe8b657c2f86407a2ff (diff)
🍔Perf:修正一些问题
Diffstat (limited to 'includes')
-rw-r--r--includes/footer.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/includes/footer.php b/includes/footer.php
index 754d25d..81b153d 100644
--- a/includes/footer.php
+++ b/includes/footer.php
@@ -10,7 +10,7 @@
$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 />
<?php
if($faces && !$this->options->build_time)echo $faces;
@@ -35,9 +35,11 @@
<?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>
- <!-- Script that must be after and BuildTime-->
- <script src="<?php Utils::indexTheme('assets/js/miracles.min.js'); ?>">
- <?php if($this->options->build_time)echo "buildTime(".$this->options->build_time.");" ?>
+ <!-- Script that must be after-->
+ <script src="<?php Utils::indexTheme('assets/js/miracles.min.js'); ?>"></script>
+ <!-- BuildTime -->
+ <script>
+ <?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>