From 02947175352b377114bf3e4c7bf524cc02cf937b Mon Sep 17 00:00:00 2001 From: LiCaoZ Date: Thu, 16 Mar 2023 21:22:20 +0800 Subject: =?UTF-8?q?:newspaper:=20Feat:=20=E6=94=AF=E6=8C=81=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E5=AF=BC=E8=88=AA=20&=20=E9=83=A8=E5=88=86=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E9=80=BB=E8=BE=91=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/Options.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libs/Options.php') diff --git a/libs/Options.php b/libs/Options.php index ef12f80..3f9964d 100644 --- a/libs/Options.php +++ b/libs/Options.php @@ -70,6 +70,18 @@ function themeConfig($form) { $relatedLinks = new Typecho_Widget_Helper_Form_Element_Textarea('relatedLinks', NULL, NULL, _t('首页「相关链接」内容'), _t('

使用特定的 JSON 格式书写,可以在首页文章目录之前展示一个相关链接版块,详情请查看说明文档

')); $form->addInput($relatedLinks); + // 分类导航 + $categoryNav = new Typecho_Widget_Helper_Form_Element_Radio('categoryNav', array( + 'able' => _t('启用'), + 'disable' => _t('停用'), + ), + 'disable', + _t('是否启用侧边栏分类导航'), + _t(' + 启用后,将在侧边栏首页和独立页面中间加入所有分类页面。 + ') + ); + $form->addInput($categoryNav->addRule('required', _t('此处必须设置'))); /** * 附加功能 -- cgit v1.2.3