From 7426090c48ad7da27ee0f4b63b04673d2d3b9dfd Mon Sep 17 00:00:00 2001 From: Skywt2003 Date: Thu, 11 Nov 2021 23:35:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AF=84=E8=AE=BA=E5=8C=BA?= =?UTF-8?q?=E5=85=AC=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comments.php | 9 +++++++++ functions.php | 3 +++ 2 files changed, 12 insertions(+) diff --git a/comments.php b/comments.php index 908be85..cdea6ab 100644 --- a/comments.php +++ b/comments.php @@ -63,6 +63,15 @@ allow('comment')): ?>
+ options->comments_noti !='') { ?> + +
cancelReply(' 取消回复'); ?> diff --git a/functions.php b/functions.php index e419f0d..5e58aa8 100644 --- a/functions.php +++ b/functions.php @@ -21,6 +21,9 @@ function themeConfig($form) { $notificationIcon = new Typecho_Widget_Helper_Form_Element_Text('notificationIcon', NULL, NULL, _t('网站公告图标'), _t('显示在首页网站公告信息框前的 FontAwesome 图标代码,留空则不显示')); $form->addInput($notificationIcon); + $comments_noti = new Typecho_Widget_Helper_Form_Element_Text('comments_noti', NULL, NULL, _t('评论区公告'), _t('显示在评论区,留空则不显示')); + $form->addInput($comments_noti); + $bottomLinks = new Typecho_Widget_Helper_Form_Element_Text('bottomLinks', NULL, NULL, _t('底部链接'), _t('(需要配合友情链接插件使用)网站底部的链接分类名称')); $form->addInput($bottomLinks);