From ff35b345012b96e90c15defc820a526422b9485b Mon Sep 17 00:00:00 2001 From: bengizmo Date: Fri, 30 May 2025 12:50:27 -0600 Subject: [PATCH] fix: Dashboard pagination display and AJAX handler syntax error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fixed missing closing PHP tag in AJAX method causing syntax error - Updated both AJAX handler and template to always show item count - Fixed pagination display to be consistent between initial load and AJAX updates - Pagination item count now shows even when there's only one page of results 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../includes/class-hvac-dashboard.php | 17 +++++++++-------- .../templates/template-hvac-dashboard.php | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-dashboard.php b/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-dashboard.php index 97774275..18fadc90 100644 --- a/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-dashboard.php +++ b/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-dashboard.php @@ -359,13 +359,13 @@ class HVAC_Dashboard { - 1) : ?> -
-
- items +
+
+ items + 1) : ?> - + First page @@ -389,7 +389,7 @@ class HVAC_Dashboard { Next page - + Last page @@ -398,9 +398,10 @@ class HVAC_Dashboard { -
+
- +
- 1) : ?>
items + 1) : ?>