From 3cdbb2a05ed864a301e1ded446296362669a63e2 Mon Sep 17 00:00:00 2001 From: Eltrac Koalar Date: Mon, 22 Aug 2022 12:51:57 +0800 Subject: =?UTF-8?q?:dizzy:=20Add:=20=E5=A2=9E=E5=8A=A0=E5=8F=8B=E6=83=85?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E9=9A=8F=E6=9C=BA=E6=8E=92=E5=BA=8F=E9=80=89?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/Options.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libs/Options.php') diff --git a/libs/Options.php b/libs/Options.php index e6d2cab..b96f727 100644 --- a/libs/Options.php +++ b/libs/Options.php @@ -55,6 +55,19 @@ function themeConfig($form) { /** * 附加功能 & 实验性功能 */ + //友情链接随机排序 + $EnableRandomLinks = new Typecho_Widget_Helper_Form_Element_Radio('EnableRandomLinks', array( + 'able' => _t('启用'), + 'disable' => _t('停用'), + ), + 'able', + _t('是否启用友情链接随机排序'), + _t(' + 启用后,友情链接页面的友情链接列表将会随机排序,每次刷新后得到的顺序都不一样。 + ') + ); + $form->addInput($EnableRandomLinks->addRule('required', _t('此处必须设置'))); + //启用 ajax 评论 $EnableAjaxComment = new Typecho_Widget_Helper_Form_Element_Radio('EnableAjaxComment', array( 'able' => _t('启用'), 'disable' => _t('停用'), @@ -66,6 +79,7 @@ function themeConfig($form) { ') ); $form->addInput($EnableAjaxComment->addRule('required', _t('此处必须设置'))); + //启用不蒜子统计 $EnableBusuanzi = new Typecho_Widget_Helper_Form_Element_Radio('EnableBusuanzi', array( 'able' => _t('启用'), 'disable' => _t('停用'), -- cgit v1.2.3