From 21cdc5808c8e4e96aaca3fd80c09749195a0fe9d Mon Sep 17 00:00:00 2001 From: Eltrac Koalar Date: Thu, 18 Aug 2022 13:32:53 +0800 Subject: =?UTF-8?q?:gem:=20Add:=20=E5=A2=9E=E5=8A=A0=20favicon=20=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=A1=B9=20#1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'functions.php') 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标签,如 浙ICP备19006255号-1 ),留空则不显示')); $form->addInput($icpNum); - $startYear = new Typecho_Widget_Helper_Form_Element_Text('startYear', NULL, '2022', _t('网站建立年份'), _t('在这里填入您网站建立年份(显示在页面底部),必须填写')); $form->addInput($startYear->addRule('required', _t('此处必须填写'))); $statCode = new Typecho_Widget_Helper_Form_Element_Textarea('statCode', NULL, NULL, _t('站点统计代码'), _t(' -- cgit v1.2.3