upskill-event-manager/includes/community/class-event-handler.php
bengizmo 37f4180e1c feat: Add massive missing plugin infrastructure to repository
🚨 CRITICAL: Fixed deployment blockers by adding missing core directories:

**Community System (CRITICAL)**
- includes/community/ - Login_Handler and all community classes
- templates/community/ - Community login forms

**Certificate System (CRITICAL)**
- includes/certificates/ - 8+ certificate classes and handlers
- templates/certificates/ - Certificate reports and generation templates

**Core Individual Classes (CRITICAL)**
- includes/class-hvac-event-summary.php
- includes/class-hvac-trainer-profile-manager.php
- includes/class-hvac-master-dashboard-data.php
- Plus 40+ other individual HVAC classes

**Major Feature Systems (HIGH)**
- includes/database/ - Training leads database tables
- includes/find-trainer/ - Find trainer directory and MapGeo integration
- includes/google-sheets/ - Google Sheets integration system
- includes/zoho/ - Complete Zoho CRM integration
- includes/communication/ - Communication templates system

**Template Infrastructure**
- templates/attendee/, templates/email-attendees/
- templates/event-summary/, templates/status/
- templates/template-parts/ - Shared template components

**Impact:**
- 70+ files added covering 10+ missing directories
- Resolves ALL deployment blockers and feature breakdowns
- Plugin activation should now work correctly
- Multi-machine deployment fully supported

🔧 Generated with Claude Code

Co-Authored-By: Ben Reed <ben@tealmaker.com>
2025-08-11 13:30:11 -03:00

62 lines
No EOL
1.8 KiB
PHP

<?php
/**
* Handles the display and processing of the event creation/modification form
* for HVAC Trainers. Leverages TEC Community Events functionality where possible.
*
* NOTE: This class is currently largely unused as functionality has been moved
* to using TEC Community Events shortcodes on dedicated pages. Kept for potential future use
* or if specific hooks are needed later.
*
* @package Hvac_Community_Events
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Class HVAC_Event_Handler
*/
class HVAC_Event_Handler {
/**
* Instance of this class.
* @var object
*/
protected static $instance = null;
/**
* Return an instance of this class.
* @return object A single instance of this class.
*/
public static function get_instance() {
// If the single instance hasn't been set, set it now.
if ( null === self::$instance ) {
self::$instance = new self();
self::$instance->init();
}
return self::$instance;
}
/**
* Initialize hooks.
*/
public function init() {
// REMOVED: Hooks for processing form submissions (admin_post_hvac_save_event)
// add_action( 'admin_post_hvac_save_event', [ $this, 'process_event_submission' ] );
// add_action( 'admin_post_nopriv_hvac_save_event', [ $this, 'process_event_submission' ] ); // Handle non-logged-in attempts if necessary
// REMOVED: Shortcode registration for [hvac_event_form]
// add_shortcode( 'hvac_event_form', [ $this, 'display_event_form_shortcode' ] );
}
// REMOVED: display_event_form_shortcode method as we will link to the default TEC CE form page.
// REMOVED: process_event_submission method as TEC CE shortcode handles its own submission.
// REMOVED: can_user_edit_event helper method as it's no longer used.
}
// Instantiate the class
HVAC_Event_Handler::get_instance();