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 / Gallery2.php

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

196 lines 8.7 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\Gallery;
10 use YayMail\Utils\SingletonTrait;
11
12 /** */
13 class Gallery2 extends BasePattern {
14
15 use SingletonTrait;
16
17 public const TYPE = 'gallery_2';
18
19 private function __construct() {
20 $this->id = uniqid();
21 $this->section = Gallery::TYPE;
22 $this->position = 11;
23 $this->name = __( 'Gallery 2', 'yaymail' );
24 $this->elements = [
25 ColumnLayout::get_object_data(
26 2,
27 [
28 'inner_background_color' => '#ffffff00',
29 'padding' => [
30 'top' => 10,
31 'bottom' => 0,
32 'left' => 0,
33 'right' => 0,
34 ],
35 'children' => [
36 Column::get_object_data(
37 27,
38 [
39 'children' => [
40 Image::get_object_data(
41 [
42 'src' => 'https://images.wpbrandy.com/uploads/yaymail-instagram-icon-2.png',
43 'width' => 22,
44 'align' => 'right',
45 'padding' => [
46 'top' => 10,
47 'bottom' => 10,
48 'right' => 5,
49 'left' => 10,
50 ],
51 'background_color' => '#ffffff00',
52 ]
53 ),
54 ],
55 ]
56 ),
57 Column::get_object_data(
58 73,
59 [
60 'children' => [
61 Text::get_object_data(
62 [
63 'background_color' => '#ffffff00',
64 'text_color' => '#242527',
65 'rich_text' => '<p style="text-align: left; margin: 0;"><span style="font-size: 18px; font-weight: 600;">Follow us at @[yaymail_site_name]</span></p>',
66 'padding' => [
67 'top' => 10,
68 'bottom' => 10,
69 'right' => 10,
70 'left' => 5,
71 ],
72 ]
73 ),
74 ],
75 ]
76 ),
77 ],
78 ]
79 ),
80 ColumnLayout::get_object_data(
81 2,
82 [
83 'inner_background_color' => '#ffffff00',
84 'padding' => [
85 'top' => 5,
86 'bottom' => 0,
87 'left' => 10,
88 'right' => 10,
89 ],
90 'children' => [
91 Column::get_object_data(
92 50,
93 [
94 'children' => [
95 Image::get_object_data(
96 [
97 'src' => 'https://images.wpbrandy.com/uploads/yaymail-gallery-2-image-1.png',
98 'width' => 290,
99 'align' => 'center',
100 'background_color' => '#ffffff00',
101 'padding' => [
102 'top' => 10,
103 'bottom' => 5,
104 'right' => 5,
105 'left' => 10,
106 ],
107 ]
108 ),
109
110 ],
111 ]
112 ),
113 Column::get_object_data(
114 50,
115 [
116 'children' => [
117 Image::get_object_data(
118 [
119 'src' => 'https://images.wpbrandy.com/uploads/yaymail-gallery-2-image-2.png',
120 'width' => 290,
121 'align' => 'center',
122 'background_color' => '#ffffff00',
123 'padding' => [
124 'top' => 10,
125 'bottom' => 5,
126 'right' => 10,
127 'left' => 5,
128 ],
129 ]
130 ),
131 ],
132 ]
133 ),
134 ],
135 ]
136 ),
137 ColumnLayout::get_object_data(
138 2,
139 [
140 'inner_background_color' => '#ffffff00',
141 'padding' => [
142 'top' => 0,
143 'bottom' => 10,
144 'left' => 10,
145 'right' => 10,
146 ],
147 'children' => [
148 Column::get_object_data(
149 50,
150 [
151 'children' => [
152 Image::get_object_data(
153 [
154 'src' => 'https://images.wpbrandy.com/uploads/yaymail-gallery-2-image-3.png',
155 'width' => 290,
156 'align' => 'center',
157 'background_color' => '#ffffff00',
158 'padding' => [
159 'top' => 5,
160 'bottom' => 10,
161 'right' => 5,
162 'left' => 10,
163 ],
164 ]
165 ),
166 ],
167 ]
168 ),
169 Column::get_object_data(
170 50,
171 [
172 'children' => [
173 Image::get_object_data(
174 [
175 'src' => 'https://images.wpbrandy.com/uploads/yaymail-gallery-2-image-4.png',
176 'width' => 290,
177 'align' => 'center',
178 'background_color' => '#ffffff00',
179 'padding' => [
180 'top' => 5,
181 'bottom' => 10,
182 'right' => 10,
183 'left' => 5,
184 ],
185 ]
186 ),
187 ],
188 ]
189 ),
190 ],
191 ]
192 ),
193 ];
194 }
195 }
196