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

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

807 lines 44.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\Footer;
12 use YayMail\Elements\Heading;
13 use YayMail\Elements\Logo;
14 use YayMail\Elements\OrderDetails;
15 use YayMail\Elements\ShippingAddress;
16 use YayMail\Elements\Text;
17 use YayMail\Utils\SingletonTrait;
18
19 /**
20 * Blue Receipt template for customer_processing_order email.
21 * Generated by tools/yaymail-template-gen — review/tweak values as needed.
22 */
23 class BlueReceipt extends BaseTemplate {
24 use SingletonTrait;
25
26 public function __construct() {
27 parent::__construct();
28 $this->id = 'processing_order_v17';
29 $this->email_type = 'customer_processing_order';
30 $this->name = 'Blue Receipt';
31 $this->description = 'Clean notification for store owners.';
32 $this->categories = [ 'Classic' ];
33 $this->access = 'free';
34 $this->elements = [
35 Logo::get_object_data(
36 [
37 'padding' => [
38 'top' => '24',
39 'right' => '50',
40 'bottom' => '16',
41 'left' => '50',
42 ],
43 'background_color' => '#ffffff',
44 'src' => 'https://images.wpbrandy.com/uploads/blue-woo-logo.png',
45 'align' => 'center',
46 'width' => 95,
47 'url' => '#',
48 'alt' => 'Store logo',
49 ]
50 ),
51 ColumnLayout::get_object_data(
52 1,
53 [
54 'children' => [
55 Column::get_object_data(
56 100,
57 [
58 'children' => [
59 Heading::get_object_data(
60 [
61 'padding' => [
62 'top' => '0',
63 'right' => '0',
64 'bottom' => '12',
65 'left' => '0',
66 ],
67 'background_color' => '#ffffff00',
68 'border' => [
69 'side' => 'none',
70 'width' => '1',
71 'style' => 'solid',
72 'color' => '#e5e5e5',
73 'custom' => [
74 'top' => '1',
75 'right' => '1',
76 'bottom' => '1',
77 'left' => '1',
78 ],
79 ],
80 'font_family' => '"Outfit", "DM Sans", sans-serif',
81 'text_color' => '#1a1a1a',
82 'rich_text' => '<h1 style="font-size:30px;font-weight:300;line-height:normal;margin:0px;color:inherit"><h1 style="font-size:36px;font-weight:700;line-height:1.15 !important;margin:0;color:#000000">New Order Received</h1></h1>',
83 ]
84 ),
85 Text::get_object_data(
86 [
87 'padding' => [
88 'top' => '0',
89 'right' => '0',
90 'bottom' => '0',
91 'left' => '0',
92 ],
93 'background_color' => '#ffffff00',
94 'border' => [
95 'side' => 'none',
96 'width' => '1',
97 'style' => 'solid',
98 'color' => '#e5e5e5',
99 'custom' => [
100 'top' => '1',
101 'right' => '1',
102 'bottom' => '1',
103 'left' => '1',
104 ],
105 ],
106 'font_family' => '"Outfit", "DM Sans", sans-serif',
107 'text_color' => '#1a1a1a',
108 'rich_text' => '<p><span style="font-size: 14px">Order #[yaymail_order_id is_plain="true"] • Placed on [yaymail_order_date]</span></p><p><span style="font-size: 14px">Status: Processing</span></p>',
109 ]
110 ),
111 ],
112 'border' => [
113 'side' => 'none',
114 'width' => '1',
115 'style' => 'solid',
116 'color' => '#e5e5e5',
117 'custom' => [
118 'top' => '1',
119 'right' => '1',
120 'bottom' => '1',
121 'left' => '1',
122 ],
123 ],
124 ]
125 ),
126 ],
127 'column_width' => [],
128 'column_spacing' => '0',
129 'responsive_on_mobile' => false,
130 'vertical_align' => 'top',
131 'padding' => [
132 'top' => '40',
133 'right' => 30,
134 'bottom' => '40',
135 'left' => 30,
136 ],
137 'border' => [
138 'side' => 'none',
139 'width' => '1',
140 'style' => 'solid',
141 'color' => '#e5e5e5',
142 'custom' => [
143 'top' => '1',
144 'right' => '1',
145 'bottom' => '1',
146 'left' => '1',
147 ],
148 ],
149 'border_radius' => [
150 'top_left' => 10,
151 'top_right' => 10,
152 'bottom_left' => 10,
153 'bottom_right' => 10,
154 ],
155 'background_color' => '#ffffff',
156 'background_image' => [
157 'url' => 'https://images.wpbrandy.com/uploads/bluereceipt-background.png',
158 'position' => 'bottom_right',
159 'x_position' => 0,
160 'y_position' => 0,
161 'repeat' => 'no-repeat',
162 'size' => 'cover',
163 ],
164 'inner_border_radius' => [
165 'top_left' => '0',
166 'top_right' => '0',
167 'bottom_left' => '0',
168 'bottom_right' => '0',
169 ],
170 'inner_background_color' => '#ffffff00',
171 ]
172 ),
173 Text::get_object_data(
174 [
175 'padding' => [
176 'top' => '24',
177 'right' => 30,
178 'bottom' => '8',
179 'left' => 30,
180 ],
181 'background_color' => '#ffffff',
182 'border' => [
183 'side' => 'none',
184 'width' => '1',
185 'style' => 'solid',
186 'color' => '#e5e5e5',
187 'custom' => [
188 'top' => '1',
189 'right' => '1',
190 'bottom' => '1',
191 'left' => '1',
192 ],
193 ],
194 'font_family' => '"Outfit", "DM Sans", sans-serif',
195 'text_color' => '#1a1a1a',
196 'rich_text' => '<p><span style="font-size: 18px"><strong>Hi admin</strong></span><span style="font-size: 18px">,</span></p>
197 <p><span style="font-size: 16px">Great news—you\'ve received a new order from <strong>[yaymail_billing_first_name] [yaymail_billing_last_name]</strong>. Review the details below and begin processing it.</span></p>',
198 ]
199 ),
200 ColumnLayout::get_object_data(
201 2,
202 [
203 'children' => [
204 Column::get_object_data(
205 50,
206 [
207 'children' => [
208 Button::get_object_data(
209 [
210 'padding' => [
211 'top' => '0',
212 'right' => '0',
213 'bottom' => '0',
214 'left' => '0',
215 ],
216 'background_color' => '#ffffff',
217 'button_type' => 'default',
218 'align' => 'center',
219 'width' => '100%',
220 'custom_width' => '50',
221 'height' => '21',
222 'button_padding' => [
223 'top' => '12',
224 'right' => '20',
225 'bottom' => '12',
226 'left' => '20',
227 ],
228 'button_background_color' => '#02b7ff',
229 'text_color' => '#ffffff',
230 'border' => [
231 'side' => 'none',
232 'width' => '1',
233 'style' => 'solid',
234 'color' => '#e5e5e5',
235 'custom' => [
236 'top' => '1',
237 'right' => '1',
238 'bottom' => '1',
239 'left' => '1',
240 ],
241 ],
242 'border_radius' => [
243 'top_left' => '30',
244 'top_right' => '30',
245 'bottom_right' => '30',
246 'bottom_left' => '30',
247 ],
248 'text' => 'View Order',
249 'url' => '[yaymail_order_url]',
250 'font_size' => '16',
251 'weight' => '600',
252 'font_family' => 'Arial, Helvetica, sans-serif',
253 ]
254 ),
255 ],
256 'border' => [
257 'side' => 'none',
258 'width' => '1',
259 'style' => 'solid',
260 'color' => '#e5e5e5',
261 'custom' => [
262 'top' => '1',
263 'right' => '1',
264 'bottom' => '1',
265 'left' => '1',
266 ],
267 ],
268 ]
269 ),
270 Column::get_object_data(
271 50,
272 [
273 'children' => [
274 Button::get_object_data(
275 [
276 'padding' => [
277 'top' => '0',
278 'right' => '0',
279 'bottom' => '0',
280 'left' => '0',
281 ],
282 'background_color' => '#ffffff',
283 'button_type' => 'default',
284 'align' => 'center',
285 'width' => '100%',
286 'custom_width' => '50',
287 'height' => '21',
288 'button_padding' => [
289 'top' => '12',
290 'right' => '20',
291 'bottom' => '12',
292 'left' => '20',
293 ],
294 'button_background_color' => '#ffffff',
295 'text_color' => '#1a1a1a',
296 'border' => [
297 'side' => 'all',
298 'width' => 2,
299 'style' => 'solid',
300 'color' => '#1a1a1a',
301 ],
302 'border_radius' => [
303 'top_left' => '30',
304 'top_right' => '30',
305 'bottom_right' => '30',
306 'bottom_left' => '30',
307 ],
308 'text' => 'Contact Customer',
309 'url' => '[yaymail_site_url]',
310 'font_size' => '16',
311 'weight' => '600',
312 'font_family' => 'Arial, Helvetica, sans-serif',
313 ]
314 ),
315 ],
316 'border' => [
317 'side' => 'none',
318 'width' => '1',
319 'style' => 'solid',
320 'color' => '#e5e5e5',
321 'custom' => [
322 'top' => '1',
323 'right' => '1',
324 'bottom' => '1',
325 'left' => '1',
326 ],
327 ],
328 ]
329 ),
330 ],
331 'column_width' => [],
332 'column_spacing' => '12',
333 'responsive_on_mobile' => false,
334 'vertical_align' => 'top',
335 'padding' => [
336 'top' => '16',
337 'right' => 30,
338 'bottom' => '16',
339 'left' => 30,
340 ],
341 'border' => [
342 'side' => 'none',
343 'width' => '1',
344 'style' => 'solid',
345 'color' => '#e5e5e5',
346 'custom' => [
347 'top' => '1',
348 'right' => '1',
349 'bottom' => '1',
350 'left' => '1',
351 ],
352 ],
353 'border_radius' => [
354 'top_left' => '0',
355 'top_right' => '0',
356 'bottom_left' => '0',
357 'bottom_right' => '0',
358 ],
359 'background_color' => '#ffffff',
360 'background_image' => [
361 'url' => '',
362 'position' => 'default',
363 'x_position' => 0,
364 'y_position' => 0,
365 'repeat' => 'default',
366 'size' => 'default',
367 ],
368 'inner_border_radius' => [
369 'top_left' => '0',
370 'top_right' => '0',
371 'bottom_left' => '0',
372 'bottom_right' => '0',
373 ],
374 'inner_background_color' => '#ffffff00',
375 ]
376 ),
377 ColumnLayout::get_object_data(
378 1,
379 [
380 'children' => [
381 Column::get_object_data(
382 100,
383 [
384 'children' => [
385 OrderDetails::get_object_data(
386 [
387 'rich_text' => '[yaymail_order_details]',
388 'payment_instructions' => '[yaymail_payment_instructions]',
389 'padding' => [
390 'top' => '15',
391 'right' => 20,
392 'bottom' => '15',
393 'left' => 20,
394 ],
395 'background_color' => '#fafafa',
396 'border' => [
397 'side' => 'none',
398 'width' => '1',
399 'style' => 'solid',
400 'color' => '#e5e5e5',
401 'custom' => [
402 'top' => '1',
403 'right' => '1',
404 'bottom' => '1',
405 'left' => '1',
406 ],
407 ],
408 'layout_type' => 'modern',
409 'title' => '<div><span style="font-size: 24px;font-weight: 600">Order Summary</span></div>',
410 'title_color' => '#3d2d21',
411 'text_color' => '#3d2d21',
412 'border_color' => '#e5e5e5',
413 'font_family' => '"Outfit", "DM Sans", sans-serif',
414 'table_content_font_size' => '14',
415 'table_heading_font_size' => 16,
416 'show_table_header' => true,
417 'product_title' => 'PRODUCT',
418 'cost_title' => 'COST',
419 'quantity_title' => 'QUANTITY',
420 'price_title' => 'PRICE',
421 'cart_subtotal_title' => 'Subtotal:',
422 'payment_method_title' => 'Payment method:',
423 'order_total_title' => 'Total:',
424 'order_note_title' => 'Note:',
425 'shipping_title' => 'Shipping: [yaymail_shipping_method]',
426 'discount_title' => 'Discount:',
427 'custom_footer_rows' => [],
428 ]
429 ),
430 ],
431 'border' => [
432 'side' => 'none',
433 'width' => '1',
434 'style' => 'solid',
435 'color' => '#e5e5e5',
436 'custom' => [
437 'top' => '1',
438 'right' => '1',
439 'bottom' => '1',
440 'left' => '1',
441 ],
442 ],
443 ]
444 ),
445 ],
446 'column_width' => [],
447 'column_spacing' => '0',
448 'responsive_on_mobile' => false,
449 'vertical_align' => 'top',
450 'padding' => [
451 'top' => 20,
452 'right' => 30,
453 'bottom' => 5,
454 'left' => 30,
455 ],
456 'border' => [
457 'side' => 'none',
458 'width' => '1',
459 'style' => 'solid',
460 'color' => '#e5e5e5',
461 'custom' => [
462 'top' => '1',
463 'right' => '1',
464 'bottom' => '1',
465 'left' => '1',
466 ],
467 ],
468 'border_radius' => [
469 'top_left' => '0',
470 'top_right' => '0',
471 'bottom_left' => '0',
472 'bottom_right' => '0',
473 ],
474 'background_color' => '#ffffff',
475 'background_image' => [
476 'url' => '',
477 'position' => 'default',
478 'x_position' => 0,
479 'y_position' => 0,
480 'repeat' => 'default',
481 'size' => 'default',
482 ],
483 'inner_border_radius' => [
484 'top_left' => 10,
485 'top_right' => 10,
486 'bottom_left' => 10,
487 'bottom_right' => 10,
488 ],
489 'inner_background_color' => '#ffffff00',
490 ]
491 ),
492 ColumnLayout::get_object_data(
493 2,
494 [
495 'children' => [
496 Column::get_object_data(
497 50,
498 [
499 'children' => [
500 ColumnLayout::get_object_data(
501 1,
502 [
503 'children' => [
504 Column::get_object_data(
505 100,
506 [
507 'children' => [
508 ShippingAddress::get_object_data(
509 [
510 'padding' => [
511 'top' => '15',
512 'right' => '50',
513 'bottom' => '15',
514 'left' => '50',
515 ],
516 'background_color' => '#fafafa',
517 'layout_type' => 'modern',
518 'title_color' => '#1a1a1a',
519 'text_color' => '#1a1a1a',
520 'border_color' => '#e5e5e5',
521 'font_family' => '"Outfit", "DM Sans", sans-serif',
522 'title' => '<div><span style="font-size: 18px;font-weight: 600">Shipping Address</span></div>',
523 'shipping_content_font_size' => '14',
524 'shipping_content_alignment' => 'left',
525 'shipping_content_text_format' => [
526 'bold' => false,
527 'italic' => false,
528 'underline' => false,
529 ],
530 'rich_text' => '[yaymail_shipping_address]',
531 ]
532 ),
533 ],
534 'border' => [
535 'side' => 'none',
536 'width' => '1',
537 'style' => 'solid',
538 'color' => '#e5e5e5',
539 'custom' => [
540 'top' => '1',
541 'right' => '1',
542 'bottom' => '1',
543 'left' => '1',
544 ],
545 ],
546 ]
547 ),
548 ],
549 'column_width' => [],
550 'column_spacing' => '0',
551 'responsive_on_mobile' => false,
552 'vertical_align' => 'top',
553 'padding' => [
554 'top' => '15',
555 'right' => '0',
556 'bottom' => '15',
557 'left' => '0',
558 ],
559 'border' => [
560 'side' => 'none',
561 'width' => '1',
562 'style' => 'solid',
563 'color' => '#e5e5e5',
564 'custom' => [
565 'top' => '1',
566 'right' => '1',
567 'bottom' => '1',
568 'left' => '1',
569 ],
570 ],
571 'border_radius' => [
572 'top_left' => 0,
573 'top_right' => 0,
574 'bottom_left' => 0,
575 'bottom_right' => 0,
576 ],
577 'background_color' => '#ffffff00',
578 'background_image' => [
579 'url' => '',
580 'position' => 'default',
581 'x_position' => 0,
582 'y_position' => 0,
583 'repeat' => 'default',
584 'size' => 'default',
585 ],
586 'inner_border_radius' => [
587 'top_left' => 10,
588 'top_right' => 10,
589 'bottom_left' => 10,
590 'bottom_right' => 10,
591 ],
592 'inner_background_color' => '#ffffff00',
593 ]
594 ),
595 ],
596 'border' => [
597 'side' => 'none',
598 'width' => '1',
599 'style' => 'solid',
600 'color' => '#e5e5e5',
601 'custom' => [
602 'top' => '1',
603 'right' => '1',
604 'bottom' => '1',
605 'left' => '1',
606 ],
607 ],
608 ]
609 ),
610 Column::get_object_data(
611 50,
612 [
613 'children' => [
614 ColumnLayout::get_object_data(
615 1,
616 [
617 'children' => [
618 Column::get_object_data(
619 100,
620 [
621 'children' => [
622 BillingAddress::get_object_data(
623 [
624 'padding' => [
625 'top' => '15',
626 'right' => '50',
627 'bottom' => '15',
628 'left' => '50',
629 ],
630 'background_color' => '#fafafa',
631 'layout_type' => 'modern',
632 'title_color' => '#1a1a1a',
633 'text_color' => '#1a1a1a',
634 'border_color' => '#e5e5e5',
635 'font_family' => '"Outfit", "DM Sans", sans-serif',
636 'title' => '<div><span style="font-size: 18px;font-weight: 600">Billing Address</span></div>',
637 'billing_content_font_size' => '14',
638 'billing_content_alignment' => 'left',
639 'billing_content_text_format' => [
640 'bold' => false,
641 'italic' => false,
642 'underline' => false,
643 ],
644 'rich_text' => '[yaymail_billing_address]',
645 ]
646 ),
647 ],
648 'border' => [
649 'side' => 'none',
650 'width' => '1',
651 'style' => 'solid',
652 'color' => '#e5e5e5',
653 'custom' => [
654 'top' => '1',
655 'right' => '1',
656 'bottom' => '1',
657 'left' => '1',
658 ],
659 ],
660 ]
661 ),
662 ],
663 'column_width' => [],
664 'column_spacing' => '0',
665 'responsive_on_mobile' => false,
666 'vertical_align' => 'top',
667 'padding' => [
668 'top' => '15',
669 'right' => '0',
670 'bottom' => '15',
671 'left' => '0',
672 ],
673 'border' => [
674 'side' => 'none',
675 'width' => '1',
676 'style' => 'solid',
677 'color' => '#e5e5e5',
678 'custom' => [
679 'top' => '1',
680 'right' => '1',
681 'bottom' => '1',
682 'left' => '1',
683 ],
684 ],
685 'border_radius' => [
686 'top_left' => '0',
687 'top_right' => '0',
688 'bottom_left' => '0',
689 'bottom_right' => '0',
690 ],
691 'background_color' => '#ffffff00',
692 'background_image' => [
693 'url' => '',
694 'position' => 'default',
695 'x_position' => 0,
696 'y_position' => 0,
697 'repeat' => 'default',
698 'size' => 'default',
699 ],
700 'inner_border_radius' => [
701 'top_left' => 10,
702 'top_right' => 10,
703 'bottom_left' => 10,
704 'bottom_right' => 10,
705 ],
706 'inner_background_color' => '#ffffff00',
707 ]
708 ),
709 ],
710 'border' => [
711 'side' => 'none',
712 'width' => '1',
713 'style' => 'solid',
714 'color' => '#e5e5e5',
715 'custom' => [
716 'top' => '1',
717 'right' => '1',
718 'bottom' => '1',
719 'left' => '1',
720 ],
721 ],
722 ]
723 ),
724 ],
725 'column_width' => [],
726 'column_spacing' => 20,
727 'responsive_on_mobile' => false,
728 'vertical_align' => 'top',
729 'padding' => [
730 'top' => 0,
731 'right' => 30,
732 'bottom' => 20,
733 'left' => 30,
734 ],
735 'border' => [
736 'side' => 'none',
737 'width' => '1',
738 'style' => 'solid',
739 'color' => '#e5e5e5',
740 'custom' => [
741 'top' => '1',
742 'right' => '1',
743 'bottom' => '1',
744 'left' => '1',
745 ],
746 ],
747 'border_radius' => [
748 'top_left' => '0',
749 'top_right' => '0',
750 'bottom_left' => '0',
751 'bottom_right' => '0',
752 ],
753 'background_color' => '#fff',
754 'background_image' => [
755 'url' => '',
756 'position' => 'default',
757 'x_position' => 0,
758 'y_position' => 0,
759 'repeat' => 'default',
760 'size' => 'default',
761 ],
762 'inner_border_radius' => [
763 'top_left' => 0,
764 'top_right' => 0,
765 'bottom_left' => 0,
766 'bottom_right' => 0,
767 ],
768 'inner_background_color' => '#ffffff00',
769 ]
770 ),
771 Divider::get_object_data(
772 [
773 'align' => 'center',
774 'padding' => [
775 'top' => 10,
776 'right' => 30,
777 'bottom' => 10,
778 'left' => 30,
779 ],
780 'width' => '100',
781 'height' => 4,
782 'background_color' => '#fff',
783 'divider_color' => '#1a1a1a',
784 'divider_type' => 'solid',
785 ]
786 ),
787 Footer::get_object_data(
788 [
789 'padding' => [
790 'top' => 20,
791 'right' => '50',
792 'bottom' => '24',
793 'left' => '50',
794 ],
795 'background_color' => '#ffffff',
796 'text_color' => '#1a1a1a',
797 'font_family' => '"Outfit", "DM Sans", sans-serif',
798 'rich_text' => '<p style="text-align: center"><span style="font-size: 16px">This is an automated notification from [yaymail_site_name].</span></p>
799 <p style="text-align: center"><span style="font-size: 16px">Manage this order directly from your WooCommerce dashboard.</span></p>
800 <br>
801 <p style="text-align: center"><span style="font-size: 12px">© 2026 [yaymail_site_name]</span></p>',
802 ]
803 ),
804 ];
805 }
806 }
807