This commit is contained in:
杜恒
2021-01-27 19:01:49 +08:00
parent c8c194ab55
commit f72a710330
8 changed files with 181 additions and 77 deletions

View File

@@ -204,7 +204,6 @@ function themeConfig($form)
$JFooter_Right->setAttribute('class', 'joe_content joe_global');
$form->addInput($JFooter_Right);
/* Live2d */
$JLive2d = new Typecho_Widget_Helper_Form_Element_Select(
'JLive2d',
array(
@@ -244,6 +243,16 @@ function themeConfig($form)
$JLive2d->setAttribute('class', 'joe_content joe_global');
$form->addInput($JLive2d->multiMode());
$JDocumentTitle = new Typecho_Widget_Helper_Form_Element_Text(
'JDocumentTitle',
NULL,
NULL,
'网页被隐藏时显示的标题',
'介绍在PC端切换网页标签时网站标题显示的内容。如果不填写则默认不开启'
);
$JDocumentTitle->setAttribute('class', 'joe_content joe_global');
$form->addInput($JDocumentTitle);
$JAside = new Typecho_Widget_Helper_Form_Element_Checkbox(
'JAside',
array(
@@ -536,7 +545,7 @@ function themeConfig($form)
$JIndex_Carousel->setAttribute('class', 'joe_content joe_index');
$form->addInput($JIndex_Carousel);
$JIndex_Recommend = new Typecho_Widget_Helper_Form_Element_Textarea(
$JIndex_Recommend = new Typecho_Widget_Helper_Form_Element_Text(
'JIndex_Recommend',
NULL,
NULL,
@@ -549,6 +558,18 @@ function themeConfig($form)
$JIndex_Recommend->setAttribute('class', 'joe_content joe_index');
$form->addInput($JIndex_Recommend);
$JIndexSticky = new Typecho_Widget_Helper_Form_Element_Text(
'JIndexSticky',
NULL,
NULL,
'首页置顶文章(非必填)',
'介绍:请务必填写正确的格式 <br />
格式文章的ID || 文章的ID || 文章的ID (中间使用两个竖杠分隔)<br />
例如1 || 2 || 3'
);
$JIndexSticky->setAttribute('class', 'joe_content joe_index');
$form->addInput($JIndexSticky);
$JIndex_Hot = new Typecho_Widget_Helper_Form_Element_Radio(
'JIndex_Hot',
array('off' => '关闭(默认)', 'on' => '开启'),