PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 10.0.1
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v10.0.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
acymailing / back / Views / Configuration / tmpl / mail.php

mail.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 10.0.1, at back/Views/Configuration/tmpl/mail.php

409 lines 17.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <input type="hidden" id="acym__config__mail__embed__image__blocked" value="<?php echo acym_escape($data['embedImage']); ?>">
2 <input type="hidden" id="acym__config__mail__embed__attachment__blocked" value="<?php echo acym_escape($data['embedAttachment']); ?>">
3 <div class="acym__content acym_area padding-vertical-1 padding-horizontal-2">
4 <div class="cell acym__config__mail-default">
5 <div class="acym__title acym__title__secondary"><?php echo acym_translation('ACYM_DEFAULT_SENDER'); ?></div>
6 <?php
7 if (!empty($data['translation_languages'])) {
8 echo acym_displayLanguageRadio(
9 $data['translation_languages'],
10 'config[sender_info_translation]',
11 $this->config->get('sender_info_translation', ''),
12 acym_translation('ACYM_LANGUAGE_SENDER_INFORMATION_DESC'),
13 '',
14 'configuration'
15 );
16 } ?>
17 <div class="grid-x grid-margin-x margin-y">
18 <div class="cell large-6 xlarge-4">
19 <label class="cell grid-x">
20 <span class="cell"><?php echo acym_translation('ACYM_FROM_NAME').acym_info('ACYM_FROM_DESC'); ?></span>
21 <input type="text"
22 name="config[from_name]"
23 placeholder="<?php echo acym_translation('ACYM_FROM_NAME_PLACEHOLDER'); ?>"
24 value="<?php echo acym_escape($this->config->get('from_name')); ?>" />
25 </label>
26 </div>
27 <div class="cell large-6 xlarge-4">
28 <label class="cell grid-x">
29 <span class="cell"><?php echo acym_translation('ACYM_FROM_EMAIL').acym_info('ACYM_FROM_DESC'); ?></span>
30 <input type="email"
31 name="config[from_email]"
32 placeholder="<?php echo acym_translation('ACYM_FROM_EMAIL_PLACEHOLDER'); ?>"
33 value="<?php echo acym_escape($this->config->get('from_email')); ?>" />
34 </label>
35 </div>
36 <?php if (!empty($data['button_copy_settings_from'])) echo $data['button_copy_settings_from']; ?>
37 <div class="cell margin-bottom-1 acym_vcenter">
38 <input type="hidden" id="from_as_replyto_value" name="config[from_as_replyto]" value="<?php echo acym_escape($this->config->get('from_as_replyto', 1)); ?>" />
39 <input id="from_as_replyto" data-toggle="acy_toggle_replyto" data-value="from_as_replyto_value" class="acym_toggle" type="checkbox" <?php
40 if ($this->config->get('from_as_replyto', 1) == 1) {
41 echo 'checked="checked"';
42 }
43 ?>/>
44 <label for="from_as_replyto">
45 <?php echo acym_translation('ACYM_FROM_AS_REPLYTO'); ?>
46 </label>
47 </div>
48
49 <div class="cell large-6 xlarge-4 acy_toggle_replyto">
50 <label class="cell grid-x">
51 <span class="cell"><?php echo acym_translation('ACYM_REPLYTO_NAME').acym_info('ACYM_REPLYTO_DESC'); ?></span>
52 <input type="text"
53 name="config[replyto_name]"
54 placeholder="<?php echo acym_translation('ACYM_REPLYTO_NAME_PLACEHOLDER'); ?>"
55 value="<?php echo acym_escape($this->config->get('replyto_name')); ?>" />
56 </label>
57 </div>
58 <div class="cell large-6 xlarge-4 acy_toggle_replyto">
59 <label class="cell grid-x">
60 <span class="cell"><?php echo acym_translation('ACYM_REPLYTO_EMAIL').acym_info('ACYM_REPLYTO_DESC'); ?></span>
61 <input type="email"
62 name="config[replyto_email]"
63 placeholder="<?php echo acym_translation('ACYM_REPLYTO_EMAIL_PLACEHOLDER'); ?>"
64 value="<?php echo acym_escape($this->config->get('replyto_email')); ?>" />
65 </label>
66 </div>
67
68 <div class="cell grid-x">
69 <div class="cell medium-6 large-4 xlarge-3 grid-x">
70 <?php echo acym_switch('config[add_names]', $this->config->get('add_names'), acym_translation('ACYM_ADD_NAMES').acym_info('ACYM_ADD_NAMES_DESC')); ?>
71 </div>
72 </div>
73
74 <div class="cell grid-x">
75 <label class="cell large-6 xlarge-4 grid-x">
76 <span class="cell"><?php echo acym_translation('ACYM_BOUNCE_EMAIL').acym_info('ACYM_BOUNCE_ADDRESS_DESC'); ?></span>
77 <input type="text"
78 name="config[bounce_email]"
79 placeholder="<?php echo acym_translation('ACYM_BOUNCE_EMAIL_PLACEHOLDER'); ?>"
80 value="<?php echo acym_escape($this->config->get('bounce_email')); ?>"
81 id="bounceAddress1" />
82 </label>
83 </div>
84 </div>
85 </div>
86
87 <div class="cell acym__configuration__mail-settings">
88 <div class="acym__title acym__title__secondary margin-top-3"><?php echo acym_translation('ACYM_CONFIGURATION_MAIL').acym_info('ACYM_INTRO_MAIL_SETTINGS'); ?></div>
89 <?php include acym_getPartial('configuration', 'sending_methods'); ?>
90 </div>
91 </div>
92
93 <div class="acym__content acym_area padding-vertical-1 padding-horizontal-2">
94 <div class="acym__title acym__title__secondary"><?php echo acym_translation('ACYM_EMAIL_EDITOR'); ?></div>
95 <div class="grid-x margin-y">
96 <div class="cell grid-x grid-margin-x">
97 <?php
98 echo acym_switch(
99 'config[save_thumbnail]',
100 $this->config->get('save_thumbnail', 1),
101 acym_translation('ACYM_SAVE_TEMPLATE_THUMBNAIL').acym_info('ACYM_SAVE_TEMPLATE_THUMBNAIL_DESC'),
102 [],
103 'xlarge-3 medium-5 small-9'
104 );
105 ?>
106 </div>
107 <?php if ($this->config->get('built_by_update', 0) == 1 || acym_level(ACYM_ESSENTIAL)) { ?>
108 <div class="cell grid-x grid-margin-x">
109 <?php
110 echo acym_switch(
111 'config[display_built_by]',
112 $this->config->get('display_built_by', 0),
113 acym_translation('ACYM_ADD_BUILT_BY_FOOTER'),
114 [],
115 'xlarge-3 medium-5 small-9'
116 );
117 ?>
118 </div>
119 <?php } ?>
120 <div class="cell grid-x grid-margin-x">
121 <?php
122 echo acym_switch(
123 'config[add_play_button_video]',
124 $this->config->get('add_play_button_video', 1),
125 acym_translation('ACYM_ADD_PLAY_BUTTON'),
126 [],
127 'xlarge-3 medium-5 small-9'
128 );
129 ?>
130 </div>
131 <div class="cell grid-x">
132 <label class="cell medium-6 grid-x">
133 <span class="cell medium-6">
134 <?php echo acym_translation('ACYM_UNSPLASH_ACCESS_KEY').acym_info('ACYM_UNSPLASH_ACCESS_KEY_DESC'); ?>
135 </span>
136 <?php
137 $unsplashKey = $this->config->get('unsplash_key');
138 if (strlen($unsplashKey) > 5) {
139 $unsplashKey = str_repeat('*', 10).substr($unsplashKey, -5);
140 }
141 ?>
142 <input type="text"
143 name="config[unsplash_key]"
144 value="<?php echo acym_escape($unsplashKey); ?>"
145 class="cell medium-auto" />
146 </label>
147 </div>
148 <div class="cell grid-x">
149 <label class="cell medium-6 grid-x">
150 <span class="cell medium-6">
151 <?php echo acym_translation('ACYM_TENOR_ACCESS_KEY').acym_info('ACYM_TENOR_ACCESS_KEY_DESC'); ?>
152 </span>
153 <?php
154 $tenorKey = $this->config->get('tenor_key');
155 if (strlen($tenorKey) > 5) {
156 $tenorKey = str_repeat('*', 10).substr($tenorKey, -5);
157 }
158 ?>
159 <input type="text"
160 name="config[tenor_key]"
161 value="<?php echo acym_escape($tenorKey); ?>"
162 class="cell medium-auto" />
163 </label>
164 </div>
165 </div>
166 </div>
167
168 <div class="acym__content acym_area grid-x grid-margin-y padding-horizontal-2 acym__configuration__advanced">
169 <div class="cell grid-x acym__configuration__showmore-head">
170 <div class="acym__title acym__title__secondary cell auto margin-bottom-0">
171 <?php echo acym_translation('ACYM_CONFIGURATION_ADVANCED'); ?>
172 </div>
173 <div class="cell shrink">
174 <?php echo acym_showMore('acym__configuration__mail__advanced__content'); ?>
175 </div>
176 </div>
177 <div id="acym__configuration__mail__advanced__content" style="display:none;">
178 <div class="grid-x grid-margin-x margin-y">
179 <div class="cell medium-6 grid-x">
180 <div class="cell large-6">
181 <label for="config_encoding"><?php echo acym_translation('ACYM_CONFIGURATION_ENCODING'); ?></label>
182 </div>
183 <div class="cell large-6">
184 <?php
185 $encodingHelper = $data['encodingHelper'];
186 $encodingHelper->encodingField('config[encoding_format]', $this->config->get('encoding_format', '8bit'));
187 ?>
188 </div>
189 </div>
190
191 <div class="cell medium-6 grid-x">
192 <div class="cell large-6">
193 <label for="config_charset"><?php echo acym_translation('ACYM_CONFIGURATION_CHARSET'); ?></label>
194 </div>
195 <div class="cell large-6">
196 <?php
197 echo $encodingHelper->charsetField(
198 'config[charset]',
199 $this->config->get('charset'),
200 'class="acym__select"'
201 );
202 ?>
203 </div>
204 </div>
205
206 <?php
207 $options = [
208 'special_chars' => [
209 'label' => 'ACYM_SPECIAL_CHARS',
210 ],
211 'multiple_part' => [
212 'label' => 'ACYM_CONFIGURATION_MULTIPART',
213 ],
214 'prevent_hyphens' => [
215 'label' => 'ACYM_PREVENT_HYPHENS',
216 ],
217 'unsubscribe_header' => [
218 'label' => 'ACYM_ADD_UNSUBSCRIBE_HEADER_IN_MAIL',
219 'default' => 1,
220 ],
221 'embed_images' => [
222 'label' => 'ACYM_CONFIGURATION_EMBED_IMAGES',
223 'info_disabled' => 'ACYM_CONFIGURATION_OPTION_DESC_DISABLED',
224 ],
225 'embed_files' => [
226 'label' => 'ACYM_CONFIGURATION_EMBED_ATTACHMENTS',
227 'info_disabled' => 'ACYM_CONFIGURATION_OPTION_DESC_DISABLED',
228 ],
229 'archive_index' => [
230 'label' => 'ACYM_CONFIGURATION_INDEX_ARCHIVE',
231 ],
232 'send_website_emails' => [
233 'label' => 'ACYM_SEND_WEBSITE_EMAILS',
234 ],
235 ];
236
237 foreach ($options as $oneOption => $option) {
238 echo '<div class="cell medium-6 grid-x acym__configuration__mail__option">';
239 $label = $option['label'];
240
241 $info = empty($option['info_disabled']) ? '' : '<span class="acym__configuration__mail__info__disabled">'.acym_translation($option['info_disabled']).'</span> ';
242
243 $description = $label.'_DESC';
244 $translatedDescription = acym_translation($description);
245 $label = acym_translation($label);
246 if ($translatedDescription !== $description) {
247 $info .= $translatedDescription;
248 }
249
250 if (!empty($info)) {
251 $info = acym_info($info);
252 }
253
254 $default = empty($option['default']) ? 0 : $option['default'];
255
256 echo acym_switch(
257 'config['.$oneOption.']',
258 $this->config->get($oneOption, $default),
259 $label.$info
260 );
261
262 echo '</div>';
263 }
264
265 $style = $this->config->get('embed_files', 0) ? 'style="display:none;"' : '';
266 ?>
267 <div class="cell medium-6 grid-x" id="attachments_position" <?php echo $style; ?>>
268 <div class="cell large-6">
269 <?php echo acym_translation('ACYM_CONFIGURATION_ATTACHMENTS_POSITION').acym_info('ACYM_CONFIGURATION_ATTACHMENTS_POSITION_DESC'); ?>
270 </div>
271 <div class="cell large-6">
272 <?php
273 echo acym_select(
274 [
275 'top' => acym_translation('ACYM_TOP_OF_EMAIL_CONTENT'),
276 'bottom' => acym_translation('ACYM_BOTTOM_OF_EMAIL_CONTENT'),
277 ],
278 'config[attachments_position]',
279 $this->config->get('attachments_position', 'bottom'),
280 ['class' => 'acym__select']
281 );
282 ?>
283 </div>
284 </div>
285 <div class="cell medium-6 grid-x">
286 <label class="cell grid-x">
287 <span class="cell medium-6">
288 <?php echo acym_translation('ACYM_MAIL_MAX_LINE_LENGTH').acym_info('ACYM_MAIL_MAX_LINE_LENGTH_DESC'); ?>
289 </span>
290 <input type="number"
291 name="config[mailer_wordwrap]"
292 value="<?php echo acym_escape($this->config->get('mailer_wordwrap', 0)); ?>"
293 min="0"
294 max="998"
295 class="cell medium-auto" />
296 </label>
297 </div>
298 <div class="cell medium-6 grid-x">
299 <?php echo acym_switch(
300 'config[dkim]',
301 $this->config->get('dkim'),
302 acym_translation('ACYM_CONFIGURATION_DKIM').acym_info('ACYM_INTRO_DKIM'),
303 [],
304 'medium-6 small-9',
305 'auto',
306 '',
307 'dkim_config'
308 ); ?>
309 </div>
310 </div>
311
312
313 <div class="cell acym__configuration__dkim padding-vertical-1 margin-y" id="dkim_config">
314 <div class="acym__title acym__title__secondary"><?php echo acym_translation('ACYM_DKIM_SETTINGS'); ?></div>
315 <?php
316 $domain = $this->config->get('dkim_domain', '');
317 if (empty($domain)) {
318 $domain = preg_replace(['#^https?://(www\.)*#i', '#^www\.#'], '', ACYM_LIVE);
319 $domain = substr($domain, 0, strpos($domain, '/'));
320 }
321
322 $dkimSelector = $this->config->get('dkim_selector', 'acy');
323 if ((!empty($dkimSelector) && $dkimSelector != 'acy') || $this->config->get('dkim_passphrase', '') != '' || acym_getVar('int', 'dkimletme')) {
324 ?>
325 <div class="grid-x grid-margin-x">
326 <div class="cell large-6 grid-x grid-margin-x margin-y">
327 <label for="dkim_domain_name" class="cell large-2 medium-3">
328 <?php echo acym_translation('ACYM_DKIM_DOMAIN'); ?>
329 </label>
330 <div class="cell large-10 medium-9">
331 <input id="dkim_domain_name" type="text" name="config[dkim_domain]" value="<?php echo acym_escape($domain); ?>">
332 </div>
333
334 <label for="dkim_selector" class="cell large-2 medium-3">
335 <?php echo acym_translation('ACYM_DKIM_SELECTOR'); ?>
336 </label>
337 <div class="cell large-10 medium-9">
338 <input id="dkim_selector" type="text" name="config[dkim_selector]" value="<?php echo acym_escape($this->config->get('dkim_selector', 'acy')); ?>">
339 </div>
340
341 <label for="dkim_private" class="cell large-2 medium-3">
342 <?php echo acym_translation('ACYM_DKIM_PRIVATE'); ?>
343 </label>
344 <div class="cell large-10 medium-9">
345 <textarea id="dkim_private" name="config[dkim_private]"><?php echo $this->config->get('dkim_private', ''); ?></textarea>
346 </div>
347 </div>
348
349 <div class="cell large-6 grid-x grid-margin-x margin-y">
350 <label for="dkim_passphrase" class="cell large-2 medium-3">
351 <?php echo acym_translation('ACYM_DKIM_PASSPHRASE'); ?>
352 </label>
353 <div class="cell large-10 medium-9">
354 <input id="dkim_passphrase"
355 type="text"
356 name="config[dkim_passphrase]"
357 value="<?php echo acym_escape($this->config->get('dkim_passphrase', '')); ?>">
358 </div>
359
360 <label for="dkim_identity" class="cell large-2 medium-3">
361 <?php echo acym_translation('ACYM_DKIM_IDENTITY'); ?>
362 </label>
363 <div class="cell large-10 medium-9">
364 <input id="dkim_identity" type="text" name="config[dkim_identity]" value="<?php echo acym_escape($this->config->get('dkim_identity', '')); ?>">
365 </div>
366
367 <label for="dkim_public" class="cell large-2 medium-3">
368 <?php echo acym_translation('ACYM_DKIM_PUBLIC'); ?>
369 </label>
370 <div class="cell large-10 medium-9">
371 <textarea id="dkim_public" name="config[dkim_public]"><?php echo $this->config->get('dkim_public', ''); ?></textarea>
372 </div>
373 </div>
374 </div>
375 <?php
376 } else {
377 $publicKey = 'v=DKIM1;s=email;t=s;p='.trim($this->config->get('dkim_public', ''), '"');
378
379 echo acym_translationSprintf(
380 'ACYM_DKIM_CONFIGURE',
381 '<input class="margin-bottom-0" type="text" id="dkim_domain" name="config[dkim_domain]" value="'.acym_escape($domain).'" />'
382 );
383 ?>
384 <div class="cell">
385 <?php echo acym_translation('ACYM_DKIM_KEY'); ?>
386 <input id="dkim_key" class="acym_autoselect margin-bottom-0" type="text" readonly="readonly" value="acy._domainkey" />
387 </div>
388 <div class="cell">
389 <?php echo acym_translation('ACYM_DKIM_VALUE'); ?>
390 <input id="dkim_value" class="acym_autoselect margin-bottom-0" type="text" readonly="readonly" value="<?php echo acym_escape($publicKey); ?>" />
391 </div>
392 <div class="cell">
393 <input type="checkbox" value="1" id="dkimletme" name="dkimletme" />
394 <label for="dkimletme"><?php echo acym_translation('ACYM_DKIM_LET_ME'); ?></label>
395 </div>
396 <?php
397 }
398 ?>
399
400 <div class="cell">
401 <a class="button button-secondary margin-bottom-0 margin-top-1" target="_blank" href="<?php echo ACYM_DOCUMENTATION; ?>setup/configuration/mail-configuration/dkim">
402 <?php echo acym_translation('ACYM_HELP'); ?>
403 </a>
404 </div>
405 </div>
406 </div>
407
408 </div>
409