From 5abd899791f9feb9533ca0ae066208fb4a45a0d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Thu, 3 Jul 2025 19:23:08 +0800 Subject: [PATCH] 1.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复评论 fix 卡片分页 --- card.php | 16 ++++ comments.php | 212 +++++++++++++++++++++++---------------------------- index.php | 2 +- 3 files changed, 113 insertions(+), 117 deletions(-) diff --git a/card.php b/card.php index 21864b2..557974f 100644 --- a/card.php +++ b/card.php @@ -63,4 +63,20 @@ $colors = ['bg-primary', 'bg-secondary', 'bg-success', 'bg-danger', 'bg-warning' +options->pageprev ?? '0'; +if ($pageprev == '1' && $this->have()): +?> +
+pageNav('«', '»', 1, '...', array( + 'wrapTag' => 'ul', + 'wrapClass' => 'pagination comment-ajax-load', + 'itemTag' => 'li', + 'textTag' => 'span', + 'currentClass' => 'active', + 'prevClass' => 'prev', + 'nextClass' => 'next' + )); ?> +
+ \ No newline at end of file diff --git a/comments.php b/comments.php index 819f0d9..ca08f4a 100644 --- a/comments.php +++ b/comments.php @@ -21,7 +21,6 @@

登录身份: user->screenName(); ?> . 登出 »

-
@@ -60,6 +59,7 @@ + @@ -69,49 +69,49 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
评论已关闭 @@ -172,13 +172,7 @@
date('Y-m-d H:i:s'); ?> -reply( - sprintf('回复', - $comments->theId, - $comments->coid, - $comments->commentUrl($comments->coid), - $comments->coid) -); ?> + 回复
@@ -226,71 +220,57 @@ \ No newline at end of file diff --git a/index.php b/index.php index 72a5f06..e366d53 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ * * @package Typecho Pouck Theme * @author 老孙博客 - * @version 1.1 + * @version 1.1.1 * @link http://www.imsun.org */