diff options
| author | Eltrac <45323514+BigCoke233@users.noreply.github.com> | 2020-01-24 15:08:15 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-24 15:08:15 +0800 |
| commit | e801a1c97e8f321c188dbdc3351ef7501dca0a20 (patch) | |
| tree | ed27db61bac2e0953ecef02e46e676e437ae6d6b /functions.php | |
| parent | 81fb49d641db3a0b5660d3a8bd4eb9b3c4a0d8e5 (diff) | |
📍 Add: 绑定后台编辑器添加内容的函数
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 5 |
1 files 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'); /** * 主题启用时执行的方法 |
