| 1 |
<?php |
| 2 |
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals. |
| 3 |
defined('ABSPATH') || die('Restricted Access'); |
| 4 |
?> |
| 5 |
<div id="acym__campaign__edit_email" <?php echo !empty($data['menuClass']) ? 'class="'.esc_attr($data['menuClass']).'"' : ''; ?> > |
| 6 |
<input type="hidden" value="<?php echo esc_attr($data['campaignID']); ?>" name="campaignId" id="acym__campaign__recipients__form__campaign"> |
| 7 |
<input type="hidden" id="acym__mail__edit__editor__social__icons" value="<?php echo empty($data['social_icons']) ? '{}' : esc_attr($data['social_icons']); ?>"> |
| 8 |
|
| 9 |
<!-- Needed for the "Save as template" action --> |
| 10 |
<input type="hidden" class="acym__wysid__hidden__save__thumbnail" id="editor_thumbnail" name="editor_thumbnail" value="" /> |
| 11 |
|
| 12 |
<?php |
| 13 |
if (!empty($data['needDisplayStylesheet'])) { |
| 14 |
echo '<input type="hidden" name="editor_stylesheet" value="'.esc_attr($data['needDisplayStylesheet']).'">'; |
| 15 |
} |
| 16 |
?> |
| 17 |
<input type="hidden" name="editor_headers" value="<?php echo esc_attr($data['mailInformation']->headers ?? ''); ?>"> |
| 18 |
<input type="hidden" name="from_email" value="<?php echo esc_attr($data['mailInformation']->from_email ?? ''); ?>"> |
| 19 |
<input type="hidden" name="from_name" value="<?php echo esc_attr($data['mailInformation']->from_name ?? ''); ?>"> |
| 20 |
<input type="hidden" name="reply_to_email" value="<?php echo esc_attr($data['mailInformation']->reply_to_email ?? ''); ?>"> |
| 21 |
<input type="hidden" name="reply_to_name" value="<?php echo esc_attr($data['mailInformation']->reply_to_name ?? ''); ?>"> |
| 22 |
<div class="grid-x"> |
| 23 |
<div class="cell medium-auto"></div> |
| 24 |
<div class="cell <?php echo esc_attr($data['containerClass']); ?> grid-x grid-margin-x acym__content acym__editor__area margin-y margin-bottom-1"> |
| 25 |
<?php |
| 26 |
$this->addSegmentStep($data['displaySegmentTab']); |
| 27 |
$workflow = $data['workflowHelper']; |
| 28 |
if (empty($data['campaignID'])) { |
| 29 |
$workflow->disabledAfter = 'editEmail'; |
| 30 |
} |
| 31 |
$abTestParameter = '&abtest='.acym_getVar('string', 'abtest', 0); |
| 32 |
$workflow->display($this->steps, $this->step, true, false, $abTestParameter, 'campaignId'); |
| 33 |
include acym_getView('campaigns', 'edit_email_info'); |
| 34 |
include acym_getPartial('editor', 'attachments'); |
| 35 |
include acym_getView('campaigns', 'edit_email_actions', true); |
| 36 |
?> |
| 37 |
</div> |
| 38 |
<div class="cell medium-auto"></div> |
| 39 |
</div> |
| 40 |
<input type="hidden" name="campaign_type" value="<?php echo esc_attr($data['campaign_type']); ?>"> |
| 41 |
<?php acym_formOptions(true, 'edit', 'editEmail'); ?> |
| 42 |
</div> |
| 43 |
<?php |
| 44 |
$data['editor']->display(); |
| 45 |
|