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 / Fields / tmpl / edit_content.php

edit_content.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 10.11.1, at back/Views/Fields/tmpl/edit_content.php

85 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <h2 class="cell acym__title acym__title__secondary acym__fields__edit__section__title"
2 id="acym__fields__edit__section__title--content">
3 <?php echo acym_translation('ACYM_FIELD_CONTENT'); ?>
4 </h2>
5
6 <label class="cell large-6 acym__fields__change" id="acym__fields__default-value">
7 <?php echo acym_translation('ACYM_DEFAULT_VALUE'); ?>
8 <input type="text" name="field[default_value]"
9 value="<?php echo isset($data['field']->default_value) ? $data['field']->default_value : ''; ?>">
10 </label>
11
12 <div class="cell acym__fields__change" id="acym__fields__authorized-content">
13 <label><?php echo acym_translation('ACYM_AUTHORIZED_CONTENT'); ?></label>
14 <?php
15 $regex = empty($data['field']->option->authorized_content->regex) ? '' : acym_escape($data['field']->option->authorized_content->regex);
16
17 $authorizedContent = ['all' => acym_translation('ACYM_ALL')];
18 if ($data['field']->id != 2) {
19 $authorizedContent['number'] = acym_translation('ACYM_NUMBER_ONLY');
20 $authorizedContent['letters'] = acym_translation('ACYM_LETTERS_ONLY');
21 $authorizedContent['numbers_letters'] = acym_translation('ACYM_NUMBERS_LETTERS_ONLY');
22 }
23 $placeholder = acym_translation('ACYM_REGULAR_EXPRESSION', true);
24 $authorizedContent['regex'] = ' <input type="text" value="'.$regex.'" name="field[option][authorized_content][regex]" placeholder="'.$placeholder.'">';
25
26 echo acym_radio(
27 $authorizedContent,
28 'field[option][authorized_content][]',
29 empty($data['field']->option->authorized_content->{'0'}) ? 'all' : $data['field']->option->authorized_content->{'0'},
30 [],
31 [],
32 false,
33 [],
34 false
35 );
36 ?>
37 </div>
38
39 <!--if the user didn't respect the authorized content then we display the message below-->
40 <label class="cell large-6 acym__fields__change" id="acym__fields__error-message-invalid">
41 <?php echo acym_translation('ACYM_ERROR_MESSAGE_INVALID_CONTENT'); ?>
42 <input type="text"
43 name="field[option][error_message_invalid]"
44 value="<?php echo empty($data['field']->option->error_message_invalid) ? '' : $data['field']->option->error_message_invalid; ?>">
45 </label>
46
47 <label class="cell large-6 acym__fields__change" id="acym__fields__format">
48 <?php
49 echo acym_translation('ACYM_FORMAT');
50 echo acym_info(
51 [
52 'textShownInTooltip' => acym_translationSprintf(
53 'ACYM_X_TO_ENTER_X',
54 '%d',
55 acym_translation('ACYM_DAY')
56 ).'<br>'.acym_translationSprintf(
57 'ACYM_X_TO_ENTER_X',
58 '%m',
59 acym_translation('ACYM_MONTH')
60 ).'<br>'.acym_translationSprintf(
61 'ACYM_X_TO_ENTER_X',
62 '%y',
63 acym_translation('ACYM_YEAR')
64 ).'<br>'.acym_translation('ACYM_EXEMPLE_FORMAT'),
65 ]
66 );
67 ?>
68 <input type="text" name="field[option][format]"
69 value="<?php echo empty($data['field']->option->format) ? '%d%m%y' : $data['field']->option->format; ?>">
70 </label>
71
72 <label class="cell acym__fields__change grid-x" id="acym__fields__max_characters">
73 <span class="cell">
74 <?php
75 echo acym_translation('ACYM_MAXIMUM_CHARACTERS');
76 echo acym_info(['textShownInTooltip' => 'ACYM_MAXIMUM_CHARACTERS_TOOLTIP']);
77 ?>
78 </span>
79 <input type="number"
80 min="0"
81 name="field[option][max_characters]"
82 value="<?php echo empty($data['field']->option->max_characters) ? '' : $data['field']->option->max_characters; ?>"
83 class="cell medium-2 small-3">
84 </label>
85