AbstractAutomationEmbed.php
5 months ago
Automation.php
2 years ago
AutomationAnalytics.php
2 months ago
AutomationEditor.php
2 months ago
AutomationFlowEmbed.php
6 months ago
AutomationPreviewEmbed.php
2 months ago
AutomationTemplates.php
2 years ago
CustomFields.php
2 months ago
DynamicSegments.php
2 months ago
ExperimentalFeatures.php
3 years ago
FormEditor.php
1 week ago
Forms.php
2 months ago
Help.php
2 months ago
Homepage.php
2 years ago
Landingpage.php
2 years ago
Logs.php
1 month ago
NewsletterEditor.php
2 months ago
Newsletters.php
2 months ago
Settings.php
5 months ago
StaticSegments.php
2 months ago
Subscribers.php
1 week ago
SubscribersExport.php
3 years ago
SubscribersImport.php
2 months ago
Tags.php
2 months ago
Upgrade.php
1 year ago
WelcomeWizard.php
2 months ago
WooCommerceSetup.php
2 months ago
index.php
3 years ago
AutomationPreviewEmbed.php
30 lines
| 1 | <?php declare(strict_types = 1); |
| 2 | |
| 3 | namespace MailPoet\AdminPages\Pages; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | class AutomationPreviewEmbed extends AbstractAutomationEmbed { |
| 9 | public function render(): void { |
| 10 | $this->renderEmbed(); |
| 11 | } |
| 12 | |
| 13 | protected function setupDependencies(): void { |
| 14 | $this->assetsController->setupAutomationPreviewEmbedDependencies(); |
| 15 | } |
| 16 | |
| 17 | protected function getTemplateName(): string { |
| 18 | return 'automation/preview-embed.html'; |
| 19 | } |
| 20 | |
| 21 | protected function getCustomData(): array { |
| 22 | // phpcs:ignore WordPress.Security.NonceVerification.Recommended |
| 23 | $templateSlug = is_string($_GET['template'] ?? null) ? sanitize_key(wp_unslash($_GET['template'])) : ''; |
| 24 | |
| 25 | return [ |
| 26 | 'template_slug' => $templateSlug, |
| 27 | ]; |
| 28 | } |
| 29 | } |
| 30 |