PluginProbe
YayMail – WooCommerce Email Customizer / trunk
YayMail – WooCommerce Email Customizer vtrunk
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 / Footer10.php

Footer10.php in YayMail – WooCommerce Email Customizer trunk, at src/TemplatePatterns/Patterns/Footer10.php

316 lines 16.0 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\Image;
9 use YayMail\Elements\ImageList;
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 Footer10 extends BasePattern {
17
18 use SingletonTrait;
19
20 public const TYPE = 'footer_10';
21
22 private function __construct() {
23 $this->id = uniqid();
24 $this->section = Footer::TYPE;
25 $this->position = 100;
26 $this->name = __( 'Footer 10', 'yaymail' );
27 $this->elements = [
28 ColumnLayout::get_object_data(
29 2,
30 [
31 'background_color' => '#F8FAFD',
32 'inner_background_color' => '#F8FAFD',
33 'padding' => [
34 'top' => 20,
35 'bottom' => 20,
36 'left' => 40,
37 'right' => 40,
38 ],
39 'children' => [
40 Column::get_object_data(
41 50,
42 [
43 'children' => [
44 SocialIcon::get_object_data(
45 [
46 'align' => 'left',
47 'spacing' => 24,
48 'width_icon' => 24,
49 'style' => 'Colorful',
50 'background_color' => '#ffffff00',
51 'icon_list' => [
52 [
53 'icon' => 'facebook',
54 'url' => '#',
55 ],
56 [
57 'icon' => 'instagram',
58 'url' => '#',
59 ],
60 [
61 'icon' => 'tiktok',
62 'url' => '#',
63 ],
64 [
65 'icon' => 'youtube',
66 'url' => '#',
67 ],
68 ],
69 'padding' => [
70 'top' => 0,
71 'right' => 0,
72 'bottom' => 0,
73 'left' => 0,
74 ],
75 ]
76 ),
77 ],
78 ]
79 ),
80 Column::get_object_data(
81 50,
82 [
83 'children' => [
84 ImageList::get_object_data(
85 [
86 'background_color' => '#ffffff00',
87 'number_column' => 2,
88 'column_1' =>
89 [
90 'image' => 'https://images.wpbrandy.com/uploads/yaymail-footer-2-img-1.png',
91 'align' => 'left',
92 'width' => 108,
93 'padding' => [
94 'top' => '10',
95 'right' => '0',
96 'bottom' => '0',
97 'left' => '10',
98
99 ],
100 ],
101 'column_2' =>
102 [
103 'image' => 'https://images.wpbrandy.com/uploads/yaymail-footer-2-img-2.png',
104 'align' => 'right',
105 'width' => 108,
106 'padding' => [
107 'top' => '10',
108 'right' => '10',
109 'bottom' => '0',
110 'left' => '0',
111
112 ],
113 ],
114 ]
115 ),
116 ],
117 ]
118 ),
119 ],
120 ]
121 ),
122 ColumnLayout::get_object_data(
123 3,
124 [
125 'padding' => [
126 'top' => 30,
127 'bottom' => 30,
128 'left' => 40,
129 'right' => 40,
130 ],
131 'children' => [
132 Column::get_object_data(
133 31,
134 [
135 'children' => [
136 Image::get_object_data(
137 [
138 'src' => 'https://images.wpbrandy.com/uploads/yaymail-footer-img-2.png',
139 'align' => 'left',
140 'padding' => [
141 'top' => 0,
142 'bottom' => 14,
143 'left' => 0,
144 'right' => 10,
145 ],
146 'width' => 24,
147 ]
148 ),
149 Text::get_object_data(
150 [
151 'rich_text' => '<p style="margin: 0px; text-align: left;"><strong><span>Visit help center</span></strong></p>',
152 'padding' => [
153 'top' => 0,
154 'right' => 10,
155 'bottom' => 10,
156 'left' => 0,
157 ],
158 'text_color' => '#333439',
159 ]
160 ),
161 Text::get_object_data(
162 [
163 'rich_text' => '<p style="margin: 0px; text-align: left;"><span>Let\'s check out <u>FAQs</u> and visit our <u>help center<u/></span></p>',
164 'padding' => [
165 'top' => 0,
166 'right' => 10,
167 'bottom' => 0,
168 'left' => 0,
169 ],
170 'text_color' => '#333439',
171 ]
172 ),
173 ],
174 ]
175 ),
176 Column::get_object_data(
177 34,
178 [
179 'children' => [
180 Image::get_object_data(
181 [
182 'src' => 'https://images.wpbrandy.com/uploads/yaymail-footer-img-3.png',
183 'align' => 'left',
184 'padding' => [
185 'top' => 0,
186 'bottom' => 14,
187 'left' => 0,
188 'right' => 10,
189 ],
190 'width' => 24,
191 ]
192 ),
193 Text::get_object_data(
194 [
195 'rich_text' => '<p style="margin: 0px; text-align: left;"><strong><span>Location</span></strong></p>',
196 'padding' => [
197 'top' => 0,
198 'right' => 10,
199 'bottom' => 10,
200 'left' => 0,
201 ],
202 'text_color' => '#333439',
203 ]
204 ),
205 Text::get_object_data(
206 [
207 'rich_text' => '<p style="margin: 0px; text-align: left;"><span>2370 Washington Square South NY 10012, New York</span></p>',
208 'padding' => [
209 'top' => 0,
210 'right' => 10,
211 'bottom' => 0,
212 'left' => 0,
213 ],
214 'text_color' => '#333439',
215 ]
216 ),
217 ],
218 ]
219 ),
220 Column::get_object_data(
221 35,
222 [
223 'children' => [
224 Image::get_object_data(
225 [
226 'src' => 'https://images.wpbrandy.com/uploads/yaymail-footer-img-4.png',
227 'align' => 'left',
228 'padding' => [
229 'top' => 0,
230 'bottom' => 14,
231 'left' => 0,
232 'right' => 0,
233 ],
234 'width' => 24,
235 ]
236 ),
237 Text::get_object_data(
238 [
239 'rich_text' => '<p style="margin: 0px; text-align: left;"><strong><span>Contact us</span></strong></p>',
240 'padding' => [
241 'top' => 0,
242 'right' => 0,
243 'bottom' => 10,
244 'left' => 0,
245 ],
246 'text_color' => '#333439',
247 ]
248 ),
249 Text::get_object_data(
250 [
251 'rich_text' => '<p style="margin: 0px; text-align: left;"><span>Call us <u>+1345 678 900</u> or say hi at <u>hello@example.com</u></span></p>',
252 'padding' => [
253 'top' => 0,
254 'right' => 0,
255 'bottom' => 0,
256 'left' => 0,
257 ],
258 'text_color' => '#333439',
259 ]
260 ),
261 ],
262 ]
263 ),
264 ],
265 ]
266 ),
267 ColumnLayout::get_object_data(
268 1,
269 [
270 'background_color' => '#ffffff',
271 'padding' => [
272 'top' => 0,
273 'bottom' => 30,
274 'right' => 40,
275 'left' => 40,
276 ],
277 'children' => [
278 Column::get_object_data(
279 100,
280 [
281 'children' => [
282 Divider::get_object_data(
283 [
284 'height' => 1,
285 'width' => 100,
286 'divider_color' => '#F1F2F5',
287 'padding' => [
288 'top' => 0,
289 'right' => 0,
290 'bottom' => 30,
291 'left' => 0,
292 ],
293 ]
294 ),
295 Text::get_object_data(
296 [
297 'rich_text' => '<p style="margin: 0px; text-align: left;">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>unsubscribe</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>
298 <p>© 2023 Made with love</p>',
299 'padding' => [
300 'top' => 0,
301 'right' => 0,
302 'bottom' => 0,
303 'left' => 0,
304 ],
305 ]
306 ),
307 ],
308 ]
309 ),
310 ],
311 ]
312 ),
313 ];
314 }
315 }
316