- Remove hardcoded template override in class-hvac-community-events.php forcing old shortcode-based template - Update dashboard to use refactored page-trainer-dashboard.php template with proper WordPress integration - Fix navigation menu rendering by removing conflicting HVAC_NAV_RENDERED constant checks - Add missing hvac-menu-system.css file to resolve navigation styling - Update deployment script to automatically assign correct page template - Clean up template files to use consistent navigation rendering approach - Update documentation with dashboard refactoring details The dashboard now displays correctly with working navigation across all trainer pages. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
56 lines
No EOL
1.3 KiB
PHP
56 lines
No EOL
1.3 KiB
PHP
<?php
|
|
/**
|
|
* Template Name: Trainer Documentation
|
|
* Template for displaying trainer documentation page
|
|
*
|
|
* @package HVAC_Plugin
|
|
* @since 2.0.0
|
|
*/
|
|
|
|
// Define constant to identify we're in a page template
|
|
define('HVAC_IN_PAGE_TEMPLATE', true);
|
|
|
|
// Get header
|
|
get_header();
|
|
|
|
// Initialize breadcrumbs if available
|
|
if (class_exists('HVAC_Breadcrumbs')) {
|
|
$breadcrumbs = HVAC_Breadcrumbs::get_instance();
|
|
$breadcrumbs->set_custom_breadcrumb([
|
|
['title' => 'Trainer', 'url' => home_url('/trainer/')],
|
|
['title' => 'Documentation', 'url' => '']
|
|
]);
|
|
}
|
|
|
|
?>
|
|
|
|
<div class="container hvac-trainer-page hvac-documentation-page">
|
|
|
|
<?php
|
|
// Render navigation menu
|
|
if (class_exists('HVAC_Menu_System')) {
|
|
HVAC_Menu_System::instance()->render_trainer_menu();
|
|
}
|
|
?>
|
|
|
|
<?php
|
|
// Render breadcrumbs if available
|
|
if (isset($breadcrumbs)) {
|
|
echo $breadcrumbs->render();
|
|
}
|
|
?>
|
|
|
|
<main class="hvac-main-content">
|
|
<?php
|
|
// Render the documentation content using shortcode
|
|
if (class_exists('HVAC_Help_System')) {
|
|
echo do_shortcode('[hvac_documentation]');
|
|
} else {
|
|
echo '<p>Documentation is not available. Please contact an administrator.</p>';
|
|
}
|
|
?>
|
|
</main>
|
|
|
|
</div>
|
|
|
|
<?php get_footer(); ?>
|