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

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

302 lines 14.1 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\Divider;
8 use YayMail\Elements\ImageList;
9 use YayMail\Elements\Logo;
10 use YayMail\Elements\SocialIcon;
11 use YayMail\Elements\Text;
12 use YayMail\TemplatePatterns\SectionTemplates\Footer;
13 use YayMail\Utils\SingletonTrait;
14
15 /** */
16 class Footer8 extends BasePattern {
17 use SingletonTrait;
18
19 public const TYPE = 'footer_8';
20
21 private function __construct() {
22 $this->id = uniqid();
23 $this->section = Footer::TYPE;
24 $this->position = 80;
25 $this->name = __( 'Footer 8', 'yaymail' );
26 $this->elements = [
27 ColumnLayout::get_object_data(
28 2,
29 [
30 'inner_background_color' => '#ffffff00',
31 'padding' => [
32 'top' => 40,
33 'bottom' => 0,
34 'left' => 40,
35 'right' => 40,
36 ],
37 'children' => [
38 Column::get_object_data(
39 50,
40 [
41 'children' => [
42 Logo::get_object_data(
43 [
44 'background_color' => '#ffffff',
45 'align' => 'left',
46 'src' => 'https://images.wpbrandy.com/uploads/yaymail-footer-img-1.png',
47 'width' => '142',
48 'url' => '#',
49 'padding' => [
50 'top' => 0,
51 'right' => 0,
52 'bottom' => 0,
53 'left' => 0,
54 ],
55 ]
56 ),
57 ],
58 ]
59 ),
60 Column::get_object_data(
61 50,
62 [
63 'children' => [
64 Text::get_object_data(
65 [
66 'rich_text' => '<p style="text-align: left; font-size: 16px; font-weight: 500; margin: 0;">Get the app</p>',
67 'text_color' => '#333439',
68 'padding' => [
69 'top' => 0,
70 'bottom' => 0,
71 'left' => 0,
72 'right' => 0,
73 ],
74 ]
75 ),
76 ],
77 ]
78 ),
79
80 ],
81 ]
82 ),
83 ColumnLayout::get_object_data(
84 2,
85 [
86 'inner_background_color' => '#ffffff00',
87 'padding' => [
88 'top' => 0,
89 'bottom' => 0,
90 'left' => 40,
91 'right' => 40,
92 ],
93 'children' => [
94 Column::get_object_data(
95 50,
96 [
97 'children' => [
98 Text::get_object_data(
99 [
100 'rich_text' => '<p style="text-align: left; font-weight: 300;"><span>5470 Washington Square South, NY 10012, New York City, United States.</span></p>',
101 'padding' => [
102 'top' => 0,
103 'bottom' => 0,
104 'left' => 0,
105 'right' => 0,
106 ],
107 ]
108 ),
109 ],
110 ]
111 ),
112 Column::get_object_data(
113 50,
114 [
115 'children' => [
116 Text::get_object_data(
117 [
118 'rich_text' => '<p style="text-align: left; font-weight: 300;"><span>Try the our mobile app to comment, replies, when you\'re on the go.</span></p>',
119 'padding' => [
120 'top' => 0,
121 'bottom' => 0,
122 'left' => 0,
123 'right' => 0,
124 ],
125 ]
126 ),
127 ],
128 ]
129 ),
130 ],
131 ]
132 ),
133 ColumnLayout::get_object_data(
134 2,
135 [
136 'inner_background_color' => '#ffffff00',
137 'padding' => [
138 'top' => 0,
139 'bottom' => 0,
140 'left' => 40,
141 'right' => 40,
142 ],
143 'children' => [
144 Column::get_object_data(
145 50,
146 [
147 'children' => [
148 SocialIcon::get_object_data(
149 [
150 'align' => 'left',
151 'spacing' => 24,
152 'width_icon' => 24,
153 'style' => 'Colorful',
154 'icon_list' => [
155
156 [
157 'icon' => 'facebook',
158 'url' => '#',
159 ],
160 [
161 'icon' => 'instagram',
162 'url' => '#',
163 ],
164 [
165 'icon' => 'tiktok',
166 'url' => '#',
167 ],
168 [
169 'icon' => 'youtube',
170 'url' => '#',
171 ],
172 ],
173 'padding' => [
174 'top' => 0,
175 'right' => 0,
176 'bottom' => 0,
177 'left' => 0,
178 ],
179 ]
180 ),
181 ],
182 ]
183 ),
184 Column::get_object_data(
185 50,
186 [
187 'children' => [
188 ImageList::get_object_data(
189 [
190 'background_color' => '#ffffff',
191 'number_column' => 2,
192 'column_1' => [
193 'align' => 'left',
194 'padding' => [
195 'top' => 10,
196 'bottom' => 0,
197 'right' => 10,
198 'left' => 0,
199 ],
200 'image' => 'https://images.wpbrandy.com/uploads/yaymail-footer-2-img-1.png',
201 'width' => 108,
202 ],
203 'column_2' => [
204 'align' => 'left',
205 'padding' => [
206 'top' => 10,
207 'bottom' => 0,
208 'right' => 0,
209 'left' => 0,
210 ],
211 'image' => 'https://images.wpbrandy.com/uploads/yaymail-footer-2-img-2.png',
212 'width' => 108,
213 ],
214 ]
215 ),
216 ],
217 ]
218 ),
219 ],
220 ]
221 ),
222 Divider::get_object_data(
223 [
224 'height' => 1,
225 'width' => 100,
226 'divider_color' => '#F1F2F5',
227 'padding' => [
228 'top' => 20,
229 'right' => 40,
230 'bottom' => 15,
231 'left' => 40,
232 ],
233 ]
234 ),
235 Text::get_object_data(
236 [
237 'rich_text' => '<p style="text-align: left; font-size: 12px; font-weight: 300;">For your privacy, please do not forward this mail to anyone as it allows you to get automatically logged into your account. If you do not want to receive this mailer, <u>unsubcribe</u>. To make sure this email is not sent to your "junk/bulk" folder, select "Add/save to Address Book" in your email browser and follow the appropriate instructions.</p>',
238 'padding' => [
239 'top' => 0,
240 'bottom' => 0,
241 'left' => 40,
242 'right' => 40,
243 ],
244 'text_color' => '#77859B',
245 ]
246 ),
247 ColumnLayout::get_object_data(
248 2,
249 [
250 'inner_background_color' => '#ffffff00',
251 'padding' => [
252 'top' => 0,
253 'bottom' => 0,
254 'left' => 40,
255 'right' => 40,
256 ],
257 'children' => [
258 Column::get_object_data(
259 50,
260 [
261 'children' => [
262 Text::get_object_data(
263 [
264 'rich_text' => '<p style="text-align: left; font-size: 12px; font-weight: 300;">© 2023 Made with love</p>',
265 'padding' => [
266 'top' => 0,
267 'right' => 0,
268 'bottom' => 0,
269 'left' => 0,
270 ],
271 'text_color' => '#77859B',
272 ]
273 ),
274 ],
275 ]
276 ),
277 Column::get_object_data(
278 50,
279 [
280 'children' => [
281 Text::get_object_data(
282 [
283 'rich_text' => '<p style="text-align: right; margin: 0; font-size: 12px; font-weight: 300;"><span style="margin: 0px 10px;">About us         Support Return         Policy</span></p>',
284 'padding' => [
285 'top' => 0,
286 'right' => 0,
287 'bottom' => 0,
288 'left' => 0,
289 ],
290 'text_color' => '#77859B',
291 ]
292 ),
293 ],
294 ]
295 ),
296 ],
297 ]
298 ),
299 ];
300 }
301 }
302