From 6a8eedb6bca2edabc6a354bbd99c3df11a9f6ce2 Mon Sep 17 00:00:00 2001 From: Eltrac <45323514+BigCoke233@users.noreply.github.com> Date: Fri, 24 Jan 2020 15:00:36 +0800 Subject: =?UTF-8?q?=F0=9F=8E=88=20Add:=20=E6=94=AF=E6=8C=81=E5=9C=A8?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E8=AE=BE=E7=BD=AE=E5=A4=B4=E5=83=8F=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/Options.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'libs') diff --git a/libs/Options.php b/libs/Options.php index 9cd87aa..ce3272b 100755 --- a/libs/Options.php +++ b/libs/Options.php @@ -50,7 +50,7 @@ function themeConfig($form) { ?>这里 不用删了!备份不存在!!!'; + echo '
备份不存在!
'; } } } @@ -77,6 +77,14 @@ function themeConfig($form) { /** * 设置项 */ + //Info + $bannerTitle = new Typecho_Widget_Helper_Form_Element_Text('bannerTitle', NULL, NULL, _t('

站点信息 Information

站点名称'), _t('输入你站点的名称,会显示在首页大图上')); + $form->addInput($bannerTitle); + $bannerIntro = new Typecho_Widget_Helper_Form_Element_Text('bannerIntro', NULL, NULL, _t('站点介绍'), _t('用一句话介绍你的站点,会显示在首页大图上')); + $form->addInput($bannerIntro); + $avatar = new Typecho_Widget_Helper_Form_Element_Text('avatar', NULL, NULL, _t('站长头像'), _t('输入一个图片 url 作为头像,若为空则调用 gravatar
')); + $form->addInput($avatar); + //nav $navStyle = new Typecho_Widget_Helper_Form_Element_Select('navStyle',array('0'=>'顶部导航栏','1'=>'左侧抽屉栏'),'0','

导航栏 Nav

类型','选择导航栏的类型(若选择左侧抽屉蓝,则下一条设置失效)'); $form->addInput($navStyle); @@ -92,10 +100,6 @@ function themeConfig($form) { $form->addInput($bannerFont); $bannerHeight = new Typecho_Widget_Helper_Form_Element_Text('bannerHeight', NULL, '60', _t('高度'), _t('首页大图所占屏幕的高度,100为最大,填入纯数字,如"35"')); $form->addInput($bannerHeight); - $bannerTitle = new Typecho_Widget_Helper_Form_Element_Text('bannerTitle', NULL, NULL, _t('标题'), _t('这里是首页大图显示的的标题')); - $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 预加载功能的开关'); -- cgit v1.2.3