PluginProbe
MailPoet – Newsletters, Email Marketing, and Automation / 5.33.1
MailPoet – Newsletters, Email Marketing, and Automation v5.33.1
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 4.44.0 All 541 releases
mailpoet / lib / Config / PopulatorData / Templates / Sunglasses.php
Sunglasses.php
715 lines 31.4 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 Sunglasses {
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/sunglasses';
17 $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
18 }
19
20 public function get() {
21 return [
22 'name' => __("Sunglasses", 'mailpoet'),
23 'categories' => json_encode(['welcome', '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.20190411-1500.jpg';
32 }
33
34 private function getBody() {
35 return [
36 'content' =>
37 [
38 'type' => 'container',
39 'orientation' => 'vertical',
40 'styles' =>
41 [
42 'block' =>
43 [
44 'backgroundColor' => 'transparent',
45 ],
46 ],
47 'blocks' =>
48 [
49 0 =>
50 [
51 'type' => 'container',
52 'orientation' => 'horizontal',
53 'styles' =>
54 [
55 'block' =>
56 [
57 'backgroundColor' => 'transparent',
58 ],
59 ],
60 'blocks' =>
61 [
62 0 =>
63 [
64 'type' => 'container',
65 'orientation' => 'vertical',
66 'styles' =>
67 [
68 'block' =>
69 [
70 'backgroundColor' => 'transparent',
71 ],
72 ],
73 'blocks' =>
74 [
75 0 =>
76 [
77 'type' => 'spacer',
78 'styles' =>
79 [
80 'block' =>
81 [
82 'backgroundColor' => 'transparent',
83 'height' => '30px',
84 ],
85 ],
86 ],
87 1 =>
88 [
89 'type' => 'image',
90 'link' => '',
91 'src' => $this->template_image_url . '/Glasses-Logo.jpg',
92 'alt' => 'Glasses-Logo',
93 'fullWidth' => false,
94 'width' => '250px',
95 'height' => '66px',
96 'styles' =>
97 [
98 'block' =>
99 [
100 'textAlign' => 'center',
101 ],
102 ],
103 ],
104 2 =>
105 [
106 'type' => 'divider',
107 'styles' =>
108 [
109 'block' =>
110 [
111 'backgroundColor' => '#ffffff',
112 'padding' => '17px',
113 'borderStyle' => 'solid',
114 'borderWidth' => '2px',
115 'borderColor' => '#f8b849',
116 ],
117 ],
118 ],
119 3 =>
120 [
121 'type' => 'spacer',
122 'styles' =>
123 [
124 'block' =>
125 [
126 'backgroundColor' => 'transparent',
127 'height' => '30px',
128 ],
129 ],
130 ],
131 4 =>
132 [
133 'type' => 'image',
134 'link' => '',
135 'src' => $this->template_image_url . '/Glasses-Header-2.jpg',
136 'alt' => 'Glasses-Header-2',
137 'fullWidth' => true,
138 'width' => '1280px',
139 'height' => '116px',
140 'styles' =>
141 [
142 'block' =>
143 [
144 'textAlign' => 'center',
145 ],
146 ],
147 ],
148 5 =>
149 [
150 'type' => 'spacer',
151 'styles' =>
152 [
153 'block' =>
154 [
155 'backgroundColor' => 'transparent',
156 'height' => '30px',
157 ],
158 ],
159 ],
160 ],
161 ],
162 ],
163 ],
164 1 =>
165 [
166 'type' => 'container',
167 'orientation' => 'horizontal',
168 'styles' =>
169 [
170 'block' =>
171 [
172 'backgroundColor' => 'transparent',
173 ],
174 ],
175 'blocks' =>
176 [
177 0 =>
178 [
179 'type' => 'container',
180 'orientation' => 'vertical',
181 'styles' =>
182 [
183 'block' =>
184 [
185 'backgroundColor' => 'transparent',
186 ],
187 ],
188 'blocks' =>
189 [
190 0 =>
191 [
192 'type' => 'text',
193 'text' => '<h3 style="text-align: center;"><span style="color: #333333;"><strong>Here\'s what we sent you</strong></span></h3>',
194 ],
195 ],
196 ],
197 ],
198 ],
199 2 =>
200 [
201 'type' => 'container',
202 'orientation' => 'horizontal',
203 'styles' =>
204 [
205 'block' =>
206 [
207 'backgroundColor' => 'transparent',
208 ],
209 ],
210 'blocks' =>
211 [
212 0 =>
213 [
214 'type' => 'container',
215 'orientation' => 'vertical',
216 'styles' =>
217 [
218 'block' =>
219 [
220 'backgroundColor' => 'transparent',
221 ],
222 ],
223 'blocks' =>
224 [
225 0 =>
226 [
227 'type' => 'image',
228 'link' => '',
229 'src' => $this->template_image_url . '/Glasses-Images-1.jpg',
230 'alt' => 'Glasses-Images-1',
231 'fullWidth' => true,
232 'width' => '1280px',
233 'height' => '650px',
234 'styles' =>
235 [
236 'block' =>
237 [
238 'textAlign' => 'center',
239 ],
240 ],
241 ],
242 1 =>
243 [
244 'type' => 'text',
245 'text' => '<p style="text-align: center;"><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra.</span></p>',
246 ],
247 2 =>
248 [
249 'type' => 'button',
250 'text' => 'Choose These Frames',
251 'url' => '',
252 'styles' =>
253 [
254 'block' =>
255 [
256 'backgroundColor' => '#f8b849',
257 'borderColor' => '#0074a2',
258 'borderWidth' => '0px',
259 'borderRadius' => '0px',
260 'borderStyle' => 'solid',
261 'width' => '195px',
262 'lineHeight' => '40px',
263 'fontColor' => '#ffffff',
264 'fontFamily' => 'Arial',
265 'fontSize' => '16px',
266 'fontWeight' => 'normal',
267 'textAlign' => 'center',
268 ],
269 ],
270 ],
271 3 =>
272 [
273 'type' => 'image',
274 'link' => '',
275 'src' => $this->template_image_url . '/Glasses-Images-2.jpg',
276 'alt' => 'Glasses-Images-2',
277 'fullWidth' => true,
278 'width' => '1280px',
279 'height' => '650px',
280 'styles' =>
281 [
282 'block' =>
283 [
284 'textAlign' => 'center',
285 ],
286 ],
287 ],
288 4 =>
289 [
290 'type' => 'text',
291 'text' => '<p style="text-align: center;"><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra.</span></p>',
292 ],
293 5 =>
294 [
295 'type' => 'button',
296 'text' => 'Choose These Frames',
297 'url' => '',
298 'styles' =>
299 [
300 'block' =>
301 [
302 'backgroundColor' => '#f8b849',
303 'borderColor' => '#0074a2',
304 'borderWidth' => '0px',
305 'borderRadius' => '0px',
306 'borderStyle' => 'solid',
307 'width' => '195px',
308 'lineHeight' => '40px',
309 'fontColor' => '#ffffff',
310 'fontFamily' => 'Arial',
311 'fontSize' => '16px',
312 'fontWeight' => 'normal',
313 'textAlign' => 'center',
314 ],
315 ],
316 ],
317 6 =>
318 [
319 'type' => 'image',
320 'link' => '',
321 'src' => $this->template_image_url . '/Glasses-Images-3.jpg',
322 'alt' => 'Glasses-Images-3',
323 'fullWidth' => true,
324 'width' => '1280px',
325 'height' => '650px',
326 'styles' =>
327 [
328 'block' =>
329 [
330 'textAlign' => 'center',
331 ],
332 ],
333 ],
334 7 =>
335 [
336 'type' => 'text',
337 'text' => '<p style="text-align: center;"><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra.</span></p>',
338 ],
339 8 =>
340 [
341 'type' => 'button',
342 'text' => 'Choose These Frames',
343 'url' => '',
344 'styles' =>
345 [
346 'block' =>
347 [
348 'backgroundColor' => '#f8b849',
349 'borderColor' => '#0074a2',
350 'borderWidth' => '0px',
351 'borderRadius' => '0px',
352 'borderStyle' => 'solid',
353 'width' => '195px',
354 'lineHeight' => '40px',
355 'fontColor' => '#ffffff',
356 'fontFamily' => 'Arial',
357 'fontSize' => '16px',
358 'fontWeight' => 'normal',
359 'textAlign' => 'center',
360 ],
361 ],
362 ],
363 9 =>
364 [
365 'type' => 'divider',
366 'styles' =>
367 [
368 'block' =>
369 [
370 'backgroundColor' => '#ffffff',
371 'padding' => '34.5px',
372 'borderStyle' => 'solid',
373 'borderWidth' => '2px',
374 'borderColor' => '#f8b849',
375 ],
376 ],
377 ],
378 ],
379 ],
380 ],
381 ],
382 3 =>
383 [
384 'type' => 'container',
385 'orientation' => 'horizontal',
386 'styles' =>
387 [
388 'block' =>
389 [
390 'backgroundColor' => 'transparent',
391 ],
392 ],
393 'blocks' =>
394 [
395 0 =>
396 [
397 'type' => 'container',
398 'orientation' => 'vertical',
399 'styles' =>
400 [
401 'block' =>
402 [
403 'backgroundColor' => 'transparent',
404 ],
405 ],
406 'blocks' =>
407 [
408 0 =>
409 [
410 'type' => 'image',
411 'link' => '',
412 'src' => $this->template_image_url . '/Glasses-Header.jpg',
413 'alt' => 'Glasses-Header',
414 'fullWidth' => true,
415 'width' => '640px',
416 'height' => '920px',
417 'styles' =>
418 [
419 'block' =>
420 [
421 'textAlign' => 'center',
422 ],
423 ],
424 ],
425 ],
426 ],
427 1 =>
428 [
429 'type' => 'container',
430 'orientation' => 'vertical',
431 'styles' =>
432 [
433 'block' =>
434 [
435 'backgroundColor' => 'transparent',
436 ],
437 ],
438 'blocks' =>
439 [
440 0 =>
441 [
442 'type' => 'spacer',
443 'styles' =>
444 [
445 'block' =>
446 [
447 'backgroundColor' => 'transparent',
448 'height' => '60px',
449 ],
450 ],
451 ],
452 1 =>
453 [
454 'type' => 'text',
455 'text' => '<h3><strong>Our Summer Range Is Here</strong></h3>
456 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra. Pellentesque in interdum eros, a venenatis velit.</p>
457 <p></p>
458 <p>Fusce finibus convallis augue, ut viverra felis placerat in. Curabitur et commodo ipsum. Mauris tellus metus, tristique vel sollicitudin ut, malesuada in augue.&nbsp;</p>',
459 ],
460 2 =>
461 [
462 'type' => 'button',
463 'text' => 'Find Out More',
464 'url' => '',
465 'styles' =>
466 [
467 'block' =>
468 [
469 'backgroundColor' => '#f8b849',
470 'borderColor' => '#0074a2',
471 'borderWidth' => '0px',
472 'borderRadius' => '0px',
473 'borderStyle' => 'solid',
474 'width' => '137px',
475 'lineHeight' => '40px',
476 'fontColor' => '#ffffff',
477 'fontFamily' => 'Arial',
478 'fontSize' => '16px',
479 'fontWeight' => 'normal',
480 'textAlign' => 'left',
481 ],
482 ],
483 ],
484 ],
485 ],
486 ],
487 ],
488 4 =>
489 [
490 'type' => 'container',
491 'orientation' => 'horizontal',
492 'styles' =>
493 [
494 'block' =>
495 [
496 'backgroundColor' => '#ffffff',
497 ],
498 ],
499 'blocks' =>
500 [
501 0 =>
502 [
503 'type' => 'container',
504 'orientation' => 'vertical',
505 'styles' =>
506 [
507 'block' =>
508 [
509 'backgroundColor' => 'transparent',
510 ],
511 ],
512 'blocks' =>
513 [
514 0 =>
515 [
516 'type' => 'divider',
517 'styles' =>
518 [
519 'block' =>
520 [
521 'backgroundColor' => '#ffffff',
522 'padding' => '34.5px',
523 'borderStyle' => 'solid',
524 'borderWidth' => '2px',
525 'borderColor' => '#f8b849',
526 ],
527 ],
528 ],
529 ],
530 ],
531 ],
532 ],
533 5 =>
534 [
535 'type' => 'container',
536 'orientation' => 'horizontal',
537 'styles' =>
538 [
539 'block' =>
540 [
541 'backgroundColor' => 'transparent',
542 ],
543 ],
544 'blocks' =>
545 [
546 0 =>
547 [
548 'type' => 'container',
549 'orientation' => 'vertical',
550 'styles' =>
551 [
552 'block' =>
553 [
554 'backgroundColor' => 'transparent',
555 ],
556 ],
557 'blocks' =>
558 [
559 0 =>
560 [
561 'type' => 'text',
562 'text' => '<h2 style="text-align: center;"><span style="color: #333333;"><strong>Got any questions or need some help?</strong></span></h2>
563 <p style="text-align: center;"><span style="color: #333333;">We\'re just a click or a phone call away.</span></p>
564 <p style="text-align: center;"><span style="color: #333333;"></span></p>
565 <h3 style="text-align: center;"><span style="color: #333333;"><strong>Call Us:</strong> 08856877854</span></h3>
566 <h3 style="text-align: center;"></h3>',
567 ],
568 1 =>
569 [
570 'type' => 'divider',
571 'styles' =>
572 [
573 'block' =>
574 [
575 'backgroundColor' => '#ffffff',
576 'padding' => '23.5px',
577 'borderStyle' => 'solid',
578 'borderWidth' => '2px',
579 'borderColor' => '#f8b849',
580 ],
581 ],
582 ],
583 ],
584 ],
585 ],
586 ],
587 6 =>
588 [
589 'type' => 'container',
590 'orientation' => 'horizontal',
591 'styles' =>
592 [
593 'block' =>
594 [
595 'backgroundColor' => '#ffffff',
596 ],
597 ],
598 'blocks' =>
599 [
600 0 =>
601 [
602 'type' => 'container',
603 'orientation' => 'vertical',
604 'styles' =>
605 [
606 'block' =>
607 [
608 'backgroundColor' => 'transparent',
609 ],
610 ],
611 'blocks' =>
612 [
613 0 =>
614 [
615 'type' => 'social',
616 'iconSet' => 'official',
617 'icons' =>
618 [
619 0 =>
620 [
621 'type' => 'socialIcon',
622 'iconType' => 'facebook',
623 'link' => 'http://www.facebook.com',
624 'image' => $this->social_icon_url . '/11-official/Facebook.png',
625 'height' => '32px',
626 'width' => '32px',
627 'text' => 'Facebook',
628 ],
629 1 =>
630 [
631 'type' => 'socialIcon',
632 'iconType' => 'twitter',
633 'link' => 'http://www.twitter.com',
634 'image' => $this->social_icon_url . '/11-official/X.png',
635 'height' => '32px',
636 'width' => '32px',
637 'text' => 'Twitter',
638 ],
639 2 =>
640 [
641 'type' => 'socialIcon',
642 'iconType' => 'instagram',
643 'link' => 'http://instagram.com',
644 'image' => $this->social_icon_url . '/11-official/Instagram.png',
645 'height' => '32px',
646 'width' => '32px',
647 'text' => 'Instagram',
648 ],
649 3 =>
650 [
651 'type' => 'socialIcon',
652 'iconType' => 'email',
653 'link' => '',
654 'image' => $this->social_icon_url . '/11-official/Email.png',
655 'height' => '32px',
656 'width' => '32px',
657 'text' => 'Email',
658 ],
659 ],
660 ],
661 1 =>
662 [
663 'type' => 'text',
664 'text' => '<p style="text-align: center; font-size: 11px;"><strong><span style="color: #808080;"><a href="[link:subscription_unsubscribe_url]" style="color: #808080;">' . __("Unsubscribe", 'mailpoet') . '</a>&nbsp;|&nbsp;<a href="[link:subscription_manage_url]" style="color: #808080;">' . __("Manage your subscription", 'mailpoet') . '</a></span></strong><br /><span style="color: #808080;">' . __("Add your postal address here!", 'mailpoet') . '</span></p>',
665 ],
666 ],
667 ],
668 ],
669 ],
670 ],
671 ],
672 'globalStyles' =>
673 [
674 'text' =>
675 [
676 'fontColor' => '#000000',
677 'fontFamily' => 'Arial',
678 'fontSize' => '15px',
679 ],
680 'h1' =>
681 [
682 'fontColor' => '#111111',
683 'fontFamily' => 'Arial',
684 'fontSize' => '30px',
685 ],
686 'h2' =>
687 [
688 'fontColor' => '#222222',
689 'fontFamily' => 'Arial',
690 'fontSize' => '24px',
691 ],
692 'h3' =>
693 [
694 'fontColor' => '#333333',
695 'fontFamily' => 'Arial',
696 'fontSize' => '22px',
697 ],
698 'link' =>
699 [
700 'fontColor' => '#21759B',
701 'textDecoration' => 'underline',
702 ],
703 'wrapper' =>
704 [
705 'backgroundColor' => '#ffffff',
706 ],
707 'body' =>
708 [
709 'backgroundColor' => '#ffffff',
710 ],
711 ],
712 ];
713 }
714 }
715