From 3def1ca01fc20e6f6da887182202f10047e3a912 Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Wed, 15 Apr 2020 17:26:50 +0800 Subject: =?UTF-8?q?:alien:=20Add:=20=E6=B7=BB=E5=8A=A0=209jojo=20CDN=20?= =?UTF-8?q?=E4=BD=9C=E4=B8=BA=E9=9D=99=E6=80=81=E6=96=87=E4=BB=B6=E5=8A=A0?= =?UTF-8?q?=E9=80=9F=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/Options.php | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'libs') diff --git a/libs/Options.php b/libs/Options.php index b8e1b07..4f3bf6a 100755 --- a/libs/Options.php +++ b/libs/Options.php @@ -134,13 +134,23 @@ function themeConfig($form) { $form->addInput($bannerHeight); //pjax - $pjax = new Typecho_Widget_Helper_Form_Element_Select('pjax',array('0'=>'关闭','1'=>'开启'),'1','

Pjax 预加载

是否开启','Pjax 预加载功能的开关'); + $pjax = new Typecho_Widget_Helper_Form_Element_Select('pjax',array( + '0'=>'关闭', + '1'=>'开启' + ),'1','

Pjax 预加载

是否开启','Pjax 预加载功能的开关'); $form->addInput($pjax); $pjax_complete = new Typecho_Widget_Helper_Form_Element_Textarea('pjax_complete', NULL, NULL, _t('完成后执行事件'), _t('Pjax 跳转页面后执行的事件,写入 js 代码,一般将 Pjax 重载(回调)函数写在这里。
')); $form->addInput($pjax_complete); //improve - $CDN = new Typecho_Widget_Helper_Form_Element_Select('CDN',array('0'=>'关闭','1'=>'jsDelivr','2'=>'GitHack(实时更新)','4'=>'GitHack CDN(较慢)','3'=>'自定义'),'0','

优化

CDN 加速加载静态资源(Beta)','开启后静态资源文件通过选择的 CDN 进行调用,加快网页加载速度。如果选择自定义则需要填写下一个设置项。
* 如果你使用开发版,请不要选择 jsDelivr 作为 CDN
* GitHack 是实时更新的,如果你不是要开发测试主题,最好不要选用'); + $CDN = new Typecho_Widget_Helper_Form_Element_Select('CDN',array( + '0'=>'关闭', + '1'=>'jsDelivr', + '2'=>'GitHack(实时更新)', + '4'=>'GitHack CDN(较慢)', + '5'=>'9jojo CDN(实时更新)', + '3'=>'自定义'),'0','

优化

CDN 加速加载静态资源(Beta)', + '开启后静态资源文件通过选择的 CDN 进行调用,加快网页加载速度。如果选择自定义则需要填写下一个设置项。
* 如果你使用开发版,请不要选择 jsDelivr 作为 CDN
* GitHack 和 9jojo 是实时更新的,如果你不是随时更新开发版,最好不要选用
* GitHack CDN 速度较慢,国内不建议使用,就是拿来凑数的
在这里感谢小太为 Miracles 提供 9jojo CDN'); $form->addInput($CDN); $customCDN = new Typecho_Widget_Helper_Form_Element_Text('customCDN', NULL, '', _t('自定义 CDN'), _t('输入 CDN 的链接,要保证写入的路径下,目录结构和主题的 assets 目录下一致')); $form->addInput($customCDN); @@ -150,9 +160,15 @@ function themeConfig($form) { $form->addInput($pangu); //custom style - $grayTheme = new Typecho_Widget_Helper_Form_Element_Select('grayTheme',array('0'=>'关闭','1'=>'开启'),'0','

个性化

哀悼模式','打开后网站变为黑白'); + $grayTheme = new Typecho_Widget_Helper_Form_Element_Select('grayTheme',array( + '0'=>'关闭', + '1'=>'开启' + ),'0','

个性化

哀悼模式','打开后网站变为黑白'); $form->addInput($grayTheme); - $bodyFonts = new Typecho_Widget_Helper_Form_Element_Select('bodyFonts',array('0'=>'无衬线字体','1'=>'衬线字体'),'0','网站字体','选择网站的字体,无衬线字体即“思源黑体”,衬线字体即“思源宋体”'); + $bodyFonts = new Typecho_Widget_Helper_Form_Element_Select('bodyFonts',array( + '0'=>'无衬线字体', + '1'=>'衬线字体' + ),'0','网站字体','选择网站的字体,无衬线字体即“思源黑体”,衬线字体即“思源宋体”'); $form->addInput($bodyFonts); $randomBanner = new Typecho_Widget_Helper_Form_Element_Textarea('randomBanner', NULL, NULL, _t('随机文章缩略图'), _t('文章没有独立设置头图时调用,写入图片链接,用半角逗号分割')); $form->addInput($randomBanner); -- cgit v1.2.3