PluginProbe
MailPoet – Newsletters, Email Marketing, and Automation / 5.37.0
MailPoet – Newsletters, Email Marketing, and Automation v5.37.0
5.38.0 5.37.0 5.36.1 5.36.0 5.35.1 5.35.0 5.34.3 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 All 542 releases
mailpoet / lib / Config / PopulatorData / Templates / Fitness.php
Fitness.php
1,213 lines 47.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
2
3 namespace MailPoet\Config\PopulatorData\Templates;
4
5 if (!defined('ABSPATH')) exit;
6
7
8 class Fitness {
9
10 private $template_image_url;
11 private $social_icon_url;
12
13 public function __construct(
14 $assets_url
15 ) {
16 $this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/fitness';
17 $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
18 }
19
20 public function get() {
21 return [
22 'name' => __("Abandoned Cart – Fitness", 'mailpoet'),
23 'categories' => json_encode(['woocommerce', 'all']),
24 'readonly' => 1,
25 'thumbnail' => $this->getThumbnail(),
26 'body' => json_encode($this->getBody()),
27 ];
28 }
29
30 private function getThumbnail() {
31 return $this->template_image_url . '/thumbnail.20201028.jpg';
32 }
33
34 private function getBody() {
35 return [
36 'content' =>
37 [
38 'type' => 'container',
39 'columnLayout' => false,
40 'orientation' => 'vertical',
41 'image' =>
42 [
43 'src' => null,
44 'display' => 'scale',
45 ],
46 'styles' =>
47 [
48 'block' =>
49 [
50 'backgroundColor' => 'transparent',
51 ],
52 ],
53 'blocks' =>
54 [
55 0 =>
56 [
57 'type' => 'container',
58 'columnLayout' => false,
59 'orientation' => 'horizontal',
60 'image' =>
61 [
62 'src' => null,
63 'display' => 'scale',
64 ],
65 'styles' =>
66 [
67 'block' =>
68 [
69 'backgroundColor' => '#e6e1e5',
70 ],
71 ],
72 'blocks' =>
73 [
74 0 =>
75 [
76 'type' => 'container',
77 'columnLayout' => false,
78 'orientation' => 'vertical',
79 'image' =>
80 [
81 'src' => null,
82 'display' => 'scale',
83 ],
84 'styles' =>
85 [
86 'block' =>
87 [
88 'backgroundColor' => 'transparent',
89 ],
90 ],
91 'blocks' =>
92 [
93 0 =>
94 [
95 'type' => 'image',
96 'link' => '',
97 'src' => $this->template_image_url . '/Fitness-Logo-1.jpg',
98 'alt' => 'Fitness-Logo-1',
99 'fullWidth' => true,
100 'width' => '180px',
101 'height' => '96px',
102 'styles' =>
103 [
104 'block' =>
105 [
106 'textAlign' => 'center',
107 ],
108 ],
109 ],
110 ],
111 ],
112 ],
113 ],
114 1 =>
115 [
116 'type' => 'container',
117 'columnLayout' => false,
118 'orientation' => 'horizontal',
119 'image' =>
120 [
121 'src' => null,
122 'display' => 'scale',
123 ],
124 'styles' =>
125 [
126 'block' =>
127 [
128 'backgroundColor' => '#e6e1e5',
129 ],
130 ],
131 'blocks' =>
132 [
133 0 =>
134 [
135 'type' => 'container',
136 'columnLayout' => false,
137 'orientation' => 'vertical',
138 'image' =>
139 [
140 'src' => null,
141 'display' => 'scale',
142 ],
143 'styles' =>
144 [
145 'block' =>
146 [
147 'backgroundColor' => 'transparent',
148 ],
149 ],
150 'blocks' =>
151 [
152 0 =>
153 [
154 'type' => 'spacer',
155 'styles' =>
156 [
157 'block' =>
158 [
159 'backgroundColor' => 'transparent',
160 'height' => '20px',
161 ],
162 ],
163 ],
164 1 =>
165 [
166 'type' => 'social',
167 'iconSet' => 'official',
168 'styles' =>
169 [
170 'block' =>
171 [
172 'textAlign' => 'center',
173 ],
174 ],
175 'icons' =>
176 [
177 0 =>
178 [
179 'type' => 'socialIcon',
180 'iconType' => 'facebook',
181 'link' => 'http://www.facebook.com',
182 'image' => $this->social_icon_url . '/11-official/Facebook.png',
183 'height' => '32px',
184 'width' => '32px',
185 'text' => 'Facebook',
186 ],
187 1 =>
188 [
189 'type' => 'socialIcon',
190 'iconType' => 'twitter',
191 'link' => 'http://www.twitter.com',
192 'image' => $this->social_icon_url . '/11-official/X.png',
193 'height' => '32px',
194 'width' => '32px',
195 'text' => 'Twitter',
196 ],
197 2 =>
198 [
199 'type' => 'socialIcon',
200 'iconType' => 'instagram',
201 'link' => 'http://instagram.com',
202 'image' => $this->social_icon_url . '/11-official/Instagram.png',
203 'height' => '32px',
204 'width' => '32px',
205 'text' => 'Instagram',
206 ],
207 ],
208 ],
209 ],
210 ],
211 ],
212 ],
213 2 =>
214 [
215 'type' => 'container',
216 'columnLayout' => false,
217 'orientation' => 'horizontal',
218 'image' =>
219 [
220 'src' => null,
221 'display' => 'scale',
222 ],
223 'styles' =>
224 [
225 'block' =>
226 [
227 'backgroundColor' => '#e6e1e5',
228 ],
229 ],
230 'blocks' =>
231 [
232 0 =>
233 [
234 'type' => 'container',
235 'columnLayout' => false,
236 'orientation' => 'vertical',
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' => 'text',
254 'text' => '<h1 style="text-align: center;"><strong>Get back in the game</strong></h1>',
255 ],
256 ],
257 ],
258 ],
259 ],
260 3 =>
261 [
262 'type' => 'container',
263 'columnLayout' => false,
264 'orientation' => 'horizontal',
265 'image' =>
266 [
267 'src' => null,
268 'display' => 'scale',
269 ],
270 'styles' =>
271 [
272 'block' =>
273 [
274 'backgroundColor' => '#ffffff',
275 ],
276 ],
277 'blocks' =>
278 [
279 0 =>
280 [
281 'type' => 'container',
282 'columnLayout' => false,
283 'orientation' => 'vertical',
284 'image' =>
285 [
286 'src' => null,
287 'display' => 'scale',
288 ],
289 'styles' =>
290 [
291 'block' =>
292 [
293 'backgroundColor' => 'transparent',
294 ],
295 ],
296 'blocks' =>
297 [
298 0 =>
299 [
300 'type' => 'image',
301 'link' => '',
302 'src' => $this->template_image_url . '/Fitness-Header.jpg',
303 'alt' => 'Fitness-Header',
304 'fullWidth' => true,
305 'width' => '1280px',
306 'height' => '696px',
307 'styles' =>
308 [
309 'block' =>
310 [
311 'textAlign' => 'center',
312 ],
313 ],
314 ],
315 ],
316 ],
317 ],
318 ],
319 4 =>
320 [
321 'type' => 'container',
322 'columnLayout' => false,
323 'orientation' => 'horizontal',
324 'image' =>
325 [
326 'src' => null,
327 'display' => 'scale',
328 ],
329 'styles' =>
330 [
331 'block' =>
332 [
333 'backgroundColor' => 'transparent',
334 ],
335 ],
336 'blocks' =>
337 [
338 0 =>
339 [
340 'type' => 'container',
341 'columnLayout' => false,
342 'orientation' => 'vertical',
343 'image' =>
344 [
345 'src' => null,
346 'display' => 'scale',
347 ],
348 'styles' =>
349 [
350 'block' =>
351 [
352 'backgroundColor' => 'transparent',
353 ],
354 ],
355 'blocks' =>
356 [
357 0 =>
358 [
359 'type' => 'spacer',
360 'styles' =>
361 [
362 'block' =>
363 [
364 'backgroundColor' => 'transparent',
365 'height' => '40px',
366 ],
367 ],
368 ],
369 1 =>
370 [
371 'type' => 'text',
372 'text' => '<h3 style="text-align: center;"><strong>You\'ve left something in your cart...</strong></h3>',
373 ],
374 ],
375 ],
376 ],
377 ],
378 5 =>
379 [
380 'type' => 'abandonedCartContent',
381 'withLayout' => true,
382 'amount' => '2',
383 'contentType' => 'product',
384 'postStatus' => 'publish',
385 'inclusionType' => 'include',
386 'displayType' => 'full',
387 'titleFormat' => 'h3',
388 'titleAlignment' => 'left',
389 'titleIsLink' => false,
390 'imageFullWidth' => false,
391 'titlePosition' => 'aboveExcerpt',
392 'featuredImagePosition' => 'left',
393 'pricePosition' => 'hidden',
394 'readMoreType' => 'none',
395 'readMoreText' => '',
396 'readMoreButton' =>
397 [
398 ],
399 'sortBy' => 'newest',
400 'showDivider' => true,
401 'divider' =>
402 [
403 'type' => 'divider',
404 'styles' =>
405 [
406 'block' =>
407 [
408 'backgroundColor' => 'transparent',
409 'padding' => '13px',
410 'borderStyle' => 'solid',
411 'borderWidth' => '3px',
412 'borderColor' => '#aaaaaa',
413 ],
414 ],
415 'context' => 'abandonedCartContent.divider',
416 ],
417 'backgroundColor' => '#ffffff',
418 'backgroundColorAlternate' => '#eeeeee',
419 ],
420 6 =>
421 [
422 'type' => 'container',
423 'columnLayout' => false,
424 'orientation' => 'horizontal',
425 'image' =>
426 [
427 'src' => null,
428 'display' => 'scale',
429 ],
430 'styles' =>
431 [
432 'block' =>
433 [
434 'backgroundColor' => 'transparent',
435 ],
436 ],
437 'blocks' =>
438 [
439 0 =>
440 [
441 'type' => 'container',
442 'columnLayout' => false,
443 'orientation' => 'vertical',
444 'image' =>
445 [
446 'src' => null,
447 'display' => 'scale',
448 ],
449 'styles' =>
450 [
451 'block' =>
452 [
453 'backgroundColor' => 'transparent',
454 ],
455 ],
456 'blocks' =>
457 [
458 0 =>
459 [
460 'type' => 'button',
461 'text' => 'Recover Cart',
462 'url' => '',
463 'styles' =>
464 [
465 'block' =>
466 [
467 'backgroundColor' => '#ffffff',
468 'borderColor' => '#343434',
469 'borderWidth' => '3px',
470 'borderRadius' => '0px',
471 'borderStyle' => 'solid',
472 'width' => '146px',
473 'lineHeight' => '37px',
474 'fontColor' => '#343434',
475 'fontFamily' => 'Arial',
476 'fontSize' => '18px',
477 'fontWeight' => 'bold',
478 'textAlign' => 'center',
479 ],
480 ],
481 ],
482 1 =>
483 [
484 'type' => 'spacer',
485 'styles' =>
486 [
487 'block' =>
488 [
489 'backgroundColor' => 'transparent',
490 'height' => '20px',
491 ],
492 ],
493 ],
494 ],
495 ],
496 ],
497 ],
498 7 =>
499 [
500 'type' => 'container',
501 'columnLayout' => false,
502 'orientation' => 'horizontal',
503 'image' =>
504 [
505 'src' => null,
506 'display' => 'scale',
507 ],
508 'styles' =>
509 [
510 'block' =>
511 [
512 'backgroundColor' => '#afd147',
513 ],
514 ],
515 'blocks' =>
516 [
517 0 =>
518 [
519 'type' => 'container',
520 'columnLayout' => false,
521 'orientation' => 'vertical',
522 'image' =>
523 [
524 'src' => null,
525 'display' => 'scale',
526 ],
527 'styles' =>
528 [
529 'block' =>
530 [
531 'backgroundColor' => 'transparent',
532 ],
533 ],
534 'blocks' =>
535 [
536 0 =>
537 [
538 'type' => 'spacer',
539 'styles' =>
540 [
541 'block' =>
542 [
543 'backgroundColor' => 'transparent',
544 'height' => '30px',
545 ],
546 ],
547 ],
548 1 =>
549 [
550 'type' => 'text',
551 'text' => '<h3 style="text-align: center;"><strong>Still interested?</strong></h3>
552 <p style="text-align: center;"><strong>Here\'s 20% off your order if you complete it right now. We\'re nice like that.</strong></p>',
553 ],
554 2 =>
555 [
556 'productIds' => [],
557 'excludedProductIds' => [],
558 'productCategoryIds' => [],
559 'excludedProductCategoryIds' => [],
560 'type' => 'coupon',
561 'amount' => 10,
562 'amountMax' => 100,
563 'discountType' => 'percent',
564 'expiryDay' => 10,
565 'usageLimit' => '',
566 'usageLimitPerUser' => '',
567 'minimumAmount' => '',
568 'maximumAmount' => '',
569 'emailRestrictions' => '',
570 'styles' => [
571 'block' => [
572 'backgroundColor' => '#afd147',
573 'borderColor' => '#56741d',
574 'borderWidth' => '3px',
575 'borderRadius' => '5px',
576 'borderStyle' => 'solid',
577 'width' => '219px',
578 'lineHeight' => '50px',
579 'fontColor' => '#56741d',
580 'fontFamily' => 'Courier New',
581 'fontSize' => '26px',
582 'fontWeight' => 'bold',
583 'textAlign' => 'center',
584 ],
585 ],
586 'source' => 'createNew',
587 'code' => 'XXXX-XXXXXXX-XXXX',
588 ],
589 3 =>
590 [
591 'type' => 'spacer',
592 'styles' =>
593 [
594 'block' =>
595 [
596 'backgroundColor' => 'transparent',
597 'height' => '20px',
598 ],
599 ],
600 ],
601 ],
602 ],
603 ],
604 ],
605 8 =>
606 [
607 'type' => 'container',
608 'columnLayout' => false,
609 'orientation' => 'horizontal',
610 'image' =>
611 [
612 'src' => null,
613 'display' => 'scale',
614 ],
615 'styles' =>
616 [
617 'block' =>
618 [
619 'backgroundColor' => '#222222',
620 ],
621 ],
622 'blocks' =>
623 [
624 0 =>
625 [
626 'type' => 'container',
627 'columnLayout' => false,
628 'orientation' => 'vertical',
629 'image' =>
630 [
631 'src' => null,
632 'display' => 'scale',
633 ],
634 'styles' =>
635 [
636 'block' =>
637 [
638 'backgroundColor' => 'transparent',
639 ],
640 ],
641 'blocks' =>
642 [
643 0 =>
644 [
645 'type' => 'spacer',
646 'styles' =>
647 [
648 'block' =>
649 [
650 'backgroundColor' => 'transparent',
651 'height' => '40px',
652 ],
653 ],
654 ],
655 1 =>
656 [
657 'type' => 'image',
658 'link' => '',
659 'src' => $this->template_image_url . '/Fitness-Logo-Footer-1.png',
660 'alt' => 'Fitness-Logo-Footer-1',
661 'fullWidth' => false,
662 'width' => '180px',
663 'height' => '52px',
664 'styles' =>
665 [
666 'block' =>
667 [
668 'textAlign' => 'center',
669 ],
670 ],
671 ],
672 2 =>
673 [
674 'type' => 'social',
675 'iconSet' => 'official',
676 'styles' =>
677 [
678 'block' =>
679 [
680 'textAlign' => 'center',
681 ],
682 ],
683 'icons' =>
684 [
685 0 =>
686 [
687 'type' => 'socialIcon',
688 'iconType' => 'facebook',
689 'link' => 'http://www.facebook.com',
690 'image' => $this->social_icon_url . '/11-official/Facebook.png',
691 'height' => '32px',
692 'width' => '32px',
693 'text' => 'Facebook',
694 ],
695 1 =>
696 [
697 'type' => 'socialIcon',
698 'iconType' => 'twitter',
699 'link' => 'http://www.twitter.com',
700 'image' => $this->social_icon_url . '/11-official/X.png',
701 'height' => '32px',
702 'width' => '32px',
703 'text' => 'Twitter',
704 ],
705 2 =>
706 [
707 'type' => 'socialIcon',
708 'iconType' => 'instagram',
709 'link' => 'http://instagram.com',
710 'image' => $this->social_icon_url . '/11-official/Instagram.png',
711 'height' => '32px',
712 'width' => '32px',
713 'text' => 'Instagram',
714 ],
715 ],
716 ],
717 3 =>
718 [
719 'type' => 'text',
720 'text' => '<p style="text-align: center;"><span style="color: #999999;">Address Line 1, Address Line 2, City, Country</span></p>
721 <p style="text-align: center;"><span style="color: #999999;"><strong><a href="[link:subscription_unsubscribe_url]" style="color: #999999;">' . __("Unsubscribe", 'mailpoet') . '</a><span>&nbsp;</span>|<span>&nbsp;</span><a href="[link:subscription_manage_url]" style="color: #999999;">' . __("Manage your subscription", 'mailpoet') . '</a></strong></span></p>',
722 ],
723 4 =>
724 [
725 'type' => 'spacer',
726 'styles' =>
727 [
728 'block' =>
729 [
730 'backgroundColor' => 'transparent',
731 'height' => '40px',
732 ],
733 ],
734 ],
735 ],
736 ],
737 ],
738 ],
739 ],
740 ],
741 'globalStyles' =>
742 [
743 'text' =>
744 [
745 'fontColor' => '#4e4e4e',
746 'fontFamily' => 'Arial',
747 'fontSize' => '14px',
748 'lineHeight' => '1.6',
749 ],
750 'h1' =>
751 [
752 'fontColor' => '#4e4e4e',
753 'fontFamily' => 'Arial',
754 'fontSize' => '40px',
755 'lineHeight' => '1.6',
756 ],
757 'h2' =>
758 [
759 'fontColor' => '#4e4e4e',
760 'fontFamily' => 'Arial',
761 'fontSize' => '24px',
762 'lineHeight' => '1.6',
763 ],
764 'h3' =>
765 [
766 'fontColor' => '#4e4e4e',
767 'fontFamily' => 'Arial',
768 'fontSize' => '22px',
769 'lineHeight' => '1.6',
770 ],
771 'link' =>
772 [
773 'fontColor' => '#3c3c3c',
774 'textDecoration' => 'underline',
775 ],
776 'wrapper' =>
777 [
778 'backgroundColor' => '#ffffff',
779 ],
780 'body' =>
781 [
782 'backgroundColor' => '#222222',
783 ],
784 ],
785 'blockDefaults' =>
786 [
787 'abandonedCartContent' =>
788 [
789 'amount' => '2',
790 'withLayout' => true,
791 'contentType' => 'product',
792 'postStatus' => 'publish',
793 'inclusionType' => 'include',
794 'displayType' => 'full',
795 'titleFormat' => 'h3',
796 'titleAlignment' => 'left',
797 'titleIsLink' => false,
798 'imageFullWidth' => false,
799 'featuredImagePosition' => 'left',
800 'pricePosition' => 'hidden',
801 'readMoreType' => 'none',
802 'readMoreText' => '',
803 'readMoreButton' =>
804 [
805 ],
806 'sortBy' => 'newest',
807 'showDivider' => true,
808 'divider' =>
809 [
810 'context' => 'abandonedCartContent.divider',
811 'styles' =>
812 [
813 'block' =>
814 [
815 'backgroundColor' => 'transparent',
816 'padding' => '13px',
817 'borderStyle' => 'solid',
818 'borderWidth' => '3px',
819 'borderColor' => '#aaaaaa',
820 ],
821 ],
822 'type' => 'divider',
823 ],
824 'backgroundColor' => '#ffffff',
825 'backgroundColorAlternate' => '#eeeeee',
826 'type' => 'abandonedCartContent',
827 'titlePosition' => 'aboveExcerpt',
828 ],
829 'automatedLatestContent' =>
830 [
831 'amount' => '5',
832 'contentType' => 'post',
833 'inclusionType' => 'include',
834 'displayType' => 'excerpt',
835 'titleFormat' => 'h1',
836 'titleAlignment' => 'left',
837 'titleIsLink' => false,
838 'imageFullWidth' => false,
839 'featuredImagePosition' => 'belowTitle',
840 'showAuthor' => 'no',
841 'authorPrecededBy' => 'Author:',
842 'showCategories' => 'no',
843 'categoriesPrecededBy' => 'Categories:',
844 'readMoreType' => 'button',
845 'readMoreText' => 'Read more',
846 'readMoreButton' =>
847 [
848 'text' => 'Read more',
849 'url' => '[postLink]',
850 'context' => 'automatedLatestContent.readMoreButton',
851 'styles' =>
852 [
853 'block' =>
854 [
855 'backgroundColor' => '#2ea1cd',
856 'borderColor' => '#0074a2',
857 'borderWidth' => '1px',
858 'borderRadius' => '5px',
859 'borderStyle' => 'solid',
860 'width' => '180px',
861 'lineHeight' => '40px',
862 'fontColor' => '#ffffff',
863 'fontFamily' => 'Verdana',
864 'fontSize' => '18px',
865 'fontWeight' => 'normal',
866 'textAlign' => 'center',
867 ],
868 ],
869 ],
870 'sortBy' => 'newest',
871 'showDivider' => true,
872 'divider' =>
873 [
874 'context' => 'automatedLatestContent.divider',
875 'styles' =>
876 [
877 'block' =>
878 [
879 'backgroundColor' => 'transparent',
880 'padding' => '13px',
881 'borderStyle' => 'solid',
882 'borderWidth' => '3px',
883 'borderColor' => '#aaaaaa',
884 ],
885 ],
886 ],
887 'backgroundColor' => '#ffffff',
888 'backgroundColorAlternate' => '#eeeeee',
889 ],
890 'automatedLatestContentLayout' =>
891 [
892 'amount' => '5',
893 'withLayout' => true,
894 'contentType' => 'post',
895 'inclusionType' => 'include',
896 'displayType' => 'excerpt',
897 'titleFormat' => 'h1',
898 'titleAlignment' => 'left',
899 'titleIsLink' => false,
900 'imageFullWidth' => false,
901 'featuredImagePosition' => 'alternate',
902 'showAuthor' => 'no',
903 'authorPrecededBy' => 'Author:',
904 'showCategories' => 'no',
905 'categoriesPrecededBy' => 'Categories:',
906 'readMoreType' => 'button',
907 'readMoreText' => 'Read more',
908 'readMoreButton' =>
909 [
910 'text' => 'Read more',
911 'url' => '[postLink]',
912 'context' => 'automatedLatestContentLayout.readMoreButton',
913 'styles' =>
914 [
915 'block' =>
916 [
917 'backgroundColor' => '#2ea1cd',
918 'borderColor' => '#0074a2',
919 'borderWidth' => '1px',
920 'borderRadius' => '5px',
921 'borderStyle' => 'solid',
922 'width' => '180px',
923 'lineHeight' => '40px',
924 'fontColor' => '#ffffff',
925 'fontFamily' => 'Verdana',
926 'fontSize' => '18px',
927 'fontWeight' => 'normal',
928 'textAlign' => 'center',
929 ],
930 ],
931 ],
932 'sortBy' => 'newest',
933 'showDivider' => true,
934 'divider' =>
935 [
936 'context' => 'automatedLatestContentLayout.divider',
937 'styles' =>
938 [
939 'block' =>
940 [
941 'backgroundColor' => 'transparent',
942 'padding' => '13px',
943 'borderStyle' => 'solid',
944 'borderWidth' => '3px',
945 'borderColor' => '#aaaaaa',
946 ],
947 ],
948 ],
949 'backgroundColor' => '#ffffff',
950 'backgroundColorAlternate' => '#eeeeee',
951 ],
952 'button' =>
953 [
954 'text' => 'Recover Cart',
955 'url' => '',
956 'styles' =>
957 [
958 'block' =>
959 [
960 'backgroundColor' => '#ffffff',
961 'borderColor' => '#343434',
962 'borderWidth' => '3px',
963 'borderRadius' => '0px',
964 'borderStyle' => 'solid',
965 'width' => '146px',
966 'lineHeight' => '37px',
967 'fontColor' => '#343434',
968 'fontFamily' => 'Arial',
969 'fontSize' => '18px',
970 'fontWeight' => 'bold',
971 'textAlign' => 'center',
972 ],
973 ],
974 'type' => 'button',
975 ],
976 'container' =>
977 [
978 ],
979 'divider' =>
980 [
981 'styles' =>
982 [
983 'block' =>
984 [
985 'backgroundColor' => 'transparent',
986 'padding' => '13px',
987 'borderStyle' => 'solid',
988 'borderWidth' => '3px',
989 'borderColor' => '#aaaaaa',
990 ],
991 ],
992 ],
993 'footer' =>
994 [
995 'text' => '<p><a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a> | <a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a><br />' . __("Add your postal address here!", 'mailpoet') . '</p>',
996 'styles' =>
997 [
998 'block' =>
999 [
1000 'backgroundColor' => 'transparent',
1001 ],
1002 'text' =>
1003 [
1004 'fontColor' => '#222222',
1005 'fontFamily' => 'Arial',
1006 'fontSize' => '12px',
1007 'textAlign' => 'center',
1008 ],
1009 'link' =>
1010 [
1011 'fontColor' => '#6cb7d4',
1012 'textDecoration' => 'none',
1013 ],
1014 ],
1015 ],
1016 'posts' =>
1017 [
1018 'amount' => '10',
1019 'contentType' => 'post',
1020 'postStatus' => 'publish',
1021 'inclusionType' => 'include',
1022 'displayType' => 'excerpt',
1023 'titleFormat' => 'h1',
1024 'titleAlignment' => 'left',
1025 'titleIsLink' => false,
1026 'imageFullWidth' => false,
1027 'featuredImagePosition' => 'belowTitle',
1028 'showAuthor' => 'no',
1029 'authorPrecededBy' => 'Author:',
1030 'showCategories' => 'no',
1031 'categoriesPrecededBy' => 'Categories:',
1032 'readMoreType' => 'link',
1033 'readMoreText' => 'Read more',
1034 'readMoreButton' =>
1035 [
1036 'text' => 'Read more',
1037 'url' => '[postLink]',
1038 'context' => 'posts.readMoreButton',
1039 'styles' =>
1040 [
1041 'block' =>
1042 [
1043 'backgroundColor' => '#2ea1cd',
1044 'borderColor' => '#0074a2',
1045 'borderWidth' => '1px',
1046 'borderRadius' => '5px',
1047 'borderStyle' => 'solid',
1048 'width' => '180px',
1049 'lineHeight' => '40px',
1050 'fontColor' => '#ffffff',
1051 'fontFamily' => 'Verdana',
1052 'fontSize' => '18px',
1053 'fontWeight' => 'normal',
1054 'textAlign' => 'center',
1055 ],
1056 ],
1057 ],
1058 'sortBy' => 'newest',
1059 'showDivider' => true,
1060 'divider' =>
1061 [
1062 'context' => 'posts.divider',
1063 'styles' =>
1064 [
1065 'block' =>
1066 [
1067 'backgroundColor' => 'transparent',
1068 'padding' => '13px',
1069 'borderStyle' => 'solid',
1070 'borderWidth' => '3px',
1071 'borderColor' => '#aaaaaa',
1072 ],
1073 ],
1074 ],
1075 'backgroundColor' => '#ffffff',
1076 'backgroundColorAlternate' => '#eeeeee',
1077 ],
1078 'products' =>
1079 [
1080 'amount' => '10',
1081 'withLayout' => true,
1082 'contentType' => 'product',
1083 'postStatus' => 'publish',
1084 'inclusionType' => 'include',
1085 'displayType' => 'excerpt',
1086 'titleFormat' => 'h1',
1087 'titleAlignment' => 'left',
1088 'titleIsLink' => false,
1089 'imageFullWidth' => false,
1090 'featuredImagePosition' => 'alternate',
1091 'pricePosition' => 'below',
1092 'readMoreType' => 'link',
1093 'readMoreText' => 'Buy now',
1094 'readMoreButton' =>
1095 [
1096 'text' => 'Buy now',
1097 'url' => '[postLink]',
1098 'context' => 'posts.readMoreButton',
1099 'styles' =>
1100 [
1101 'block' =>
1102 [
1103 'backgroundColor' => '#2ea1cd',
1104 'borderColor' => '#0074a2',
1105 'borderWidth' => '1px',
1106 'borderRadius' => '5px',
1107 'borderStyle' => 'solid',
1108 'width' => '180px',
1109 'lineHeight' => '40px',
1110 'fontColor' => '#ffffff',
1111 'fontFamily' => 'Verdana',
1112 'fontSize' => '18px',
1113 'fontWeight' => 'normal',
1114 'textAlign' => 'center',
1115 ],
1116 ],
1117 ],
1118 'sortBy' => 'newest',
1119 'showDivider' => true,
1120 'divider' =>
1121 [
1122 'context' => 'posts.divider',
1123 'styles' =>
1124 [
1125 'block' =>
1126 [
1127 'backgroundColor' => 'transparent',
1128 'padding' => '13px',
1129 'borderStyle' => 'solid',
1130 'borderWidth' => '3px',
1131 'borderColor' => '#aaaaaa',
1132 ],
1133 ],
1134 ],
1135 'backgroundColor' => '#ffffff',
1136 'backgroundColorAlternate' => '#eeeeee',
1137 ],
1138 'social' =>
1139 [
1140 'iconSet' => 'official',
1141 'icons' =>
1142 [
1143 0 =>
1144 [
1145 'type' => 'socialIcon',
1146 'iconType' => 'facebook',
1147 'link' => 'http://www.facebook.com',
1148 'image' => $this->social_icon_url . '/11-official/Facebook.png',
1149 'height' => '32px',
1150 'width' => '32px',
1151 'text' => 'Facebook',
1152 ],
1153 1 =>
1154 [
1155 'type' => 'socialIcon',
1156 'iconType' => 'twitter',
1157 'link' => 'http://www.twitter.com',
1158 'image' => $this->social_icon_url . '/11-official/X.png',
1159 'height' => '32px',
1160 'width' => '32px',
1161 'text' => 'Twitter',
1162 ],
1163 ],
1164 ],
1165 'spacer' =>
1166 [
1167 'styles' =>
1168 [
1169 'block' =>
1170 [
1171 'backgroundColor' => 'transparent',
1172 'height' => '40px',
1173 ],
1174 ],
1175 ],
1176 'header' =>
1177 [
1178 'text' => '<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a>',
1179 'styles' =>
1180 [
1181 'block' =>
1182 [
1183 'backgroundColor' => 'transparent',
1184 ],
1185 'text' =>
1186 [
1187 'fontColor' => '#222222',
1188 'fontFamily' => 'Arial',
1189 'fontSize' => '12px',
1190 'textAlign' => 'center',
1191 ],
1192 'link' =>
1193 [
1194 'fontColor' => '#6cb7d4',
1195 'textDecoration' => 'underline',
1196 ],
1197 ],
1198 ],
1199 'woocommerceHeading' =>
1200 [
1201 'contents' =>
1202 [
1203 'new_account' => __('New Order: #0001', 'mailpoet'),
1204 'processing_order' => __('Thank you for your order', 'mailpoet'),
1205 'completed_order' => __('Thanks for shopping with us', 'mailpoet'),
1206 'customer_note' => __('A note has been added to your order', 'mailpoet'),
1207 ],
1208 ],
1209 ],
1210 ];
1211 }
1212 }
1213