- Implement singleton pattern for HVAC_Enhanced_Settings to prevent duplicate initialization - Fix jQuery selector error by checking for valid hash selectors before using $(href) - Add default email templates with professional copy for trainer notifications - Update plugin version to 1.0.1 for cache busting - Remove duplicate Enhanced Settings initialization from HVAC_Community_Events - Add force cache refresh suffix to admin scripts This resolves the duplicate content issue on email templates page and fixes JavaScript errors in the admin interface. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
45 lines
No EOL
1.4 KiB
Bash
Executable file
45 lines
No EOL
1.4 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
echo "=== Testing CSS Loading on Staging ==="
|
|
echo ""
|
|
|
|
# Test master dashboard page
|
|
echo "1. Testing Master Dashboard Page CSS..."
|
|
response=$(curl -s https://upskill-staging.measurequick.com/master-trainer/dashboard/)
|
|
if echo "$response" | grep -q "hvac-common-style-css"; then
|
|
echo "✅ hvac-common-style CSS is loading"
|
|
else
|
|
echo "❌ hvac-common-style CSS NOT loading"
|
|
fi
|
|
if echo "$response" | grep -q "hvac-harmonized-framework-css"; then
|
|
echo "✅ hvac-harmonized-framework CSS is loading"
|
|
else
|
|
echo "❌ hvac-harmonized-framework CSS NOT loading"
|
|
fi
|
|
if echo "$response" | grep -q "hvac-community-events-css"; then
|
|
echo "✅ hvac-community-events CSS is loading"
|
|
else
|
|
echo "❌ hvac-community-events CSS NOT loading"
|
|
fi
|
|
|
|
echo ""
|
|
echo "2. Testing Trainer Dashboard CSS..."
|
|
response=$(curl -s https://upskill-staging.measurequick.com/trainer/dashboard/)
|
|
if echo "$response" | grep -q "hvac-common-style-css"; then
|
|
echo "✅ hvac-common-style CSS is loading"
|
|
else
|
|
echo "❌ hvac-common-style CSS NOT loading"
|
|
fi
|
|
if echo "$response" | grep -q "hvac-harmonized-framework-css"; then
|
|
echo "✅ hvac-harmonized-framework CSS is loading"
|
|
else
|
|
echo "❌ hvac-harmonized-framework CSS NOT loading"
|
|
fi
|
|
if echo "$response" | grep -q "hvac-community-events-css"; then
|
|
echo "✅ hvac-community-events CSS is loading"
|
|
else
|
|
echo "❌ hvac-community-events CSS NOT loading"
|
|
fi
|
|
|
|
echo ""
|
|
echo "=== CSS Test Complete ===" |