From e801a1c97e8f321c188dbdc3351ef7501dca0a20 Mon Sep 17 00:00:00 2001 From: Eltrac <45323514+BigCoke233@users.noreply.github.com> Date: Fri, 24 Jan 2020 15:08:15 +0800 Subject: =?UTF-8?q?=F0=9F=93=8D=20Add:=20=E7=BB=91=E5=AE=9A=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E7=BC=96=E8=BE=91=E5=99=A8=E6=B7=BB=E5=8A=A0=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E7=9A=84=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 6d6b0f3..92689ea 100644 --- a/functions.php +++ b/functions.php @@ -4,15 +4,14 @@ require_once("libs/Utils.php"); require_once("libs/Contents.php"); require_once("libs/Options.php"); -//指定时区 -date_default_timezone_set("Asia/Shanghai"); - /** * 注册文章解析 hook * From AlanDecode(https://imalan.cn) */ Typecho_Plugin::factory('Widget_Abstract_Contents')->contentEx = array('Contents','parseContent'); Typecho_Plugin::factory('Widget_Abstract_Contents')->excerptEx = array('Contents','parseContent'); +Typecho_Plugin::factory('admin/write-post.php')->bottom = array('Utils', 'addButton'); +Typecho_Plugin::factory('admin/write-page.php')->bottom = array('Utils', 'addButton'); /** * 主题启用时执行的方法 -- cgit v1.2.3