From fef63795224787c92894b92e53da6edaf4fc2509 Mon Sep 17 00:00:00 2001 From: liaoxin Date: Mon, 4 May 2026 13:46:15 +0800 Subject: [PATCH] =?UTF-8?q?v1.9=20=E2=80=94=20=E8=AF=84=E8=AE=BA=E5=8C=BA?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 评论列表自定义渲染(头像 22px,回复按钮中文化) - 回复表单标题中文化('回复 %s' / '取消回复') - 去掉 'X条留言' 标题,使用'笺下留言' - 登录弹窗替代 alert - 退出登录+登录带回跳 --- comments.php | 48 +++++++++++++----------------------------------- functions.php | 9 +++++++++ style.css | 12 ++++++++++++ 3 files changed, 34 insertions(+), 35 deletions(-) diff --git a/comments.php b/comments.php index b647b3d..ff7d8a5 100644 --- a/comments.php +++ b/comments.php @@ -1,51 +1,34 @@
- -

- -

+

笺下留言

+
    'ol', - 'avatar_size' => 32, + 'avatar_size' => 24, 'short_ping' => true, + 'callback' => null, + 'reply_text' => '回复', + 'format' => 'html5', )); ?>
- - - -

评论已关闭。

- - - + '笺下留言', - 'title_reply_before' => '

', - 'title_reply_after' => '

', + 'title_reply' => '', 'comment_notes_before' => '', 'comment_notes_after' => '', 'logged_in_as' => '', @@ -55,10 +38,8 @@ if (post_password_required()) return; 'submit_field' => '
%1$s %2$s
', 'label_submit' => '落笔留痕', )); - else : - // 未登录:只显示输入框 + 按钮,提交时提示登录 - ?> -

笺下留言

+ ?> +
@@ -68,12 +49,9 @@ if (post_password_required()) return;