From e6bf9e460d57a645bf23cf4440ff83d48157b6b7 Mon Sep 17 00:00:00 2001 From: joyqi Date: Sun, 24 Nov 2013 23:35:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8A=E5=A4=A9=E5=B0=B1=E6=90=9E=E5=88=B0?= =?UTF-8?q?=E8=BF=99=E9=87=8C=EF=BC=8C=E8=A6=81=E5=8E=BB=E9=99=AA=E7=9D=A1?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/custom-fields.php | 59 +++++++++ admin/editor-js.php | 1 + admin/form-js.php | 1 + admin/table-js.php | 1 + admin/write-js.php | 1 + admin/write-post.php | 31 +---- usr/themes/default/functions.php | 7 + var/Typecho/Widget/Helper/Form/Element.php | 16 +-- var/Typecho/Widget/Helper/Layout.php | 11 ++ var/Widget/Abstract/Contents.php | 146 +++++++++++++++++++++ var/Widget/Contents/Page/Edit.php | 5 + var/Widget/Contents/Post/Edit.php | 113 +++++++++++++++- 12 files changed, 353 insertions(+), 39 deletions(-) create mode 100644 admin/custom-fields.php diff --git a/admin/custom-fields.php b/admin/custom-fields.php new file mode 100644 index 00000000..14e76bce --- /dev/null +++ b/admin/custom-fields.php @@ -0,0 +1,59 @@ + +getFieldItems() : $page->getFieldItems(); +$defaultFields = isset($post) ? $post->getDefaultFieldItems() : $post->getDefaultFieldItems(); +?> +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
render(); ?>render(); ?>
+ + + +
+ + + +
+

+ + 帮助文档'); ?> +

+
diff --git a/admin/editor-js.php b/admin/editor-js.php index f8b51f08..3298a90c 100644 --- a/admin/editor-js.php +++ b/admin/editor-js.php @@ -1,3 +1,4 @@ + markdown && (!$content->have() || $content->isMarkdown)): ?> diff --git a/admin/form-js.php b/admin/form-js.php index c6a5795d..78d9db15 100644 --- a/admin/form-js.php +++ b/admin/form-js.php @@ -1,3 +1,4 @@ +