summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rwxr-xr-xlibs/Options.php24
1 files changed, 20 insertions, 4 deletions
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','<h2>Pjax 预加载</h2>是否开启','Pjax 预加载功能的开关');
+ $pjax = new Typecho_Widget_Helper_Form_Element_Select('pjax',array(
+ '0'=>'关闭',
+ '1'=>'开启'
+ ),'1','<h2>Pjax 预加载</h2>是否开启','Pjax 预加载功能的开关');
$form->addInput($pjax);
$pjax_complete = new Typecho_Widget_Helper_Form_Element_Textarea('pjax_complete', NULL, NULL, _t('完成后执行事件'), _t('Pjax 跳转页面后执行的事件,写入 js 代码,一般将 Pjax 重载(回调)函数写在这里。<hr>'));
$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','<h2>优化</h2>CDN 加速加载静态资源(Beta)','开启后静态资源文件通过选择的 CDN 进行调用,加快网页加载速度。如果选择自定义则需要填写下一个设置项。<br>* 如果你使用开发版,请不要选择 jsDelivr 作为 CDN<br>* GitHack 是实时更新的,如果你不是要开发测试主题,最好不要选用');
+ $CDN = new Typecho_Widget_Helper_Form_Element_Select('CDN',array(
+ '0'=>'关闭',
+ '1'=>'jsDelivr',
+ '2'=>'GitHack(实时更新)',
+ '4'=>'GitHack CDN(较慢)',
+ '5'=>'9jojo CDN(实时更新)',
+ '3'=>'自定义'),'0','<h2>优化</h2>CDN 加速加载静态资源(Beta)',
+ '开启后静态资源文件通过选择的 CDN 进行调用,加快网页加载速度。如果选择自定义则需要填写下一个设置项。<br>* 如果你使用开发版,请不要选择 jsDelivr 作为 CDN<br>* GitHack 和 9jojo 是实时更新的,如果你不是随时更新开发版,最好不要选用<br>* GitHack CDN 速度较慢,国内不建议使用,<del>就是拿来凑数的</del><br>在这里感谢<a href="https://github.com/SatoSouta/9jojo">小太</a>为 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','<h2>个性化</h2>哀悼模式','打开后网站变为黑白');
+ $grayTheme = new Typecho_Widget_Helper_Form_Element_Select('grayTheme',array(
+ '0'=>'关闭',
+ '1'=>'开启'
+ ),'0','<h2>个性化</h2>哀悼模式','打开后网站变为黑白');
$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);