PluginProbe
YayMail – WooCommerce Email Customizer / 4.4.0
YayMail – WooCommerce Email Customizer v4.4.0
4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 3.4.2 3.4.3 All 55 releases
yaymail / src / TemplatePatterns / Patterns / Banner4.php

Banner4.php in YayMail – WooCommerce Email Customizer 4.4.0, at src/TemplatePatterns/Patterns/Banner4.php

131 lines 6.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace YayMail\TemplatePatterns\Patterns;
3
4 use YayMail\Abstracts\BasePattern;
5 use YayMail\Elements\Column;
6 use YayMail\Elements\ColumnLayout;
7 use YayMail\Elements\Image;
8 use YayMail\Elements\Text;
9 use YayMail\TemplatePatterns\SectionTemplates\Banner;
10 use YayMail\Utils\SingletonTrait;
11
12 /**
13 * Banner4 Elements
14 */
15 class Banner4 extends BasePattern {
16 use SingletonTrait;
17
18 public const TYPE = 'banner_4';
19
20 public function __construct() {
21 $this->id = uniqid();
22 $this->section = Banner::TYPE;
23 $this->position = 40;
24 $this->name = __( 'Banner 4', 'yaymail' );
25 $this->elements = [
26 ColumnLayout::get_object_data(
27 1,
28 [
29 'inner_background_color' => '#ffffff00',
30 'background_image' => [
31 'url' => 'https://images.wpbrandy.com/uploads/yaymail-banner-4-img-1-scaled.png',
32 'position' => 'custom',
33 'x_position' => 100,
34 'y_position' => 0,
35 'size' => 'custom',
36 'repeat' => 'no-repeat',
37 ],
38 'padding' => [
39 'top' => 30,
40 'bottom' => 20,
41 'left' => 5,
42 'right' => 5,
43 ],
44 'children' => [
45 Column::get_object_data(
46 100,
47 [
48 'children' => [
49 Image::get_object_data(
50 [
51 'src' => 'https://images.wpbrandy.com/uploads/yaymail-banner-4-img-2.png',
52 'padding' => [
53 'top' => 10,
54 'bottom' => 0,
55 'right' => 10,
56 'left' => 10,
57 ],
58 'align' => 'center',
59 'background_color' => '#ffffff00',
60 'width' => 77,
61 ]
62 ),
63 Text::get_object_data(
64 [
65 'rich_text' => '<p style="font-size: 30px; text-align: center; margin: 0px;"><span style="font-size: 36px;"><strong>Your Product are Waiting!</strong></span></p>',
66 'background_color' => '#ffffff00',
67 'padding' => [
68 'top' => 10,
69 'bottom' => 0,
70 'right' => 50,
71 'left' => 50,
72 ],
73 'text_color' => '#312760',
74 ]
75 ),
76 ],
77 ]
78 ),
79 ],
80 ]
81 ),
82 ColumnLayout::get_object_data(
83 1,
84 [
85 'padding' => [
86 'top' => 10,
87 'bottom' => 10,
88 'left' => 10,
89 'right' => 10,
90 ],
91 'children' => [
92 Column::get_object_data(
93 100,
94 [
95 'children' => [
96 Text::get_object_data(
97 [
98 'rich_text' => '<p style="font-size: 14px; text-align: center; margin: 0px;"><strong><span style="font-size: 16px;">Discover the joy of using them today </span><span style="white-space-collapse: preserve; font-size: 13px;">🎉</span></strong></p>',
99 'background_color' => '#ffffff00',
100 'text_color' => '#333439',
101 'padding' => [
102 'top' => 0,
103 'bottom' => 15,
104 'right' => 50,
105 'left' => 50,
106 ],
107 ]
108 ),
109 Text::get_object_data(
110 [
111 'rich_text' => '<p style="font-size: 14px; text-align: center; margin: 0px;"><span style="font-size: 16px;"><span style="text-decoration: underline;">Explore Now</span> <img src="https://images.wpbrandy.com/uploads/yaymail-banner-img-arrow-1.png" style="width:20px !important; height:20px !important;" alt="" width="12" height="12" /></span></p>',
112 'background_color' => '#ffffff00',
113 'text_color' => '#333439',
114 'padding' => [
115 'top' => 0,
116 'bottom' => 0,
117 'right' => 0,
118 'left' => 0,
119 ],
120 ]
121 ),
122 ],
123 ]
124 ),
125 ],
126 ]
127 ),
128 ];
129 }
130 }
131