upskill-event-manager/templates/page-certificate-reports.php
bengizmo 89cfe14cef fix: Fix certificate pages theme integration and navigation consistency
• 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 <noreply@anthropic.com>
2025-08-01 11:09:05 -03:00

38 lines
936 B
PHP

<?php
/**
* Template Name: Certificate Reports
* Description: Template for the certificate reports page
*/
// Define constant to indicate we are in a page template
define('HVAC_IN_PAGE_TEMPLATE', true);
get_header();
?>
<div class="hvac-page-wrapper hvac-certificate-reports-page">
<?php
// Display trainer navigation menu - prevent duplicates
if (class_exists('HVAC_Menu_System') && !defined('HVAC_NAV_RENDERED')) {
define('HVAC_NAV_RENDERED', true);
HVAC_Menu_System::instance()->render_trainer_menu();
}
?>
<?php
// Display breadcrumbs
if (class_exists('HVAC_Breadcrumbs')) {
echo HVAC_Breadcrumbs::instance()->render_breadcrumbs();
}
?>
<div class="container">
<?php
// Certificate reports content rendered through shortcode
echo do_shortcode('[hvac_certificate_reports]');
?>
</div>
</div>
<?php
get_footer();