upskill-event-manager/scripts/copy-templates-to-theme.sh
bengizmo fda7b6fa59 feat: Add missing page templates for all HVAC plugin pages
- Created 14 new page template files for trainer/master trainer pages
- Added page-templates.css for consistent layout across all HVAC pages
- Templates use appropriate shortcodes for each page functionality
- Ensures proper content display without sidebars
- Fixes blank page issues on staging

Templates added:
- Trainer profile, event management, certificates
- Email attendees, communication templates/schedules
- Master dashboard, Google Sheets, certificate diagnostics
- Account status pages (pending, disabled, registration pending)

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-28 20:39:14 -03:00

25 lines
No EOL
727 B
Bash
Executable file

#!/bin/bash
echo "=== Copying Templates to Theme Directory ==="
ssh roodev@146.190.76.204 << 'ENDSSH'
cd /home/974670.cloudwaysapps.com/uberrxmprk/public_html
# Create hvac-community-events directory in theme
echo "Creating template override directory in theme..."
mkdir -p wp-content/themes/astra/hvac-community-events
# Copy all page templates
echo "Copying page templates..."
cp wp-content/plugins/hvac-community-events/templates/page-*.php wp-content/themes/astra/hvac-community-events/
# List copied files
echo -e "\nCopied templates:"
ls -la wp-content/themes/astra/hvac-community-events/page-*.php
# Clear cache
wp cache flush
wp breeze purge --cache=all
echo -e "\n✅ Templates copied to theme directory"
ENDSSH