PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / trunk
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress vtrunk
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
acymailing / back / Views / Campaigns / tmpl / edit_email.php

edit_email.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress trunk, at back/Views/Campaigns/tmpl/edit_email.php

45 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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