From ac146e9676a6e774345c2ac75591bdbfd81d0dd5 Mon Sep 17 00:00:00 2001 From: Skywt2003 Date: Fri, 4 Feb 2022 16:38:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E3=80=8C=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E3=80=8D=E7=9A=84=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.php | 3 +++ header.php | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index a636068..e7c6f1e 100644 --- a/functions.php +++ b/functions.php @@ -9,6 +9,9 @@ function themeConfig($form) { $logoUrl = new Typecho_Widget_Helper_Form_Element_Text('logoUrl', NULL, Helper::options()->themeUrl.'/assets/avatar.png', '站点 LOGO 地址', '在这里填入一个图片 URL 地址, 以在网站标题前加上一个 LOGO'); $form->addInput($logoUrl); + $realHomepage = new Typecho_Widget_Helper_Form_Element_Text('realHomepage', NULL, NULL, '全站首页', '填入的链接会在导航栏首位显示为「首页」'); + $form->addInput($realHomepage); + $icpInfo = new Typecho_Widget_Helper_Form_Element_Text('icpInfo', NULL, NULL, 'ICP 备案号', '显示在底部,留空则不显示'); $form->addInput($icpInfo->addRule('xssCheck', '请不要使用特殊字符')); diff --git a/header.php b/header.php index 66adbda..77ab980 100644 --- a/header.php +++ b/header.php @@ -128,17 +128,30 @@