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 / TemplateLibrary / Templates / Processing / CozyPaws.php

CozyPaws.php in YayMail – WooCommerce Email Customizer trunk, at src/TemplateLibrary/Templates/Processing/CozyPaws.php

510 lines 29.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace YayMail\TemplateLibrary\Templates\Processing;
4
5 use YayMail\Abstracts\BaseTemplate;
6 use YayMail\Elements\BillingAddress;
7 use YayMail\Elements\Button;
8 use YayMail\Elements\Column;
9 use YayMail\Elements\ColumnLayout;
10 use YayMail\Elements\Divider;
11 use YayMail\Elements\Heading;
12 use YayMail\Elements\Logo;
13 use YayMail\Elements\OrderDetails;
14 use YayMail\Elements\ShippingAddress;
15 use YayMail\Elements\SocialIcon;
16 use YayMail\Elements\Text;
17 use YayMail\Utils\SingletonTrait;
18
19 /**
20 * Cozy Paws template for Processing Order email.
21 */
22 class CozyPaws extends BaseTemplate {
23 use SingletonTrait;
24
25 public function __construct() {
26 parent::__construct();
27 $this->id = 'processing_order_v11';
28 $this->email_type = 'customer_processing_order';
29 $this->name = 'Cozy Paws';
30 $this->description = 'Warm and welcoming pet store design.';
31 $this->categories = [ 'Pets Collection' ];
32 $this->access = 'free';
33 $this->modified_date = '2026-07-21';
34 $this->elements = [
35 ColumnLayout::get_object_data(
36 4,
37 [
38 'children' => [
39 Column::get_object_data(
40 29,
41 [
42 'children' => [
43 Logo::get_object_data(
44 [
45 'padding' => [
46 'top' => '10',
47 'right' => '10',
48 'bottom' => '10',
49 'left' => '0',
50 ],
51 'background_color' => '#FDE6C100',
52 'src' => 'https://images.wpbrandy.com/uploads/woo-black-logo.png',
53 'align' => 'left',
54 'width' => '116',
55 'alt' => 'Store logo',
56 ]
57 ),
58 ],
59 ]
60 ),
61 Column::get_object_data(
62 34.49,
63 [
64 'children' => [
65 Text::get_object_data(
66 [
67 'padding' => [
68 'top' => '15',
69 'right' => '0',
70 'bottom' => '15',
71 'left' => '0',
72 ],
73 'background_color' => '#FDE6C100',
74 'font_family' => '"Rethink Sans","Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
75 'text_color' => '#2f2d29',
76 'rich_text' => '<p style="text-align: right"><span style="font-size: 14px;font-weight: 400">My Account</span></p>',
77 ]
78 ),
79 ],
80 ]
81 ),
82 Column::get_object_data(
83 27.76,
84 [
85 'children' => [
86 Text::get_object_data(
87 [
88 'padding' => [
89 'top' => '15',
90 'right' => '0',
91 'bottom' => '15',
92 'left' => '0',
93 ],
94 'background_color' => '#FDE6C100',
95 'font_family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
96 'text_color' => '#3D2B1F',
97 'rich_text' => '<p style="text-align: center"><span style="font-size: 14px;font-weight: 400">Order Tracking</span></p>',
98 ]
99 ),
100 ],
101 ]
102 ),
103 Column::get_object_data(
104 8.75,
105 [
106 'children' => [
107 Text::get_object_data(
108 [
109 'padding' => [
110 'top' => '15',
111 'right' => '2',
112 'bottom' => '15',
113 'left' => '0',
114 ],
115 'background_color' => '#FDE6C100',
116 'font_family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
117 'text_color' => '#3D2B1F',
118 'rich_text' => '<p style="text-align: right"><span style="font-size: 14px;font-weight: 400">Contact</span></p>',
119 ]
120 ),
121 ],
122 ]
123 ),
124 ],
125 'padding' => [
126 'top' => '20',
127 'right' => '50',
128 'bottom' => '20',
129 'left' => '50',
130 ],
131 'background_color' => '#ffe1b0',
132 ]
133 ),
134 ColumnLayout::get_object_data(
135 1,
136 [
137 'children' => [
138 Column::get_object_data(
139 100,
140 [
141 'children' => [
142 ColumnLayout::get_object_data(
143 1,
144 [
145 'children' => [
146 Column::get_object_data(
147 100,
148 [
149 'children' => [
150 Text::get_object_data(
151 [
152 'padding' => [
153 'top' => '0',
154 'right' => '16',
155 'bottom' => '0',
156 'left' => '0',
157 ],
158 'background_color' => '#3D2B1F00',
159 'font_family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
160 'text_color' => '#ffffff',
161 'rich_text' => '<p><span style="font-size: 12px;font-weight: 600">ORDER CONFIRMED</span></p>',
162 ]
163 ),
164 Heading::get_object_data(
165 [
166 'padding' => [
167 'top' => '8',
168 'right' => '16',
169 'bottom' => '8',
170 'left' => '0',
171 ],
172 'background_color' => '#3D2B1F00',
173 'font_family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
174 'rich_text' => '<h1 style="font-size: 32px;font-weight: bold;line-height: 1.2 !important;color: #ffffff;margin: 0">We\'ve Received</h1>
175 <h1 style="font-size: 32px;font-weight: bold;line-height: 1.2 !important;color: #ffffff;margin: 0">Your Order</h1>',
176 ]
177 ),
178 Text::get_object_data(
179 [
180 'padding' => [
181 'top' => '0',
182 'right' => '16',
183 'bottom' => '0',
184 'left' => '0',
185 ],
186 'background_color' => '#3D2B1F00',
187 'font_family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
188 'text_color' => '#ffffff',
189 'rich_text' => '<p><span style="font-size: 14px">Order placed on [yaymail_order_date]</span></p><p><span style="font-size: 14px">Number ID #[yaymail_order_id is_plain="true"]</span></p>',
190 ]
191 ),
192 ],
193 ]
194 ),
195 ],
196 'padding' => [
197 'top' => 30,
198 'right' => 50,
199 'bottom' => 30,
200 'left' => 50,
201 ],
202 'background_image' => [
203 'url' => 'https://images.wpbrandy.com/uploads/processing-11-bg-1.png',
204 'position' => 'custom',
205 'x_position' => 0,
206 'y_position' => 0,
207 'repeat' => 'no-repeat',
208 'size' => 'cover',
209 ],
210 ]
211 ),
212 ],
213 ]
214 ),
215 ],
216 'padding' => [
217 'top' => '0',
218 'right' => 50,
219 'bottom' => '24',
220 'left' => 50,
221 ],
222 'background_color' => '#ffe1b0',
223 ]
224 ),
225 Text::get_object_data(
226 [
227 'padding' => [
228 'top' => '8',
229 'right' => '50',
230 'bottom' => '16',
231 'left' => '50',
232 ],
233 'background_color' => '#ffe1b0',
234 'font_family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
235 'text_color' => '#3D2B1F',
236 'rich_text' => '<p><span style="font-size: 16px;font-weight: 700">Hi <strong>[yaymail_billing_first_name]</strong>,</span></p><p><span style="font-size: 16px">We have successfully received it and it\'s now being processed. So, your order will be shipped within 24–48 hours.</span></p>',
237 ]
238 ),
239 ColumnLayout::get_object_data(
240 1,
241 [
242 'children' => [
243 Column::get_object_data(
244 100,
245 [
246 'children' => [
247 ColumnLayout::get_object_data(
248 1,
249 [
250 'children' => [
251 Column::get_object_data(
252 100,
253 [
254 'children' => [
255 OrderDetails::get_object_data(
256 [
257 'padding' => [
258 'top' => '0',
259 'right' => '0',
260 'bottom' => '8',
261 'left' => '0',
262 ],
263 'background_color' => '#fffae7',
264 'layout_type' => 'modern',
265 'title' => '<span style="font-size: 20px;font-weight: 700">Order Summary</span>',
266 'title_color' => '#3d2d21',
267 'text_color' => '#3d2d21',
268 'border_color' => '#8259391f',
269 'font_family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
270 'table_heading_font_size' => '12',
271 'product_title' => 'PRODUCT',
272 'cost_title' => 'PRICE',
273 'quantity_title' => 'QUANTITY',
274 'price_title' => 'TOTAL',
275 ]
276 ),
277 Button::get_object_data(
278 [
279 'padding' => [
280 'top' => '8',
281 'right' => '0',
282 'bottom' => '16',
283 'left' => '0',
284 ],
285 'background_color' => '#fffae7',
286 'width' => '100%',
287 'button_background_color' => '#825939',
288 'border_radius' => [
289 'top_left' => 0,
290 'top_right' => 0,
291 'bottom_right' => 0,
292 'bottom_left' => 0,
293 ],
294 'text' => 'View Your Order',
295 'url' => '[yaymail_order_url]',
296 'font_size' => '16',
297 'weight' => '500',
298 'font_family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
299 ]
300 ),
301 ],
302 ]
303 ),
304 ],
305 'padding' => [
306 'top' => '24',
307 'right' => '24',
308 'bottom' => '8',
309 'left' => '24',
310 ],
311 'border_radius' => [
312 'top_left' => 0,
313 'top_right' => 0,
314 'bottom_left' => 0,
315 'bottom_right' => 0,
316 ],
317 'background_color' => '#fffae7',
318 ]
319 ),
320 ],
321 ]
322 ),
323 ],
324 'padding' => [
325 'top' => '0',
326 'right' => 50,
327 'bottom' => '24',
328 'left' => 50,
329 ],
330 'background_color' => '#ffe1b0',
331 ]
332 ),
333 ColumnLayout::get_object_data(
334 2,
335 [
336 'children' => [
337 Column::get_object_data(
338 50,
339 [
340 'children' => [
341 ShippingAddress::get_object_data(
342 [
343 'padding' => [
344 'top' => 30,
345 'right' => 0,
346 'bottom' => 30,
347 'left' => 0,
348 ],
349 'background_color' => '#fffae7',
350 'layout_type' => 'modern',
351 'title_color' => '#3d2d21',
352 'text_color' => '#3d2d21',
353 'font_family' => 'Helvetica,Roboto,Arial,sans-serif',
354 'title' => '<p style="text-align: center"><span style="font-size: 20px;font-weight: 600">Shipping Address</span></p>',
355 'shipping_content_alignment' => 'center',
356 'shipping_content_text_format' => [
357 'bold' => false,
358 'italic' => false,
359 'underline' => false,
360 ],
361 ]
362 ),
363 ],
364 ]
365 ),
366 Column::get_object_data(
367 50,
368 [
369 'children' => [
370 BillingAddress::get_object_data(
371 [
372 'padding' => [
373 'top' => 30,
374 'right' => 0,
375 'bottom' => 30,
376 'left' => 0,
377 ],
378 'background_color' => '#fffae7',
379 'layout_type' => 'modern',
380 'title_color' => '#3d2d21',
381 'text_color' => '#3d2d21',
382 'font_family' => 'Helvetica,Roboto,Arial,sans-serif',
383 'title' => '<p style="text-align: center"><span style="font-size: 20px;font-weight: 600">Billing Address</span></p>',
384 'billing_content_alignment' => 'center',
385 'billing_content_text_format' => [
386 'bold' => false,
387 'italic' => false,
388 'underline' => false,
389 ],
390 ]
391 ),
392 ],
393 ]
394 ),
395 ],
396 'column_spacing' => 20,
397 'padding' => [
398 'top' => '15',
399 'right' => 50,
400 'bottom' => '15',
401 'left' => 50,
402 ],
403 'background_color' => '#ffe1b0',
404 ]
405 ),
406 Divider::get_object_data(
407 [
408 'height' => 1,
409 'background_color' => '#ffe1b0',
410 'divider_color' => '#8259391f',
411 ]
412 ),
413 Text::get_object_data(
414 [
415 'padding' => [
416 'top' => '8',
417 'right' => '50',
418 'bottom' => '8',
419 'left' => '50',
420 ],
421 'background_color' => '#ffe1b0',
422 'font_family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
423 'text_color' => '#3D2B1F',
424 'rich_text' => '<p><span style="font-size: 16px">Thanks again for shopping with us!</span></p><p><span style="font-size: 16px">Got questions? Check out our <u>Returns</u> &amp; <u>Refunds Policy</u> or contact <u>Here</u> for support. We\'re happy to help!</span></p>',
425 ]
426 ),
427 Text::get_object_data(
428 [
429 'padding' => [
430 'top' => '0',
431 'right' => '50',
432 'bottom' => '32',
433 'left' => '50',
434 ],
435 'background_color' => '#ffe1b0',
436 'font_family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
437 'text_color' => '#3D2B1F',
438 'rich_text' => '<p><span style="font-size: 16px">Best regards,</span></p><p><span style="font-size: 16px">The <strong>[yaymail_site_name]</strong> Team</span></p>',
439 ]
440 ),
441 ColumnLayout::get_object_data(
442 1,
443 [
444 'children' => [
445 Column::get_object_data(
446 100,
447 [
448 'children' => [
449 SocialIcon::get_object_data(
450 [
451 'padding' => [
452 'top' => '0',
453 'right' => '0',
454 'bottom' => '16',
455 'left' => '0',
456 ],
457 'background_color' => '#3D2B1F',
458 'width_icon' => '32',
459 'spacing' => '12',
460 'icon_list' => [
461 [
462 'icon' => 'facebook',
463 'url' => '#',
464 ],
465 [
466 'icon' => 'instagram',
467 'url' => '#',
468 ],
469 [
470 'icon' => 'tiktok',
471 'url' => '#',
472 ],
473 [
474 'icon' => 'youtube',
475 'url' => '#',
476 ],
477 ],
478 ]
479 ),
480 Text::get_object_data(
481 [
482 'padding' => [
483 'top' => '0',
484 'right' => '0',
485 'bottom' => '0',
486 'left' => '0',
487 ],
488 'background_color' => '#3D2B1F',
489 'font_family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
490 'text_color' => '#ffffff',
491 'rich_text' => '<p style="text-align: center"><span style="font-size: 12px">© 2026 WooCommerce</span></p>',
492 ]
493 ),
494 ],
495 ]
496 ),
497 ],
498 'padding' => [
499 'top' => '32',
500 'right' => '50',
501 'bottom' => '32',
502 'left' => '50',
503 ],
504 'background_color' => '#3d2d21',
505 ]
506 ),
507 ];
508 }
509 }
510