bengizmo
00ca47abcb
fix: Resolve Master Dashboard CSS loading and styling issues
Major fixes implemented to resolve CSS issues on the master dashboard:
1. **Missing Header/Footer Calls - FIXED**
- Added get_header() call to master dashboard template
- Added get_footer() call to master dashboard template
- This fixes CSS files not loading because wp_enqueue_scripts wasn't triggered
2. **Missing CSS Styles - FIXED**
- Added 200+ lines of master dashboard specific CSS styles
- Included styles for .dashboard-section, .section-title, .events-filters
- Added styles for .trainers-table, .events-table, .pagination-container
- Added responsive design breakpoints for mobile/tablet
3. **CSS Variable References - FIXED**
- Updated all CSS variables to match harmonized framework
- Changed --hvac-spacing-lg to --hvac-spacing-6
- Changed --hvac-border-radius to --hvac-radius-md
- Changed --hvac-text to --hvac-theme-text
4. **AJAX Handler - FIXED**
- Moved inline AJAX handling to proper WordPress hooks
- Added wp_ajax_hvac_master_dashboard_events action
- Added proper nonce verification and permission checks
- Removed inline AJAX code from template
5. **Template Structure - FIXED**
- Fixed missing </main> closing tag
- Ensured proper HTML structure with header/footer integration
- Added proper WordPress template loading pattern
Technical improvements:
- Master dashboard now loads all CSS files correctly
- Proper WordPress template structure implemented
- AJAX functionality follows WordPress standards
- Responsive design for all screen sizes
- Full compatibility with Astra theme CSS variables
All master dashboard styling issues are now resolved.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>