🚨 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>
59 lines
No EOL
1.3 KiB
PHP
59 lines
No EOL
1.3 KiB
PHP
<?php
|
|
/**
|
|
* Certificate Fix Handler
|
|
*
|
|
* Handles the diagnostics and fixing of certificate-related issues.
|
|
*
|
|
* @package HVAC_Community_Events
|
|
* @subpackage Certificates
|
|
*/
|
|
|
|
// Exit if accessed directly
|
|
if (!defined('ABSPATH')) {
|
|
exit;
|
|
}
|
|
|
|
/**
|
|
* Certificate Fix Handler class.
|
|
*/
|
|
class HVAC_Certificate_Fix {
|
|
/**
|
|
* The single instance of the class.
|
|
*/
|
|
private static $instance = null;
|
|
|
|
/**
|
|
* Main instance.
|
|
*/
|
|
public static function instance() {
|
|
if (is_null(self::$instance)) {
|
|
self::$instance = new self();
|
|
}
|
|
return self::$instance;
|
|
}
|
|
|
|
/**
|
|
* Constructor.
|
|
*/
|
|
public function __construct() {
|
|
add_shortcode('hvac_certificate_fix', array($this, 'render_certificate_fix'));
|
|
}
|
|
|
|
/**
|
|
* Render certificate fix page content.
|
|
*/
|
|
public function render_certificate_fix() {
|
|
// Only administrators can access this page
|
|
if (!current_user_can('manage_options')) {
|
|
return '<div class="hvac-error">You do not have permission to access this page.</div>';
|
|
}
|
|
|
|
// Include the certificate fix template
|
|
ob_start();
|
|
include HVAC_PLUGIN_DIR . 'templates/certificates/certificate-fix.php';
|
|
return ob_get_clean();
|
|
}
|
|
}
|
|
|
|
// Initialize the class
|
|
HVAC_Certificate_Fix::instance(); |