diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-07-17 00:15:54 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-07-17 00:15:54 +0800 |
| commit | 2c028cef411a2eae19c82b7b89fedb9b8b191b4f (patch) | |
| tree | 24bac20b76b100acff8db76dd1680a6d196dcd03 /functions.php | |
| parent | d6fc2cb3f1943a2c118fce837571c1cab9eee952 (diff) | |
🖼️ Perf: 支持用 cdn 加速懒加载图片了
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/functions.php b/functions.php index 3a61c87..3903fc3 100644 --- a/functions.php +++ b/functions.php @@ -35,6 +35,8 @@ function themeInit($archive) { Helper::options()->commentsCheckReferer = false;//关闭检查评论来源URL与文章链接是否一致判断(否则会无法评论) //将设置储存到全局变量以便使用 $GLOBALS['miraclesOptions_randomBanner'] = Helper::options()->randomBanner; + $GLOBALS['miraclesOptions_CDN'] = Helper::options()->CDN; + $GLOBALS['miraclesOptions_loading_image'] = Helper::options()->loading_image; } /** |
