diff --git a/includes/class-hvac-page-manager.php b/includes/class-hvac-page-manager.php index 9932c634..623750b7 100644 --- a/includes/class-hvac-page-manager.php +++ b/includes/class-hvac-page-manager.php @@ -384,6 +384,27 @@ class HVAC_Page_Manager { 'parent' => 'master-trainer', 'capability' => 'hvac_master_trainer' ], + 'master-trainer/trainers' => [ + 'title' => 'All Trainers', + 'template' => 'page-master-trainers.php', + 'public' => false, + 'parent' => 'master-trainer', + 'capability' => 'hvac_master_trainer' + ], + 'master-trainer/events' => [ + 'title' => 'Events Management', + 'template' => 'page-master-events.php', + 'public' => false, + 'parent' => 'master-trainer', + 'capability' => 'hvac_master_trainer' + ], + 'master-trainer/communication-templates' => [ + 'title' => 'Communication Templates', + 'template' => 'page-master-communication-templates.php', + 'public' => false, + 'parent' => 'master-trainer', + 'capability' => 'hvac_master_trainer' + ], 'trainer/resources' => [ 'title' => 'Resources', 'template' => 'page-trainer-resources.php', diff --git a/templates/page-master-events.php b/templates/page-master-events.php new file mode 100644 index 00000000..a3ab86d7 --- /dev/null +++ b/templates/page-master-events.php @@ -0,0 +1,60 @@ +roles) && !current_user_can('manage_options')) { + ?> +
+
+

Access Denied

+

You do not have permission to access this page.

+

If you believe this is an error, please contact an administrator.

+ Return to Home +
+
+ render_master_menu(); +} + +// Render breadcrumbs +if (class_exists('HVAC_Breadcrumbs')) { + HVAC_Breadcrumbs::render(); +} + +echo '
'; +echo '
'; + +// Render the master events content +echo '

Events Management

'; +echo '
'; + +// For now, render the shortcode - this can be enhanced later with direct content +if (function_exists('hvac_render_master_events')) { + echo hvac_render_master_events(); +} else { + echo do_shortcode('[hvac_master_events]'); +} + +echo '
'; // .hvac-master-events-content +echo '
'; // .container +echo '
'; // .hvac-page-wrapper + +get_footer(); \ No newline at end of file diff --git a/templates/page-master-trainers.php b/templates/page-master-trainers.php new file mode 100644 index 00000000..20b04a46 --- /dev/null +++ b/templates/page-master-trainers.php @@ -0,0 +1,60 @@ +roles) && !current_user_can('manage_options')) { + ?> +
+
+

Access Denied

+

You do not have permission to access this page.

+

If you believe this is an error, please contact an administrator.

+ Return to Home +
+
+ render_master_menu(); +} + +// Render breadcrumbs +if (class_exists('HVAC_Breadcrumbs')) { + HVAC_Breadcrumbs::render(); +} + +echo '
'; +echo '
'; + +// Render the master trainers content +echo '

All Trainers

'; +echo '
'; + +// For now, render the shortcode - this can be enhanced later with direct content +if (function_exists('hvac_render_master_trainers')) { + echo hvac_render_master_trainers(); +} else { + echo do_shortcode('[hvac_master_trainers]'); +} + +echo '
'; // .hvac-master-trainers-content +echo '
'; // .container +echo '
'; // .hvac-page-wrapper + +get_footer(); \ No newline at end of file