diff --git a/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-community-events.php b/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-community-events.php index fe27ac05..0a8881d3 100644 --- a/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-community-events.php +++ b/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-community-events.php @@ -58,6 +58,7 @@ class HVAC_Community_Events { 'class-event-form-handler.php', // Add our form handler 'class-event-author-fixer.php', // Fix event author assignment 'class-hvac-dashboard.php', // New dashboard handler + 'class-hvac-manage-event.php', // Manage event page handler 'certificates/class-certificate-installer.php', // Certificate database installer 'certificates/class-certificate-manager.php', // Certificate management 'certificates/class-certificate-generator.php', // Certificate generation diff --git a/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-manage-event.php b/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-manage-event.php new file mode 100644 index 00000000..4a4fb5d3 --- /dev/null +++ b/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-manage-event.php @@ -0,0 +1,73 @@ + +

The event submission form is currently unavailable. Please ensure:

+ +

Return to Dashboard

+ '; + } + + return $content; + } + + /** + * 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; + } + } +} + +// Initialize the manage event handler +new HVAC_Manage_Event(); \ No newline at end of file