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

405 lines 17.2 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 'embed_images' => [
218 'label' => 'ACYM_CONFIGURATION_EMBED_IMAGES',
219 'info_disabled' => 'ACYM_CONFIGURATION_OPTION_DESC_DISABLED',
220 ],
221 'embed_files' => [
222 'label' => 'ACYM_CONFIGURATION_EMBED_ATTACHMENTS',
223 'info_disabled' => 'ACYM_CONFIGURATION_OPTION_DESC_DISABLED',
224 ],
225 'archive_index' => [
226 'label' => 'ACYM_CONFIGURATION_INDEX_ARCHIVE',
227 ],
228 'send_website_emails' => [
229 'label' => 'ACYM_SEND_WEBSITE_EMAILS',
230 ],
231 ];
232
233 foreach ($options as $oneOption => $option) {
234 echo '<div class="cell medium-6 grid-x acym__configuration__mail__option">';
235 $label = $option['label'];
236
237 $info = empty($option['info_disabled']) ? '' : '<span class="acym__configuration__mail__info__disabled">'.acym_translation($option['info_disabled']).'</span> ';
238
239 $description = $label.'_DESC';
240 $translatedDescription = acym_translation($description);
241 $label = acym_translation($label);
242 if ($translatedDescription !== $description) {
243 $info .= $translatedDescription;
244 }
245
246 if (!empty($info)) {
247 $info = acym_info($info);
248 }
249
250 $default = empty($option['default']) ? 0 : $option['default'];
251
252 echo acym_switch(
253 'config['.$oneOption.']',
254 $this->config->get($oneOption, $default),
255 $label.$info
256 );
257
258 echo '</div>';
259 }
260
261 $style = $this->config->get('embed_files', 0) ? 'style="display:none;"' : '';
262 ?>
263 <div class="cell medium-6 grid-x" id="attachments_position" <?php echo $style; ?>>
264 <div class="cell large-6">
265 <?php echo acym_translation('ACYM_CONFIGURATION_ATTACHMENTS_POSITION').acym_info('ACYM_CONFIGURATION_ATTACHMENTS_POSITION_DESC'); ?>
266 </div>
267 <div class="cell large-6">
268 <?php
269 echo acym_select(
270 [
271 'top' => acym_translation('ACYM_TOP_OF_EMAIL_CONTENT'),
272 'bottom' => acym_translation('ACYM_BOTTOM_OF_EMAIL_CONTENT'),
273 ],
274 'config[attachments_position]',
275 $this->config->get('attachments_position', 'bottom'),
276 ['class' => 'acym__select']
277 );
278 ?>
279 </div>
280 </div>
281 <div class="cell medium-6 grid-x">
282 <label class="cell grid-x">
283 <span class="cell medium-6">
284 <?php echo acym_translation('ACYM_MAIL_MAX_LINE_LENGTH').acym_info('ACYM_MAIL_MAX_LINE_LENGTH_DESC'); ?>
285 </span>
286 <input type="number"
287 name="config[mailer_wordwrap]"
288 value="<?php echo acym_escape($this->config->get('mailer_wordwrap', 0)); ?>"
289 min="0"
290 max="998"
291 class="cell medium-auto" />
292 </label>
293 </div>
294 <div class="cell medium-6 grid-x">
295 <?php echo acym_switch(
296 'config[dkim]',
297 $this->config->get('dkim'),
298 acym_translation('ACYM_CONFIGURATION_DKIM').acym_info('ACYM_INTRO_DKIM'),
299 [],
300 'medium-6 small-9',
301 'auto',
302 '',
303 'dkim_config'
304 ); ?>
305 </div>
306 </div>
307
308
309 <div class="cell acym__configuration__dkim padding-vertical-1 margin-y" id="dkim_config">
310 <div class="acym__title acym__title__secondary"><?php echo acym_translation('ACYM_DKIM_SETTINGS'); ?></div>
311 <?php
312 $domain = $this->config->get('dkim_domain', '');
313 if (empty($domain)) {
314 $domain = preg_replace(['#^https?://(www\.)*#i', '#^www\.#'], '', ACYM_LIVE);
315 $domain = substr($domain, 0, strpos($domain, '/'));
316 }
317
318 $dkimSelector = $this->config->get('dkim_selector', 'acy');
319 if ((!empty($dkimSelector) && $dkimSelector != 'acy') || $this->config->get('dkim_passphrase', '') != '' || acym_getVar('int', 'dkimletme')) {
320 ?>
321 <div class="grid-x grid-margin-x">
322 <div class="cell large-6 grid-x grid-margin-x margin-y">
323 <label for="dkim_domain_name" class="cell large-2 medium-3">
324 <?php echo acym_translation('ACYM_DKIM_DOMAIN'); ?>
325 </label>
326 <div class="cell large-10 medium-9">
327 <input id="dkim_domain_name" type="text" name="config[dkim_domain]" value="<?php echo acym_escape($domain); ?>">
328 </div>
329
330 <label for="dkim_selector" class="cell large-2 medium-3">
331 <?php echo acym_translation('ACYM_DKIM_SELECTOR'); ?>
332 </label>
333 <div class="cell large-10 medium-9">
334 <input id="dkim_selector" type="text" name="config[dkim_selector]" value="<?php echo acym_escape($this->config->get('dkim_selector', 'acy')); ?>">
335 </div>
336
337 <label for="dkim_private" class="cell large-2 medium-3">
338 <?php echo acym_translation('ACYM_DKIM_PRIVATE'); ?>
339 </label>
340 <div class="cell large-10 medium-9">
341 <textarea id="dkim_private" name="config[dkim_private]"><?php echo $this->config->get('dkim_private', ''); ?></textarea>
342 </div>
343 </div>
344
345 <div class="cell large-6 grid-x grid-margin-x margin-y">
346 <label for="dkim_passphrase" class="cell large-2 medium-3">
347 <?php echo acym_translation('ACYM_DKIM_PASSPHRASE'); ?>
348 </label>
349 <div class="cell large-10 medium-9">
350 <input id="dkim_passphrase"
351 type="text"
352 name="config[dkim_passphrase]"
353 value="<?php echo acym_escape($this->config->get('dkim_passphrase', '')); ?>">
354 </div>
355
356 <label for="dkim_identity" class="cell large-2 medium-3">
357 <?php echo acym_translation('ACYM_DKIM_IDENTITY'); ?>
358 </label>
359 <div class="cell large-10 medium-9">
360 <input id="dkim_identity" type="text" name="config[dkim_identity]" value="<?php echo acym_escape($this->config->get('dkim_identity', '')); ?>">
361 </div>
362
363 <label for="dkim_public" class="cell large-2 medium-3">
364 <?php echo acym_translation('ACYM_DKIM_PUBLIC'); ?>
365 </label>
366 <div class="cell large-10 medium-9">
367 <textarea id="dkim_public" name="config[dkim_public]"><?php echo $this->config->get('dkim_public', ''); ?></textarea>
368 </div>
369 </div>
370 </div>
371 <?php
372 } else {
373 $publicKey = 'v=DKIM1;s=email;t=s;p='.trim($this->config->get('dkim_public', ''), '"');
374
375 echo acym_translationSprintf(
376 'ACYM_DKIM_CONFIGURE',
377 '<input class="margin-bottom-0" type="text" id="dkim_domain" name="config[dkim_domain]" value="'.acym_escape($domain).'" />'
378 );
379 ?>
380 <div class="cell">
381 <?php echo acym_translation('ACYM_DKIM_KEY'); ?>
382 <input id="dkim_key" class="acym_autoselect margin-bottom-0" type="text" readonly="readonly" value="acy._domainkey" />
383 </div>
384 <div class="cell">
385 <?php echo acym_translation('ACYM_DKIM_VALUE'); ?>
386 <input id="dkim_value" class="acym_autoselect margin-bottom-0" type="text" readonly="readonly" value="<?php echo acym_escape($publicKey); ?>" />
387 </div>
388 <div class="cell">
389 <input type="checkbox" value="1" id="dkimletme" name="dkimletme" />
390 <label for="dkimletme"><?php echo acym_translation('ACYM_DKIM_LET_ME'); ?></label>
391 </div>
392 <?php
393 }
394 ?>
395
396 <div class="cell">
397 <a class="button button-secondary margin-bottom-0 margin-top-1" target="_blank" href="<?php echo ACYM_DOCUMENTATION; ?>setup/configuration/mail-configuration/dkim">
398 <?php echo acym_translation('ACYM_HELP'); ?>
399 </a>
400 </div>
401 </div>
402 </div>
403
404 </div>
405