diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-04-12 16:10:53 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-04-12 16:10:53 +0800 |
| commit | c4d20db153d8e810940ee505c194a9c4dcf58d54 (patch) | |
| tree | 8c3353c53bd2986a96df8b7c3ece1d54660e795d /libs/Options.php | |
| parent | 8a03995d72a9afe999c243cffd1fae05b441c172 (diff) | |
:book: 中英文分割开关 & 优化友情链接
- 现在允许在后台选择是否开始 Pangu,js 分割中英文
- 友情链接的头像不在通过 div 的背景图展示,而是 img 标签,并适配懒加载
Diffstat (limited to 'libs/Options.php')
| -rwxr-xr-x | libs/Options.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/Options.php b/libs/Options.php index 226e0fc..c3d84d0 100755 --- a/libs/Options.php +++ b/libs/Options.php @@ -138,8 +138,10 @@ function themeConfig($form) { $form->addInput($CDN);
$customCDN = new Typecho_Widget_Helper_Form_Element_Text('customCDN', NULL, '', _t('自定义 CDN'), _t('输入 CDN 的链接,要保证写入的路径下,目录结构和主题的 assets 目录下一致'));
$form->addInput($customCDN);
- $ifShowRTA = new Typecho_Widget_Helper_Form_Element_Select('ifShowRTA',array('0'=>'不显示','1'=>'显示'),'0','阅读时长提示 RTA','在文章前加入阅读时长提示,增进用户体验<hr>');
+ $ifShowRTA = new Typecho_Widget_Helper_Form_Element_Select('ifShowRTA',array('0'=>'不显示','1'=>'显示'),'0','阅读时长提示 RTA','在文章前加入阅读时长提示,增进用户体验');
$form->addInput($ifShowRTA);
+ $pangu = new Typecho_Widget_Helper_Form_Element_Select('pangu',array('0'=>'启用','1'=>'关闭'),'0','自动分割中英文(pangu.js)','自动分割网页中的中英文,在全角字符和半角字符之间加上空格,也会修复一些标点符号的错误(.=>。),可能会有误判或是有人不喜欢,所以在这里加个按钮<hr>');
+ $form->addInput($pangu);
//custom style
$grayTheme = new Typecho_Widget_Helper_Form_Element_Select('grayTheme',array('0'=>'关闭','1'=>'开启'),'0','<h2>个性化</h2>哀悼模式','打开后网站变为黑白');
|
