PluginProbe
YayMail – WooCommerce Email Customizer / 4.3.4
YayMail – WooCommerce Email Customizer v4.3.4
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 / ModernMinimal.php

ModernMinimal.php in YayMail – WooCommerce Email Customizer 4.3.4, at src/TemplateLibrary/Templates/Processing/ModernMinimal.php

274 lines 12.7 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\BillingShippingAddress;
7 use YayMail\Elements\Column;
8 use YayMail\Elements\ColumnLayout;
9 use YayMail\Elements\ElementsHelper;
10 use YayMail\Elements\Image;
11 use YayMail\Elements\OrderDetails;
12 use YayMail\Elements\SocialIcon;
13 use YayMail\Elements\Text;
14 use YayMail\Utils\SingletonTrait;
15
16 /**
17 * Modern Minimal template for Processing Order email.
18 */
19 class ModernMinimal extends BaseTemplate {
20 use SingletonTrait;
21
22 public function __construct() {
23 parent::__construct();
24 $this->id = 'processing_order_modern_minimal';
25 $this->email_type = 'customer_processing_order';
26 $this->name = 'Modern Minimal';
27 $this->description = 'Clean layout with plenty of whitespace';
28 $this->elements = [
29 ColumnLayout::get_object_data(
30 2,
31 [
32 'background_color' => '#ffffff',
33 'children' => [
34 Column::get_object_data(
35 30,
36 [
37 'children' => [
38 Image::get_object_data(
39 [
40 'align' => 'left',
41 'src' => YAYMAIL_PLUGIN_URL . 'assets/images/woocommerce-logo.png',
42 'width' => 116,
43 'padding' => [
44 'top' => 0,
45 'right' => 10,
46 'bottom' => 0,
47 'left' => 0,
48 ],
49 ]
50 ),
51 ],
52 ]
53 ),
54 Column::get_object_data(
55 70,
56 [
57 'children' => [
58 Text::get_object_data(
59 [
60 'rich_text' => '<p style="text-align: right; font-size: 18px; font-weight: 500;">My Account Order Tracking Contact</p>',
61 'padding' => [
62 'top' => 0,
63 'right' => 0,
64 'bottom' => 0,
65 'left' => 0,
66 ],
67 'text_color' => '#333439',
68 ]
69 ),
70 ],
71 ]
72 ),
73 ],
74 'padding' => [
75 'top' => 20,
76 'right' => 40,
77 'bottom' => 20,
78 'left' => 40,
79 ],
80 ]
81 ),
82 ColumnLayout::get_object_data(
83 2,
84 [
85 'background_color' => '#EAFCFF',
86 'inner_background_color' => '#ffffff00',
87 'children' => [
88 Column::get_object_data(
89 70,
90 [
91 'children' => [
92 Text::get_object_data(
93 [
94 'rich_text' => '<h1 style="font-size: 30px; font-weight: 600;">Order #[yaymail_order_id is_plain="true"]<br><br>has been confirmed</h1>',
95 'text_color' => '#333439',
96 'background_color' => '#ffffff00',
97 'padding' => [
98 'top' => 10,
99 'right' => 0,
100 'bottom' => 0,
101 'left' => 50,
102 ],
103 ]
104 ),
105 ],
106 ]
107 ),
108 Column::get_object_data(
109 30,
110 [
111 'children' => [
112 Image::get_object_data(
113 [
114 'align' => 'left',
115 'src' => 'https://images.wpbrandy.com/uploads/yaymail-processing-banner-icon.png',
116 'width' => 120,
117 'padding' => [
118 'top' => 0,
119 'right' => 10,
120 'bottom' => 0,
121 'left' => 0,
122 ],
123 'background_color' => '#ffffff00',
124 ]
125 ),
126 ],
127 ]
128 ),
129 ],
130 'background_image' => [
131 'url' => 'https://images.wpbrandy.com/uploads/yaymail-processing-order-banner-bg.png',
132 'position' => 'custom',
133 'x_position' => 70,
134 'y_position' => 0,
135 'size' => 'cover',
136 'repeat' => 'no-repeat',
137 ],
138 'padding' => [
139 'top' => 30,
140 'right' => 0,
141 'bottom' => 30,
142 'left' => 0,
143 ],
144 ]
145 ),
146 Image::get_object_data(
147 [
148 'src' => 'https://images.wpbrandy.com/uploads/yaymail-processing-processing-bar.png',
149 'width' => 600,
150 'padding' => [
151 'top' => 0,
152 'right' => 10,
153 'bottom' => 0,
154 'left' => 0,
155 ],
156 ]
157 ),
158 Text::get_object_data(
159 [
160 'rich_text' => '<p>Hi <b>[yaymail_billing_first_name] [yaymail_billing_last_name],</b></p><p>Thank you for purchase with Woo!!<br>Just to let you know — we\'ve received your order #[yaymail_order_id is_plain="true"], and it is now being processed.</p>',
161 'text_color' => '#333439',
162 'padding' => [
163 'top' => 15,
164 'right' => 50,
165 'bottom' => 15,
166 'left' => 50,
167 ],
168 ]
169 ),
170 OrderDetails::get_object_data(
171 [
172 'title' => '<p><span style="font-size: 20px;"><strong>Order Summary</strong></span></p>',
173 'title_color' => '#1A1A1A',
174 ]
175 ),
176 Text::get_object_data(
177 [
178 'rich_text' => '<p style="font-size: 16px;">[yaymail_order_link text_link="View Order Detail"]</p>',
179 'text_color' => '#333439',
180 'padding' => [
181 'top' => 0,
182 'right' => 50,
183 'bottom' => 0,
184 'left' => 50,
185 ],
186 ]
187 ),
188 BillingShippingAddress::get_object_data(
189 [
190 'title_color' => '#1A1A1A',
191 ]
192 ),
193 ColumnLayout::get_object_data(
194 1,
195 [
196 'padding' => [
197 'top' => 10,
198 'bottom' => 10,
199 'left' => 40,
200 'right' => 40,
201 ],
202 'children' => [
203 Column::get_object_data(
204 100,
205 [
206 'children' => [
207 Text::get_object_data(
208 [
209 'rich_text' => '<p style="text-align: center; margin: 0; font-weight: 300;"><span style="font-size: 16px;">For questions, contact <u>hi@yaycommerce.com</u>, visit our <u>FAQs</u>, or <u>chat</u> with us during operating hours for account support</span></p>',
210 'background_color' => '#ffffff00',
211 'padding' => [
212 'top' => 0,
213 'right' => 0,
214 'bottom' => 0,
215 'left' => 0,
216 ],
217 'text_color' => '#333439',
218 ]
219 ),
220 SocialIcon::get_object_data(
221 [
222 'align' => 'center',
223 'spacing' => 24,
224 'width_icon' => 24,
225 'style' => 'Colorful',
226 'icon_list' => [
227 [
228 'icon' => 'facebook',
229 'url' => '#',
230 ],
231 [
232 'icon' => 'instagram',
233 'url' => '#',
234 ],
235 [
236 'icon' => 'tiktok',
237 'url' => '#',
238 ],
239 [
240 'icon' => 'youtube',
241 'url' => '#',
242 ],
243
244 ],
245 'padding' => [
246 'top' => 20,
247 'right' => 0,
248 'bottom' => 20,
249 'left' => 0,
250 ],
251 ]
252 ),
253 Text::get_object_data(
254 [
255 'rich_text' => '<p style="text-align: center; margin: 0; font-weight: 300;"><span style="font-size: 12px;">© 2025 YayCommerce.com</span></p>',
256 'padding' => [
257 'top' => 0,
258 'right' => 0,
259 'bottom' => 20,
260 'left' => 0,
261 ],
262 'text_color' => '#77859B',
263 ]
264 ),
265 ],
266 ]
267 ),
268 ],
269 ]
270 ),
271 ];
272 }
273 }
274