From 88f49b5077de6519305d9af307ccb523ba7c907a Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Sun, 17 May 2020 16:03:40 +0800 Subject: =?UTF-8?q?:art:=20Perf:=20=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/Contents.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'libs/Contents.php') diff --git a/libs/Contents.php b/libs/Contents.php index e949543..ebd0f37 100644 --- a/libs/Contents.php +++ b/libs/Contents.php @@ -6,9 +6,8 @@ class Contents * 内容解析器入口 * 传入的是经过 Markdown 解析后的文本 */ - static public function parseContent($data, $widget, $last) - { - $db=Typecho_Db::get(); + 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]; $text = empty($last) ? $data : $last; @@ -240,7 +239,6 @@ class Contents $id = str_replace('?','_',$id); return ''.$matchs[3].''; } - /** * 解析自定义导航栏 @@ -262,8 +260,8 @@ class Contents echo ''. $title .''; } } - } - + } + /** * 根据 id 返回对应的对象 * 此方法在 Typecho 1.2 以上可以直接调用 Helper::widgetById(); -- cgit v1.2.3