diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-07-10 22:58:49 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-07-10 22:58:49 +0800 |
| commit | 4901b642cd90a9124a4ca5732210707caa030290 (patch) | |
| tree | 5bb5954a5b306e88e5125d4b44a80710c1f146c0 /includes/footer.php | |
| parent | 39b4e65156bb35e5a23ef1904d16716cd9562ab1 (diff) | |
:zap: Perf: 兼容 typecho 自带反垃圾功能,并优化代码结构
Diffstat (limited to 'includes/footer.php')
| -rw-r--r-- | includes/footer.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/footer.php b/includes/footer.php index 64f8c7c..e9e0c08 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -24,7 +24,7 @@ <?php $js_files=array("jquery","pjax.jquery","gazeimg","nprogress","OwO.min","highlight","highlight-line-number","pangu","qrcode.min","details-element-polyfill"); if($this->options->customCDN): $custom=$this->options->customCDN; else: $custom=Helper::options()->themeUrl("","Miracles"); endif; - generate_require($js_files,"js",$this->options->CDN,$custom); + Utils::addRequires($js_files,"js",$this->options->CDN,$custom); ?> <!-- Options --> <script>var navSlide = <?php if($this->options->navSlide==1):?>false<?php else:?>true<?php endif;?>; @@ -42,7 +42,7 @@ <?php $js_files=array("miracles.min","cmt.miracles"); if($this->options->customCDN): $custom=$this->options->customCDN; else: $custom=Helper::options()->themeUrl("","Miracles"); endif; - generate_require($js_files,"js",$this->options->CDN,$custom); + Utils::addRequires($js_files,"js",$this->options->CDN,$custom); ?> <!-- JavaScript --> <script> |
