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

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

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