diff options
| author | outtime <i@timewk.cn> | 2019-12-20 07:52:24 +0800 |
|---|---|---|
| committer | outtime <i@timewk.cn> | 2019-12-20 07:52:24 +0800 |
| commit | 47d59395cdc631fed379b8dd638f54861c6627ed (patch) | |
| tree | 83dbb34b354032eab5ddaa4068a76bf00275fdd8 /libs | |
| parent | 0e1613a6f3c8cef046b45e181361f78148269da5 (diff) | |
😎Fix:修正文章页面未带上加载图片的问题
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/Contents.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/Contents.php b/libs/Contents.php index d9c5ddc..7904603 100644 --- a/libs/Contents.php +++ b/libs/Contents.php @@ -20,7 +20,7 @@ class Contents //FancyBox $text = preg_replace('/<img(.*?)src="(.*?)"(.*?)alt="(.*?)"(.*?)>/s','<center><a data-fancybox="gallery" href="${2}" class="gallery-link"><img${1}src="${2}"${3}></a></center>',$text); //LazyLoad - $text = preg_replace('/<img (.*?)src(.*?)(\/)?>/','<img $1src="/usr/themes/Miracles/images/loading.gif" data-original$2 />',$text); + $text = preg_replace('/<img (.*?)src(.*?)(\/)?>/','<img $1src="/usr/themes/Miracles/images/loading/'.$this->options->loading_image.'.gif" data-original$2 />',$text); //气泡 $text = preg_replace('/\[bubble\](.*?)\[\/bubble\]/s','<div class="bubble post-bubble"><div class="saying-content"><p>${1}</p></div></div>',$text); |
