PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 10.2.2
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v10.2.2
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 / Partial / editor / settings.php

settings.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 10.2.2, at back/Partial/editor/settings.php

319 lines 16.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div id="acym__wysid__right__toolbar__settings" style="display: none;" class="cell grid-padding-x acym__wysid__right__toolbar--menu">
2 <p class="acym__wysid__right__toolbar__p__open acym__wysid__right__toolbar__p acym__title">
3 <?php echo acym_translation('ACYM_TEMPLATE_DESIGN'); ?><i class="acymicon-keyboard-arrow-up"></i>
4 </p>
5 <div class="grid-y acym__wysid__right__toolbar__design--show acym__wysid__context__modal__container">
6 <div class="grid-x margin-bottom-1 small-12 cell">
7 <label for="acym__wysid__background-colorpicker" class="cell large-6 small-9" for="acym__wysid__background-colorpicker">
8 <?php echo acym_translation('ACYM_BACKGROUND_COLOR'); ?>
9 </label>
10 <i class="acymicon-insert-photo small-1 acym_vcenter text-center cell acym__color__light-blue cursor-pointer" id="acym__wysid__background-image__template"></i>
11 <i class="acymicon-close acym_vcenter acym__color__red" id="acym__wysid__background-image__template-delete"></i>
12 <div class="small-2 text-center cell" style="margin:auto 0;">
13 <input type="text" id="acym__wysid__background-colorpicker" class="cell medium-shrink small-4" />
14 </div>
15 </div>
16 <div class="grid-x margin-bottom-1 small-12 cell">
17 <label class="middle large-6 cell" for="acym__wysid__background-size"><?php echo acym_translation('ACYM_BACKGROUND_SIZE'); ?></label>
18 <div class="cell large-6">
19 <?php
20 $backgroundSize = [
21 'ACYM_DEFAULT' => [
22 'cover' => acym_translation('ACYM_BG_COVER'),
23 'auto' => acym_translation('ACYM_AUTO'),
24 'contain' => acym_translation('ACYM_BG_CONTAIN'),
25 ],
26 'ACYM_CUSTOM' => [
27 '10%' => '10%',
28 '15%' => '15%',
29 '20%' => '20%',
30 '25%' => '25%',
31 '30%' => '30%',
32 '35%' => '35%',
33 '40%' => '40%',
34 '45%' => '45%',
35 '50%' => '50%',
36 '55%' => '55%',
37 '60%' => '60%',
38 '65%' => '65%',
39 '70%' => '70%',
40 '75%' => '75%',
41 '80%' => '80%',
42 '85%' => '85%',
43 '90%' => '90%',
44 '95%' => '95%',
45 '100%' => '100%',
46 ],
47 ];
48
49 $defaultBackgroundSize = 'cover';
50
51 if (!empty($data['mail']->settings)) {
52 if (!is_array($data['mail']->settings)) $data['mail']->settings = json_decode($data['mail']->settings, true);
53
54 if (!empty($data['mail']->settings['default']['background-size'])) $defaultSize = $data['mail']->settings['default']['background-size'];
55 }
56
57 echo '<select name="acym__wysid__background-size" id="acym__wysid__background-size" class="acym__select">';
58
59 foreach ($backgroundSize as $groupName => $values) {
60 echo '<optgroup label="'.acym_translation($groupName).'">';
61 foreach ($values as $value => $label) {
62 $selected = ($defaultBackgroundSize === $value) ? 'selected' : '';
63 echo '<option value="'.$value.'" '.$selected.'>'.$label.'</option>';
64 }
65 echo '</optgroup>';
66 }
67
68 echo '</select>';
69 ?>
70 </div>
71 </div>
72 <div class="grid-x margin-bottom-1 small-12 cell">
73 <label class="middle large-6 cell" for="acym__wysid__background-repeat"><?php echo acym_translation('ACYM_BACKGROUND_REPEAT'); ?></label>
74 <div class="cell large-6">
75 <?php
76 $repeat = [
77 'no-repeat' => acym_translation('ACYM_DISABLE'),
78 'repeat' => acym_translation('ACYM_ENABLE'),
79 ];
80
81 $defaultRepeat = 'no-repeat';
82
83 if (!empty($data['mail']->settings)) {
84 if (!is_array($data['mail']->settings)) $data['mail']->settings = json_decode($data['mail']->settings, true);
85
86 if (!empty($data['mail']->settings['default']['background-repeat'])) $defaultSize = $data['mail']->settings['default']['background-repeat'];
87 }
88
89 echo acym_select(
90 $repeat,
91 'acym__wysid__background-repeat',
92 $defaultRepeat,
93 ['class' => 'acym__select']
94 );
95 ?>
96 </div>
97 </div>
98 <div class="grid-x margin-bottom-1 small-12 cell">
99 <label class="middle large-6 cell" for="acym__wysid__background-position"><?php echo acym_translation('ACYM_BACKGROUND_POSITION'); ?></label>
100 <div class="cell large-6">
101 <?php
102 $position = [
103 'top' => acym_translation('ACYM_POSITION_TOP'),
104 'center' => acym_translation('ACYM_CENTER'),
105 'bottom' => acym_translation('ACYM_POSITION_BOTTOM'),
106 'left' => acym_translation('ACYM_LEFT'),
107 'right' => acym_translation('ACYM_RIGHT'),
108 ];
109
110 $defaultPosition = 'top';
111
112 if (!empty($data['mail']->settings)) {
113 if (!is_array($data['mail']->settings)) $data['mail']->settings = json_decode($data['mail']->settings, true);
114
115 if (!empty($data['mail']->settings['default']['background-position'])) $defaultPosition = $data['mail']->settings['default']['background-position'];
116 }
117
118 echo acym_select(
119 $position,
120 'acym__wysid__background-position',
121 $defaultPosition,
122 ['class' => 'acym__select']
123 );
124 ?>
125 </div>
126 </div>
127 <div class="grid-x margin-bottom-1 small-12 cell">
128 <label for="acym__wysid__maincolor-colorpicker1" class="cell large-6 small-9" for="acym__wysid__maincolor-colorpicker1">
129 <?php echo acym_translation('ACYM_MAIN_COLORS').acym_info('ACYM_MAIN_COLORS_DESC'); ?>
130 </label>
131 <div class="small-1 cell" style="margin:auto 0;">
132 <input type="text" id="acym__wysid__maincolor-colorpicker1" class="cell medium-shrink small-4" />
133 </div>
134 <div class="small-1 cell" style="margin:auto 0;">
135 <input type="text" id="acym__wysid__maincolor-colorpicker2" class="cell medium-shrink small-4" />
136 </div>
137 <div class="small-1 cell" style="margin:auto 0;">
138 <input type="text" id="acym__wysid__maincolor-colorpicker3" class="cell medium-shrink small-4" />
139 </div>
140 </div>
141 <div class="grid-x margin-bottom-1 small-12 cell">
142 <label class="middle large-6 cell" for="acym__wysid__padding__top__content"><?php echo acym_translation('ACYM_MARGIN_TOP_CONTENT'); ?></label>
143 <div class="cell large-6">
144 <input type="number" min="0" value="20" id="acym__wysid__padding__top__content" class="cell small-4">
145 </div>
146 </div>
147 <div class="grid-x margin-bottom-1 small-12 cell">
148 <label class="middle large-6 cell" for="acym__wysid__padding__bottom__content"><?php echo acym_translation('ACYM_MARGIN_BOTTOM_CONTENT'); ?></label>
149 <div class="cell large-6">
150 <input type="number" min="0" value="20" id="acym__wysid__padding__bottom__content" class="cell small-4">
151 </div>
152 </div>
153 <div class="grid-x margin-bottom-1 small-12 cell">
154 <label class="middle large-6 cell" for="default_font"><?php echo acym_translation('ACYM_DEFAULT_FONT'); ?></label>
155 <div class="cell large-6">
156 <?php
157 $fonts = [
158 'Andale Mono' => 'Andale Mono',
159 'Arial' => 'Arial',
160 'Book Antiqua' => 'Book Antiqua',
161 'Comic Sans MS' => 'Comic Sans MS',
162 'Courier New' => 'Courier New',
163 'Georgia' => 'Georgia',
164 'Helvetica' => 'Helvetica',
165 'Impact' => 'Impact',
166 'Times New Roman' => 'Times New Roman',
167 'Trebuchet MS' => 'Trebuchet MS',
168 'Verdana' => 'Verdana',
169 ];
170
171 $defaultFont = 'Helvetica';
172
173 if (!empty($data['mail']->settings)) {
174 if (!is_array($data['mail']->settings)) $data['mail']->settings = json_decode($data['mail']->settings, true);
175
176 if (!empty($data['mail']->settings['default']['font-family'])) $defaultFont = $data['mail']->settings['default']['font-family'];
177 }
178
179 echo acym_select(
180 $fonts,
181 'default_font',
182 $defaultFont,
183 ['class' => 'acym__select']
184 );
185 ?>
186 </div>
187
188 </div>
189 </div>
190 <p class="acym__wysid__right__toolbar__p__open acym__wysid__right__toolbar__p acym__title">
191 <?php echo acym_translation('ACYM_DESIGN'); ?>
192 <i class="acymicon-keyboard-arrow-up"></i>
193 <?php echo acym_info('ACYM_INTRO_CUSTOMIZE_FONT'); ?>
194 </p>
195 <div class="grid-y acym__wysid__right__toolbar__design--show acym__wysid__right__toolbar__design acym__wysid__context__modal__container">
196 <div class="grid-x margin-bottom-1 small-12 cell">
197 <label class="middle large-6 cell" for="acym__wysid__right__toolbar__settings__font--select"><?php echo acym_translation('ACYM_HTML_TAG'); ?></label>
198 <div class="cell large-6">
199 <select id="acym__wysid__right__toolbar__settings__font--select" class="small-8 large-4 cell acym__select">
200 <option value="p">p - <?php echo acym_translation('ACYM_PARAGRAPH'); ?></option>
201 <option value="a">a - <?php echo acym_translation('ACYM_LINKS'); ?></option>
202 <option value="span.acym_link"><?php echo acym_translation('ACYM_DYNAMIC_TEXTS_LINKS'); ?></option>
203 <option value="li">li - <?php echo acym_translation('ACYM_BULLET_LIST'); ?></option>
204 <option value="h1">h1</option>
205 <option value="h2">h2</option>
206 <option value="h3">h3</option>
207 <option value="h4">h4</option>
208 <option value="h5">h5</option>
209 <option value="h6">h6</option>
210 </select>
211 </div>
212 </div>
213 <div class="grid-x margin-bottom-1 small-12 cell">
214 <label class="middle large-6 cell" for="acym__wysid__right__toolbar__settings__font-family"><?php echo acym_translation('ACYM_FAMILY'); ?></label>
215 <div class="cell large-6">
216 <select id="acym__wysid__right__toolbar__settings__font-family" class="auto cell acym__select">
217 <option style="font-family: 'Andale Mono'">Andale Mono</option>
218 <option style="font-family: 'Arial'">Arial</option>
219 <option style="font-family: 'Book Antiqua'">Book Antiqua</option>
220 <option style="font-family: 'Comic Sans MS'">Comic Sans MS</option>
221 <option style="font-family: 'Courier New'">Courier New</option>
222 <option style="font-family: 'Georgia'">Georgia</option>
223 <option style="font-family: 'Helvetica'">Helvetica</option>
224 <option style="font-family: 'Impact'">Impact</option>
225 <option style="font-family: 'Times New Roman'">Times New Roman</option>
226 <option style="font-family: 'Trebuchet MS'">Trebuchet MS</option>
227 <option style="font-family: 'Verdana'">Verdana</option>
228 </select>
229 </div>
230 </div>
231 <div class="grid-x margin-bottom-1 small-12 cell">
232 <label class="middle large-6 cell" for="acym__wysid__right__toolbar__settings__line-height"><?php echo acym_translation('ACYM_LINE_HEIGHT'); ?></label>
233 <div class="cell large-6">
234 <select id="acym__wysid__right__toolbar__settings__line-height" class="auto cell acym__select">
235 <option value="inherit"><?php echo acym_translation('ACYM_DEFAULT'); ?></option>
236 <option value="100%">100%</option>
237 <option value="110%">110%</option>
238 <option value="120%">120%</option>
239 <option value="130%">130%</option>
240 <option value="140%">140%</option>
241 <option value="150%">150%</option>
242 <option value="160%">160%</option>
243 <option value="170%">170%</option>
244 <option value="180%">180%</option>
245 <option value="190%">190%</option>
246 <option value="200%">200%</option>
247 <option value="210%">210%</option>
248 <option value="220%">220%</option>
249 <option value="230%">230%</option>
250 <option value="240%">240%</option>
251 </select>
252 </div>
253 </div>
254 <div class="grid-x margin-bottom-1 small-12 cell">
255 <label class="middle large-6 cell" for="acym__wysid__right__toolbar__settings__font-size"><?php echo acym_translation('ACYM_SIZE'); ?></label>
256 <div class="cell large-6">
257 <select id="acym__wysid__right__toolbar__settings__font-size" class="auto cell acym__select">
258 <option>10px</option>
259 <option>12px</option>
260 <option>14px</option>
261 <option>16px</option>
262 <option>18px</option>
263 <option>20px</option>
264 <option>22px</option>
265 <option>24px</option>
266 <option>26px</option>
267 <option>28px</option>
268 <option>30px</option>
269 <option>32px</option>
270 <option>34px</option>
271 <option>36px</option>
272 </select>
273 </div>
274 </div>
275 <div class="grid-x margin-bottom-1 small-12 cell">
276 <label class="middle large-6 cell"><?php echo acym_translation('ACYM_STYLE'); ?></label>
277 <i id="acym__wysid__right__toolbar__settings__bold" class="acymicon-format-bold text-center small-3 large-auto cell" style="line-height: 39px"></i>
278 <i id="acym__wysid__right__toolbar__settings__italic" class="acymicon-format-italic text-center small-3 large-auto cell" style="line-height: 39px"></i>
279 <div class="small-2 text-center cell" style="margin:auto"><input type="text" id="acym__wysid__right__toolbar__settings__color" style="display: none;"></div>
280 </div>
281 <div class="grid-x margin-bottom-1 small-12 cell">
282 <div class="cell hide-for-small-only medium-3"></div>
283 <?php
284 $dataStyleSheet = '<div class="grid-x acym__wysid__right__toolbar__settings__stylesheet">
285 <h6 class="acym__title acym__title__secondary cell text-center margin-top-1">'.acym_translation('ACYM_HERE_PASTE_YOUR_STYLESHEET').'</h6>
286 <textarea id="acym__wysid__right__toolbar__settings__stylesheet__textarea" class="margin-top-1 margin-bottom-1" rows="15"></textarea>
287 <button type="button" id="acym__wysid__right__toolbar__settings__stylesheet__cancel" class="button cell medium-4">'.acym_translation('ACYM_CANCEL').'</button>
288 <div class="medium-4 cell"></div>
289 <button type="button" id="acym__wysid__right__toolbar__settings__stylesheet__apply" class="button cell medium-4">'.acym_translation('ACYM_LOAD_STYLESHEET').'</button>
290 </div>';
291 echo acym_modal(
292 acym_translation('ACYM_CUSTOM_ADD_STYLESHEET'),
293 $dataStyleSheet,
294 'acym__wysid__right__toolbar__settings__stylesheet__modal',
295 '',
296 'class="button cell medium-6 margin-top-2" id="acym__wysid__right__toolbar__settings__stylesheet__open"'
297 ); ?>
298 </div>
299 </div>
300 <p class="acym__wysid__right__toolbar__p__open acym__wysid__right__toolbar__p acym__title">
301 <?php echo acym_translation('ACYM_CUSTOM_SOCIAL_ICONS'); ?><i class="acymicon-keyboard-arrow-up"></i></p>
302 <div class="grid-y acym__wysid__right__toolbar__design--show acym__wysid__right__toolbar__design acym__wysid__right__toolbar__design__social__icons acym__wysid__context__modal__container">
303 <?php
304 $config = acym_config();
305 $socialIcons = json_decode($config->get('social_icons', '{}'), true);
306 foreach ($socialIcons as $social => $iconUrl) {
307 echo '<div class="cell grid-x margin-bottom-2 acym_vcenter acym__wysid__right__toolbar__design__social__icons__one">
308 <img class="cell shrink" src="'.acym_escape($iconUrl).'" alt="icon '.acym_escape($social).'">
309 <input type="file" name="icon_'.acym_escape($social).'" class="auto cell" accept="image/png, image/jpeg">
310 <div class="auto cell grid-x text-center align-center acym_vcenter"><span class="shrink cell acym__wysid__social__icons__import__text">'.acym_translation(
311 'ACYM_SELECT_NEW_ICON'
312 ).'</span></div>
313 <button disabled type="button" class="button cell shrink acym__wysid__social__icons__import">'.acym_translation('ACYM_IMPORT').'</button>
314 </div>';
315 }
316 ?>
317 </div>
318 </div>
319