summaryrefslogtreecommitdiff
path: root/libs/Options.php
diff options
context:
space:
mode:
authorKurococ Liu <21096362+KurococLiu@users.noreply.github.com>2022-10-23 12:58:52 +0800
committerKurococ Liu <21096362+KurococLiu@users.noreply.github.com>2022-10-23 12:58:52 +0800
commitf142d61f01fc57cf7befe2cc71cc8a3f8b0fdc82 (patch)
tree6242be98d3fa0303dea38168558b8fd4ab65c04f /libs/Options.php
parentd9e677d6cd90b9c868d505f5177868090dbf1842 (diff)
:newspaper: Add: 加入preconnect、字数统计,Readme新增公益CDN名单
Diffstat (limited to 'libs/Options.php')
-rw-r--r--libs/Options.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/Options.php b/libs/Options.php
index fde322b..04384c0 100644
--- a/libs/Options.php
+++ b/libs/Options.php
@@ -133,6 +133,18 @@ function themeConfig($form) {
')
);
$form->addInput($EnableBusuanzi->addRule('required', _t('此处必须设置')));
+ //启用字数统计
+ $EnableWordsCounter = new Typecho_Widget_Helper_Form_Element_Radio('EnableWordsCounter', array(
+ 'able' => _t('启用'),
+ 'disable' => _t('停用'),
+ ),
+ 'able',
+ _t('是否启用 <a rel="nofollow" target="_blank" href="https://github.com/elatisy/Typecho_WordsCounter">字数统计</a> 功能'),
+ _t('
+ <a rel="nofollow" target="_blank" href="https://github.com/elatisy/Typecho_WordsCounter">字数统计</a>是一个基于WordsCounter插件统计全站字数的,<b>默认启用</b>
+ ')
+ );
+ $form->addInput($EnableWordsCounter->addRule('required', _t('此处必须设置')));
/**
* 自定义 & 开发者设置