summaryrefslogtreecommitdiff
path: root/libs/Options.php
diff options
context:
space:
mode:
authorEltrac Koalar <hi@guhub.cn>2022-08-22 12:51:57 +0800
committerEltrac Koalar <hi@guhub.cn>2022-08-22 12:51:57 +0800
commit3cdbb2a05ed864a301e1ded446296362669a63e2 (patch)
tree7be29abe068d239df1bd3f4ba4cab6dd6174f856 /libs/Options.php
parent1bf008fb92e50d26b9a7eda3af52fbbb7555d4e8 (diff)
:dizzy: Add: 增加友情链接随机排序选项
Diffstat (limited to 'libs/Options.php')
-rw-r--r--libs/Options.php14
1 files changed, 14 insertions, 0 deletions
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('停用'),