- Create HVAC_Communication_Templates class for managing email templates - Add template post type with categories and placeholders - Implement AJAX handlers for CRUD operations - Create responsive template management interface with modal forms - Add template manager widget for integration with email forms - Include placeholder system for dynamic content (attendee_name, event_title, etc.) - Add default templates for common scenarios (reminders, welcome, certificates) - Create template management page with category filtering - Add comprehensive E2E tests for template functionality - Integrate widget into email attendees page - Support template save/load/edit/delete operations - Include CSS styling with responsive design and accessibility features - Add JavaScript for interactive functionality and form handling 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
34 lines
No EOL
1.3 KiB
Bash
Executable file
34 lines
No EOL
1.3 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# Create Communication Templates page on staging server
|
|
|
|
echo "Creating Communication Templates page on staging server..."
|
|
|
|
# Check if the page already exists
|
|
PAGE_EXISTS=$(ssh roodev@146.190.76.204 "cd /home/974670.cloudwaysapps.com/uberrxmprk/public_html && wp post list --post_type=page --title='Communication Templates' --field=ID")
|
|
|
|
if [ -n "$PAGE_EXISTS" ]; then
|
|
echo "Communication Templates page already exists with ID: $PAGE_EXISTS"
|
|
exit 0
|
|
fi
|
|
|
|
# Create the page with the shortcode
|
|
PAGE_ID=$(ssh roodev@146.190.76.204 "cd /home/974670.cloudwaysapps.com/uberrxmprk/public_html && wp post create --post_type=page --post_title='Communication Templates' --post_status=publish --post_content='[hvac_communication_templates]' --porcelain")
|
|
|
|
if [ $? -eq 0 ] && [ -n "$PAGE_ID" ]; then
|
|
echo "✓ Communication Templates page created successfully"
|
|
else
|
|
echo "✗ Failed to create Communication Templates page"
|
|
exit 1
|
|
fi
|
|
|
|
# Verify the page was created
|
|
VERIFY_ID=$(ssh roodev@146.190.76.204 "cd /home/974670.cloudwaysapps.com/uberrxmprk/public_html && wp post list --post_type=page --name=communication-templates --field=ID")
|
|
|
|
if [ -n "$VERIFY_ID" ]; then
|
|
echo "✓ Page created with ID: $PAGE_ID"
|
|
echo "✓ URL: https://upskill-staging.measurequick.com/communication-templates/"
|
|
else
|
|
echo "✗ Failed to verify page creation"
|
|
exit 1
|
|
fi |