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

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

619 lines 32.5 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\Container;
11 use YayMail\Elements\FeaturedProducts;
12 use YayMail\Elements\Heading;
13 use YayMail\Elements\Logo;
14 use YayMail\Elements\OrderDetails;
15 use YayMail\Elements\OrderProgress;
16 use YayMail\Elements\ShippingAddress;
17 use YayMail\Elements\SocialIcon;
18 use YayMail\Elements\Text;
19 use YayMail\Utils\SingletonTrait;
20
21 /**
22 * Fashion template for Processing Order email.
23 * Generated by tools/yaymail-template-gen — review/tweak values as needed.
24 */
25 class Fashion extends BaseTemplate {
26 use SingletonTrait;
27
28 public function __construct() {
29 parent::__construct();
30 $this->id = 'processing_order_v9';
31 $this->email_type = 'customer_processing_order';
32 $this->name = 'Fashion';
33 $this->description = 'Fashion template for Processing Order email.';
34 $this->template_settings = [
35 'text_link_color' => '#1A1A1A',
36 ];
37 $this->modified_date = '2026-07-21';
38 $this->access = 'free';
39 $this->elements = [
40 ColumnLayout::get_object_data(
41 4,
42 [
43 'children' => [
44 Column::get_object_data(
45 29,
46 [
47 'children' => [
48 Logo::get_object_data(
49 [
50 'padding' => [
51 'top' => '10',
52 'right' => '10',
53 'bottom' => '10',
54 'left' => '0',
55 ],
56 'background_color' => '#1A1A1A00',
57 'src' => 'https://images.wpbrandy.com/uploads/woo-green-logo-1.png',
58 'align' => 'left',
59 'width' => '117',
60 'alt' => 'Store logo',
61 ]
62 ),
63 ],
64 ]
65 ),
66 Column::get_object_data(
67 34.49,
68 [
69 'children' => [
70 Text::get_object_data(
71 [
72 'padding' => [
73 'top' => '15',
74 'right' => '0',
75 'bottom' => '15',
76 'left' => '0',
77 ],
78 'background_color' => '#1a1a1a',
79 'font_family' => 'Georgia, serif',
80 'text_color' => '#ffffff',
81 'rich_text' => '<p style="text-align: right"><span style="font-size: 14px;font-weight: 400">My Account</span></p>',
82 ]
83 ),
84 ],
85 ]
86 ),
87 Column::get_object_data(
88 27.76,
89 [
90 'children' => [
91 Text::get_object_data(
92 [
93 'padding' => [
94 'top' => '15',
95 'right' => '0',
96 'bottom' => '15',
97 'left' => '0',
98 ],
99 'background_color' => '#1a1a1a',
100 'font_family' => 'Georgia, serif',
101 'text_color' => '#ffffff',
102 'rich_text' => '<p style="text-align: center"><span style="font-size: 14px;font-weight: 400">Order Tracking</span></p>',
103 ]
104 ),
105 ],
106 ]
107 ),
108 Column::get_object_data(
109 8.75,
110 [
111 'children' => [
112 Text::get_object_data(
113 [
114 'padding' => [
115 'top' => '15',
116 'right' => '2',
117 'bottom' => '15',
118 'left' => '0',
119 ],
120 'background_color' => '#1a1a1a',
121 'font_family' => 'Georgia, serif',
122 'text_color' => '#ffffff',
123 'rich_text' => '<p style="text-align: right"><span style="font-size: 14px;font-weight: 400">Support</span></p>',
124 ]
125 ),
126 ],
127 ]
128 ),
129 ],
130 'padding' => [
131 'top' => '15',
132 'right' => 40,
133 'bottom' => '15',
134 'left' => 40,
135 ],
136 'background_color' => '#1A1A1A',
137 ]
138 ),
139 ColumnLayout::get_object_data(
140 2,
141 [
142 'children' => [
143 Column::get_object_data(
144 50,
145 [
146 'children' => [
147 Text::get_object_data(
148 [
149 'padding' => [
150 'top' => '0',
151 'right' => '0',
152 'bottom' => '0',
153 'left' => '0',
154 ],
155 'background_color' => '#F3E8FF00',
156 'font_family' => 'Georgia, serif',
157 'text_color' => '#1A1A1A',
158 'rich_text' => '<p style="text-align: left"><span style="font-size: 12px;font-weight: bold">ORDER NUMBER: #[yaymail_order_id is_plain="true"]</span></p>',
159 ]
160 ),
161 ],
162 ]
163 ),
164 Column::get_object_data(
165 50,
166 [
167 'children' => [
168 Text::get_object_data(
169 [
170 'padding' => [
171 'top' => '0',
172 'right' => '0',
173 'bottom' => '0',
174 'left' => '0',
175 ],
176 'background_color' => '#F3E8FF00',
177 'font_family' => 'Georgia, serif',
178 'text_color' => '#1A1A1A',
179 'rich_text' => '<p style="text-align: right"><span style="font-size: 12px;font-weight: bold">ORDER DATE: [yaymail_order_date]</span></p>',
180 ]
181 ),
182 ],
183 ]
184 ),
185 ],
186 'padding' => [
187 'top' => 15,
188 'right' => 40,
189 'bottom' => 15,
190 'left' => 40,
191 ],
192 'background_color' => '#FFFFFF',
193 ]
194 ),
195 ColumnLayout::get_object_data(
196 1,
197 [
198 'children' => [
199 Column::get_object_data(
200 100,
201 [
202 'children' => [
203 Heading::get_object_data(
204 [
205 'padding' => [
206 'top' => 20,
207 'right' => 40,
208 'bottom' => 35,
209 'left' => 40,
210 ],
211 'background_color' => '#F3E8FF00',
212 'font_family' => 'Georgia, serif',
213 'text_color' => '#1A1A1A',
214 'rich_text' => '<p style="text-align: center"><span style="font-weight: bold;font-size: 56px; line-height: normal">Good news!</span><br><span style="font-weight: bold;font-size: 56px; line-height: normal">Your order is complete</span></p>',
215 ]
216 ),
217 ],
218 ]
219 ),
220 ],
221 'padding' => [
222 'top' => 0,
223 'right' => '50',
224 'bottom' => 0,
225 'left' => '50',
226 ],
227 'background_color' => '#ffffff',
228 'background_image' => [
229 'url' => 'https://images.wpbrandy.com/uploads/processing-9-img-1.png',
230 'position' => 'default',
231 'size' => 'cover',
232 'repeat' => 'no-repeat',
233 ],
234 ]
235 ),
236 Text::get_object_data(
237 [
238 'padding' => [
239 'top' => '32',
240 'right' => 40,
241 'bottom' => '8',
242 'left' => 40,
243 ],
244 'background_color' => '#ffffff',
245 'font_family' => 'Georgia, serif',
246 'text_color' => '#333439',
247 'rich_text' => '<p><span style="font-size: 18px;font-weight: 700">Hi [yaymail_billing_first_name] [yaymail_billing_last_name],</span></p><p><span style="font-size: 16px">Thanks for your order! Your order has been successfully received and is being processed.</span></p>',
248 ]
249 ),
250 OrderProgress::get_object_data(
251 [
252 'padding' => [
253 'top' => 20,
254 'right' => 60,
255 'bottom' => 20,
256 'left' => 60,
257 ],
258 'display_style' => 'filled_bar',
259 'connector_height' => '2',
260 'connector_active_color' => '#e9ecef',
261 'connector_inactive_color' => '#e9ecef',
262 'label_active_color' => '#1A1A1A',
263 'icon_size' => '24',
264 'label_font_size' => '12',
265 'font_family' => 'Georgia, serif',
266 'steps' => [
267 [
268 'title' => 'Confirmed',
269 'image_url' => 'https://images.wpbrandy.com/uploads/processing-9-icon-1.png',
270 'image_bg_color' => '#9ca2d2',
271 'icon_border_color' => '#9ca2d2',
272 'icon_border_style' => 'solid',
273 'icon_border_width' => 2,
274 ],
275 [
276 'title' => 'Processing',
277 'image_url' => 'https://images.wpbrandy.com/uploads/processing-9-icon-2.png',
278 'image_bg_color' => '#9ca2d2',
279 'icon_border_color' => '#9ca2d2',
280 'icon_border_style' => 'solid',
281 'icon_border_width' => 2,
282 ],
283 [
284 'title' => 'Completed',
285 'image_url' => 'https://images.wpbrandy.com/uploads/processing-9-icon-3.png',
286 'image_bg_color' => '#9ca2d2',
287 'icon_border_color' => '#9ca2d2',
288 'icon_border_style' => 'solid',
289 'icon_border_width' => 2,
290 ],
291 ],
292 ]
293 ),
294 ColumnLayout::get_object_data(
295 1,
296 [
297 'children' => [
298 Column::get_object_data(
299 100,
300 [
301 'children' => [
302 OrderDetails::get_object_data(
303 [
304 'padding' => [
305 'top' => 30,
306 'right' => '20',
307 'bottom' => 10,
308 'left' => '20',
309 ],
310 'background_color' => '#ffffff',
311 'border' => [
312 'side' => 'all',
313 'width' => '1',
314 'style' => 'solid',
315 'color' => '#e9ecef00',
316 ],
317 'layout_type' => 'modern',
318 'title' => '<p style="text-align: center"><span style="font-size: 20px;font-weight: bold">Order details</span><br /><span style="font-size: 14px;font-weight: 400">Order confirmation number: <strong>#[yaymail_order_id is_plain="true"]</strong></span></p>',
319 'title_color' => '#1A1A1A',
320 'text_color' => '#333439',
321 'border_color' => '#e9ecef',
322 'font_family' => 'Georgia, serif',
323 ]
324 ),
325 Button::get_object_data(
326 [
327 'padding' => [
328 'top' => 10,
329 'right' => '20',
330 'bottom' => 30,
331 'left' => '20',
332 ],
333 'background_color' => '#ffffff',
334 'width' => '100%',
335 'button_background_color' => '#d5f381',
336 'text_color' => '#1A1A1A',
337 'border' => [
338 'side' => 'custom',
339 'width' => '1',
340 'style' => 'solid',
341 'color' => '#1a1a1a',
342 'custom' => [
343 'top' => 1,
344 'right' => 3,
345 'bottom' => 3,
346 'left' => 1,
347 ],
348 ],
349 'border_radius' => [
350 'top_left' => 0,
351 'top_right' => 0,
352 'bottom_right' => 0,
353 'bottom_left' => 0,
354 ],
355 'text' => 'View Order Detail',
356 'url' => '[yaymail_order_url]',
357 'font_size' => '16',
358 'weight' => '700',
359 'font_family' => 'Georgia, serif',
360 ]
361 ),
362 ],
363 'border' => [
364 'side' => 'all',
365 'width' => 10,
366 'style' => 'solid',
367 'color' => '#efeaff',
368 'custom' => [
369 'top' => '1',
370 'right' => '1',
371 'bottom' => '1',
372 'left' => '1',
373 ],
374 ],
375 ]
376 ),
377 ],
378 'padding' => [
379 'top' => 15,
380 'right' => '40',
381 'bottom' => 30,
382 'left' => '40',
383 ],
384 ]
385 ),
386 ColumnLayout::get_object_data(
387 2,
388 [
389 'children' => [
390 Column::get_object_data(
391 50,
392 [
393 'children' => [
394 ShippingAddress::get_object_data(
395 [
396 'padding' => [
397 'top' => '15',
398 'right' => 40,
399 'bottom' => '15',
400 'left' => 40,
401 ],
402 'background_color' => '#efeaff',
403 'layout_type' => 'modern',
404 'title_color' => '#1a1a1a',
405 'text_color' => '#1a1a1a',
406 'font_family' => 'Georgia, serif',
407 'title' => '<p style="text-align: center"><span style="font-size: 20px;font-weight: 600">Shipping Address</span></p>',
408 'shipping_content_alignment' => 'center',
409 'shipping_content_text_format' => [
410 'bold' => false,
411 'italic' => false,
412 'underline' => false,
413 ],
414 ]
415 ),
416 ],
417 ]
418 ),
419 Column::get_object_data(
420 50,
421 [
422 'children' => [
423 BillingAddress::get_object_data(
424 [
425 'padding' => [
426 'top' => '15',
427 'right' => 40,
428 'bottom' => '15',
429 'left' => 40,
430 ],
431 'background_color' => '#efeaff',
432 'layout_type' => 'modern',
433 'title_color' => '#1a1a1a',
434 'text_color' => '#1a1a1a',
435 'font_family' => 'Georgia, serif',
436 'title' => '<p style="text-align: center"><span style="font-size: 20px;font-weight: 600">Billing Address</span></p>',
437 'billing_content_alignment' => 'center',
438 'billing_content_text_format' => [
439 'bold' => false,
440 'italic' => false,
441 'underline' => false,
442 ],
443 ]
444 ),
445 ],
446 ]
447 ),
448 ],
449 'background_color' => '#efeaff',
450 ]
451 ),
452 ColumnLayout::get_object_data(
453 1,
454 [
455 'children' => [
456 Column::get_object_data(
457 100,
458 [
459 'children' => [
460 FeaturedProducts::get_object_data(
461 [
462 'padding' => [
463 'top' => '0',
464 'right' => '0',
465 'bottom' => 0,
466 'left' => '0',
467 ],
468 'background_color' => '#ffffff',
469 'text_color' => '#333439',
470 'font_family' => 'Georgia, serif',
471 'showing_items' => [
472 'product_image',
473 'product_name',
474 'product_price',
475 'product_original_price',
476 'top_content',
477 ],
478 'top_content' => '<p style="text-align: center;"><span style="font-size: 24px;"><strong>You might also like to try</strong></span></p>
479 <p style="text-align: center;">Check out other products in our store you might like</p>
480 <br>',
481 'sale_price_color' => '#1A1A1A',
482 'regular_price_color' => '#9CA3AF',
483 'products_per_row' => 2,
484 'number_of_products' => 4,
485 ]
486 ),
487 Button::get_object_data(
488 [
489 'padding' => [
490 'top' => 30,
491 'right' => '0',
492 'bottom' => 30,
493 'left' => '0',
494 ],
495 'background_color' => '#ffffff',
496 'button_background_color' => '#d5f381',
497 'text_color' => '#1A1A1A',
498 'border' => [
499 'side' => 'custom',
500 'width' => '1',
501 'style' => 'solid',
502 'color' => '#1a1a1a',
503 'custom' => [
504 'top' => 1,
505 'right' => 3,
506 'bottom' => 3,
507 'left' => '1',
508 ],
509 ],
510 'border_radius' => [
511 'top_left' => 0,
512 'top_right' => 0,
513 'bottom_right' => 0,
514 'bottom_left' => 0,
515 ],
516 'text' => 'View all products',
517 'font_size' => '14',
518 'weight' => '700',
519 'font_family' => 'Georgia, serif',
520 'url' => function_exists( 'wc_get_page_permalink' ) ? wc_get_page_permalink( 'shop' ) : home_url( '/' ),
521 ]
522 ),
523 ],
524 ]
525 ),
526 ],
527 'padding' => [
528 'top' => '40',
529 'right' => 40,
530 'bottom' => 10,
531 'left' => 40,
532 ],
533 'background_color' => '#ffffff',
534 ]
535 ),
536 ColumnLayout::get_object_data(
537 1,
538 [
539 'children' => [
540 Column::get_object_data(
541 100,
542 [
543 'children' => [
544 Text::get_object_data(
545 [
546 'padding' => [
547 'top' => '0',
548 'right' => '0',
549 'bottom' => '0',
550 'left' => '0',
551 ],
552 'background_color' => '#1A1A1A',
553 'font_family' => 'Georgia, serif',
554 'text_color' => '#ffffff',
555 'rich_text' => '<p style="text-align: center"><span style="font-size: 16px">For questions, contact us via our website, visit our <u>FAQs</u>, or <u>chat</u> with us during operating hours for instant support.</span></p>',
556 ]
557 ),
558 SocialIcon::get_object_data(
559 [
560 'padding' => [
561 'top' => '20',
562 'right' => '0',
563 'bottom' => '16',
564 'left' => '0',
565 ],
566 'background_color' => '#1A1A1A',
567 'width_icon' => '32',
568 'spacing' => '12',
569 'icon_list' => [
570 [
571 'icon' => 'facebook',
572 'url' => '#',
573 ],
574 [
575 'icon' => 'instagram',
576 'url' => '#',
577 ],
578 [
579 'icon' => 'tiktok',
580 'url' => '#',
581 ],
582 [
583 'icon' => 'youtube',
584 'url' => '#',
585 ],
586 ],
587 ]
588 ),
589 Text::get_object_data(
590 [
591 'padding' => [
592 'top' => '0',
593 'right' => '0',
594 'bottom' => '0',
595 'left' => '0',
596 ],
597 'background_color' => '#1A1A1A',
598 'font_family' => 'Georgia, serif',
599 'text_color' => '#ffffff',
600 'rich_text' => '<p style="text-align: center"><span style="font-size: 12px">© 2024 WooCommerce</span></p>',
601 ]
602 ),
603 ],
604 ]
605 ),
606 ],
607 'padding' => [
608 'top' => '32',
609 'right' => 40,
610 'bottom' => '32',
611 'left' => 40,
612 ],
613 'background_color' => '#1A1A1A',
614 ]
615 ),
616 ];
617 }
618 }
619