diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-08-18 13:32:53 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-08-18 13:32:53 +0800 |
| commit | 21cdc5808c8e4e96aaca3fd80c09749195a0fe9d (patch) | |
| tree | e557c62308966c50a3aba2c27325d3bada801a5a /functions.php | |
| parent | fe465aa1bce7337a56353bf78566424204513214 (diff) | |
:gem: Add: 增加 favicon 设置项 #1
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/functions.php b/functions.php index 6634420..fc2f721 100644 --- a/functions.php +++ b/functions.php @@ -4,11 +4,13 @@ require_once('libs/Utils.php'); require_once('libs/Matcha.php'); function themeConfig($form) { + $favicon = new Typecho_Widget_Helper_Form_Element_Text('favicon', NULL, 'favicon.png', _t('浏览器图标(Favicon)'), _t('在这里填入一个指向图片文件的 url 来自定义浏览器标签栏显示的图标,留空则默认为 favicon.ico')); + $form->addInput($favicon); + //footer 相关 $icpNum = new Typecho_Widget_Helper_Form_Element_Text('icpNum', NULL, NULL, _t('网站备案号'), _t('在这里填入中国大陆的ICP网站备案号(无需带a标签,如 <code>浙ICP备19006255号-1</code> ),留空则不显示')); $form->addInput($icpNum); - $startYear = new Typecho_Widget_Helper_Form_Element_Text('startYear', NULL, '2022', _t('网站建立年份'), _t('在这里填入您网站建立年份(显示在页面底部),<b>必须填写</b>')); $form->addInput($startYear->addRule('required', _t('此处必须填写'))); $statCode = new Typecho_Widget_Helper_Form_Element_Textarea('statCode', NULL, NULL, _t('站点统计代码'), _t(' |
