PluginProbe
YayMail – WooCommerce Email Customizer / 4.4.0
YayMail – WooCommerce Email Customizer v4.4.0
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 / NewOrder / ModernMinimal.php

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

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