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

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