From 1c3b86fc229d50d1782f7af41292f7fe30af411d Mon Sep 17 00:00:00 2001 From: joyqi Date: Thu, 4 Jan 2024 22:47:15 +0800 Subject: [PATCH] fix #1679 (#1680) Detect the insertion point of reply form automatically. --- var/Widget/Archive.php | 136 +++++++++++++++++++------------- var/Widget/Comments/Archive.php | 2 +- 2 files changed, 82 insertions(+), 56 deletions(-) diff --git a/var/Widget/Archive.php b/var/Widget/Archive.php index 21c5ae7a..fe84d75d 100644 --- a/var/Widget/Archive.php +++ b/var/Widget/Archive.php @@ -1028,53 +1028,85 @@ class Archive extends Contents if ($this->options->commentsThreaded && $this->is('single')) { if ('' != $allows['commentReply']) { if (1 == $allows['commentReply']) { - $header .= " -"; +EOF; } else { $header .= ''; } @@ -1111,45 +1141,41 @@ class Archive extends Contents if ($this->options->commentsAntiSpam && $this->is('single')) { if ('' != $allows['antiSpam']) { if (1 == $allows['antiSpam']) { - $header .= ""; + +EOF; } else { $header .= ''; } diff --git a/var/Widget/Comments/Archive.php b/var/Widget/Comments/Archive.php index 083e631c..2e2a8b65 100644 --- a/var/Widget/Comments/Archive.php +++ b/var/Widget/Comments/Archive.php @@ -414,7 +414,7 @@ class Archive extends Comments if (!$plugged) { echo '' . $word . ''; + $this->theId . '\', ' . $this->coid . ', this);">' . $word . ''; } } }