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

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

733 lines 42.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\CrossUpSellsProducts;
11 use YayMail\Elements\Divider;
12 use YayMail\Elements\Heading;
13 use YayMail\Elements\Logo;
14 use YayMail\Elements\OrderDetails;
15 use YayMail\Elements\OrderProgress;
16 use YayMail\Elements\ShippingAddress;
17 use YayMail\Elements\SocialIcon;
18 use YayMail\Elements\Text;
19 use YayMail\Utils\SingletonTrait;
20
21 /**
22 * Pet Picks template for Processing Order email.
23 */
24 class PetPicks extends BaseTemplate {
25 use SingletonTrait;
26
27 public function __construct() {
28 parent::__construct();
29 $this->id = 'processing_order_v12';
30 $this->email_type = 'customer_processing_order';
31 $this->name = 'Pet Picks';
32 $this->description = 'Showcase recommended pet products.';
33 $this->categories = [ 'Pets Collection', 'Progress collection' ];
34 $this->template_settings = [
35 'text_link_color' => '#FFFAE7',
36 ];
37 $this->access = 'free';
38 $this->modified_date = '2026-07-21';
39 $this->elements = [
40 Logo::get_object_data(
41 [
42 'padding' => [
43 'top' => 30,
44 'right' => '50',
45 'bottom' => 15,
46 'left' => '50',
47 ],
48 'background_color' => '#ffe1b0',
49 'src' => 'https://images.wpbrandy.com/uploads/woo-brown-logo.png',
50 'width' => '116',
51 'alt' => 'Store logo',
52 ]
53 ),
54 ColumnLayout::get_object_data(
55 3,
56 [
57 'children' => [
58 Column::get_object_data(
59 39.33,
60 [
61 'children' => [
62 Text::get_object_data(
63 [
64 'padding' => [
65 'top' => '8',
66 'right' => '0',
67 'bottom' => '8',
68 'left' => '0',
69 ],
70 'background_color' => '#F9EBD700',
71 'font_family' => 'Georgia, serif',
72 'text_color' => '#080808',
73 'rich_text' => '<p style="text-align: center"><span style="font-size: 14px;font-weight: 400">My Account</span></p>',
74 ]
75 ),
76 ],
77 ]
78 ),
79 Column::get_object_data(
80 21.33,
81 [
82 'children' => [
83 Text::get_object_data(
84 [
85 'padding' => [
86 'top' => '8',
87 'right' => '0',
88 'bottom' => '8',
89 'left' => '0',
90 ],
91 'background_color' => '#F9EBD700',
92 'font_family' => 'Georgia, serif',
93 'text_color' => '#080808',
94 'rich_text' => '<p style="text-align: center"><span style="font-size: 14px;font-weight: 400">Order Tracking</span></p>',
95 ]
96 ),
97 ],
98 ]
99 ),
100 Column::get_object_data(
101 39.34,
102 [
103 'children' => [
104 Text::get_object_data(
105 [
106 'padding' => [
107 'top' => '8',
108 'right' => '0',
109 'bottom' => '8',
110 'left' => '0',
111 ],
112 'background_color' => '#F9EBD700',
113 'font_family' => 'Georgia, serif',
114 'text_color' => '#080808',
115 'rich_text' => '<p style="text-align: center"><span style="font-size: 14px;font-weight: 400">Contact Us</span></p>',
116 ]
117 ),
118 ],
119 ]
120 ),
121 ],
122 'padding' => [
123 'top' => '0',
124 'right' => '50',
125 'bottom' => 10,
126 'left' => '50',
127 ],
128 'background_color' => '#ffe1b0',
129 ]
130 ),
131 ColumnLayout::get_object_data(
132 1,
133 [
134 'children' => [
135 Column::get_object_data(
136 100,
137 [
138 'children' => [
139 ColumnLayout::get_object_data(
140 1,
141 [
142 'children' => [
143 Column::get_object_data(
144 100,
145 [
146 'children' => [
147 Text::get_object_data(
148 [
149 'padding' => [
150 'top' => '0',
151 'right' => '0',
152 'bottom' => '8',
153 'left' => 50,
154 ],
155 'background_color' => '#70543E00',
156 'font_family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
157 'text_color' => '#ffffff',
158 'rich_text' => '<p><span style="font-size: 14px;font-weight: 500">ORDER CONFIRMED</span></p>',
159 ]
160 ),
161 Heading::get_object_data(
162 [
163 'padding' => [
164 'top' => '0',
165 'right' => '0',
166 'bottom' => '12',
167 'left' => 50,
168 ],
169 'background_color' => '#70543E00',
170 'font_family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
171 'rich_text' => '<p style="font-size: 36px; margin: 0;"><span style="font-weight: bold; line-height: 1.15 !important;">We\'ve Received</span><br \><span style="font-weight: bold; line-height: 1.15 !important;">Your Order</span></p>',
172 ]
173 ),
174 Text::get_object_data(
175 [
176 'padding' => [
177 'top' => '0',
178 'right' => '0',
179 'bottom' => '0',
180 'left' => 50,
181 ],
182 'background_color' => '#70543E00',
183 'font_family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
184 'text_color' => '#ffffff',
185 '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>',
186 ]
187 ),
188 ],
189 ]
190 ),
191 ],
192 'padding' => [
193 'top' => 40,
194 'right' => '0',
195 'bottom' => 40,
196 'left' => '0',
197 ],
198 'border_radius' => [
199 'top_left' => 10,
200 'top_right' => 10,
201 'bottom_left' => 10,
202 'bottom_right' => 10,
203 ],
204 'background_color' => '#ffe1b0',
205 'background_image' => [
206 'url' => 'https://images.wpbrandy.com/uploads/processing-12-bg-1.png',
207 'position' => 'center_right',
208 'x_position' => 0,
209 'y_position' => 0,
210 'repeat' => 'no-repeat',
211 'size' => 'cover',
212 ],
213 'inner_border_radius' => [
214 'top_left' => 0,
215 'top_right' => 0,
216 'bottom_left' => 0,
217 'bottom_right' => 0,
218 ],
219 ]
220 ),
221 ],
222 ]
223 ),
224 ],
225 'padding' => [
226 'top' => '15',
227 'right' => 20,
228 'bottom' => '15',
229 'left' => 20,
230 ],
231 'background_color' => '#ffe1b0',
232 ]
233 ),
234 ColumnLayout::get_object_data(
235 1,
236 [
237 'children' => [
238 Column::get_object_data(
239 100,
240 [
241 'children' => [
242 ColumnLayout::get_object_data(
243 1,
244 [
245 'children' => [
246 Column::get_object_data(
247 100,
248 [
249 'children' => [
250 OrderProgress::get_object_data(
251 [
252 'padding' => [
253 'top' => 0,
254 'right' => '0',
255 'bottom' => 0,
256 'left' => '0',
257 ],
258 'background_color' => '#70543E00',
259 'display_style' => 'filled_bar',
260 'connector_height' => '3',
261 'connector_active_color' => '#b4896833',
262 'connector_inactive_color' => '#b4896833',
263 'label_active_color' => '#ffffff',
264 'label_inactive_color' => '#ffffff',
265 'icon_size' => 24,
266 'label_font_size' => '12',
267 'font_family' => '"Outfit", "DM Sans", sans-serif',
268 'steps' => [
269 [
270 'title' => 'Ordered',
271 'image_url' => 'https://images.wpbrandy.com/uploads/brown-check.png',
272 'image_bg_color' => '#fffae7',
273 'icon_border_color' => '#fffae7',
274 'icon_border_style' => 'solid',
275 'icon_border_width' => 2,
276 ],
277 [
278 'title' => 'Processing',
279 'image_url' => 'https://images.wpbrandy.com/uploads/brown-dots.png',
280 'image_bg_color' => '#b48968',
281 'icon_border_color' => '#b48968',
282 'icon_border_style' => 'solid',
283 'icon_border_width' => 2,
284 ],
285 [
286 'title' => 'Completed',
287 'image_url' => 'https://images.wpbrandy.com/uploads/brown-circle.png',
288 'image_bg_color' => '#70543E00',
289 'icon_border_color' => '#b48968',
290 'icon_border_style' => 'dashed',
291 'icon_border_width' => 3,
292 ],
293 ],
294 ]
295 ),
296 ],
297 ]
298 ),
299 ],
300 'padding' => [
301 'top' => 30,
302 'right' => 20,
303 'bottom' => 30,
304 'left' => 20,
305 ],
306 'border_radius' => [
307 'top_left' => 10,
308 'top_right' => 10,
309 'bottom_left' => 10,
310 'bottom_right' => 10,
311 ],
312 'background_color' => '#825939',
313 'background_image' => [
314 'url' => '',
315 'position' => 'center_right',
316 'x_position' => 0,
317 'y_position' => 0,
318 'repeat' => 'no-repeat',
319 'size' => 'cover',
320 ],
321 'inner_border_radius' => [
322 'top_left' => 0,
323 'top_right' => 0,
324 'bottom_left' => 0,
325 'bottom_right' => 0,
326 ],
327 ]
328 ),
329 ],
330 ]
331 ),
332 ],
333 'padding' => [
334 'top' => '15',
335 'right' => 20,
336 'bottom' => '15',
337 'left' => 20,
338 ],
339 'background_color' => '#ffe1b0',
340 ]
341 ),
342 ColumnLayout::get_object_data(
343 1,
344 [
345 'children' => [
346 Column::get_object_data(
347 100,
348 [
349 'children' => [
350 ColumnLayout::get_object_data(
351 1,
352 [
353 'children' => [
354 Column::get_object_data(
355 100,
356 [
357 'children' => [
358 Text::get_object_data(
359 [
360 'padding' => [
361 'top' => '0',
362 'right' => '0',
363 'bottom' => '16',
364 'left' => '0',
365 ],
366 'background_color' => '#825939',
367 'font_family' => '"Outfit", "DM Sans", sans-serif',
368 'text_color' => '#fffae7',
369 'rich_text' => '<p><span style="font-size: 16px;font-weight: 600">Hi <strong>[yaymail_billing_first_name]</strong>,</span></p>
370 <br>
371 <p><span style="font-size: 16px">Thanks for your purchase! We have received your order #[yaymail_order_id is_plain="true"] and your order will be shipped within 24–48 hours.</span></p>
372 <br>
373 <p><span style="font-size: 16px">Best regards,<br />The <strong>[yaymail_site_name]</strong> Team</span></p>',
374 ]
375 ),
376 Divider::get_object_data(
377 [
378 'padding' => [
379 'top' => '15',
380 'right' => 0,
381 'bottom' => '15',
382 'left' => 0,
383 ],
384 'height' => 1,
385 'background_color' => '#825939',
386 'divider_color' => '#b48968',
387 ]
388 ),
389 OrderDetails::get_object_data(
390 [
391 'padding' => [
392 'top' => 15,
393 'right' => '0',
394 'bottom' => '16',
395 'left' => '0',
396 ],
397 'background_color' => '#70543E00',
398 'layout_type' => 'modern',
399 'title' => '<span style="font-size: 24px;font-weight: 700">Order Summary</span>',
400 'title_color' => '#fffae7',
401 'text_color' => '#fffae7',
402 'border_color' => '#fffae71f',
403 'font_family' => '"Outfit", "DM Sans", sans-serif',
404 'table_heading_font_size' => '12',
405 ]
406 ),
407 Button::get_object_data(
408 [
409 'padding' => [
410 'top' => 20,
411 'right' => '0',
412 'bottom' => 0,
413 'left' => '0',
414 ],
415 'background_color' => '#70543E00',
416 'width' => '100%',
417 'button_background_color' => '#ffe1b0',
418 'text_color' => '#825939',
419 'border_radius' => [
420 'top_left' => '8',
421 'top_right' => '8',
422 'bottom_left' => '8',
423 'bottom_right' => '8',
424 ],
425 'text' => 'View Your Order',
426 'url' => '[yaymail_order_url]',
427 'font_size' => '16',
428 'weight' => '600',
429 'font_family' => '"Outfit", "DM Sans", sans-serif',
430 ]
431 ),
432 ],
433 ]
434 ),
435 ],
436 'padding' => [
437 'top' => 30,
438 'right' => 20,
439 'bottom' => 30,
440 'left' => 20,
441 ],
442 'border_radius' => [
443 'top_left' => 10,
444 'top_right' => 10,
445 'bottom_left' => 10,
446 'bottom_right' => 10,
447 ],
448 'background_color' => '#825939',
449 'background_image' => [
450 'url' => '',
451 'position' => 'center_right',
452 'x_position' => 0,
453 'y_position' => 0,
454 'repeat' => 'no-repeat',
455 'size' => 'cover',
456 ],
457 'inner_border_radius' => [
458 'top_left' => 0,
459 'top_right' => 0,
460 'bottom_left' => 0,
461 'bottom_right' => 0,
462 ],
463 ]
464 ),
465 ],
466 ]
467 ),
468 ],
469 'padding' => [
470 'top' => '15',
471 'right' => 20,
472 'bottom' => '15',
473 'left' => 20,
474 ],
475 'background_color' => '#ffe1b0',
476 ]
477 ),
478 ColumnLayout::get_object_data(
479 1,
480 [
481 'children' => [
482 Column::get_object_data(
483 100,
484 [
485 'children' => [
486 ColumnLayout::get_object_data(
487 2,
488 [
489 'children' => [
490 Column::get_object_data(
491 50,
492 [
493 'children' => [
494 ShippingAddress::get_object_data(
495 [
496 'padding' => [
497 'top' => 17,
498 'right' => 0,
499 'bottom' => '15',
500 'left' => 0,
501 ],
502 'background_color' => '#825939',
503 'layout_type' => 'modern',
504 'title_color' => '#fffae7',
505 'text_color' => '#fffae7',
506 'font_family' => '"Outfit", "DM Sans", sans-serif',
507 'title' => '<p style="text-align: center"><span style="font-size: 20px;font-weight: 600">Shipping Address</span></p>',
508 'shipping_content_alignment' => 'center',
509 'shipping_content_text_format' => [
510 'bold' => false,
511 'italic' => false,
512 'underline' => false,
513 ],
514 ]
515 ),
516 ],
517 'border' => [
518 'side' => 'right',
519 'width' => '1',
520 'style' => 'solid',
521 'color' => '#fffae71f',
522 'custom' => [
523 'top' => '1',
524 'right' => '1',
525 'bottom' => '1',
526 'left' => '1',
527 ],
528 ],
529 ]
530 ),
531 Column::get_object_data(
532 50,
533 [
534 'children' => [
535 BillingAddress::get_object_data(
536 [
537 'padding' => [
538 'top' => '15',
539 'right' => 0,
540 'bottom' => '15',
541 'left' => 0,
542 ],
543 'background_color' => '#825939',
544 'layout_type' => 'modern',
545 'title_color' => '#fffae7',
546 'text_color' => '#fffae7',
547 'font_family' => '"Outfit", "DM Sans", sans-serif',
548 'title' => '<p style="text-align: center"><span style="font-size: 20px;font-weight: 600">Billing Address</span></p>',
549 'billing_content_alignment' => 'center',
550 'billing_content_text_format' => [
551 'bold' => false,
552 'italic' => false,
553 'underline' => false,
554 ],
555 ]
556 ),
557 ],
558 ]
559 ),
560 ],
561 'border_radius' => [
562 'top_left' => 10,
563 'top_right' => 10,
564 'bottom_left' => 10,
565 'bottom_right' => 10,
566 ],
567 'background_color' => '#825939',
568 ]
569 ),
570 ],
571 ]
572 ),
573 ],
574 'padding' => [
575 'top' => '15',
576 'right' => 20,
577 'bottom' => '15',
578 'left' => 20,
579 ],
580 'background_color' => '#ffe1b0',
581 ]
582 ),
583 CrossUpSellsProducts::get_object_data(
584 [
585 'padding' => [
586 'top' => 30,
587 'right' => 0,
588 'bottom' => 0,
589 'left' => 0,
590 ],
591 'background_color' => '#ffe1b0',
592 'text_color' => '#825939',
593 'font_family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
594 'showing_items' => [
595 'top_content',
596 'product_image',
597 'product_name',
598 'product_price',
599 'product_original_price',
600 ],
601 'top_content' => '<p style="text-align: center;"><span style="font-size: 20px; font-weight: 600; color: #70543e;">Maybe you also like it</span></p>
602 <p> </p>',
603 'sale_price_color' => '#70543E',
604 'regular_price_color' => '#9A8A7A',
605 'products_per_row' => 2,
606 'max_products_displayed' => 4,
607 ]
608 ),
609 ColumnLayout::get_object_data(
610 1,
611 [
612 'children' => [
613 Column::get_object_data(
614 100,
615 [
616 'children' => [
617 ColumnLayout::get_object_data(
618 1,
619 [
620 'children' => [
621 Column::get_object_data(
622 100,
623 [
624 'children' => [
625 Text::get_object_data(
626 [
627 'padding' => [
628 'top' => '0',
629 'right' => '0',
630 'bottom' => '24',
631 'left' => '0',
632 ],
633 'background_color' => '#825939',
634 'font_family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
635 'text_color' => '#ffffff',
636 'rich_text' => '<p style="text-align: center"><span style="font-size: 14px">For questions, contact <u>hi@yourwoostore.com</u>, visit our <u>FAQs</u>, or chat with us during operating hours for account support</span></p>',
637 ]
638 ),
639 SocialIcon::get_object_data(
640 [
641 'padding' => [
642 'top' => '0',
643 'right' => '0',
644 'bottom' => '16',
645 'left' => '0',
646 ],
647 'background_color' => '#825939',
648 'width_icon' => '32',
649 'spacing' => '12',
650 'icon_list' => [
651 [
652 'icon' => 'facebook',
653 'url' => '#',
654 ],
655 [
656 'icon' => 'instagram',
657 'url' => '#',
658 ],
659 [
660 'icon' => 'tiktok',
661 'url' => '#',
662 ],
663 [
664 'icon' => 'youtube',
665 'url' => '#',
666 ],
667 ],
668 ]
669 ),
670 Text::get_object_data(
671 [
672 'padding' => [
673 'top' => '0',
674 'right' => '0',
675 'bottom' => '0',
676 'left' => '0',
677 ],
678 'background_color' => '#825939',
679 'font_family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
680 'text_color' => '#ffffff',
681 'rich_text' => '<p style="text-align: center"><span style="font-size: 12px">© 2026 WooCommerce</span></p>',
682 ]
683 ),
684 ],
685 ]
686 ),
687 ],
688 'padding' => [
689 'top' => 30,
690 'right' => 20,
691 'bottom' => 30,
692 'left' => 20,
693 ],
694 'border_radius' => [
695 'top_left' => 10,
696 'top_right' => 10,
697 'bottom_left' => 10,
698 'bottom_right' => 10,
699 ],
700 'background_color' => '#825939',
701 'background_image' => [
702 'url' => '',
703 'position' => 'center_right',
704 'x_position' => 0,
705 'y_position' => 0,
706 'repeat' => 'no-repeat',
707 'size' => 'cover',
708 ],
709 'inner_border_radius' => [
710 'top_left' => 0,
711 'top_right' => 0,
712 'bottom_left' => 0,
713 'bottom_right' => 0,
714 ],
715 ]
716 ),
717 ],
718 ]
719 ),
720 ],
721 'padding' => [
722 'top' => '15',
723 'right' => 20,
724 'bottom' => '15',
725 'left' => 20,
726 ],
727 'background_color' => '#ffe1b0',
728 ]
729 ),
730 ];
731 }
732 }
733