diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2020-03-20 16:27:54 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-20 16:27:54 +0800 |
| commit | 6738d384fb24f8f338f2c60e6bbb1e517c88be6d (patch) | |
| tree | 9ada98d26945907c5c900efb78d2c01922a7fd1b /libs | |
| parent | 7cbfae79ed539d14d7b1cb1572bb0d0648454ee0 (diff) | |
🖼 Add: 后台可自定义文章随机图
Diffstat (limited to 'libs')
| -rwxr-xr-x | libs/Options.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/Options.php b/libs/Options.php index 3144a03..f83cbd6 100755 --- a/libs/Options.php +++ b/libs/Options.php @@ -116,6 +116,8 @@ function themeConfig($form) { $form->addInput($grayTheme);
$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);
//LoadingImage
$LoadingOptions = [
|
