🚨 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>
47 lines
No EOL
1.8 KiB
PHP
47 lines
No EOL
1.8 KiB
PHP
<?php
|
|
/**
|
|
* Google Sheets Configuration Template
|
|
*
|
|
* Copy this file to google-sheets-config.php and fill in your credentials
|
|
* DO NOT commit the actual config file to version control
|
|
*/
|
|
|
|
if (!defined('ABSPATH')) {
|
|
exit;
|
|
}
|
|
|
|
// Google OAuth 2.0 Credentials
|
|
// Get these from: https://console.cloud.google.com/apis/credentials
|
|
define('GOOGLE_SHEETS_CLIENT_ID', 'your-client-id-here.apps.googleusercontent.com');
|
|
define('GOOGLE_SHEETS_CLIENT_SECRET', 'your-client-secret-here');
|
|
|
|
// OAuth Redirect URI (must match what's configured in Google Console)
|
|
// For development: http://localhost:8080/callback
|
|
// For production: https://your-domain.com/oauth/google/callback
|
|
// Auto-detect based on current site URL
|
|
$site_url = function_exists('get_site_url') ? get_site_url() : 'https://upskillhvac.com';
|
|
define('GOOGLE_SHEETS_REDIRECT_URI', rtrim($site_url, '/') . '/oauth/google/callback');
|
|
|
|
// Refresh Token (obtained after initial OAuth flow)
|
|
// Leave empty initially - will be set after first authorization
|
|
define('GOOGLE_SHEETS_REFRESH_TOKEN', '');
|
|
|
|
// Google Drive Folder ID (optional)
|
|
// Create a folder in Google Drive and copy the ID from the URL
|
|
// Example: https://drive.google.com/drive/folders/1ABCDefGHIjkLMnoPQRstUVwxyz
|
|
// The folder ID would be: 1ABCDefGHIjkLMnoPQRstUVwxyz
|
|
define('GOOGLE_SHEETS_FOLDER_ID', '');
|
|
|
|
/*
|
|
* Setup Instructions:
|
|
*
|
|
* 1. Go to https://console.cloud.google.com/
|
|
* 2. Create a new project or select existing one
|
|
* 3. Enable Google Sheets API and Google Drive API
|
|
* 4. Go to Credentials > Create Credentials > OAuth 2.0 Client IDs
|
|
* 5. Set up the consent screen if required
|
|
* 6. Add authorized redirect URIs
|
|
* 7. Copy the Client ID and Client Secret above
|
|
* 8. Save this file as google-sheets-config.php
|
|
* 9. Use the Google Sheets admin page to authorize access
|
|
*/ |