analytics.html
3 years ago
editor.html
2 years ago
flow-embed.html
5 months ago
index.php
3 years ago
preview-embed.html
6 months ago
templates.html
2 years ago
flow-embed.html
62 lines
| 1 | <!DOCTYPE html> |
| 2 | <html lang="<%= locale %>"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | <title>Automation Flow</title> |
| 7 | <style> |
| 8 | html, body { |
| 9 | margin: 0; |
| 10 | padding: 0; |
| 11 | background: #fff; |
| 12 | font-size: 13px; |
| 13 | } |
| 14 | #mailpoet_automation_flow_embed { |
| 15 | background: #fff; |
| 16 | min-height: 100vh; |
| 17 | } |
| 18 | .flow-embed-error { |
| 19 | padding: 20px; |
| 20 | text-align: center; |
| 21 | color: #cc1818; |
| 22 | } |
| 23 | /* Disable clickable links in embed mode */ |
| 24 | #mailpoet_automation_flow_embed a { |
| 25 | pointer-events: none; |
| 26 | cursor: default; |
| 27 | text-decoration: none; |
| 28 | color: inherit; |
| 29 | } |
| 30 | /* Hide step more menu in embed mode */ |
| 31 | .mailpoet-automation-step-more-menu { |
| 32 | display: none; |
| 33 | } |
| 34 | </style> |
| 35 | <script type="text/javascript"> |
| 36 | // Global config needed by admin bundle |
| 37 | var mailpoet_tracking_config = <%= json_encode(tracking_config) %>; |
| 38 | // Premium-related variables needed for step type registration |
| 39 | var mailpoet_has_valid_premium_key = <%= json_encode(has_valid_premium_key) %>; |
| 40 | var mailpoet_subscribers_limit_reached = <%= json_encode(subscribers_limit_reached) %>; |
| 41 | var mailpoet_premium_active = <%= json_encode(premium_active) %>; |
| 42 | var mailpoet_capabilities = <%= json_encode(capabilities) %>; |
| 43 | // WooCommerce-related variables needed for WooCommerce step types |
| 44 | var mailpoet_woocommerce_active = <%= json_encode(woocommerce_active) %>; |
| 45 | var mailpoet_woocommerce_subscriptions_active = <%= json_encode(woocommerce_subscriptions_active) %>; |
| 46 | var mailpoet_woocommerce_bookings_active = <%= json_encode(woocommerce_bookings_active) %>; |
| 47 | // Flow embed-specific variables |
| 48 | var mailpoet_automation_id = <%= json_encode(automation_id) %>; |
| 49 | var mailpoet_automation_api = <%= json_encode(api) %>; |
| 50 | var mailpoet_automation_registry = <%= json_encode(registry) %>; |
| 51 | var mailpoet_automation_context = <%= json_encode(context) %>; |
| 52 | var mailpoet_automation = <%= json_encode(automation) %>; |
| 53 | var mailpoet_woocommerce_store_config = <%= json_encode(woocommerce_store_config) %>; |
| 54 | </script> |
| 55 | <%= head_content | raw %> |
| 56 | </head> |
| 57 | <body> |
| 58 | <div id="mailpoet_automation_flow_embed"></div> |
| 59 | <%= footer_content | raw %> |
| 60 | </body> |
| 61 | </html> |
| 62 |