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 / Completed / OrderFlow.php

OrderFlow.php in YayMail – WooCommerce Email Customizer trunk, at src/TemplateLibrary/Templates/Completed/OrderFlow.php

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