From 47d59395cdc631fed379b8dd638f54861c6627ed Mon Sep 17 00:00:00 2001
From: outtime
Date: Fri, 20 Dec 2019 07:52:24 +0800
Subject: =?UTF-8?q?=F0=9F=98=8EFix=EF=BC=9A=E4=BF=AE=E6=AD=A3=E6=96=87?=
=?UTF-8?q?=E7=AB=A0=E9=A1=B5=E9=9D=A2=E6=9C=AA=E5=B8=A6=E4=B8=8A=E5=8A=A0?=
=?UTF-8?q?=E8=BD=BD=E5=9B=BE=E7=89=87=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
libs/Contents.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'libs/Contents.php')
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('/
/s','
',$text);
//LazyLoad
- $text = preg_replace('/
/','
',$text);
+ $text = preg_replace('/
/','
options->loading_image.'.gif" data-original$2 />',$text);
//气泡
$text = preg_replace('/\[bubble\](.*?)\[\/bubble\]/s','',$text);
--
cgit v1.2.3
From f145340482111518f91e0ffce7fb2ea1b4964ef5 Mon Sep 17 00:00:00 2001
From: outtime
Date: Fri, 20 Dec 2019 09:45:34 +0800
Subject: =?UTF-8?q?=F0=9F=A4=AEFix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E6=96=87?=
=?UTF-8?q?=E7=AB=A0=E9=A1=B5=E5=8A=A0=E8=BD=BD=E5=9B=BE=E7=89=87=E6=97=A0?=
=?UTF-8?q?=E6=B3=95=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
libs/Contents.php | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
(limited to 'libs/Contents.php')
diff --git a/libs/Contents.php b/libs/Contents.php
index 7904603..fc8c90b 100644
--- a/libs/Contents.php
+++ b/libs/Contents.php
@@ -13,6 +13,10 @@ class Contents
*/
static public function parseContent($data, $widget, $last)
{
+ $db=Typecho_Db::get();
+ $load_image = $db->fetchAll($db->select('value')->from('table.options')->where('name = %s', "theme:Miracles")->limit(1));
+ $load_image = explode("\";",explode("\"",explode("\"loading_image\";",$load_image[0]["value"],2)[1],2)[1],2)[0];
+ //由于实在没找到TE获取主题配置的相关函数,故只能用这种方法,吐了。
$text = empty($last) ? $data : $last;
if ($widget instanceof Widget_Archive) {
//Prism 高亮
@@ -20,7 +24,7 @@ class Contents
//FancyBox
$text = preg_replace('/
/s','
',$text);
//LazyLoad
- $text = preg_replace('/
/','
options->loading_image.'.gif" data-original$2 />',$text);
+ $text = preg_replace('/
/','
',$text);
//气泡
$text = preg_replace('/\[bubble\](.*?)\[\/bubble\]/s','',$text);
--
cgit v1.2.3