get_navigation_bar(); // If shortcode wasn't processed (plugin might be inactive), show helpful message if (strpos($processed_content, '[tribe_community_events') !== false) { if (class_exists('HVAC_Logger')) { HVAC_Logger::warning('tribe_community_events shortcode not processed - plugin may be inactive', 'ManageEvent'); } $error_content = '

Event Submission Form Unavailable

The event submission form is currently unavailable. Please ensure:

Return to Dashboard

'; return $navigation_html . $error_content; } // Wrap the form content with navigation and styling $final_content = $navigation_html . '
' . $processed_content . '
'; return $final_content; } /** * Generate the navigation bar HTML */ private function get_navigation_bar() { // Check if Help System is available for tooltips $help_available = class_exists('HVAC_Help_System'); $nav_html = '

Create Event

'; // Dashboard link if ($help_available) { $nav_html .= HVAC_Help_System::add_tooltip( 'Dashboard', 'Return to your main dashboard to view stats and manage events' ); } else { $nav_html .= 'Dashboard'; } // Generate Certificates link if ($help_available) { $nav_html .= HVAC_Help_System::add_tooltip( 'Generate Certificates', 'Create professional certificates for attendees who completed your training' ); } else { $nav_html .= 'Generate Certificates'; } // Certificate Reports link if ($help_available) { $nav_html .= HVAC_Help_System::add_tooltip( 'Certificate Reports', 'View and manage all certificates you\'ve issued to attendees' ); } else { $nav_html .= 'Certificate Reports'; } // Trainer Profile link if ($help_available) { $nav_html .= HVAC_Help_System::add_tooltip( 'View Profile', 'Update your professional credentials, business information, and training specialties' ); } else { $nav_html .= 'View Profile'; } // Help and Logout links $nav_html .= ' Help Logout
'; return $nav_html; } /** * Check authentication for manage-event page */ public function check_manage_event_auth() { // Check if we're on the manage-event page if (is_page('manage-event') && !is_user_logged_in()) { // Redirect to login page wp_redirect(home_url('/community-login/?redirect_to=' . urlencode($_SERVER['REQUEST_URI']))); exit; } } }