From 2fbb2bacb3d3e71e0369ac232a9d8e2cd125619b Mon Sep 17 00:00:00 2001 From: AlanDecode Date: Thu, 20 Jun 2019 17:17:53 +0800 Subject: [PATCH] fix --- functions.php | 2 +- index.php | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index 087d7455..a1a3d282 100644 --- a/functions.php +++ b/functions.php @@ -86,7 +86,7 @@ function themeFields(Typecho_Widget_Helper_Layout $layout) { $layout->addItem($posttype); $banner = new Typecho_Widget_Helper_Form_Element_Text('banner', NULL, NULL, '文章主图', '输入图片URL,该图片会用于主页文章列表的显示。'); $layout->addItem($banner); - $bannerascover = new Typecho_Widget_Helper_Form_Element_Select('bannerascover',array('2'=>'主图作为标题背景', '1'=>'主图显示在标题上方', '0'=>'否'),'1','首页主图样式','主图作为标题背景时会添加暗色遮罩,但仍然建议仅对暗色的主图采用该方式展示。否则请选择「主图显示在标题上方」。'); + $bannerascover = new Typecho_Widget_Helper_Form_Element_Select('bannerascover',array('2'=>'主图作为标题背景', '1'=>'主图显示在标题上方', '0'=>'不显示'),'1','首页主图样式','主图作为标题背景时会添加暗色遮罩,但仍然建议仅对暗色的主图采用该方式展示。否则请选择「主图显示在标题上方」。'); $layout->addItem($bannerascover); $showfullcontent = new Typecho_Widget_Helper_Form_Element_Select('showfullcontent',array('0'=>'否', '1'=>'是'),'0','在首页显示完整内容','是否在首页展示完整内容。适合比较短的文章。'); $layout->addItem($showfullcontent); diff --git a/index.php b/index.php index 6d531a08..b53c1bac 100644 --- a/index.php +++ b/index.php @@ -29,7 +29,13 @@