PluginProbe ʕ •ᴥ•ʔ
MailPoet – Newsletters, Email Marketing, and Automation / 5.34.2
MailPoet – Newsletters, Email Marketing, and Automation v5.34.2
5.34.2 5.34.1 5.34.0 5.33.1 5.33.0 5.32.0 5.31.0 5.30.0 5.29.0 5.28.1 5.28.0 5.27.0 5.26.0 5.26.1 5.25.0 5.24.0 4.43.0 4.43.1 4.44.0 4.44.1 4.45.0 4.46.0 4.47.0 4.48.0 4.48.1 4.48.2 4.49.0 4.49.1 4.5.0 4.5.1 4.5.2 4.50.0 4.50.1 4.51.0 4.51.1 4.51.2 4.52.0 4.53.0 4.54.0 4.55.0 4.56.0 4.57.0 4.58.0 4.58.1 4.58.2 4.6.0 4.6.1 4.6.2 4.7.0 4.7.1 4.8.0 4.8.1 4.9.0 5.0.0 5.0.1 5.0.2 5.1.0 5.1.1 5.10.0 5.10.1 5.11.0 5.12.0 5.12.1 5.12.10 5.12.11 5.12.12 5.12.13 5.12.2 5.12.3 5.12.4 5.12.5 5.12.6 5.12.7 5.12.8 5.12.9 5.13.0 5.13.1 5.13.2 5.14.0 5.14.1 5.14.2 5.14.3 5.15.0 5.15.1 5.16.0 5.16.1 5.16.2 5.16.3 5.16.4 5.17.0 5.17.1 5.17.2 5.17.3 5.17.4 5.17.5 5.17.6 5.18.0 5.19.0 5.2.0 5.2.1 5.2.2 5.2.3 5.20.0 5.21.0 5.21.1 5.21.2 5.21.3 5.22.0 5.22.1 5.22.2 5.22.3 5.22.4 5.23.0 5.23.1 5.23.2 5.3.0 5.3.1 5.3.2 5.3.3 5.3.4 5.3.5 5.3.6 5.3.7 5.4.0 5.4.1 5.4.2 5.5.0 5.5.1 5.5.2 5.6.0 5.6.1 5.6.2 5.6.3 5.6.4 5.7.0 5.7.1 5.8.0 5.8.1 5.9.0 3.0.0-beta.15 3.7.1 3.0.0-beta.16 3.7.2 3.0.0-beta.17 3.7.3 3.0.0-beta.18 3.7.4 3.0.0-beta.19 3.7.5 3.0.0-beta.2 3.7.6 3.0.0-beta.20 3.7.8 3.0.0-beta.21 3.70.0 3.0.0-beta.22 3.71.0 3.0.0-beta.23 3.71.1 3.0.0-beta.23.1 3.71.2 3.0.0-beta.23.2 3.71.3 3.0.0-beta.24 3.72.0 3.0.0-beta.25 3.73.0 3.0.0-beta.26 3.73.1 3.0.0-beta.27 3.73.2 3.0.0-beta.28 3.74.0 3.0.0-beta.29 3.74.1 3.0.0-beta.3 3.74.2 3.0.0-beta.30 3.74.3 3.0.0-beta.31 3.75.0 3.0.0-beta.32 3.75.1 3.0.0-beta.33 3.76.0 3.0.0-beta.33.1 3.77.0 3.0.0-beta.34.0.0 3.77.1 3.0.0-beta.36.0.0 3.78.0 3.0.0-beta.36.0.1 3.79.0 3.0.0-beta.36.2.0 3.8 3.0.0-beta.36.3.0 3.8.1 3.0.0-beta.36.3.1 3.8.2 3.0.0-beta.37.0.0 3.8.3 3.0.0-beta.4 3.8.4 3.0.0-beta.5 3.8.5 3.0.0-beta.6 3.8.6 3.0.0-beta.7 3.80.0 3.0.0-beta.7.1 3.81.0 3.0.0-beta.8 3.82.0 3.0.0-beta.9 3.83.0 3.0.0-rc.1.0.0 3.84.0 3.0.0-rc.1.0.1 3.84.1 3.0.0-rc.1.0.2 3.85.0 3.0.0-rc.1.0.3 3.85.1 3.0.0-rc.1.0.4 3.86.0 3.0.0-rc.2.0.0 3.87.0 3.0.0-rc.2.0.1 3.87.1 3.0.0-rc.2.0.2 3.87.2 3.0.0-rc.2.0.3 3.88.0 3.0.1 3.88.1 3.0.2 3.88.2 3.0.3 3.89.0 3.0.4 3.89.1 3.0.5 3.89.2 3.0.6 3.89.3 3.0.7 3.89.4 3.0.8 3.9.0 3.0.9 3.9.1 3.1.0 3.90.0 3.10 3.90.1 3.10.1 3.90.2 3.100.0 3.91.0 3.100.1 3.91.1 3.100.2 3.92.0 3.101.0 3.92.1 3.101.1 3.93.0 3.102.0 3.93.1 3.102.1 3.94.0 3.103.0 3.95.0 3.103.1 3.95.1 3.11.0 3.96.0 3.11.1 3.96.1 3.11.2 3.97.0 3.11.3 3.98.0 3.11.4 3.98.1 3.11.5 3.99.0 3.12.0 3.99.1 3.12.1 4.0.0 3.13.0 4.0.1 3.14.0 4.1.0 3.14.1 4.1.1 3.15.0 4.10.0 3.16.0 4.11.0 3.16.1 4.11.1 3.16.2 4.12.0 3.16.3 4.12.1 3.17.0 4.12.2 3.17.1 4.13.0 3.17.2 4.14.0 3.18.0 4.15.0 3.18.1 4.16.0 3.18.2 4.17.0 3.19.0 4.17.1 3.19.1 4.18.0 3.19.2 4.18.1 3.19.3 4.19.0 3.2.0 4.2.0 3.2.1 4.20.0 3.2.2 4.20.1 3.2.3 4.20.2 3.2.4 4.21.0 3.2.5 4.22.0 3.20.0 4.22.1 3.21.0 4.22.2 3.21.1 4.23.0 3.22.0 4.24.0 3.23.0 4.25.0 3.23.1 4.26.0 3.23.2 4.26.1 3.24.0 4.27.0 3.25.0 4.28.0 3.25.1 4.29.0 3.26.0 4.3.0 3.26.1 4.3.1 3.27.0 4.30.0 3.28.0 4.31.0 3.29.0 4.31.1 3.3.0 4.32.0 3.3.1 4.33.0 3.3.2 4.34.0 3.3.3 4.35.0 3.3.4 4.35.1 3.3.5 4.36.0 3.3.6 4.37.0 3.30.0 4.38.0 3.31.0 4.39.0 3.31.1 4.4.0 3.32.0 4.40.0 3.32.1 4.41.0 3.32.2 4.41.1 3.33.0 4.41.2 3.34.0 4.41.3 3.34.1 4.42.0 3.34.2 4.42.1 3.34.3 3.34.4 3.35.0 3.35.1 3.35.3 3.35.4 3.36.0 3.37.0 3.37.1 3.37.2 3.37.3 3.38.0 3.38.1 3.39.0 3.39.1 3.39.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.40.0 3.40.1 3.41.0 3.41.1 3.41.2 3.42.0 3.42.1 3.42.2 3.42.3 3.43.0 3.43.1 3.44.0 3.45.0 3.45.1 3.46.0 3.46.1 3.46.10 3.46.11 3.46.12 3.46.13 3.46.14 3.46.2 3.46.3 3.46.4 3.46.5 3.46.6 3.46.7 3.46.8 3.46.9 3.47.0 3.47.1 3.47.10 3.47.11 3.47.2 3.47.3 3.47.5 3.47.6 3.47.7 3.47.9 3.48.0 3.48.1 3.49.0 3.49.1 3.5.0 3.5.1 3.50.0 3.51.0 3.51.1 3.51.2 3.52.0 3.53.0 3.54.0 3.54.1 3.54.2 3.54.3 3.55.0 3.55.1 3.56.0 3.56.1 3.56.2 3.57.0 3.57.1 3.58.0 3.59.0 3.59.1 3.59.2 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.60.0 3.60.1 3.60.10 3.60.11 3.60.12 3.60.2 3.60.3 3.60.4 3.60.6 3.60.7 3.60.8 3.60.9 3.61.0 3.62.0 3.62.1 3.63.0 3.64.0 3.64.1 3.64.2 3.64.3 3.65.0 trunk 3.65.1 3.0.0 3.66.0 3.0.0-beta.1 3.67.0 3.0.0-beta.10 3.67.1 3.0.0-beta.11 3.68.0 3.0.0-beta.12 3.69.0 3.0.0-beta.13 3.69.1 3.0.0-beta.14 3.7.0
mailpoet / lib / WooCommerce / TransactionalEmails / Template.php
mailpoet / lib / WooCommerce / TransactionalEmails Last commit date
ContentPreprocessor.php 1 year ago FontFamilyValidator.php 10 months ago Renderer.php 10 months ago Template.php 1 year ago index.php 3 years ago
Template.php
725 lines
1 <?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
2
3 namespace MailPoet\WooCommerce\TransactionalEmails;
4
5 if (!defined('ABSPATH')) exit;
6
7
8 use MailPoet\Config\Env;
9
10 class Template {
11 public function create($wcEmailSettings) {
12 $socialIconUrl = Env::$assetsUrl . '/img/newsletter_editor/social-icons';
13 return [
14 'content' =>
15 [
16 'type' => 'container',
17 'columnLayout' => false,
18 'orientation' => 'vertical',
19 'image' =>
20 [
21 'src' => null,
22 'display' => 'scale',
23 ],
24 'styles' =>
25 [
26 'block' =>
27 [
28 'backgroundColor' => 'transparent',
29 ],
30 ],
31 'blocks' =>
32 [
33 0 =>
34 [
35 'type' => 'container',
36 'columnLayout' => false,
37 'orientation' => 'horizontal',
38 'image' =>
39 [
40 'src' => null,
41 'display' => 'scale',
42 ],
43 'styles' =>
44 [
45 'block' =>
46 [
47 'backgroundColor' => 'transparent',
48 ],
49 ],
50 'blocks' =>
51 [
52 0 =>
53 [
54 'type' => 'container',
55 'columnLayout' => false,
56 'orientation' => 'vertical',
57 'image' =>
58 [
59 'src' => null,
60 'display' => 'scale',
61 ],
62 'styles' =>
63 [
64 'block' =>
65 [
66 'backgroundColor' => 'transparent',
67 ],
68 ],
69 'blocks' =>
70 [
71 0 =>
72 [
73 'type' => 'spacer',
74 'styles' =>
75 [
76 'block' =>
77 [
78 'backgroundColor' => 'transparent',
79 'height' => '20px',
80 ],
81 ],
82 ],
83 1 =>
84 [
85 'type' => 'image',
86 'link' => '',
87 'src' => $wcEmailSettings['header_image'],
88 'alt' => '',
89 'fullWidth' => false,
90 'width' => '180px',
91 'height' => '362px',
92 'styles' =>
93 [
94 'block' =>
95 [
96 'textAlign' => 'center',
97 ],
98 ],
99 ],
100 2 =>
101 [
102 'type' => 'spacer',
103 'styles' =>
104 [
105 'block' =>
106 [
107 'backgroundColor' => 'transparent',
108 'height' => '20px',
109 ],
110 ],
111 ],
112 ],
113 ],
114 ],
115 ],
116 1 =>
117 [
118 'type' => 'woocommerceHeading',
119 ],
120 2 =>
121 [
122 'type' => 'container',
123 'columnLayout' => false,
124 'orientation' => 'horizontal',
125 'image' =>
126 [
127 'src' => null,
128 'display' => 'scale',
129 ],
130 'styles' =>
131 [
132 'block' =>
133 [
134 'backgroundColor' => 'transparent',
135 ],
136 ],
137 'blocks' =>
138 [
139 0 =>
140 [
141 'type' => 'container',
142 'columnLayout' => false,
143 'orientation' => 'vertical',
144 'image' =>
145 [
146 'src' => null,
147 'display' => 'scale',
148 ],
149 'styles' =>
150 [
151 'block' =>
152 [
153 'backgroundColor' => 'transparent',
154 ],
155 ],
156 'blocks' =>
157 [
158 0 =>
159 [
160 'type' => 'spacer',
161 'styles' =>
162 [
163 'block' =>
164 [
165 'backgroundColor' => 'transparent',
166 'height' => '20px',
167 ],
168 ],
169 ],
170 ],
171 ],
172 ],
173 ],
174 3 =>
175 [
176 'type' => 'woocommerceContent',
177 ],
178 4 =>
179 [
180 'type' => 'container',
181 'columnLayout' => false,
182 'orientation' => 'horizontal',
183 'image' =>
184 [
185 'src' => null,
186 'display' => 'scale',
187 ],
188 'styles' =>
189 [
190 'block' =>
191 [
192 'backgroundColor' => 'transparent',
193 ],
194 ],
195 'blocks' =>
196 [
197 0 =>
198 [
199 'type' => 'container',
200 'columnLayout' => false,
201 'orientation' => 'vertical',
202 'image' =>
203 [
204 'src' => null,
205 'display' => 'scale',
206 ],
207 'styles' =>
208 [
209 'block' =>
210 [
211 'backgroundColor' => 'transparent',
212 ],
213 ],
214 'blocks' =>
215 [
216 0 =>
217 [
218 'type' => 'spacer',
219 'styles' =>
220 [
221 'block' =>
222 [
223 'backgroundColor' => 'transparent',
224 'height' => '20px',
225 ],
226 ],
227 ],
228 ],
229 ],
230 ],
231 ],
232 5 =>
233 [
234 'type' => 'container',
235 'columnLayout' => false,
236 'orientation' => 'horizontal',
237 'image' =>
238 [
239 'src' => null,
240 'display' => 'scale',
241 ],
242 'styles' =>
243 [
244 'block' =>
245 [
246 'backgroundColor' => 'transparent',
247 ],
248 ],
249 'blocks' =>
250 [
251 0 =>
252 [
253 'type' => 'container',
254 'columnLayout' => false,
255 'orientation' => 'vertical',
256 'image' =>
257 [
258 'src' => null,
259 'display' => 'scale',
260 ],
261 'styles' =>
262 [
263 'block' =>
264 [
265 'backgroundColor' => 'transparent',
266 ],
267 ],
268 'blocks' =>
269 [
270 0 =>
271 [
272 'type' => 'spacer',
273 'styles' =>
274 [
275 'block' =>
276 [
277 'backgroundColor' => 'transparent',
278 'height' => '20px',
279 ],
280 ],
281 ],
282 1 =>
283 [
284 'type' => 'text',
285 'text' => '<p style="text-align: center;">' . $wcEmailSettings['footer_text'] . '</p>',
286 ],
287 ],
288 ],
289 ],
290 ],
291 ],
292 ],
293 'globalStyles' =>
294 [
295 'text' =>
296 [
297 'fontColor' => $wcEmailSettings['text_color'],
298 'fontFamily' => 'Arial',
299 'fontSize' => '14px',
300 'lineHeight' => '1.6',
301 ],
302 'h1' =>
303 [
304 'fontColor' => $wcEmailSettings['base_color'],
305 'fontFamily' => 'Source Sans Pro',
306 'fontSize' => '36px',
307 'lineHeight' => '1.6',
308 ],
309 'h2' =>
310 [
311 'fontColor' => $wcEmailSettings['base_color'],
312 'fontFamily' => 'Verdana',
313 'fontSize' => '24px',
314 'lineHeight' => '1.6',
315 ],
316 'h3' =>
317 [
318 'fontColor' => $wcEmailSettings['base_color'],
319 'fontFamily' => 'Trebuchet MS',
320 'fontSize' => '22px',
321 'lineHeight' => '1.6',
322 ],
323 'link' =>
324 [
325 'fontColor' => $wcEmailSettings['link_color'],
326 'textDecoration' => 'underline',
327 ],
328 'wrapper' =>
329 [
330 'backgroundColor' => $wcEmailSettings['body_background_color'],
331 ],
332 'body' =>
333 [
334 'backgroundColor' => $wcEmailSettings['background_color'],
335 ],
336 'woocommerce' =>
337 [
338 'brandingColor' => $wcEmailSettings['base_color'],
339 'headingFontColor' => $wcEmailSettings['base_text_color'],
340 'headingFontFamily' => 'Arial',
341 ],
342 ],
343 'blockDefaults' =>
344 [
345 'automatedLatestContent' =>
346 [
347 'amount' => '5',
348 'withLayout' => false,
349 'contentType' => 'post',
350 'inclusionType' => 'include',
351 'displayType' => 'excerpt',
352 'titleFormat' => 'h1',
353 'titleAlignment' => 'left',
354 'titleIsLink' => false,
355 'imageFullWidth' => false,
356 'featuredImagePosition' => 'belowTitle',
357 'showAuthor' => 'no',
358 'authorPrecededBy' => 'Author:',
359 'showCategories' => 'no',
360 'categoriesPrecededBy' => 'Categories:',
361 'readMoreType' => 'button',
362 'readMoreText' => 'Read more',
363 'readMoreButton' =>
364 [
365 'text' => 'Read more',
366 'url' => '[postLink]',
367 'context' => 'automatedLatestContent.readMoreButton',
368 'styles' =>
369 [
370 'block' =>
371 [
372 'backgroundColor' => '#2ea1cd',
373 'borderColor' => '#0074a2',
374 'borderWidth' => '1px',
375 'borderRadius' => '5px',
376 'borderStyle' => 'solid',
377 'width' => '180px',
378 'lineHeight' => '40px',
379 'fontColor' => '#ffffff',
380 'fontFamily' => 'Verdana',
381 'fontSize' => '18px',
382 'fontWeight' => 'normal',
383 'textAlign' => 'center',
384 ],
385 ],
386 ],
387 'sortBy' => 'newest',
388 'showDivider' => true,
389 'divider' =>
390 [
391 'context' => 'automatedLatestContent.divider',
392 'styles' =>
393 [
394 'block' =>
395 [
396 'backgroundColor' => 'transparent',
397 'padding' => '13px',
398 'borderStyle' => 'solid',
399 'borderWidth' => '3px',
400 'borderColor' => '#aaaaaa',
401 ],
402 ],
403 ],
404 'backgroundColor' => '#ffffff',
405 'backgroundColorAlternate' => '#eeeeee',
406 ],
407 'automatedLatestContentLayout' =>
408 [
409 'amount' => '5',
410 'withLayout' => true,
411 'contentType' => 'post',
412 'inclusionType' => 'include',
413 'displayType' => 'excerpt',
414 'titleFormat' => 'h1',
415 'titleAlignment' => 'left',
416 'titleIsLink' => false,
417 'imageFullWidth' => false,
418 'featuredImagePosition' => 'alternate',
419 'showAuthor' => 'no',
420 'authorPrecededBy' => 'Author:',
421 'showCategories' => 'no',
422 'categoriesPrecededBy' => 'Categories:',
423 'readMoreType' => 'button',
424 'readMoreText' => 'Read more',
425 'readMoreButton' =>
426 [
427 'text' => 'Read more',
428 'url' => '[postLink]',
429 'context' => 'automatedLatestContentLayout.readMoreButton',
430 'styles' =>
431 [
432 'block' =>
433 [
434 'backgroundColor' => '#2ea1cd',
435 'borderColor' => '#0074a2',
436 'borderWidth' => '1px',
437 'borderRadius' => '5px',
438 'borderStyle' => 'solid',
439 'width' => '180px',
440 'lineHeight' => '40px',
441 'fontColor' => '#ffffff',
442 'fontFamily' => 'Verdana',
443 'fontSize' => '18px',
444 'fontWeight' => 'normal',
445 'textAlign' => 'center',
446 ],
447 ],
448 ],
449 'sortBy' => 'newest',
450 'showDivider' => true,
451 'divider' =>
452 [
453 'context' => 'automatedLatestContentLayout.divider',
454 'styles' =>
455 [
456 'block' =>
457 [
458 'backgroundColor' => 'transparent',
459 'padding' => '13px',
460 'borderStyle' => 'solid',
461 'borderWidth' => '3px',
462 'borderColor' => '#aaaaaa',
463 ],
464 ],
465 ],
466 'backgroundColor' => '#ffffff',
467 'backgroundColorAlternate' => '#eeeeee',
468 ],
469 'button' =>
470 [
471 'text' => 'Button',
472 'url' => '',
473 'styles' =>
474 [
475 'block' =>
476 [
477 'backgroundColor' => '#2ea1cd',
478 'borderColor' => '#0074a2',
479 'borderWidth' => '1px',
480 'borderRadius' => '5px',
481 'borderStyle' => 'solid',
482 'width' => '180px',
483 'lineHeight' => '40px',
484 'fontColor' => '#ffffff',
485 'fontFamily' => 'Verdana',
486 'fontSize' => '18px',
487 'fontWeight' => 'normal',
488 'textAlign' => 'center',
489 ],
490 ],
491 ],
492 'divider' =>
493 [
494 'styles' =>
495 [
496 'block' =>
497 [
498 'backgroundColor' => 'transparent',
499 'padding' => '13px',
500 'borderStyle' => 'solid',
501 'borderWidth' => '3px',
502 'borderColor' => '#aaaaaa',
503 ],
504 ],
505 ],
506 'footer' =>
507 [
508 'text' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a><br />Add your postal address here!</p>',
509 'styles' =>
510 [
511 'block' =>
512 [
513 'backgroundColor' => 'transparent',
514 ],
515 'text' =>
516 [
517 'fontColor' => '#222222',
518 'fontFamily' => 'Arial',
519 'fontSize' => '12px',
520 'textAlign' => 'center',
521 ],
522 'link' =>
523 [
524 'fontColor' => '#6cb7d4',
525 'textDecoration' => 'none',
526 ],
527 ],
528 ],
529 'posts' =>
530 [
531 'amount' => '10',
532 'withLayout' => true,
533 'contentType' => 'post',
534 'postStatus' => 'publish',
535 'inclusionType' => 'include',
536 'displayType' => 'excerpt',
537 'titleFormat' => 'h1',
538 'titleAlignment' => 'left',
539 'titleIsLink' => false,
540 'imageFullWidth' => false,
541 'featuredImagePosition' => 'alternate',
542 'showAuthor' => 'no',
543 'authorPrecededBy' => 'Author:',
544 'showCategories' => 'no',
545 'categoriesPrecededBy' => 'Categories:',
546 'readMoreType' => 'link',
547 'readMoreText' => 'Read more',
548 'readMoreButton' =>
549 [
550 'text' => 'Read more',
551 'url' => '[postLink]',
552 'context' => 'posts.readMoreButton',
553 'styles' =>
554 [
555 'block' =>
556 [
557 'backgroundColor' => '#2ea1cd',
558 'borderColor' => '#0074a2',
559 'borderWidth' => '1px',
560 'borderRadius' => '5px',
561 'borderStyle' => 'solid',
562 'width' => '180px',
563 'lineHeight' => '40px',
564 'fontColor' => '#ffffff',
565 'fontFamily' => 'Verdana',
566 'fontSize' => '18px',
567 'fontWeight' => 'normal',
568 'textAlign' => 'center',
569 ],
570 ],
571 ],
572 'sortBy' => 'newest',
573 'showDivider' => true,
574 'divider' =>
575 [
576 'context' => 'posts.divider',
577 'styles' =>
578 [
579 'block' =>
580 [
581 'backgroundColor' => 'transparent',
582 'padding' => '13px',
583 'borderStyle' => 'solid',
584 'borderWidth' => '3px',
585 'borderColor' => '#aaaaaa',
586 ],
587 ],
588 ],
589 'backgroundColor' => '#ffffff',
590 'backgroundColorAlternate' => '#eeeeee',
591 ],
592 'products' =>
593 [
594 'amount' => '10',
595 'withLayout' => true,
596 'contentType' => 'product',
597 'postStatus' => 'publish',
598 'inclusionType' => 'include',
599 'displayType' => 'excerpt',
600 'titleFormat' => 'h1',
601 'titleAlignment' => 'left',
602 'titleIsLink' => false,
603 'imageFullWidth' => false,
604 'featuredImagePosition' => 'alternate',
605 'pricePosition' => 'below',
606 'readMoreType' => 'link',
607 'readMoreText' => 'Buy now',
608 'readMoreButton' =>
609 [
610 'text' => 'Buy now',
611 'url' => '[postLink]',
612 'context' => 'posts.readMoreButton',
613 'styles' =>
614 [
615 'block' =>
616 [
617 'backgroundColor' => '#2ea1cd',
618 'borderColor' => '#0074a2',
619 'borderWidth' => '1px',
620 'borderRadius' => '5px',
621 'borderStyle' => 'solid',
622 'width' => '180px',
623 'lineHeight' => '40px',
624 'fontColor' => '#ffffff',
625 'fontFamily' => 'Verdana',
626 'fontSize' => '18px',
627 'fontWeight' => 'normal',
628 'textAlign' => 'center',
629 ],
630 ],
631 ],
632 'sortBy' => 'newest',
633 'showDivider' => true,
634 'divider' =>
635 [
636 'context' => 'posts.divider',
637 'styles' =>
638 [
639 'block' =>
640 [
641 'backgroundColor' => 'transparent',
642 'padding' => '13px',
643 'borderStyle' => 'solid',
644 'borderWidth' => '3px',
645 'borderColor' => '#aaaaaa',
646 ],
647 ],
648 ],
649 'backgroundColor' => '#ffffff',
650 'backgroundColorAlternate' => '#eeeeee',
651 ],
652 'social' =>
653 [
654 'iconSet' => 'default',
655 'styles' =>
656 [
657 'block' =>
658 [
659 'textAlign' => 'center',
660 ],
661 ],
662 'icons' =>
663 [
664 0 =>
665 [
666 'type' => 'socialIcon',
667 'iconType' => 'facebook',
668 'link' => 'http://www.facebook.com',
669 'image' => $socialIconUrl . '/01-social/Facebook.png',
670 'height' => '32px',
671 'width' => '32px',
672 'text' => 'Facebook',
673 ],
674 1 =>
675 [
676 'type' => 'socialIcon',
677 'iconType' => 'twitter',
678 'link' => 'http://www.twitter.com',
679 'image' => $socialIconUrl . '/01-social/Twitter.png',
680 'height' => '32px',
681 'width' => '32px',
682 'text' => 'Twitter',
683 ],
684 ],
685 ],
686 'spacer' =>
687 [
688 'styles' =>
689 [
690 'block' =>
691 [
692 'backgroundColor' => 'transparent',
693 'height' => '20px',
694 ],
695 ],
696 'type' => 'spacer',
697 ],
698 'header' =>
699 [
700 'text' => 'Display problems?&nbsp;<a href="[link:newsletter_view_in_browser_url]">Open this email in your web browser.</a>',
701 'styles' =>
702 [
703 'block' =>
704 [
705 'backgroundColor' => 'transparent',
706 ],
707 'text' =>
708 [
709 'fontColor' => '#222222',
710 'fontFamily' => 'Arial',
711 'fontSize' => '12px',
712 'textAlign' => 'center',
713 ],
714 'link' =>
715 [
716 'fontColor' => '#6cb7d4',
717 'textDecoration' => 'underline',
718 ],
719 ],
720 ],
721 ],
722 ];
723 }
724 }
725