PluginProbe
YayMail – WooCommerce Email Customizer / 1.9.6
YayMail – WooCommerce Email Customizer v1.9.6
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 / includes / Page / Source / DefaultElement.php

DefaultElement.php in YayMail – WooCommerce Email Customizer 1.9.6, at includes/Page/Source/DefaultElement.php

745 lines 27.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace YayMail\Page\Source;
3
4 defined( 'ABSPATH' ) || exit;
5
6 class DefaultElement {
7
8 public $defaultDataElement = null;
9
10 public function __construct() {
11 $textShippingAddress = __( 'Shipping Address', 'woocommerce' );
12 $textBillingAddress = __( 'Billing Address', 'woocommerce' );
13
14 $this->defaultDataElement = array(
15 array(
16 'id' => 1,
17 'type' => 'Logo',
18 'nameIcon' => 'picture',
19 'nameElement' => 'Logo',
20 'settingRow' => array(
21 'backgroundColor' => '#fff',
22 'align' => 'center',
23 'pathImg' => '',
24 'paddingTop' => 15,
25 'paddingRight' => 50,
26 'paddingBottom' => 15,
27 'paddingLeft' => 50,
28 'width' => 202,
29 'url' => '#',
30 ),
31 ),
32 array(
33 'id' => 21,
34 'type' => 'Images',
35 'nameIcon' => 'picture',
36 'nameElement' => 'Image',
37 'settingRow' => array(
38 'backgroundColor' => '#fff',
39 'align' => 'center',
40 'pathImg' => '',
41 'paddingTop' => 15,
42 'paddingRight' => 50,
43 'paddingBottom' => 15,
44 'paddingLeft' => 50,
45 'width' => 252,
46 'url' => '#',
47 ),
48 ),
49 array(
50 'id' => 2,
51 'type' => 'Button',
52 'nameIcon' => 'plus-circle',
53 'nameElement' => 'Button',
54 'settingRow' => array(
55 'buttonType' => 'default',
56 'text' => 'Click me',
57 'backgroundColor' => '#fff',
58 'align' => 'center',
59 'widthButton' => '50',
60 'heightButton' => '21',
61 'paddingTop' => 15,
62 'paddingRight' => 50,
63 'paddingBottom' => 15,
64 'paddingLeft' => 50,
65 'textPaddingTop' => 12,
66 'textPaddingRight' => 20,
67 'textPaddingBottom' => 12,
68 'textPaddingLeft' => 20,
69 'borderRadiusTop' => 5,
70 'borderRadiusRight' => 5,
71 'borderRadiusBottom' => 5,
72 'borderRadiusLeft' => 5,
73 'pathUrl' => '#',
74 'buttonBackgroundColor' => '#965f8e',
75 'fontSize' => 13,
76 'textColor' => '#fff',
77 'weight' => 'normal',
78 'family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
79 ),
80 ),
81 array(
82 'id' => 3,
83 'type' => 'ElementText',
84 'nameIcon' => 'form',
85 'nameElement' => 'Text',
86 'settingRow' => array(
87 'content' => '<p><span style="font-size: 18px;"><strong>This is a title</strong></span></p>
88 <p>&nbsp;</p>
89 <p style="font-size: 14px;"><span> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy.</span></p>
90 <p>&nbsp;</p>
91 <p style="font-size: 14px;"><span>It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</span></p>
92 <p>&nbsp;</p>
93 <p style="font-size: 14px;"><span>Various versions have evolved over the years.</span></p>',
94 'backgroundColor' => '#fff',
95 'textColor' => '#636363',
96 'family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
97 'paddingTop' => 15,
98 'paddingRight' => 50,
99 'paddingBottom' => 15,
100 'paddingLeft' => 50,
101 ),
102 ),
103 array(
104 'id' => 4,
105 'type' => 'Title',
106 'nameIcon' => 'font-colors',
107 'nameElement' => 'Title',
108 'settingRow' => array(
109 'title' => 'Enter your title here',
110 'sizeTitle' => 'default',
111 'fontSizeTitle' => '26px',
112 'subTitle' => 'Subtitle',
113 'sizeSubTitle' => 'default',
114 'fontSizeSubTitle' => '',
115 'backgroundColor' => '#fff',
116 'align' => 'center',
117 'paddingTop' => 15,
118 'paddingRight' => 50,
119 'paddingBottom' => 15,
120 'paddingLeft' => 50,
121 'textColor' => 'rgb(68, 68, 68)',
122 'family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
123 ),
124 ),
125 array(
126 'id' => 5,
127 'type' => 'SocialIcon',
128 'nameIcon' => 'share-alt',
129 'nameElement' => 'Social Icon',
130 'settingRow' => array(
131 'backgroundColor' => '#fff',
132 'align' => 'center',
133 'widthSocialIcon' => 24,
134 'iconSpacing' => 5,
135 'paddingTop' => 15,
136 'paddingRight' => 50,
137 'paddingBottom' => 15,
138 'paddingLeft' => 50,
139 'styleTheme' => 'soildDark',
140 'iconSocialsArr' => array(),
141 ),
142 ),
143 array(
144 'id' => 6,
145 'type' => 'Video',
146 'nameIcon' => 'video-camera',
147 'nameElement' => 'Video',
148 'settingRow' => array(
149 'backgroundColor' => '#fff',
150 'paddingTop' => 15,
151 'paddingRight' => 50,
152 'paddingBottom' => 15,
153 'paddingLeft' => 50,
154 'pathImg' => '',
155 'width' => 100,
156 'videoUrl' => '',
157 'height' => 360,
158 ),
159 ),
160 array(
161 'id' => 7,
162 'type' => 'ImageList',
163 'nameIcon' => 'pic-center',
164 'nameElement' => 'Image List',
165 'settingRow' => array(
166 'numberCol' => 'three',
167 'backgroundColor' => '#fff',
168
169 /* col one */
170 'col1Align' => 'center',
171 'col1PathImg' => '',
172 'col1PaddingTop' => 10,
173 'col1PaddingRight' => 10,
174 'col1PaddingBottom' => 10,
175 'col1PaddingLeft' => 50,
176 'col1Width' => 100,
177 'col1Url' => '#',
178 /* col two */
179 'col2Align' => 'center',
180 'col2PathImg' => '',
181 'col2PaddingTop' => 10,
182 'col2PaddingRight' => 30,
183 'col2PaddingBottom' => 10,
184 'col2PaddingLeft' => 30,
185 'col2Width' => 100,
186 'col2Url' => '#',
187 /* col three */
188 'col3Align' => 'center',
189 'col3PathImg' => '',
190 'col3PaddingTop' => 10,
191 'col3PaddingRight' => 50,
192 'col3PaddingBottom' => 10,
193 'col3PaddingLeft' => 10,
194 'col3Width' => 100,
195 'col3Url' => '#',
196 ),
197 ),
198 array(
199 'id' => 8,
200 'type' => 'ImageBox',
201 'nameIcon' => 'pic-left',
202 'nameElement' => 'Image Box',
203 'settingRow' => array(
204 'numberCol' => 'two',
205 'backgroundColor' => '#fff',
206 'textColor' => '#636363',
207
208 /* col 1 */
209 'col1Align' => 'center',
210 'col1PathImg' => '',
211 'col1PaddingTop' => 10,
212 'col1PaddingRight' => 10,
213 'col1PaddingBottom' => 10,
214 'col1PaddingLeft' => 50,
215 'col1Width' => 242,
216 'col1Url' => '#',
217
218 /* col 2 */
219 'col2Content' => '<p><span style="font-size: 18px;"><strong>This is a title</strong></span></p>
220 <p>&nbsp;</p>
221 <p style="font-size: 14px;"><span> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy.</span></p>
222 <p>&nbsp;</p>
223 <p style="font-size: 14px;"><span>It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</span></p>
224 ',
225 'col2Family' => 'Helvetica,Roboto,Arial,sans-serif',
226 'col2PaddingTop' => 10,
227 'col2PaddingRight' => 50,
228 'col2PaddingBottom' => 10,
229 'col2PaddingLeft' => 10,
230 ),
231 ),
232 array(
233 'id' => 9,
234 'type' => 'TextList',
235 'nameIcon' => 'menu',
236 'nameElement' => 'Text List',
237 'settingRow' => array(
238 'numberCol' => 'two',
239 'backgroundColor' => '#fff',
240 'textColor' => '#636363',
241 'buttonCol1' => 'show',
242 'buttonCol2' => 'show',
243 'buttonCol3' => 'show',
244
245 /*
246 === col 1 ===*/
247 /* text */
248 'col1TtContent' => '<p><span style="font-size: 18px; color: #636363;"><strong>This is a title</strong></span></p>
249 <p>&nbsp;</p>
250 <p style="font-size: 14px;"><span> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy.</span></p>
251 <p>&nbsp;</p>
252 <p style="font-size: 14px;"><span>It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</span></p>',
253
254 'col1TtFamily' => '"Helvetica",Helvetica,Roboto,Arial,sans-serif',
255 'col1TtPaddingTop' => 10,
256 'col1TtPaddingRight' => 10,
257 'col1TtPaddingBottom' => 10,
258 'col1TtPaddingLeft' => 50,
259
260 /* button */
261 'col1BtButtonType' => 'default',
262 'col1BtText' => 'Click me',
263 'col1BtAlign' => 'left',
264 'col1BtWidthButton' => '',
265 'col1BtPaddingTop' => 0,
266 'col1BtPaddingRight' => 0,
267 'col1BtPaddingBottom' => 0,
268 'col1BtPaddingLeft' => 50,
269 'col1BtPathUrl' => '#',
270 'col1BtBgColor' => '#965f8e',
271 'col1BtFontSize' => 13,
272 'col1BtTextColor' => '#fff',
273 'col1BtWeight' => 'normal',
274 'col1BtFamily' => '"Helvetica",Helvetica,Roboto,Arial,sans-serif',
275
276 /*
277 === col 2 ===*/
278 /* text */
279 'col2TtContent' => '<p><span style="font-size: 18px; color: #636363;"><strong>This is a title</strong></span></p>
280 <p>&nbsp;</p>
281 <p style="font-size: 14px;"><span> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy.</span></p>
282 <p>&nbsp;</p>
283 <p style="font-size: 14px;"><span>It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</span></p>',
284
285 'col2TtFamily' => '"Helvetica",Helvetica,Roboto,Arial,sans-serif',
286 'col2TtPaddingTop' => 10,
287 'col2TtPaddingRight' => 50,
288 'col2TtPaddingBottom' => 10,
289 'col2TtPaddingLeft' => 10,
290
291 /* button */
292 'col2BtButtonType' => 'default',
293 'col2BtText' => 'Click me',
294 'col2BtAlign' => 'left',
295 'col2BtWidthButton' => '',
296 'col2BtPaddingTop' => 0,
297 'col2BtPaddingRight' => 0,
298 'col2BtPaddingBottom' => 0,
299 'col2BtPaddingLeft' => 10,
300 'col2BtPathUrl' => '#',
301 'col2BtBgColor' => '#965f8e',
302 'col2BtFontSize' => 13,
303 'col2BtTextColor' => '#fff',
304 'col2BtWeight' => 'normal',
305 'col2BtFamily' => '"Helvetica",Helvetica,Roboto,Arial,sans-serif',
306
307 /*
308 === col 3 ===*/
309 /* text */
310 'col3TtContent' => '<p><span style="font-size: 18px; color: #636363;"><strong>This is a title</strong></span></p>
311 <p>&nbsp;</p>
312 <p style="font-size: 14px;"><span> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy.</span></p>
313 <p>&nbsp;</p>
314 <p style="font-size: 14px;"><span>It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</span></p>',
315
316 'col3TtFamily' => '"Helvetica",Helvetica,Roboto,Arial,sans-serif',
317 'col3TtPaddingTop' => 10,
318 'col3TtPaddingRight' => 50,
319 'col3TtPaddingBottom' => 10,
320 'col3TtPaddingLeft' => 10,
321
322 /* button */
323 'col3BtButtonType' => 'default',
324 'col3BtText' => 'Click me',
325 'col3BtAlign' => 'left',
326 'col3BtWidthButton' => '',
327 'col3BtPaddingTop' => 0,
328 'col3BtPaddingRight' => 40,
329 'col3BtPaddingBottom' => 0,
330 'col3BtPaddingLeft' => 10,
331 'col3BtPathUrl' => '#',
332 'col3BtBgColor' => '#965f8e',
333 'col3BtFontSize' => 13,
334 'col3BtTextColor' => '#fff',
335 'col3BtWeight' => 'normal',
336 'col3BtFamily' => '"Helvetica",Helvetica,Roboto,Arial,sans-serif',
337 ),
338 ),
339 array(
340 'id' => 23,
341 'type' => 'HTMLCode',
342 'nameIcon' => 'code',
343 'nameElement' => 'HTML',
344 'settingRow' => array(
345 'HTMLContent' => '',
346 'backgroundColor' => '#fff',
347 'textColor' => '#636363',
348 'family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
349 'fontSize' => 14,
350 'paddingTop' => 15,
351 'paddingRight' => 50,
352 'paddingBottom' => 15,
353 'paddingLeft' => 50,
354 ),
355 ),
356 // General
357 array(
358 'id' => 10,
359 'type' => 'Space',
360 'nameIcon' => 'column-height',
361 'nameElement' => 'Space',
362 'settingRow' => array(
363 'backgroundColor' => '#fff',
364 'height' => 40,
365 ),
366 ),
367 array(
368 'id' => 11,
369 'type' => 'Divider',
370 'nameIcon' => 'minus',
371 'nameElement' => 'Divider',
372 'settingRow' => array(
373 'backgroundColor' => '#fff',
374 'align' => 'center',
375 'paddingTop' => 15,
376 'paddingRight' => 50,
377 'paddingBottom' => 15,
378 'paddingLeft' => 50,
379 'height' => 6,
380 'width' => 100,
381 'dividerColor' => '#333',
382 'dividerStyle' => 'solid',
383 ),
384 ),
385 array(
386 'id' => 22,
387 'type' => 'OneColumn',
388 'nameIcon' => 'menu',
389 'nameElement' => 'One Column',
390 'settingRow' => array(
391 'column1' => array(),
392 'content' => '<table style="width: 100%; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td>Column 1</td></tr></tbody></table>',
393 'backgroundColor' => '#fff',
394 'backgroundImage' => '',
395 'backgroundPosition' => 'unset',
396 'backgroundRepeat' => 'unset',
397 'backgroundSize' => 'unset',
398 'textColor' => '#000000',
399 'family' => '"Helvetica",Helvetica,Roboto,Arial,sans-serif',
400 'paddingTop' => 15,
401 'paddingRight' => 0,
402 'paddingBottom' => 15,
403 'paddingLeft' => 0,
404 ),
405 ),
406 array(
407 'id' => 12,
408 'type' => 'TwoColumns',
409 'nameIcon' => 'bars',
410 'nameElement' => 'Two Columns',
411 'settingRow' => array(
412 'column1' => array(),
413 'column2' => array(),
414 'content' => '<table style="width: 100%; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td style="width: 50%;">Column 1</td><td style="width: 50%;">Column 2</td></tr></tbody></table>',
415 'backgroundColor' => '#fff',
416 'backgroundImage' => '',
417 'backgroundPosition' => 'unset',
418 'backgroundRepeat' => 'unset',
419 'backgroundSize' => 'unset',
420 'textColor' => '#000000',
421 'family' => '"Helvetica",Helvetica,Roboto,Arial,sans-serif',
422 'paddingTop' => 15,
423 'paddingRight' => 0,
424 'paddingBottom' => 15,
425 'paddingLeft' => 0,
426 'widthCol1' => 50,
427 'widthCol2' => 50,
428 ),
429 ),
430 array(
431 'id' => 13,
432 'type' => 'ThreeColumns',
433 'nameIcon' => 'menu',
434 'nameElement' => 'Three Columns',
435 'settingRow' => array(
436 'column1' => array(),
437 'column2' => array(),
438 'column3' => array(),
439 'content' => '<table style="width: 100%; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td style="width: 33.3333%;">Column 1</td><td style="width: 33.3333%;">Column 2</td><td style="width: 33.3333%;">Column 3</td></tr></tbody></table>',
440 'backgroundColor' => '#fff',
441 'backgroundImage' => '',
442 'backgroundPosition' => 'unset',
443 'backgroundRepeat' => 'unset',
444 'backgroundSize' => 'unset',
445 'textColor' => '#000000',
446 'family' => '"Helvetica",Helvetica,Roboto,Arial,sans-serif',
447 'paddingTop' => 15,
448 'paddingRight' => 0,
449 'paddingBottom' => 15,
450 'paddingLeft' => 0,
451 'widthCol1' => 33.3,
452 'widthCol2' => 33.3,
453 'widthCol3' => 33.3,
454 ),
455 ),
456 array(
457 'id' => 20,
458 'type' => 'FourColumns',
459 'nameIcon' => 'menu',
460 'nameElement' => 'Four Columns',
461 'settingRow' => array(
462 'column1' => array(),
463 'column2' => array(),
464 'column3' => array(),
465 'column4' => array(),
466 'content' => '<table style="width: 100%; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td style="width: 33.3333%;">Column 1</td><td style="width: 33.3333%;">Column 2</td><td style="width: 33.3333%;">Column 3</td></tr></tbody></table>',
467 'backgroundColor' => '#fff',
468 'backgroundImage' => '',
469 'backgroundPosition' => 'unset',
470 'backgroundRepeat' => 'unset',
471 'backgroundSize' => 'unset',
472 'textColor' => '#000000',
473 'family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
474 'paddingTop' => 15,
475 'paddingRight' => 0,
476 'paddingBottom' => 15,
477 'paddingLeft' => 0,
478 'widthCol1' => 25,
479 'widthCol2' => 25,
480 'widthCol3' => 25,
481 'widthCol4' => 25,
482 ),
483 ),
484
485 // WooCommerce
486 array(
487 'id' => 18,
488 'type' => 'ElementText',
489 'nameIcon' => 'font-colors',
490 'nameElement' => 'Email Heading',
491 'settingRow' => array(
492 'content' => '<h1 style="font-size: 30px; font-weight: 300; line-height: normal; margin: 0; color: inherit;">Email Heading</h1>',
493 'backgroundColor' => '#96588A',
494 'textColor' => '#ffffff',
495 'family' => "\'Helvetica Neue\',Helvetica,Roboto,Arial,sans-serif",
496 'paddingTop' => '41',
497 'paddingRight' => '48',
498 'paddingBottom' => '41',
499 'paddingLeft' => '48',
500 ),
501 ),
502 array(
503 'id' => 17,
504 'type' => 'ElementText',
505 'nameIcon' => 'form',
506 'nameElement' => 'Footer',
507 'settingRow' => array(
508 'content' => '<p><span style="font-size: 18px;"><strong>This is a Footer</strong></span></p>',
509 'backgroundColor' => '#fff',
510 'textColor' => '#636363',
511 'family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
512 'paddingTop' => 15,
513 'paddingRight' => 50,
514 'paddingBottom' => 15,
515 'paddingLeft' => 50,
516 ),
517 ),
518
519 array(
520 'id' => 14,
521 'type' => 'ShippingAddress',
522 'nameIcon' => 'car',
523 'nameElement' => 'Shipping Address',
524 'settingRow' => array(
525 'contentTitle' => $textShippingAddress,
526 'content' => '<address style="padding: 12px;margin-bottom:0;order-color: inherit"><span style="font-size: 14px; color: inherit;">[yaymail_shipping_address]</span></address>',
527 'titleColor' => '#96588a',
528 'backgroundColor' => '#fff',
529 'borderColor' => '#e5e5e5',
530 'textColor' => '#636363',
531 'family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
532 'paddingTop' => 15,
533 'paddingRight' => 50,
534 'paddingBottom' => 15,
535 'paddingLeft' => 50,
536 ),
537 ),
538 array(
539 'id' => 15,
540 'type' => 'BillingAddress',
541 'nameIcon' => 'idcard',
542 'nameElement' => 'Billing Address',
543 'settingRow' => array(
544 'nameColumn' => 'BillingAddress',
545 'titleBilling' => $textBillingAddress,
546 'titleShipping' => $textShippingAddress,
547 'content' => '<address style="padding: 12px; margin-bottom:0;order-color: inherit"><span style="font-size: 14px; color: inherit;">[yaymail_billing_address]</span></address>',
548 'titleColor' => '#96588a',
549 'backgroundColor' => '#fff',
550 'borderColor' => '#e5e5e5',
551 'textColor' => '#636363',
552 'family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
553 'paddingTop' => 15,
554 'paddingRight' => 50,
555 'paddingBottom' => 15,
556 'paddingLeft' => 50,
557 ),
558 ),
559 array(
560 'id' => 19,
561 'type' => 'BillingAddress',
562 'nameIcon' => 'idcard',
563 'nameElement' => 'Billing Shipping Address',
564 'settingRow' => array(
565 'nameColumn' => 'BillingShippingAddress',
566 'contentTitle' => '[yaymail_billing_shipping_address_title]',
567 'checkBillingShipping' => '[yaymail_check_billing_shipping_address]',
568 'titleBilling' => $textBillingAddress,
569 'titleShipping' => $textShippingAddress,
570 'content' => '[yaymail_billing_shipping_address_content]',
571 'titleColor' => '#96588a',
572 'borderColor' => '#e5e5e5',
573 'backgroundColor' => '#fff',
574 'textColor' => '#636363',
575 'family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
576 'paddingTop' => 15,
577 'paddingRight' => 50,
578 'paddingBottom' => 15,
579 'paddingLeft' => 50,
580 ),
581 ),
582 array(
583 'id' => 16,
584 'type' => 'OrderItem',
585 'nameIcon' => 'table',
586 'nameElement' => 'Order Item',
587 'settingRow' => array(
588 'contentBefore' => '[yaymail_items_border_before]',
589 'contentAfter' => '[yaymail_items_border_after]',
590 'contentTitle' => '[yaymail_items_border_title]',
591 'content' => '[yaymail_items_border_content]',
592 'backgroundColor' => '#fff',
593 'titleColor' => '#96588a',
594 'textColor' => '#636363',
595 'borderColor' => '#e5e5e5',
596 'family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
597 'paddingTop' => 15,
598 'paddingRight' => 50,
599 'paddingBottom' => 15,
600 'paddingLeft' => 50,
601 ),
602 ),
603 array(
604 'id' => 25,
605 'type' => 'Hook',
606 'nameIcon' => 'hook',
607 'nameElement' => 'Hook',
608 'settingRow' => array(
609 'content' => '[woocommerce_email_before_order_table]',
610 'backgroundColor' => '#fff',
611 'textColor' => '#636363',
612 'family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
613 'paddingTop' => 15,
614 'paddingRight' => 50,
615 'paddingBottom' => 15,
616 'paddingLeft' => 50,
617 ),
618 ),
619 array(
620 'id' => 27,
621 'type' => 'OrderItemDownload',
622 'nameIcon' => 'table',
623 'nameElement' => 'Order Item Download',
624 'settingRow' => array(
625 'contentTitle' => '[yaymail_items_downloadable_title]',
626 'content' => '[yaymail_items_downloadable_product]',
627 'backgroundColor' => '#fff',
628 'titleColor' => '#96588a',
629 'textColor' => '#636363',
630 'borderColor' => '#e5e5e5',
631 'family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
632 'paddingTop' => 15,
633 'paddingRight' => 50,
634 'paddingBottom' => 15,
635 'paddingLeft' => 50,
636 ),
637 ),
638
639 // array(
640 // 'id' => 17,
641 // 'type' => "OrderItemTitle",
642 // 'nameIcon' => "table",
643 // 'nameElement' => "Order Item Title",
644 // 'settingRow' => array(
645 // 'content' => '<p style="line-height: 22px;">[yaymail_items_border_title]</p>',
646 // 'backgroundColor' => "#fff",
647 // "textColor" => "#965f8e",
648 // 'family' => "Verdana, Geneva, sans-serif",
649 // 'paddingTop' => 15,
650 // 'paddingRight' => 50,
651 // 'paddingBottom' => 15,
652 // 'paddingLeft' => 50,
653 // ),
654 // ),
655 // array(
656 // 'id' => 18,
657 // 'type' => "OrderItemContent",
658 // 'nameIcon' => "table",
659 // 'nameElement' => "Order Item Content",
660 // 'settingRow' => array(
661 // 'content' => '<p style="line-height: 22px;">[yaymail_items_border_content]</p>',
662 // 'backgroundColor' => "#fff",
663 // "textColor" => "#636363",
664 // 'family' => "Verdana, Geneva, sans-serif",
665 // 'paddingTop' => 15,
666 // 'paddingRight' => 50,
667 // 'paddingBottom' => 15,
668 // 'paddingLeft' => 50,
669 // ),
670 // ),
671 );
672 if ( class_exists( 'WC_Subscription' ) ) {
673 array_push(
674 $this->defaultDataElement,
675 array(
676 'id' => 24,
677 'type' => 'OrderSubscription',
678 'nameIcon' => 'wallet',
679 'nameElement' => 'Order Subscription',
680 'settingRow' => array(
681 'content' => '[yaymail_items_subscription_information]',
682 'backgroundColor' => '#fff',
683 'titleColor' => '#96588a',
684 'textColor' => '#636363',
685 'borderColor' => '#e5e5e5',
686 'family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
687 'paddingTop' => 15,
688 'paddingRight' => 50,
689 'paddingBottom' => 15,
690 'paddingLeft' => 50,
691 ),
692 )
693 );
694 }
695 if ( class_exists( 'YWSBS_Subscription' ) ) {
696 array_push(
697 $this->defaultDataElement,
698 array(
699 'id' => 28,
700 'type' => 'YITHOrderSubscription',
701 'nameIcon' => 'wallet',
702 'nameElement' => 'Order Subscription',
703 'settingRow' => array(
704 'content' => '[yaymail_subscription_table]',
705 'contentTitle' => '[yaymail_subscription_table_title]',
706 'backgroundColor' => '#fff',
707 'titleColor' => '#96588a',
708 'textColor' => '#636363',
709 'borderColor' => '#e5e5e5',
710 'family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
711 'paddingTop' => 15,
712 'paddingRight' => 50,
713 'paddingBottom' => 15,
714 'paddingLeft' => 50,
715 ),
716 )
717 );
718 }
719 if ( class_exists( 'WC_Shipment_Tracking_Actions' ) || class_exists( 'WC_Advanced_Shipment_Tracking_Actions' ) ) {
720 array_push(
721 $this->defaultDataElement,
722 array(
723 'id' => 26,
724 'type' => 'TrackingItem',
725 'nameIcon' => 'wallet',
726 'nameElement' => 'Tracking Item',
727 'settingRow' => array(
728 'content' => '[yaymail_order_meta:_wc_shipment_tracking_items]',
729 'backgroundColor' => '#fff',
730 'titleColor' => '#96588a',
731 'textColor' => '#636363',
732 'borderColor' => '#e5e5e5',
733 'family' => '"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif',
734 'paddingTop' => 15,
735 'paddingRight' => 50,
736 'paddingBottom' => 15,
737 'paddingLeft' => 50,
738 ),
739 )
740 );
741 }
742 }
743
744 }
745