From f3cb13494aaad4407c41f6da54b64d207df5a59f Mon Sep 17 00:00:00 2001 From: 1989Car Date: Tue, 20 Jun 2023 19:36:11 +0800 Subject: =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=AC=E5=AE=89=E5=A4=87=E6=A1=88?= =?UTF-8?q?=E5=8F=B7=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/matcha/matcha.page.css | 4 ++-- libs/Matcha.php | 7 ++++++- libs/Options.php | 4 ++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/assets/matcha/matcha.page.css b/assets/matcha/matcha.page.css index d6a0d84..c5dfcaa 100644 --- a/assets/matcha/matcha.page.css +++ b/assets/matcha/matcha.page.css @@ -126,7 +126,7 @@ } #footer { - padding: 2em 0; + padding: 1em 0; line-height: 1.5; text-align: center; color: var(--text-gray); @@ -628,4 +628,4 @@ .section-title:first-child { margin-top: 0 -} \ No newline at end of file +} diff --git a/libs/Matcha.php b/libs/Matcha.php index aa4e71c..772b3c1 100644 --- a/libs/Matcha.php +++ b/libs/Matcha.php @@ -394,6 +394,11 @@ class Matcha echo '
'; echo ' '.Helper::options()->icpNum.' '; } + //公安备案号 + if (Helper::options()->policeNum!='') { + echo ' | '; + echo ''.Helper::options()->policeNum.''; + } //字数统计 if (Helper::options()->EnableWordsCounter=='able') { echo '
'; @@ -649,4 +654,4 @@ class Matcha } return false; } -} \ No newline at end of file +} diff --git a/libs/Options.php b/libs/Options.php index 5caae6d..d8394df 100644 --- a/libs/Options.php +++ b/libs/Options.php @@ -57,6 +57,10 @@ function themeConfig($form) { $icpNum = new Typecho_Widget_Helper_Form_Element_Text('icpNum', NULL, NULL, _t('网站备案号'), _t('在这里填入中国大陆的ICP网站备案号(无需带a标签,如 浙ICP备19006255号-1 ),留空则不显示')); $form->addInput($icpNum); + $policeNum = new Typecho_Widget_Helper_Form_Element_Text('policeNum', NULL, NULL, _t('公安备案号'), _t('在这里填入中国大陆的公安网站备案号(无需带a标签,如 京公网安备11010102002019号 ),留空则不显示')); + $form->addInput($policeNum); + $policeUrl = new Typecho_Widget_Helper_Form_Element_Text('policeUrl', NULL, NULL, _t('公安备案号链接地址'), _t('在这里填入中国大陆的公安网站备案号链接地址(无需带a标签,如 http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010102002019 ),留空则不显示')); + $form->addInput($policeUrl); $startDate = new Typecho_Widget_Helper_Form_Element_Text('startDate', NULL, date('Y-m-d'), _t('网站建立日期'), _t('用于显示在页脚的版权信息,以及计算网站建立时长,格式为 Y-m-d')); $form->addInput($startDate); $umamiURL = new Typecho_Widget_Helper_Form_Element_Text('umamiURL', NULL, NULL, _t('umami Website URL'), _t('在这里填入对应域名的 Umami Track URL(如 https://analytics.umami.is/script.js ),留空则不开启功能')); -- cgit v1.2.3