- Created template integration class for automatic nav/breadcrumb injection
- Added trainer-header.php template part for consistent header
- Updated all trainer page templates to include navigation and breadcrumbs
- Navigation shows hierarchical menu with dropdowns
- Breadcrumbs provide context-aware navigation trail
All trainer pages now have consistent navigation structure
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
No EOL
673 B
PHP
27 lines
No EOL
673 B
PHP
<?php
|
|
/**
|
|
* Template Name: Trainer Dashboard
|
|
* Description: Template for the trainer dashboard page
|
|
*/
|
|
|
|
get_header();
|
|
?>
|
|
|
|
<div class="hvac-page-wrapper hvac-trainer-dashboard-page">
|
|
<?php
|
|
// Include trainer header with navigation and breadcrumbs
|
|
$plugin_dir = WP_PLUGIN_DIR . '/hvac-community-events/';
|
|
if (file_exists($plugin_dir . 'templates/template-parts/trainer-header.php')) {
|
|
include $plugin_dir . 'templates/template-parts/trainer-header.php';
|
|
}
|
|
?>
|
|
<div class="container">
|
|
<?php
|
|
// Render the dashboard shortcode
|
|
echo do_shortcode('[hvac_dashboard]');
|
|
?>
|
|
</div>
|
|
</div>
|
|
|
|
<?php
|
|
get_footer();
|