From b7d70f39b074dcb7c5cf0bc23be2efbc42aa6f06 Mon Sep 17 00:00:00 2001 From: outtime Date: Thu, 19 Dec 2019 10:47:08 +0800 Subject: =?UTF-8?q?=F0=9F=A7=B6Add=EF=BC=9A=E6=96=B0=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E5=8A=A8=E7=94=BB=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/Options.php | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'libs/Options.php') diff --git a/libs/Options.php b/libs/Options.php index e876a46..a94d509 100644 --- a/libs/Options.php +++ b/libs/Options.php @@ -58,9 +58,10 @@ function themeConfig($form) { /** * 设置样式+面板 */ - $ver = themeVersion(); + $ver = themeVersion(); + $themeDir = "/usr/themes/Miracles/"; - echo ''; + echo ''; echo '

Miracles 主题设置面板

欢迎使用 Miracles 主题,目前版本是:'. $ver .'
@@ -77,7 +78,7 @@ function themeConfig($form) { * 设置项 */ //首要设置项 - $news = new Typecho_Widget_Helper_Form_Element_Text('news', NULL, NULL, _t('

首要设置 First

全站公告'), _t('输入公告内容,用户进入站点时自动弹出')); + $news = new Typecho_Widget_Helper_Form_Element_Text('news', NULL, NULL, _t('

首要设置

全站公告'), _t('输入公告内容,用户进入站点时自动弹出')); $form->addInput($news); //nav @@ -99,7 +100,7 @@ function themeConfig($form) { $form->addInput($bannerTitle); $bannerIntro = new Typecho_Widget_Helper_Form_Element_Text('bannerIntro', NULL, NULL, _t('介绍'), _t('这里是首页大图标题下的简介
')); $form->addInput($bannerIntro); - + //pjax $pjax = new Typecho_Widget_Helper_Form_Element_Select('pjax',array('0'=>'关闭','1'=>'开启'),'1','

Pjax 预加载

是否开启','Pjax 预加载功能的开关'); $form->addInput($pjax); @@ -117,7 +118,16 @@ function themeConfig($form) { $form->addInput($grayTheme); $bodyFonts = new Typecho_Widget_Helper_Form_Element_Select('bodyFonts',array('0'=>'无衬线字体','1'=>'衬线字体'),'0','网站字体','选择网站的字体,无衬线字体即“思源黑体”,衬线字体即“思源宋体”'); $form->addInput($bodyFonts); - + + //LoadingImage + $LoadingOptions = [ + 'block' => "方块:", + 'octopus' => "旋转章鱼:", + 'bilibili' => "哔哩哔哩小电视:" + ]; + $LoadingImage = new Typecho_Widget_Helper_Form_Element_Radio('loading_image', $LoadingOptions, 'block', _t('选择图片加载动画'),_t("
")); + $form->addInput($LoadingImage); + //developer $headerEcho = new Typecho_Widget_Helper_Form_Element_Textarea('headerEcho', NULL, NULL, _t('

开发者设置

自定义头部信息'), _t('填写 html 代码,将输出在 <head> 标签中')); $form->addInput($headerEcho); -- cgit v1.2.3