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 / TemplatePatterns / Patterns / Shipping4.php

Shipping4.php in YayMail – WooCommerce Email Customizer trunk, at src/TemplatePatterns/Patterns/Shipping4.php

95 lines 4.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace YayMail\TemplatePatterns\Patterns;
3
4 use YayMail\Abstracts\BasePattern;
5 use YayMail\Elements\Column;
6 use YayMail\Elements\ColumnLayout;
7 use YayMail\Elements\Image;
8 use YayMail\Elements\Text;
9 use YayMail\TemplatePatterns\SectionTemplates\Shipping;
10 use YayMail\Utils\SingletonTrait;
11
12 /** */
13 class Shipping4 extends BasePattern {
14 use SingletonTrait;
15
16 public const TYPE = 'shipping_4';
17
18 public function __construct() {
19 $this->id = uniqid();
20 $this->section = Shipping::TYPE;
21 $this->position = 13;
22 $this->name = __( 'Shipping 4', 'yaymail' );
23 $this->elements = [
24 ColumnLayout::get_object_data(
25 1,
26 [
27 'background_color' => '#F1F2F5',
28 'padding' => [
29 'top' => 20,
30 'left' => 20,
31 'bottom' => 20,
32 'right' => 20,
33 ],
34 'inner_border_radius' => [
35 'top_left' => 10,
36 'top_right' => 10,
37 'bottom_left' => 10,
38 'bottom_right' => 10,
39 ],
40 'inner_background_color' => '#FFFFFF',
41 'children' => [
42 Column::get_object_data(
43 100,
44 [
45 'children' => [
46 Text::get_object_data(
47 [
48 'rich_text' => '<p style="text-align: center; margin: 0; font-weight: 700;"><span style="font-size: 24px;">Yay!! Order Has Shipped!</span></p>',
49 'padding' => [
50 'top' => 15,
51 'right' => 40,
52 'bottom' => 0,
53 'left' => 40,
54 ],
55 'text_color' => '#333439',
56 'background_color' => '#F8FAFD',
57 ]
58 ),
59 Text::get_object_data(
60 [
61 'rich_text' => '<p style="text-align: center; margin: 0; font-weight: 400;"><span style="font-size: 16px; font-weight: 300;">Great news! Your order is on its way. You can find the shipping details below.</span></p>',
62 'padding' => [
63 'top' => 0,
64 'right' => 40,
65 'bottom' => 15,
66 'left' => 40,
67 ],
68 'text_color' => '#333439',
69 'background_color' => '#F8FAFD',
70 ]
71 ),
72 Image::get_object_data(
73 [
74 'src' => 'https://images.wpbrandy.com/uploads/yaymail-order-status.png',
75 'width' => 382,
76 'align' => 'center',
77 'padding' => [
78 'top' => 20,
79 'right' => 40,
80 'bottom' => 20,
81 'left' => 40,
82 ],
83 'background_color' => '#ffffff00',
84 ]
85 ),
86 ],
87 ]
88 ),
89 ],
90 ]
91 ),
92 ];
93 }
94 }
95