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