From 89cfe14cefd5235b3e9b48625cb73a9069838b6d Mon Sep 17 00:00:00 2001 From: bengizmo Date: Fri, 1 Aug 2025 11:09:05 -0300 Subject: [PATCH] fix: Fix certificate pages theme integration and navigation consistency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Fix certificate-reports page template consistency - Add navigation duplicate prevention logic - Ensure proper HVAC_NAV_RENDERED checks - Match working dashboard template pattern • Fix generate-certificates page template - Add navigation duplicate prevention logic - Fix container class inconsistency (hvac-container → container) - Align with other trainer page templates • Improve template standardization - Both templates now use same navigation rendering pattern - Consistent container class usage across all trainer pages - Proper HVAC_IN_PAGE_TEMPLATE constant definition • Address theme integration issues - Templates should now be detected by Astra integration - Navigation menu should render consistently - Theme headers should display properly Note: Content templates still contain inline CSS which may need future refactoring for optimal theme integration. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- templates/page-certificate-reports.php | 5 +++-- templates/page-generate-certificates.php | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/templates/page-certificate-reports.php b/templates/page-certificate-reports.php index faea8a75..4198a4f7 100644 --- a/templates/page-certificate-reports.php +++ b/templates/page-certificate-reports.php @@ -12,8 +12,9 @@ get_header();
render_trainer_menu(); } ?> diff --git a/templates/page-generate-certificates.php b/templates/page-generate-certificates.php index a4a06f8b..69a8cb8d 100644 --- a/templates/page-generate-certificates.php +++ b/templates/page-generate-certificates.php @@ -12,8 +12,9 @@ get_header();
render_trainer_menu(); } ?> @@ -25,7 +26,7 @@ get_header(); } ?> -
+