PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.1
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.1
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
← All changes | front/FrontViews/Frontmails/tmpl/edit.php +0 -109 10.10.2 → 11.1.1 View file →
@@ -1,109 +1,0 @@
1 -<div id="acym__editor__content" class="grid-x acym__content acym__editor__area <?php echo !empty($data['menuClass']) ? acym_escape($data['menuClass']) : ''; ?>">
2 - <div class="cell grid-x grid-margin-x align-right margin-bottom-1">
3 - <input type="hidden" id="acym__mail__edit__editor" value="<?php echo acym_escape($data['mail']->editor); ?>">
4 - <input type="hidden"
5 - class="acym__wysid__hidden__save__thumbnail"
6 - id="editor_thumbnail"
7 - name="editor_thumbnail"
8 - value="<?php echo acym_escape($data['mail']->thumbnail); ?>" />
9 - <input type="hidden" id="acym__mail__edit__editor__social__icons" value="<?php echo empty($data['social_icons']) ? '{}' : acym_escape($data['social_icons']); ?>">
10 - <input type="hidden" id="acym__mail__type" name="mail[type]" value="<?php echo empty($data['mail']->type) ? $data['mailClass']::TYPE_STANDARD : $data['mail']->type; ?>">
11 - <input type="hidden" name="list_ids" value="<?php echo empty($data['list_id'][0]) ? 0 : $data['list_id'][0]; ?>">
12 - <?php
13 - include acym_getView('mails', 'edit_actions', true);
14 - ?>
15 -
16 - </div>
17 - <div class="cell grid-x grid-padding-x acym__editor__content__options">
18 - <?php
19 - echo !empty($data['return']) ? '<input type="hidden" name="return" value="'.acym_escape($data['return']).'"/>' : '';
20 - echo !empty($data['fromId']) ? '<input type="hidden" name="fromId" value="'.acym_escape($data['fromId']).'"/>' : '';
21 - ?>
22 - <div class="cell medium-auto">
23 - <label>
24 - <?php echo acym_translation('ACYM_NAME'); ?>
25 - <input name="mail[name]" type="text" class="acy_required_field" value="<?php echo acym_escape($data['mail']->name); ?>" required>
26 - </label>
27 - </div>
28 - <div class="cell medium-auto">
29 - <label>
30 - <?php echo acym_translation('ACYM_EMAIL_SUBJECT'); ?>
31 - <input name="mail[subject]" type="text" value="<?php echo acym_escape($data['mail']->subject); ?>" <?php echo in_array(
32 - $data['mail']->type,
33 - [$data['mailClass']::TYPE_WELCOME, $data['mailClass']::TYPE_UNSUBSCRIBE, $data['mailClass']::TYPE_AUTOMATION]
34 - ) ? 'required' : ''; ?>>
35 - </label>
36 - </div>
37 - <?php if (!empty($data['lists'])) { ?>
38 - <div class="cell medium-auto">
39 - <label>
40 - <?php
41 - echo acym_translation('ACYM_SELECT_ONE_OR_MORE_LIST');
42 - echo acym_selectMultiple($data['lists'], 'list_ids', empty($data['list_id']) ? [] : $data['list_id'], ['class' => 'acym__select']);
43 - ?>
44 - </label>
45 - </div>
46 - <?php } ?>
47 - <div class="cell grid-x acym__toggle__arrow">
48 - <p class="cell medium-shrink acym__toggle__arrow__trigger"><?php echo acym_translation('ACYM_ADVANCED_OPTIONS'); ?> <i class="acymicon-keyboard-arrow-down"></i></p>
49 - <div class="cell acym__toggle__arrow__contain">
50 - <div class="grid-x grid-padding-x">
51 - <?php if (empty($data['multilingual']) && empty($data['abtest'])) { ?>
52 - <div class="cell grid-x">
53 - <div class="cell medium-shrink">
54 - <label for="acym__mail__edit__preheader">
55 - <?php
56 - echo acym_translation('ACYM_EMAIL_PREHEADER');
57 - echo acym_info(['textShownInTooltip' => 'ACYM_EMAIL_PREHEADER_DESC']);
58 - ?>
59 - </label>
60 - </div>
61 - <input id="acym__mail__edit__preheader" name="mail[preheader]" type="text" maxlength="255" value="<?php echo acym_escape($data['mail']->preheader); ?>">
62 - </div>
63 - <?php } ?>
64 - <div class="cell grid-x medium-6" id="acym__mail__edit__html__stylesheet__container">
65 - <div class="cell medium-shrink">
66 - <label for="acym__mail__edit__html__stylesheet">
67 - <?php
68 - echo acym_tooltip(
69 - [
70 - 'hoveredText' => acym_translation('ACYM_CUSTOM_ADD_STYLESHEET'),
71 - 'textShownInTooltip' => acym_translation('ACYM_STYLESHEET_HTML_DESC'),
72 - ]
73 - );
74 - $stylesheet = empty($data['mail']->stylesheet) ? '' : $data['mail']->stylesheet;
75 - ?>
76 - </label>
77 - </div>
78 - <textarea
79 - name="editor_stylesheet"
80 - id="acym__mail__edit__html__stylesheet"
81 - cols="30"
82 - rows="15"
83 - type="text"><?php echo $stylesheet; ?></textarea>
84 - </div>
85 - <div class="cell medium-auto">
86 - <label for="acym__mail__edit__custom__header"><?php echo acym_translation('ACYM_CUSTOM_HEADERS'); ?></label>
87 - <textarea id="acym__mail__edit__custom__header" name="editor_headers" cols="30" rows="15" type="text">
88 - <?php echo acym_escape($data['mail']->headers); ?>
89 - </textarea>
90 - </div>
91 - </div>
92 - </div>
93 - </div>
94 - </div>
95 -</div>
96 -<input type="hidden" name="mail[id]" value="<?php echo acym_escape($data['mail']->id); ?>" />
97 -<input type="hidden" name="id" value="<?php echo acym_escape($data['mail']->id); ?>" />
98 -<input type="hidden" name="thumbnail" value="<?php echo empty($data['mail']->thumbnail) ? '' : acym_escape($data['mail']->thumbnail); ?>" />
99 -<?php
100 -acym_formOptions();
101 -
102 -$data['editor']->content = $data['mail']->body;
103 -$data['editor']->autoSave = !empty($data['mail']->autosave) ? $data['mail']->autosave : '';
104 -if (!empty($data['mail']->editor)) $data['editor']->editor = $data['mail']->editor;
105 -if (!empty($data['mail']->id)) $data['editor']->mailId = $data['mail']->id;
106 -if (!empty($data['mail']->type)) $data['editor']->automation = $data['isAutomationAdmin'];
107 -if (!empty($data['mail']->settings)) $data['editor']->settings = $data['mail']->settings;
108 -if (!empty($data['mail']->stylesheet)) $data['editor']->stylesheet = $data['mail']->stylesheet;
109 -echo $data['editor']->display();