PluginProbe
YayMail – WooCommerce Email Customizer / 4.4.1
YayMail – WooCommerce Email Customizer v4.4.1
4.4.6 4.4.5 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 All 57 releases
yaymail / src / TemplateLibrary / Templates / NewOrder / ModernMinimal.php

ModernMinimal.php in YayMail – WooCommerce Email Customizer 4.4.1, at src/TemplateLibrary/Templates/NewOrder/ModernMinimal.php

436 lines 22.8 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\NewOrder;
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\Divider;
10 use YayMail\Elements\Heading;
11 use YayMail\Elements\Image;
12 use YayMail\Elements\Logo;
13 use YayMail\Elements\OrderDetails;
14 use YayMail\Elements\SocialIcon;
15 use YayMail\Elements\Text;
16 use YayMail\Utils\SingletonTrait;
17
18 /**
19 * Modern Minimal template for New Order email.
20 */
21 class ModernMinimal extends BaseTemplate {
22 use SingletonTrait;
23
24 public function __construct() {
25 parent::__construct();
26 $this->id = 'new_order_modern_minimal';
27 $this->email_type = 'new_order';
28 $this->name = 'Modern Minimal';
29 $this->description = 'Clean layout with plenty of whitespace';
30 $this->elements = [
31 ColumnLayout::get_object_data(
32 4,
33 [
34 'column_width' => [],
35 'column_spacing' => '0',
36 'vertical_align' => 'top',
37 'padding' => [
38 'top' => '15',
39 'right' => 50,
40 'bottom' => '15',
41 'left' => 50,
42 ],
43 'border_radius' => [
44 'top_left' => '0',
45 'top_right' => '0',
46 'bottom_left' => '0',
47 'bottom_right' => '0',
48 ],
49 'background_color' => '#fff',
50 'background_image' => [
51 'url' => '',
52 'position' => 'default',
53 'x_position' => 0,
54 'y_position' => 0,
55 'repeat' => 'default',
56 'size' => 'default',
57 ],
58 'inner_border_radius' => [
59 'top_left' => '0',
60 'top_right' => '0',
61 'bottom_left' => '0',
62 'bottom_right' => '0',
63 ],
64 'inner_background_color' => '#ffffff00',
65 'children' => [
66 Column::get_object_data(
67 29,
68 [
69 'children' => [
70 Logo::get_object_data(
71 [
72 'container_group_definition' => [
73 'component' => 'GroupDefinition',
74 'title' => 'Container settings',
75 'description' => 'Handle container layout settings',
76 ],
77 'padding' => [
78 'top' => 10,
79 'right' => 10,
80 'bottom' => 10,
81 'left' => 0,
82 ],
83 'background_color' => '#fff',
84 'image_breaker' => [
85 'component' => 'LineBreaker',
86 ],
87 'image_group_definition' => [
88 'component' => 'GroupDefinition',
89 'title' => 'Image settings',
90 'description' => 'Handle image settings',
91 ],
92 'src' => YAYMAIL_PLUGIN_URL . 'assets/images/woocommerce-logo.png',
93 'align' => 'left',
94 'width' => 116,
95 'url' => '#',
96 'alt' => '',
97 ]
98 ),
99 ],
100 ]
101 ),
102 Column::get_object_data(
103 25.59,
104 [
105 'children' => [
106 Text::get_object_data(
107 [
108 'container_group_definition' => [
109 'component' => 'GroupDefinition',
110 'title' => 'Container settings',
111 'description' => 'Handle container layout settings',
112 ],
113 'padding' => [
114 'top' => '15',
115 'right' => 0,
116 'bottom' => '15',
117 'left' => 0,
118 ],
119 'background_color' => '#fff',
120 'border' => [
121 'side' => 'none',
122 'width' => '1',
123 'style' => 'solid',
124 'color' => '#e5e5e5',
125 'custom' => [
126 'top' => '1',
127 'right' => '1',
128 'bottom' => '1',
129 'left' => '1',
130 ],
131 ],
132 'content_breaker' => [
133 'component' => 'LineBreaker',
134 ],
135 'content_group_definition' => [
136 'component' => 'GroupDefinition',
137 'title' => 'Content settings',
138 'description' => 'Handle content settings',
139 ],
140 'font_family' => 'Helvetica,Roboto,Arial,sans-serif',
141 'text_color' => '#000000',
142 'rich_text' => '<div style="text-align: right"><span style="font-size: 18px">My Account</span></div>',
143 ]
144 ),
145 ],
146 ]
147 ),
148 Column::get_object_data(
149 34.160,
150 [
151 'children' => [
152 Text::get_object_data(
153 [
154 'container_group_definition' => [
155 'component' => 'GroupDefinition',
156 'title' => 'Container settings',
157 'description' => 'Handle container layout settings',
158 ],
159 'padding' => [
160 'top' => '15',
161 'right' => 0,
162 'bottom' => '15',
163 'left' => 0,
164 ],
165 'background_color' => '#fff',
166 'border' => [
167 'side' => 'none',
168 'width' => '1',
169 'style' => 'solid',
170 'color' => '#e5e5e5',
171 'custom' => [
172 'top' => '1',
173 'right' => '1',
174 'bottom' => '1',
175 'left' => '1',
176 ],
177 ],
178 'content_breaker' => [
179 'component' => 'LineBreaker',
180 ],
181 'content_group_definition' => [
182 'component' => 'GroupDefinition',
183 'title' => 'Content settings',
184 'description' => 'Handle content settings',
185 ],
186 'font_family' => 'Helvetica,Roboto,Arial,sans-serif',
187 'text_color' => '#1a1a1a',
188 'rich_text' => '<div style="text-align: center"><span style="font-size: 18px;font-weight: 500">Order Tracking</span></div>',
189 ]
190 ),
191 ],
192 ]
193 ),
194 Column::get_object_data(
195 11.25,
196 [
197 'children' => [
198 Text::get_object_data(
199 [
200 'container_group_definition' => [
201 'component' => 'GroupDefinition',
202 'title' => 'Container settings',
203 'description' => 'Handle container layout settings',
204 ],
205 'padding' => [
206 'top' => '15',
207 'right' => 2,
208 'bottom' => '15',
209 'left' => 0,
210 ],
211 'background_color' => '#fff',
212 'border' => [
213 'side' => 'none',
214 'width' => '1',
215 'style' => 'solid',
216 'color' => '#e5e5e5',
217 'custom' => [
218 'top' => '1',
219 'right' => '1',
220 'bottom' => '1',
221 'left' => '1',
222 ],
223 ],
224 'content_breaker' => [
225 'component' => 'LineBreaker',
226 ],
227 'content_group_definition' => [
228 'component' => 'GroupDefinition',
229 'title' => 'Content settings',
230 'description' => 'Handle content settings',
231 ],
232 'font_family' => 'Helvetica,Roboto,Arial,sans-serif',
233 'text_color' => '#1a1a1a',
234 'rich_text' => '<div style="text-align: right"><span style="font-size: 18px;font-weight: 500">Contact</span></div>',
235 ]
236 ),
237 ],
238 ]
239 ),
240 ],
241 ]
242 ),
243 ColumnLayout::get_object_data(
244 2,
245 [
246 'background_color' => '#F7F1FF',
247 'inner_background_color' => '#ffffff00',
248 'vertical_align' => 'middle',
249 'children' => [
250 Column::get_object_data(
251 70,
252 [
253 'children' => [
254 Heading::get_object_data(
255 [
256 'rich_text' => '<p style="line-height: 40px;"><strong><span style="font-size: 30px;">You\'ve got a new order</span></strong><br /><strong><span style="font-size: 30px;">Please confirm</span></strong></p>',
257 'text_color' => '#333439',
258 'background_color' => '#ffffff00',
259 'padding' => [
260 'top' => 0,
261 'right' => 0,
262 'bottom' => 0,
263 'left' => 50,
264 ],
265 ]
266 ),
267 ],
268 ]
269 ),
270 Column::get_object_data(
271 30,
272 [
273 'children' => [
274 Image::get_object_data(
275 [
276 'align' => 'left',
277 'src' => 'https://images.wpbrandy.com/uploads/yaymail-new-order-banner-icon.png',
278 'width' => 120,
279 'padding' => [
280 'top' => 0,
281 'right' => 10,
282 'bottom' => 0,
283 'left' => 0,
284 ],
285 'background_color' => '#ffffff00',
286 ]
287 ),
288 ],
289 ]
290 ),
291 ],
292 'background_image' => [
293 'url' => 'https://images.wpbrandy.com/uploads/yaymail-new-order-banner-bg.png',
294 'position' => 'custom',
295 'x_position' => 70,
296 'y_position' => 0,
297 'size' => 'cover',
298 'repeat' => 'no-repeat',
299 ],
300 'padding' => [
301 'top' => 30,
302 'right' => 0,
303 'bottom' => 30,
304 'left' => 0,
305 ],
306 ]
307 ),
308 Text::get_object_data(
309 [
310 'rich_text' => '<p>Hi <b>[yaymail_billing_first_name] [yaymail_billing_last_name],</b></p><p>You\'ve received the following order from [yaymail_billing_first_name] [yaymail_billing_last_name].</p>',
311 'text_color' => '#333439',
312 'padding' => [
313 'top' => 15,
314 'right' => 50,
315 'bottom' => 15,
316 'left' => 50,
317 ],
318 ]
319 ),
320 OrderDetails::get_object_data(
321 [
322 'title' => '<p><span style="font-size: 20px;"><strong>Order Summary</strong></span></p>',
323 'title_color' => '#1A1A1A',
324 ]
325 ),
326 Text::get_object_data(
327 [
328 'rich_text' => '<p style="font-size: 16px;">[yaymail_order_link text_link="View Order Detail"]</p>',
329 'text_color' => '#333439',
330 'padding' => [
331 'top' => 0,
332 'right' => 50,
333 'bottom' => 0,
334 'left' => 50,
335 ],
336 ]
337 ),
338 BillingShippingAddress::get_object_data(
339 [
340 'title_color' => '#1A1A1A',
341 ]
342 ),
343 ColumnLayout::get_object_data(
344 1,
345 [
346 'padding' => [
347 'top' => 10,
348 'bottom' => 10,
349 'left' => 40,
350 'right' => 40,
351 ],
352 'children' => [
353 Column::get_object_data(
354 100,
355 [
356 'children' => [
357 Divider::get_object_data(
358 [
359 'height' => 2,
360 'width' => 100,
361 'divider_color' => '#333439',
362 'padding' => [
363 'top' => 20,
364 'right' => 0,
365 'bottom' => 20,
366 'left' => 0,
367 ],
368 ]
369 ),
370 Text::get_object_data(
371 [
372 'rich_text' => '<p style="text-align: center; margin: 0; font-weight: 300;"><span style="font-size: 16px;">For questions, contact <u>[email protected]</u>, visit our <u>FAQs</u>, or <u>chat</u> with us during operating hours for account support</span></p>',
373 'background_color' => '#ffffff00',
374 'padding' => [
375 'top' => 0,
376 'right' => 0,
377 'bottom' => 0,
378 'left' => 0,
379 ],
380 'text_color' => '#333439',
381 ]
382 ),
383 SocialIcon::get_object_data(
384 [
385 'align' => 'center',
386 'spacing' => 24,
387 'width_icon' => 24,
388 'style' => 'Colorful',
389 'icon_list' => [
390 [
391 'icon' => 'facebook',
392 'url' => '#',
393 ],
394 [
395 'icon' => 'instagram',
396 'url' => '#',
397 ],
398 [
399 'icon' => 'tiktok',
400 'url' => '#',
401 ],
402 [
403 'icon' => 'youtube',
404 'url' => '#',
405 ],
406
407 ],
408 'padding' => [
409 'top' => 20,
410 'right' => 0,
411 'bottom' => 20,
412 'left' => 0,
413 ],
414 ]
415 ),
416 Text::get_object_data(
417 [
418 'rich_text' => '<p style="text-align: center; margin: 0; font-weight: 300;"><span style="font-size: 12px;">© 2025 YayCommerce.com</span></p>',
419 'padding' => [
420 'top' => 0,
421 'right' => 0,
422 'bottom' => 20,
423 'left' => 0,
424 ],
425 'text_color' => '#77859B',
426 ]
427 ),
428 ],
429 ]
430 ),
431 ],
432 ]
433 ),
434 ];
435 }
436 }