summaryrefslogtreecommitdiffstats
path: root/libs/Options.php
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2020-04-14 16:00:01 +0800
committerBigCoke233 <hi@guhub.cn>2020-04-14 16:00:01 +0800
commite045d79712c6e5f1a307129de219ab9c104162ce (patch)
treef703e33b4cad61272d93cb5fd45149b1734a87c9 /libs/Options.php
parent0f88c27635f641d8b4afbb3cc4803cadd4eea3b4 (diff)
:dragon_face: Add: 支持在设置中自定义 Favicon
Diffstat (limited to 'libs/Options.php')
-rwxr-xr-xlibs/Options.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/Options.php b/libs/Options.php
index c3d84d0..193a16b 100755
--- a/libs/Options.php
+++ b/libs/Options.php
@@ -108,8 +108,10 @@ function themeConfig($form) {
$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<hr>'));
+ $avatar = new Typecho_Widget_Helper_Form_Element_Text('avatar', NULL, NULL, _t('站长头像'), _t('输入一个图片 url 作为头像,若为空则调用 gravatar'));
$form->addInput($avatar);
+ $favicon = new Typecho_Widget_Helper_Form_Element_Text('favicon', NULL, NULL, _t('Favicon'), _t('输入一个图片 url 作为 Favicon,显示在浏览器标签页上,为空则调用主题目录下的 favicon.ico<hr>'));
+ $form->addInput($favicon);
//nav
$navStyle = new Typecho_Widget_Helper_Form_Element_Select('navStyle',array('0'=>'顶部导航栏','1'=>'左侧抽屉栏'),'0','<h2>导航栏 Nav</h2>类型','选择导航栏的类型(若选择左侧抽屉蓝,则下一条设置失效)');