diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-08-21 18:59:10 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-08-21 18:59:10 +0800 |
| commit | 1cba3c0713fa1c877458dca99243b4685383ece1 (patch) | |
| tree | 48e0652eed3b89083df76ba3f548534dd8c02fbf /libs/Options.php | |
| parent | 50819e10ec5ec74a864401f9d4a5f3d805729975 (diff) | |
:pencil: Add: 加入设置项,以便关闭 Ajax 评论
Diffstat (limited to 'libs/Options.php')
| -rw-r--r-- | libs/Options.php | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/libs/Options.php b/libs/Options.php index 5a8b33a..e6d2cab 100644 --- a/libs/Options.php +++ b/libs/Options.php @@ -51,22 +51,21 @@ function themeConfig($form) { <hr class="line"></hr> ')); $form->addInput($statCode); - $hideStatCode = new Typecho_Widget_Helper_Form_Element_Radio('hideStatCode', array( - 'able' => _t('隐藏'), - 'disable' => _t('显示'), + + /** + * 附加功能 & 实验性功能 + */ + $EnableAjaxComment = new Typecho_Widget_Helper_Form_Element_Radio('EnableAjaxComment', array( + 'able' => _t('启用'), + 'disable' => _t('停用'), ), 'able', - _t('是否隐藏统计标志'), + _t('是否启用 Ajax 评论无刷新功能(Beta)'), _t(' - <p class="description">是否将统计标志用 CSS 的 display 函数隐藏起来(常用于隐藏 CNZZ 等统计站点显示的标志,防止影响美观),<b>默认隐藏</b></p> - <p class="description"><b>现阶段暂没有对显示内容的统计标志做特别优化,因而会出现显示错乱的问题,建议隐藏。</b></p> + 启用后将使用 Ajax 异步提交评论,提交评论后页面不会刷新。这个功能目前还在测试中。 ') ); - $form->addInput($hideStatCode->addRule('required', _t('此处必须设置'))); - - /** - * 附加功能 - */ + $form->addInput($EnableAjaxComment->addRule('required', _t('此处必须设置'))); $EnableBusuanzi = new Typecho_Widget_Helper_Form_Element_Radio('EnableBusuanzi', array( 'able' => _t('启用'), 'disable' => _t('停用'), |
