From 2c9eb7678bbd4e410ed1eca5f100a3a852859edd Mon Sep 17 00:00:00 2001 From: Eltrac Koalar Date: Mon, 9 Mar 2020 10:26:24 +0800 Subject: =?UTF-8?q?=F0=9F=93=90=20Perf:=20Text-Color=20=E7=9F=AD=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E4=B8=8D=E5=86=8D=E9=9C=80=E8=A6=81=E7=94=A8=E5=BC=95?= =?UTF-8?q?=E5=8F=B7=E6=A1=86=E6=9F=B1=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/Contents.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libs/Contents.php b/libs/Contents.php index a377a13..7ed0f5c 100644 --- a/libs/Contents.php +++ b/libs/Contents.php @@ -16,11 +16,8 @@ class Contents $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) { - //a 标签新窗口打开 - $text = preg_replace('//s','',$text); //Prism 高亮 $text = preg_replace('/
/s','
',$text);
 		    //FancyBox
@@ -36,7 +33,7 @@ class Contents
 		    $text = preg_replace('/\[bubble\](.*?)\[\/bubble\]/s','

${1}

',$text); //Text Color - $text = preg_replace('/\&\{\"(.*?)\"\|(.*?)\|(.*?)\}/s','${1}',$text); + $text = preg_replace('/\&\{(.*?)\|(.*?)\|(.*?)\}/s','${1}',$text); //ruby $reg = '/\{\{(.*?):(.*?)\}\}/s'; -- cgit v1.2.3