PluginProbe
YayMail – WooCommerce Email Customizer / 4.4.2
YayMail – WooCommerce Email Customizer v4.4.2
4.4.6 4.4.5 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 All 57 releases
yaymail / src / TemplateLibrary / Templates / Completed / Completed5.php

Completed5.php in YayMail – WooCommerce Email Customizer 4.4.2, at src/TemplateLibrary/Templates/Completed/Completed5.php

1,156 lines 64.3 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\Completed;
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\Image;
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 * Completed Order v5 template for Completed Order email.
23 */
24 class Completed5 extends BaseTemplate {
25 use SingletonTrait;
26
27 public function __construct() {
28 parent::__construct();
29 $this->id = 'completed_order_v5';
30 $this->email_type = 'customer_completed_order';
31 $this->name = 'Completed Order v5';
32 $this->description = 'Clean layout with plenty of whitespace';
33 $this->template_settings = [
34 'text_link_color' => '#c33531',
35 ];
36
37 $this->elements = [
38 ColumnLayout::get_object_data(
39 4,
40 [
41 'column_width' => [],
42 'column_spacing' => '0',
43 'vertical_align' => 'top',
44 'container_setting_breaker' => [
45 'component' => 'LineBreaker',
46 ],
47 'container_setting_group_definition' => [
48 'component' => 'GroupDefinition',
49 'title' => 'Container layout settings',
50 'description' => 'Handle container layout settings',
51 ],
52 'padding' => [
53 'top' => '15',
54 'right' => 50,
55 'bottom' => '15',
56 'left' => 50,
57 ],
58 'border_radius' => [
59 'top_left' => '0',
60 'top_right' => '0',
61 'bottom_left' => '0',
62 'bottom_right' => '0',
63 ],
64 'background_color' => '#faf9f5',
65 'background_image' => [
66 'url' => '',
67 'position' => 'default',
68 'x_position' => 0,
69 'y_position' => 0,
70 'repeat' => 'default',
71 'size' => 'default',
72 ],
73 'inner_setting_breaker' => [
74 'component' => 'LineBreaker',
75 ],
76 'inner_setting_group_definition' => [
77 'component' => 'GroupDefinition',
78 'title' => 'Inner layout settings',
79 'description' => 'Handle inner layout settings',
80 ],
81 'inner_border_radius' => [
82 'top_left' => '0',
83 'top_right' => '0',
84 'bottom_left' => '0',
85 'bottom_right' => '0',
86 ],
87 'inner_background_color' => '#ffffff00',
88 'column_borders' => [
89 'component' => 'ColumnBorders',
90 'title' => 'Column borders',
91 ],
92 'children' => [
93 Column::get_object_data(
94 29,
95 [
96 'children' => [
97 Logo::get_object_data(
98 [
99 'container_group_definition' => [
100 'component' => 'GroupDefinition',
101 'title' => 'Container settings',
102 'description' => 'Handle container layout settings',
103 ],
104 'padding' => [
105 'top' => 10,
106 'right' => 10,
107 'bottom' => 10,
108 'left' => 0,
109 ],
110 'background_color' => '#ffffff00',
111 'image_breaker' => [
112 'component' => 'LineBreaker',
113 ],
114 'image_group_definition' => [
115 'component' => 'GroupDefinition',
116 'title' => 'Image settings',
117 'description' => 'Handle image settings',
118 ],
119 'src' => 'https://images.wpbrandy.com/uploads/woo-black-logo.png',
120 'align' => 'left',
121 'width' => 116,
122 'url' => '#',
123 'alt' => '',
124 ]
125 ),
126 ],
127 ]
128 ),
129 Column::get_object_data(
130 25.59,
131 [
132 'children' => [
133 Text::get_object_data(
134 [
135 'container_group_definition' => [
136 'component' => 'GroupDefinition',
137 'title' => 'Container settings',
138 'description' => 'Handle container layout settings',
139 ],
140 'padding' => [
141 'top' => '15',
142 'right' => 0,
143 'bottom' => '15',
144 'left' => 0,
145 ],
146 'background_color' => '#ffffff00',
147 'border' => [
148 'side' => 'none',
149 'width' => '1',
150 'style' => 'solid',
151 'color' => '#e5e5e5',
152 'custom' => [
153 'top' => '1',
154 'right' => '1',
155 'bottom' => '1',
156 'left' => '1',
157 ],
158 ],
159 'content_breaker' => [
160 'component' => 'LineBreaker',
161 ],
162 'content_group_definition' => [
163 'component' => 'GroupDefinition',
164 'title' => 'Content settings',
165 'description' => 'Handle content settings',
166 ],
167 'font_family' => '"Comic Sans MS", cursive, sans-serif',
168 'text_color' => '#031d29',
169 'rich_text' => '<div style="text-align: right"><span style="font-size: 16px">My Account</span></div>',
170 ]
171 ),
172 ],
173 ]
174 ),
175 Column::get_object_data(
176 34.16,
177 [
178 'children' => [
179 Text::get_object_data(
180 [
181 'container_group_definition' => [
182 'component' => 'GroupDefinition',
183 'title' => 'Container settings',
184 'description' => 'Handle container layout settings',
185 ],
186 'padding' => [
187 'top' => '15',
188 'right' => 0,
189 'bottom' => '15',
190 'left' => 0,
191 ],
192 'background_color' => '#ffffff00',
193 'border' => [
194 'side' => 'none',
195 'width' => '1',
196 'style' => 'solid',
197 'color' => '#e5e5e5',
198 'custom' => [
199 'top' => '1',
200 'right' => '1',
201 'bottom' => '1',
202 'left' => '1',
203 ],
204 ],
205 'content_breaker' => [
206 'component' => 'LineBreaker',
207 ],
208 'content_group_definition' => [
209 'component' => 'GroupDefinition',
210 'title' => 'Content settings',
211 'description' => 'Handle content settings',
212 ],
213 'font_family' => '"Comic Sans MS", cursive, sans-serif',
214 'text_color' => '#031d29',
215 'rich_text' => '<div style="text-align: center"><span style="font-size: 16px;font-weight: 500">Order Tracking</span></div>',
216 ]
217 ),
218 ],
219 ]
220 ),
221 Column::get_object_data(
222 11.25,
223 [
224 'children' => [
225 Text::get_object_data(
226 [
227 'container_group_definition' => [
228 'component' => 'GroupDefinition',
229 'title' => 'Container settings',
230 'description' => 'Handle container layout settings',
231 ],
232 'padding' => [
233 'top' => '15',
234 'right' => 2,
235 'bottom' => '15',
236 'left' => 0,
237 ],
238 'background_color' => '#ffffff00',
239 'border' => [
240 'side' => 'none',
241 'width' => '1',
242 'style' => 'solid',
243 'color' => '#e5e5e5',
244 'custom' => [
245 'top' => '1',
246 'right' => '1',
247 'bottom' => '1',
248 'left' => '1',
249 ],
250 ],
251 'content_breaker' => [
252 'component' => 'LineBreaker',
253 ],
254 'content_group_definition' => [
255 'component' => 'GroupDefinition',
256 'title' => 'Content settings',
257 'description' => 'Handle content settings',
258 ],
259 'font_family' => '"Comic Sans MS", cursive, sans-serif',
260 'text_color' => '#031d29',
261 'rich_text' => '<div style="text-align: right"><span style="font-size: 16px;font-weight: 500">Contact</span></div>',
262 ]
263 ),
264 ],
265 ]
266 ),
267 ],
268 ]
269 ),
270 ColumnLayout::get_object_data(
271 2,
272 [
273 'column_width' => [],
274 'column_spacing' => 0,
275 'vertical_align' => 'top',
276 'container_setting_breaker' => [
277 'component' => 'LineBreaker',
278 ],
279 'container_setting_group_definition' => [
280 'component' => 'GroupDefinition',
281 'title' => 'Container layout settings',
282 'description' => 'Handle container layout settings',
283 ],
284 'padding' => [
285 'top' => 2,
286 'right' => 0,
287 'bottom' => 2,
288 'left' => 0,
289 ],
290 'border_radius' => [
291 'top_left' => 0,
292 'top_right' => 0,
293 'bottom_left' => 0,
294 'bottom_right' => 0,
295 ],
296 'background_color' => '#faf9f5',
297 'background_image' => [
298 'url' => '',
299 'position' => 'default',
300 'x_position' => 0,
301 'y_position' => 0,
302 'repeat' => 'default',
303 'size' => 'default',
304 ],
305 'inner_setting_breaker' => [
306 'component' => 'LineBreaker',
307 ],
308 'inner_setting_group_definition' => [
309 'component' => 'GroupDefinition',
310 'title' => 'Inner layout settings',
311 'description' => 'Handle inner layout settings',
312 ],
313 'inner_border_radius' => [
314 'top_left' => 0,
315 'top_right' => '0',
316 'bottom_left' => '0',
317 'bottom_right' => '0',
318 ],
319 'inner_background_color' => '#ffffff00',
320 'column_borders' => [
321 'component' => 'ColumnBorders',
322 'title' => 'Column borders',
323 ],
324 'children' => [
325 Column::get_object_data(
326 50,
327 [
328 'border' => [
329 'side' => 'custom',
330 'width' => 1,
331 'style' => 'solid',
332 'color' => '#031d29',
333 'custom' => [
334 'top' => 1,
335 'right' => 1,
336 'bottom' => 1,
337 'left' => 0,
338 ],
339 ],
340 'children' => [
341 Text::get_object_data(
342 [
343 'container_group_definition' => [
344 'component' => 'GroupDefinition',
345 'title' => 'Container settings',
346 'description' => 'Handle container layout settings',
347 ],
348 'padding' => [
349 'top' => 31,
350 'right' => 50,
351 'bottom' => 10,
352 'left' => 50,
353 ],
354 'background_color' => '#faf9f500',
355 'border' => [
356 'side' => 'none',
357 'width' => '1',
358 'style' => 'solid',
359 'color' => '#e5e5e5',
360 'custom' => [
361 'top' => '1',
362 'right' => '1',
363 'bottom' => '1',
364 'left' => '1',
365 ],
366 ],
367 'content_breaker' => [
368 'component' => 'LineBreaker',
369 ],
370 'content_group_definition' => [
371 'component' => 'GroupDefinition',
372 'title' => 'Content settings',
373 'description' => 'Handle content settings',
374 ],
375 'font_family' => '"Comic Sans MS", cursive, sans-serif',
376 'text_color' => '#031d29',
377 'rich_text' => '<p><span style="font-size: 14px">Order ID: #[yaymail_order_id is_plain="true"]</span></p>',
378 ]
379 ),
380 Heading::get_object_data(
381 [
382 'container_group_definition' => [
383 'component' => 'GroupDefinition',
384 'title' => 'Container settings',
385 'description' => 'Handle container layout settings',
386 ],
387 'padding' => [
388 'top' => 0,
389 'right' => 50,
390 'bottom' => 31,
391 'left' => 50,
392 ],
393 'background_color' => '#faf9f500',
394 'border' => [
395 'side' => 'none',
396 'width' => '1',
397 'style' => 'solid',
398 'color' => '#e5e5e5',
399 'custom' => [
400 'top' => '1',
401 'right' => '1',
402 'bottom' => '1',
403 'left' => '1',
404 ],
405 ],
406 'content_breaker' => [
407 'component' => 'LineBreaker',
408 ],
409 'content_group_definition' => [
410 'component' => 'GroupDefinition',
411 'title' => 'Content settings',
412 'description' => 'Handle content settings',
413 ],
414 'font_family' => '"Comic Sans MS", cursive, sans-serif',
415 'text_color' => '#031d29',
416 'rich_text' => '<p><span style="font-size: 30px"><strong>Purchase was successful</strong></span></p>',
417 ]
418 ),
419 ],
420 ]
421 ),
422 Column::get_object_data(
423 50,
424 [
425 'border' => [
426 'side' => 'custom',
427 'width' => 1,
428 'style' => 'solid',
429 'color' => '#031d29',
430 'custom' => [
431 'top' => 1,
432 'right' => 0,
433 'bottom' => 1,
434 'left' => 0,
435 ],
436 ],
437 'children' => [
438 Image::get_object_data(
439 [
440 'container_group_definition' => [
441 'component' => 'GroupDefinition',
442 'title' => 'Container settings',
443 'description' => 'Handle container layout settings',
444 ],
445 'padding' => [
446 'top' => '15',
447 'right' => '50',
448 'bottom' => '15',
449 'left' => '50',
450 ],
451 'background_color' => '#faf9f500',
452 'image_breaker' => [
453 'component' => 'LineBreaker',
454 ],
455 'image_group_definition' => [
456 'component' => 'GroupDefinition',
457 'title' => 'Image settings',
458 'description' => 'Handle image settings',
459 ],
460 'src' => 'https://images.wpbrandy.com/uploads/completed-5-img-1.png',
461 'align' => 'center',
462 'width' => 159,
463 'url' => '#',
464 'alt' => '',
465 ]
466 ),
467 ],
468 ]
469 ),
470 ],
471 ]
472 ),
473 OrderProgress::get_object_data(
474 [
475 'padding' => [
476 'top' => 40,
477 'right' => '50',
478 'bottom' => 15,
479 'left' => '50',
480 ],
481 'background_color' => '#faf9f5',
482 'display_style' => 'filled_bar',
483 'current_step_index' => 2,
484 'connector_height' => 2,
485 'connector_active_color' => '#c335311a',
486 'connector_inactive_color' => '#fce7f3',
487 'icon_size' => '18',
488 'filled_bar_icon_border_radius' => 14,
489 'label_font_size' => 12,
490 'font_family' => '"Comic Sans MS", cursive, sans-serif',
491 'label_active_color' => '#374151',
492 'label_inactive_color' => '#9ca3af',
493 'steps' => [
494 '0' => [
495 'title' => 'Ordered',
496 'image_url' => YAYMAIL_PLUGIN_URL . '/assets/images/check.png',
497 'image_bg_color' => '#c33531',
498 'icon_border_color' => '#c33531',
499 'icon_border_style' => 'solid',
500 'icon_border_width' => 2,
501 ],
502 '1' => [
503 'title' => 'Processing',
504 'image_url' => YAYMAIL_PLUGIN_URL . '/assets/images/check.png',
505 'image_bg_color' => '#c33531',
506 'icon_border_color' => '#c33531',
507 'icon_border_style' => 'solid',
508 'icon_border_width' => 2,
509 ],
510 '2' => [
511 'title' => 'Completed',
512 'image_url' => YAYMAIL_PLUGIN_URL . '/assets/images/check.png',
513 'image_bg_color' => '#c33531',
514 'icon_border_color' => '#c33531',
515 'icon_border_style' => 'solid',
516 'icon_border_width' => 2,
517 ],
518 ],
519 ]
520 ),
521 Text::get_object_data(
522 [
523 'container_group_definition' => [
524 'component' => 'GroupDefinition',
525 'title' => 'Container settings',
526 'description' => 'Handle container layout settings',
527 ],
528 'padding' => [
529 'top' => 15,
530 'right' => 50,
531 'bottom' => 15,
532 'left' => 50,
533 ],
534 'background_color' => '#faf9f5',
535 'border' => [
536 'side' => 'none',
537 'width' => '1',
538 'style' => 'solid',
539 'color' => '#e5e5e5',
540 'custom' => [
541 'top' => '1',
542 'right' => '1',
543 'bottom' => '1',
544 'left' => '1',
545 ],
546 ],
547 'content_breaker' => [
548 'component' => 'LineBreaker',
549 ],
550 'content_group_definition' => [
551 'component' => 'GroupDefinition',
552 'title' => 'Content settings',
553 'description' => 'Handle content settings',
554 ],
555 'font_family' => '"Comic Sans MS", cursive, sans-serif',
556 'text_color' => '#031d29',
557 'rich_text' => '<p><span style="font-size: 18px">Hi <strong>[yaymail_billing_first_name] [yaymail_billing_last_name],</strong></span></p><br /><p><span style="font-size: 18px">Great news! Your order #[yaymail_order_id is_plain="true"] has been successfully delivered. If you\'ve received your order, please take a moment to confirm delivery in your account.</span></p>',
558 ]
559 ),
560 Divider::get_object_data(
561 [
562 'align' => 'center',
563 'padding' => [
564 'top' => '15',
565 'right' => 0,
566 'bottom' => '15',
567 'left' => 0,
568 ],
569 'width' => '100',
570 'height' => 2,
571 'background_color' => '#faf9f5',
572 'divider_color' => '#333',
573 'divider_type' => 'solid',
574 ]
575 ),
576 OrderDetails::get_object_data(
577 [
578 'rich_text' => '[yaymail_order_details]',
579 'payment_instructions' => '[yaymail_payment_instructions]',
580 'container_group_definition' => [
581 'component' => 'GroupDefinition',
582 'title' => 'Container settings',
583 'description' => 'Handle container layout settings',
584 ],
585 'padding' => [
586 'top' => '15',
587 'right' => '50',
588 'bottom' => '15',
589 'left' => '50',
590 ],
591 'background_color' => '#faf9f5',
592 'border' => [
593 'side' => 'none',
594 'width' => '1',
595 'style' => 'solid',
596 'color' => '#e5e5e5',
597 'custom' => [
598 'top' => '1',
599 'right' => '1',
600 'bottom' => '1',
601 'left' => '1',
602 ],
603 ],
604 'table_setting_breaker' => [
605 'component' => 'LineBreaker',
606 ],
607 'table_group_definition' => [
608 'component' => 'GroupDefinition',
609 'title' => 'Table settings',
610 'description' => 'Handle table settings',
611 ],
612 'layout_type' => 'modern',
613 'title' => '<p><span style="font-size: 20px"><strong>ORDER SUMMARY</strong></span></p>',
614 'title_color' => '#1A1A1A',
615 'text_color' => '#031d29',
616 'border_color' => '#e5e5e5',
617 'font_family' => '"Comic Sans MS", cursive, sans-serif',
618 'table_content_font_size' => 16,
619 'table_heading_line_breaker' => [
620 'component' => 'LineBreaker',
621 ],
622 'table_heading_group_definition' => [
623 'component' => 'GroupDefinition',
624 'title' => 'Table heading settings',
625 'description' => 'Handle table heading settings',
626 ],
627 'table_heading_font_size' => 14,
628 'show_table_header' => 1,
629 'product_title' => 'Product',
630 'cost_title' => 'Cost',
631 'quantity_title' => 'Quantity',
632 'price_title' => 'Price',
633 'cart_subtotal_title' => 'Subtotal:',
634 'payment_method_title' => 'Payment method:',
635 'order_total_title' => 'Total:',
636 'order_note_title' => 'Note:',
637 'shipping_title' => 'Shipping: [yaymail_shipping_method]',
638 'discount_title' => 'Discount:',
639 'custom_footer_rows_breaker' => [
640 'component' => 'LineBreaker',
641 ],
642 'custom_footer_rows_group' => [
643 'component' => 'GroupDefinition',
644 'title' => 'Custom Footer Rows',
645 'description' => 'Add custom rows to the order totals footer',
646 ],
647 'custom_footer_rows' => [],
648 ]
649 ),
650 Button::get_object_data(
651 [
652 'container_group_definition' => [
653 'component' => 'GroupDefinition',
654 'title' => 'Container settings',
655 'description' => 'Handle container layout settings',
656 ],
657 'padding' => [
658 'top' => 0,
659 'right' => '50',
660 'bottom' => 30,
661 'left' => '50',
662 ],
663 'background_color' => '#faf9f5',
664 'button_setting_breaker' => [
665 'component' => 'LineBreaker',
666 ],
667 'button_group_definition' => [
668 'component' => 'GroupDefinition',
669 'title' => 'Button settings',
670 'description' => 'Handle button settings',
671 ],
672 'button_type' => 'default',
673 'align' => 'center',
674 'width' => '100%',
675 'custom_width' => '50',
676 'height' => '21',
677 'button_padding' => [
678 'top' => '12',
679 'right' => '20',
680 'bottom' => '12',
681 'left' => '20',
682 ],
683 'button_background_color' => '#c33531',
684 'text_color' => '#ffffff',
685 'border' => [
686 'side' => 'none',
687 'width' => '1',
688 'style' => 'solid',
689 'color' => '#e5e5e5',
690 'custom' => [
691 'top' => '1',
692 'right' => '1',
693 'bottom' => '1',
694 'left' => '1',
695 ],
696 ],
697 'border_radius' => [
698 'top_left' => 14,
699 'top_right' => 14,
700 'bottom_right' => 14,
701 'bottom_left' => 14,
702 ],
703 'button_content_group_definition' => [
704 'component' => 'GroupDefinition',
705 'title' => 'Button content',
706 'description' => 'Handle button content',
707 ],
708 'text' => 'View Your Order',
709 'url' => '#',
710 'font_size' => 16,
711 'weight' => 'normal',
712 'font_family' => '"Comic Sans MS", cursive, sans-serif',
713 ]
714 ),
715 ColumnLayout::get_object_data(
716 2,
717 [
718 'column_width' => [],
719 'column_spacing' => 2,
720 'vertical_align' => 'top',
721 'container_setting_breaker' => [
722 'component' => 'LineBreaker',
723 ],
724 'container_setting_group_definition' => [
725 'component' => 'GroupDefinition',
726 'title' => 'Container layout settings',
727 'description' => 'Handle container layout settings',
728 ],
729 'padding' => [
730 'top' => 2,
731 'right' => 0,
732 'bottom' => 2,
733 'left' => 0,
734 ],
735 'border_radius' => [
736 'top_left' => '0',
737 'top_right' => '0',
738 'bottom_left' => '0',
739 'bottom_right' => '0',
740 ],
741 'background_color' => '#faf9f5',
742 'background_image' => [
743 'url' => '',
744 'position' => 'default',
745 'x_position' => 0,
746 'y_position' => 0,
747 'repeat' => 'default',
748 'size' => 'default',
749 ],
750 'inner_setting_breaker' => [
751 'component' => 'LineBreaker',
752 ],
753 'inner_setting_group_definition' => [
754 'component' => 'GroupDefinition',
755 'title' => 'Inner layout settings',
756 'description' => 'Handle inner layout settings',
757 ],
758 'inner_border_radius' => [
759 'top_left' => '0',
760 'top_right' => '0',
761 'bottom_left' => '0',
762 'bottom_right' => '0',
763 ],
764 'inner_background_color' => '#ffffff00',
765 'column_borders' => [
766 'component' => 'ColumnBorders',
767 'title' => 'Column borders',
768 ],
769 'children' => [
770 Column::get_object_data(
771 50,
772 [
773 'border' => [
774 'side' => 'custom',
775 'width' => 1,
776 'style' => 'solid',
777 'color' => '#031d29',
778 'custom' => [
779 'top' => 1,
780 'right' => 1,
781 'bottom' => 1,
782 'left' => 0,
783 ],
784 ],
785 'children' => [
786 Text::get_object_data(
787 [
788 'container_group_definition' => [
789 'component' => 'GroupDefinition',
790 'title' => 'Container settings',
791 'description' => 'Handle container layout settings',
792 ],
793 'padding' => [
794 'top' => 25,
795 'right' => '50',
796 'bottom' => 0,
797 'left' => 50,
798 ],
799 'background_color' => '#faf9f500',
800 'border' => [
801 'side' => 'none',
802 'width' => '1',
803 'style' => 'solid',
804 'color' => '#e5e5e5',
805 'custom' => [
806 'top' => '1',
807 'right' => '1',
808 'bottom' => '1',
809 'left' => '1',
810 ],
811 ],
812 'content_breaker' => [
813 'component' => 'LineBreaker',
814 ],
815 'content_group_definition' => [
816 'component' => 'GroupDefinition',
817 'title' => 'Content settings',
818 'description' => 'Handle content settings',
819 ],
820 'font_family' => '"Comic Sans MS", cursive, sans-serif',
821 'text_color' => '#031d29',
822 'rich_text' => '<p><span style="font-size: 20px"><strong>SHIPPING ADDRESS</strong></span></p>',
823 ]
824 ),
825 ShippingAddress::get_object_data(
826 [
827 'container_group_definition' => [
828 'component' => 'GroupDefinition',
829 'title' => 'Container settings',
830 'description' => 'Handle container layout settings',
831 ],
832 'padding' => [
833 'top' => 0,
834 'right' => 30,
835 'bottom' => 5,
836 'left' => 50,
837 ],
838 'background_color' => '#faf9f500',
839 'content_breaker' => [
840 'component' => 'LineBreaker',
841 ],
842 'content_group_definition' => [
843 'component' => 'GroupDefinition',
844 'title' => 'Content settings',
845 'description' => 'Handle content settings',
846 ],
847 'layout_type' => 'modern',
848 'title_color' => '#1a1a1a',
849 'text_color' => '#031d29',
850 'border_color' => '#ffffff00',
851 'font_family' => '"Comic Sans MS", cursive, sans-serif',
852 'title' => '',
853 'shipping_content_font_size' => '14',
854 'shipping_content_alignment' => 'left',
855 'shipping_content_text_format' => [
856 'bold' => false,
857 'italic' => false,
858 'underline' => false,
859 ],
860 'rich_text' => '[yaymail_shipping_address]',
861 ]
862 ),
863 ],
864 ]
865 ),
866 Column::get_object_data(
867 50,
868 [
869 'border' => [
870 'side' => 'custom',
871 'width' => 1,
872 'style' => 'solid',
873 'color' => '#031d29',
874 'custom' => [
875 'top' => 1,
876 'right' => 0,
877 'bottom' => 1,
878 'left' => 0,
879 ],
880 ],
881 'children' => [
882 Text::get_object_data(
883 [
884 'container_group_definition' => [
885 'component' => 'GroupDefinition',
886 'title' => 'Container settings',
887 'description' => 'Handle container layout settings',
888 ],
889 'padding' => [
890 'top' => 25,
891 'right' => '50',
892 'bottom' => 0,
893 'left' => 50,
894 ],
895 'background_color' => '#faf9f500',
896 'border' => [
897 'side' => 'none',
898 'width' => '1',
899 'style' => 'solid',
900 'color' => '#e5e5e5',
901 'custom' => [
902 'top' => '1',
903 'right' => '1',
904 'bottom' => '1',
905 'left' => '1',
906 ],
907 ],
908 'content_breaker' => [
909 'component' => 'LineBreaker',
910 ],
911 'content_group_definition' => [
912 'component' => 'GroupDefinition',
913 'title' => 'Content settings',
914 'description' => 'Handle content settings',
915 ],
916 'font_family' => '"Comic Sans MS", cursive, sans-serif',
917 'text_color' => '#031d29',
918 'rich_text' => '<p><span style="font-size: 20px"><strong>BILLING ADDRESS</strong></span></p>',
919 ]
920 ),
921 BillingAddress::get_object_data(
922 [
923 'container_group_definition' => [
924 'component' => 'GroupDefinition',
925 'title' => 'Container settings',
926 'description' => 'Handle container layout settings',
927 ],
928 'padding' => [
929 'top' => 0,
930 'right' => 30,
931 'bottom' => 5,
932 'left' => 50,
933 ],
934 'background_color' => '#faf9f500',
935 'content_breaker' => [
936 'component' => 'LineBreaker',
937 ],
938 'content_group_definition' => [
939 'component' => 'GroupDefinition',
940 'title' => 'Content settings',
941 'description' => 'Handle content settings',
942 ],
943 'layout_type' => 'modern',
944 'title_color' => '#1a1a1a',
945 'text_color' => '#031d29',
946 'border_color' => '#e5e5e5',
947 'font_family' => '"Comic Sans MS", cursive, sans-serif',
948 'title' => '',
949 'billing_content_font_size' => '14',
950 'billing_content_alignment' => 'left',
951 'billing_content_text_format' => [
952 'bold' => false,
953 'italic' => false,
954 'underline' => false,
955 ],
956 'rich_text' => '[yaymail_billing_address]',
957 ]
958 ),
959 ],
960 ]
961 ),
962 ],
963 ]
964 ),
965 ColumnLayout::get_object_data(
966 1,
967 [
968 'column_width' => [],
969 'column_spacing' => '0',
970 'vertical_align' => 'top',
971 'container_setting_breaker' => [
972 'component' => 'LineBreaker',
973 ],
974 'container_setting_group_definition' => [
975 'component' => 'GroupDefinition',
976 'title' => 'Container layout settings',
977 'description' => 'Handle container layout settings',
978 ],
979 'padding' => [
980 'top' => 25,
981 'bottom' => 10,
982 'left' => 50,
983 'right' => 50,
984 ],
985 'border_radius' => [
986 'top_left' => '0',
987 'top_right' => '0',
988 'bottom_left' => '0',
989 'bottom_right' => '0',
990 ],
991 'background_color' => '#faf9f5',
992 'background_image' => [
993 'url' => '',
994 'position' => 'default',
995 'x_position' => 0,
996 'y_position' => 0,
997 'repeat' => 'default',
998 'size' => 'default',
999 ],
1000 'inner_setting_breaker' => [
1001 'component' => 'LineBreaker',
1002 ],
1003 'inner_setting_group_definition' => [
1004 'component' => 'GroupDefinition',
1005 'title' => 'Inner layout settings',
1006 'description' => 'Handle inner layout settings',
1007 ],
1008 'inner_border_radius' => [
1009 'top_left' => '0',
1010 'top_right' => '0',
1011 'bottom_left' => '0',
1012 'bottom_right' => '0',
1013 ],
1014 'inner_background_color' => '#ffffff00',
1015 'column_borders' => [
1016 'component' => 'ColumnBorders',
1017 'title' => 'Column borders',
1018 ],
1019 'children' => [
1020 Column::get_object_data(
1021 100,
1022 [
1023 'children' => [
1024 Text::get_object_data(
1025 [
1026 'container_group_definition' => [
1027 'component' => 'GroupDefinition',
1028 'title' => 'Container settings',
1029 'description' => 'Handle container layout settings',
1030 ],
1031 'padding' => [
1032 'top' => 0,
1033 'right' => 0,
1034 'bottom' => 0,
1035 'left' => 0,
1036 ],
1037 'background_color' => '#ffffff00',
1038 'border' => [
1039 'side' => 'none',
1040 'width' => '1',
1041 'style' => 'solid',
1042 'color' => '#e5e5e5',
1043 'custom' => [
1044 'top' => '1',
1045 'right' => '1',
1046 'bottom' => '1',
1047 'left' => '1',
1048 ],
1049 ],
1050 'content_breaker' => [
1051 'component' => 'LineBreaker',
1052 ],
1053 'content_group_definition' => [
1054 'component' => 'GroupDefinition',
1055 'title' => 'Content settings',
1056 'description' => 'Handle content settings',
1057 ],
1058 'font_family' => '"Comic Sans MS", cursive, sans-serif',
1059 'text_color' => '#031d29',
1060 'rich_text' => '<p style="text-align: center;margin: 0;font-weight: 300"><span style="font-size: 16px">For questions, contact <u>[email protected]</u>, visit our <u>FAQs</u>, or <u>chat</u> with us during operating hours for account support</span></p>',
1061 ]
1062 ),
1063 SocialIcon::get_object_data(
1064 [
1065 'container_group_definition' => [
1066 'component' => 'GroupDefinition',
1067 'title' => 'Container settings',
1068 'description' => 'Handle container layout settings',
1069 ],
1070 'padding' => [
1071 'top' => 15,
1072 'right' => 0,
1073 'bottom' => 10,
1074 'left' => 0,
1075 ],
1076 'background_color' => '#ffffff00',
1077 'align' => 'center',
1078 'content_breaker' => [
1079 'component' => 'LineBreaker',
1080 ],
1081 'content_group_definition' => [
1082 'component' => 'GroupDefinition',
1083 'title' => 'Content settings',
1084 'description' => 'Handle content settings',
1085 ],
1086 'width_icon' => 30,
1087 'spacing' => 10,
1088 'theme' => 'Colorful',
1089 'icon_list' => [
1090 '0' => [
1091 'icon' => 'facebook',
1092 'url' => '#',
1093 ],
1094 '1' => [
1095 'icon' => 'instagram',
1096 'url' => '#',
1097 ],
1098 '2' => [
1099 'icon' => 'tiktok',
1100 'url' => '#',
1101 ],
1102 '3' => [
1103 'icon' => 'twitter',
1104 'url' => '#',
1105 ],
1106 ],
1107 ]
1108 ),
1109 Text::get_object_data(
1110 [
1111 'container_group_definition' => [
1112 'component' => 'GroupDefinition',
1113 'title' => 'Container settings',
1114 'description' => 'Handle container layout settings',
1115 ],
1116 'padding' => [
1117 'top' => 0,
1118 'right' => 0,
1119 'bottom' => 20,
1120 'left' => 0,
1121 ],
1122 'background_color' => '#ffffff00',
1123 'border' => [
1124 'side' => 'none',
1125 'width' => '1',
1126 'style' => 'solid',
1127 'color' => '#e5e5e5',
1128 'custom' => [
1129 'top' => '1',
1130 'right' => '1',
1131 'bottom' => '1',
1132 'left' => '1',
1133 ],
1134 ],
1135 'content_breaker' => [
1136 'component' => 'LineBreaker',
1137 ],
1138 'content_group_definition' => [
1139 'component' => 'GroupDefinition',
1140 'title' => 'Content settings',
1141 'description' => 'Handle content settings',
1142 ],
1143 'font_family' => '"Comic Sans MS", cursive, sans-serif',
1144 'text_color' => '#031d29',
1145 'rich_text' => '<p style="text-align: center;margin: 0;font-weight: 300"><span style="font-size: 12px">© 2026 YayCommerce.com</span></p>',
1146 ]
1147 ),
1148 ],
1149 ]
1150 ),
1151 ],
1152 ]
1153 ),
1154 ];
1155 }
1156 }