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')
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','