ContentPreprocessor.php
1 year ago
FontFamilyValidator.php
10 months ago
Renderer.php
10 months ago
Template.php
1 year ago
index.php
3 years ago
Template.php
725 lines
| 1 | <?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing |
| 2 | |
| 3 | namespace MailPoet\WooCommerce\TransactionalEmails; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | use MailPoet\Config\Env; |
| 9 | |
| 10 | class Template { |
| 11 | public function create($wcEmailSettings) { |
| 12 | $socialIconUrl = Env::$assetsUrl . '/img/newsletter_editor/social-icons'; |
| 13 | return [ |
| 14 | 'content' => |
| 15 | [ |
| 16 | 'type' => 'container', |
| 17 | 'columnLayout' => false, |
| 18 | 'orientation' => 'vertical', |
| 19 | 'image' => |
| 20 | [ |
| 21 | 'src' => null, |
| 22 | 'display' => 'scale', |
| 23 | ], |
| 24 | 'styles' => |
| 25 | [ |
| 26 | 'block' => |
| 27 | [ |
| 28 | 'backgroundColor' => 'transparent', |
| 29 | ], |
| 30 | ], |
| 31 | 'blocks' => |
| 32 | [ |
| 33 | 0 => |
| 34 | [ |
| 35 | 'type' => 'container', |
| 36 | 'columnLayout' => false, |
| 37 | 'orientation' => 'horizontal', |
| 38 | 'image' => |
| 39 | [ |
| 40 | 'src' => null, |
| 41 | 'display' => 'scale', |
| 42 | ], |
| 43 | 'styles' => |
| 44 | [ |
| 45 | 'block' => |
| 46 | [ |
| 47 | 'backgroundColor' => 'transparent', |
| 48 | ], |
| 49 | ], |
| 50 | 'blocks' => |
| 51 | [ |
| 52 | 0 => |
| 53 | [ |
| 54 | 'type' => 'container', |
| 55 | 'columnLayout' => false, |
| 56 | 'orientation' => 'vertical', |
| 57 | 'image' => |
| 58 | [ |
| 59 | 'src' => null, |
| 60 | 'display' => 'scale', |
| 61 | ], |
| 62 | 'styles' => |
| 63 | [ |
| 64 | 'block' => |
| 65 | [ |
| 66 | 'backgroundColor' => 'transparent', |
| 67 | ], |
| 68 | ], |
| 69 | 'blocks' => |
| 70 | [ |
| 71 | 0 => |
| 72 | [ |
| 73 | 'type' => 'spacer', |
| 74 | 'styles' => |
| 75 | [ |
| 76 | 'block' => |
| 77 | [ |
| 78 | 'backgroundColor' => 'transparent', |
| 79 | 'height' => '20px', |
| 80 | ], |
| 81 | ], |
| 82 | ], |
| 83 | 1 => |
| 84 | [ |
| 85 | 'type' => 'image', |
| 86 | 'link' => '', |
| 87 | 'src' => $wcEmailSettings['header_image'], |
| 88 | 'alt' => '', |
| 89 | 'fullWidth' => false, |
| 90 | 'width' => '180px', |
| 91 | 'height' => '362px', |
| 92 | 'styles' => |
| 93 | [ |
| 94 | 'block' => |
| 95 | [ |
| 96 | 'textAlign' => 'center', |
| 97 | ], |
| 98 | ], |
| 99 | ], |
| 100 | 2 => |
| 101 | [ |
| 102 | 'type' => 'spacer', |
| 103 | 'styles' => |
| 104 | [ |
| 105 | 'block' => |
| 106 | [ |
| 107 | 'backgroundColor' => 'transparent', |
| 108 | 'height' => '20px', |
| 109 | ], |
| 110 | ], |
| 111 | ], |
| 112 | ], |
| 113 | ], |
| 114 | ], |
| 115 | ], |
| 116 | 1 => |
| 117 | [ |
| 118 | 'type' => 'woocommerceHeading', |
| 119 | ], |
| 120 | 2 => |
| 121 | [ |
| 122 | 'type' => 'container', |
| 123 | 'columnLayout' => false, |
| 124 | 'orientation' => 'horizontal', |
| 125 | 'image' => |
| 126 | [ |
| 127 | 'src' => null, |
| 128 | 'display' => 'scale', |
| 129 | ], |
| 130 | 'styles' => |
| 131 | [ |
| 132 | 'block' => |
| 133 | [ |
| 134 | 'backgroundColor' => 'transparent', |
| 135 | ], |
| 136 | ], |
| 137 | 'blocks' => |
| 138 | [ |
| 139 | 0 => |
| 140 | [ |
| 141 | 'type' => 'container', |
| 142 | 'columnLayout' => false, |
| 143 | 'orientation' => 'vertical', |
| 144 | 'image' => |
| 145 | [ |
| 146 | 'src' => null, |
| 147 | 'display' => 'scale', |
| 148 | ], |
| 149 | 'styles' => |
| 150 | [ |
| 151 | 'block' => |
| 152 | [ |
| 153 | 'backgroundColor' => 'transparent', |
| 154 | ], |
| 155 | ], |
| 156 | 'blocks' => |
| 157 | [ |
| 158 | 0 => |
| 159 | [ |
| 160 | 'type' => 'spacer', |
| 161 | 'styles' => |
| 162 | [ |
| 163 | 'block' => |
| 164 | [ |
| 165 | 'backgroundColor' => 'transparent', |
| 166 | 'height' => '20px', |
| 167 | ], |
| 168 | ], |
| 169 | ], |
| 170 | ], |
| 171 | ], |
| 172 | ], |
| 173 | ], |
| 174 | 3 => |
| 175 | [ |
| 176 | 'type' => 'woocommerceContent', |
| 177 | ], |
| 178 | 4 => |
| 179 | [ |
| 180 | 'type' => 'container', |
| 181 | 'columnLayout' => false, |
| 182 | 'orientation' => 'horizontal', |
| 183 | 'image' => |
| 184 | [ |
| 185 | 'src' => null, |
| 186 | 'display' => 'scale', |
| 187 | ], |
| 188 | 'styles' => |
| 189 | [ |
| 190 | 'block' => |
| 191 | [ |
| 192 | 'backgroundColor' => 'transparent', |
| 193 | ], |
| 194 | ], |
| 195 | 'blocks' => |
| 196 | [ |
| 197 | 0 => |
| 198 | [ |
| 199 | 'type' => 'container', |
| 200 | 'columnLayout' => false, |
| 201 | 'orientation' => 'vertical', |
| 202 | 'image' => |
| 203 | [ |
| 204 | 'src' => null, |
| 205 | 'display' => 'scale', |
| 206 | ], |
| 207 | 'styles' => |
| 208 | [ |
| 209 | 'block' => |
| 210 | [ |
| 211 | 'backgroundColor' => 'transparent', |
| 212 | ], |
| 213 | ], |
| 214 | 'blocks' => |
| 215 | [ |
| 216 | 0 => |
| 217 | [ |
| 218 | 'type' => 'spacer', |
| 219 | 'styles' => |
| 220 | [ |
| 221 | 'block' => |
| 222 | [ |
| 223 | 'backgroundColor' => 'transparent', |
| 224 | 'height' => '20px', |
| 225 | ], |
| 226 | ], |
| 227 | ], |
| 228 | ], |
| 229 | ], |
| 230 | ], |
| 231 | ], |
| 232 | 5 => |
| 233 | [ |
| 234 | 'type' => 'container', |
| 235 | 'columnLayout' => false, |
| 236 | 'orientation' => 'horizontal', |
| 237 | 'image' => |
| 238 | [ |
| 239 | 'src' => null, |
| 240 | 'display' => 'scale', |
| 241 | ], |
| 242 | 'styles' => |
| 243 | [ |
| 244 | 'block' => |
| 245 | [ |
| 246 | 'backgroundColor' => 'transparent', |
| 247 | ], |
| 248 | ], |
| 249 | 'blocks' => |
| 250 | [ |
| 251 | 0 => |
| 252 | [ |
| 253 | 'type' => 'container', |
| 254 | 'columnLayout' => false, |
| 255 | 'orientation' => 'vertical', |
| 256 | 'image' => |
| 257 | [ |
| 258 | 'src' => null, |
| 259 | 'display' => 'scale', |
| 260 | ], |
| 261 | 'styles' => |
| 262 | [ |
| 263 | 'block' => |
| 264 | [ |
| 265 | 'backgroundColor' => 'transparent', |
| 266 | ], |
| 267 | ], |
| 268 | 'blocks' => |
| 269 | [ |
| 270 | 0 => |
| 271 | [ |
| 272 | 'type' => 'spacer', |
| 273 | 'styles' => |
| 274 | [ |
| 275 | 'block' => |
| 276 | [ |
| 277 | 'backgroundColor' => 'transparent', |
| 278 | 'height' => '20px', |
| 279 | ], |
| 280 | ], |
| 281 | ], |
| 282 | 1 => |
| 283 | [ |
| 284 | 'type' => 'text', |
| 285 | 'text' => '<p style="text-align: center;">' . $wcEmailSettings['footer_text'] . '</p>', |
| 286 | ], |
| 287 | ], |
| 288 | ], |
| 289 | ], |
| 290 | ], |
| 291 | ], |
| 292 | ], |
| 293 | 'globalStyles' => |
| 294 | [ |
| 295 | 'text' => |
| 296 | [ |
| 297 | 'fontColor' => $wcEmailSettings['text_color'], |
| 298 | 'fontFamily' => 'Arial', |
| 299 | 'fontSize' => '14px', |
| 300 | 'lineHeight' => '1.6', |
| 301 | ], |
| 302 | 'h1' => |
| 303 | [ |
| 304 | 'fontColor' => $wcEmailSettings['base_color'], |
| 305 | 'fontFamily' => 'Source Sans Pro', |
| 306 | 'fontSize' => '36px', |
| 307 | 'lineHeight' => '1.6', |
| 308 | ], |
| 309 | 'h2' => |
| 310 | [ |
| 311 | 'fontColor' => $wcEmailSettings['base_color'], |
| 312 | 'fontFamily' => 'Verdana', |
| 313 | 'fontSize' => '24px', |
| 314 | 'lineHeight' => '1.6', |
| 315 | ], |
| 316 | 'h3' => |
| 317 | [ |
| 318 | 'fontColor' => $wcEmailSettings['base_color'], |
| 319 | 'fontFamily' => 'Trebuchet MS', |
| 320 | 'fontSize' => '22px', |
| 321 | 'lineHeight' => '1.6', |
| 322 | ], |
| 323 | 'link' => |
| 324 | [ |
| 325 | 'fontColor' => $wcEmailSettings['link_color'], |
| 326 | 'textDecoration' => 'underline', |
| 327 | ], |
| 328 | 'wrapper' => |
| 329 | [ |
| 330 | 'backgroundColor' => $wcEmailSettings['body_background_color'], |
| 331 | ], |
| 332 | 'body' => |
| 333 | [ |
| 334 | 'backgroundColor' => $wcEmailSettings['background_color'], |
| 335 | ], |
| 336 | 'woocommerce' => |
| 337 | [ |
| 338 | 'brandingColor' => $wcEmailSettings['base_color'], |
| 339 | 'headingFontColor' => $wcEmailSettings['base_text_color'], |
| 340 | 'headingFontFamily' => 'Arial', |
| 341 | ], |
| 342 | ], |
| 343 | 'blockDefaults' => |
| 344 | [ |
| 345 | 'automatedLatestContent' => |
| 346 | [ |
| 347 | 'amount' => '5', |
| 348 | 'withLayout' => false, |
| 349 | 'contentType' => 'post', |
| 350 | 'inclusionType' => 'include', |
| 351 | 'displayType' => 'excerpt', |
| 352 | 'titleFormat' => 'h1', |
| 353 | 'titleAlignment' => 'left', |
| 354 | 'titleIsLink' => false, |
| 355 | 'imageFullWidth' => false, |
| 356 | 'featuredImagePosition' => 'belowTitle', |
| 357 | 'showAuthor' => 'no', |
| 358 | 'authorPrecededBy' => 'Author:', |
| 359 | 'showCategories' => 'no', |
| 360 | 'categoriesPrecededBy' => 'Categories:', |
| 361 | 'readMoreType' => 'button', |
| 362 | 'readMoreText' => 'Read more', |
| 363 | 'readMoreButton' => |
| 364 | [ |
| 365 | 'text' => 'Read more', |
| 366 | 'url' => '[postLink]', |
| 367 | 'context' => 'automatedLatestContent.readMoreButton', |
| 368 | 'styles' => |
| 369 | [ |
| 370 | 'block' => |
| 371 | [ |
| 372 | 'backgroundColor' => '#2ea1cd', |
| 373 | 'borderColor' => '#0074a2', |
| 374 | 'borderWidth' => '1px', |
| 375 | 'borderRadius' => '5px', |
| 376 | 'borderStyle' => 'solid', |
| 377 | 'width' => '180px', |
| 378 | 'lineHeight' => '40px', |
| 379 | 'fontColor' => '#ffffff', |
| 380 | 'fontFamily' => 'Verdana', |
| 381 | 'fontSize' => '18px', |
| 382 | 'fontWeight' => 'normal', |
| 383 | 'textAlign' => 'center', |
| 384 | ], |
| 385 | ], |
| 386 | ], |
| 387 | 'sortBy' => 'newest', |
| 388 | 'showDivider' => true, |
| 389 | 'divider' => |
| 390 | [ |
| 391 | 'context' => 'automatedLatestContent.divider', |
| 392 | 'styles' => |
| 393 | [ |
| 394 | 'block' => |
| 395 | [ |
| 396 | 'backgroundColor' => 'transparent', |
| 397 | 'padding' => '13px', |
| 398 | 'borderStyle' => 'solid', |
| 399 | 'borderWidth' => '3px', |
| 400 | 'borderColor' => '#aaaaaa', |
| 401 | ], |
| 402 | ], |
| 403 | ], |
| 404 | 'backgroundColor' => '#ffffff', |
| 405 | 'backgroundColorAlternate' => '#eeeeee', |
| 406 | ], |
| 407 | 'automatedLatestContentLayout' => |
| 408 | [ |
| 409 | 'amount' => '5', |
| 410 | 'withLayout' => true, |
| 411 | 'contentType' => 'post', |
| 412 | 'inclusionType' => 'include', |
| 413 | 'displayType' => 'excerpt', |
| 414 | 'titleFormat' => 'h1', |
| 415 | 'titleAlignment' => 'left', |
| 416 | 'titleIsLink' => false, |
| 417 | 'imageFullWidth' => false, |
| 418 | 'featuredImagePosition' => 'alternate', |
| 419 | 'showAuthor' => 'no', |
| 420 | 'authorPrecededBy' => 'Author:', |
| 421 | 'showCategories' => 'no', |
| 422 | 'categoriesPrecededBy' => 'Categories:', |
| 423 | 'readMoreType' => 'button', |
| 424 | 'readMoreText' => 'Read more', |
| 425 | 'readMoreButton' => |
| 426 | [ |
| 427 | 'text' => 'Read more', |
| 428 | 'url' => '[postLink]', |
| 429 | 'context' => 'automatedLatestContentLayout.readMoreButton', |
| 430 | 'styles' => |
| 431 | [ |
| 432 | 'block' => |
| 433 | [ |
| 434 | 'backgroundColor' => '#2ea1cd', |
| 435 | 'borderColor' => '#0074a2', |
| 436 | 'borderWidth' => '1px', |
| 437 | 'borderRadius' => '5px', |
| 438 | 'borderStyle' => 'solid', |
| 439 | 'width' => '180px', |
| 440 | 'lineHeight' => '40px', |
| 441 | 'fontColor' => '#ffffff', |
| 442 | 'fontFamily' => 'Verdana', |
| 443 | 'fontSize' => '18px', |
| 444 | 'fontWeight' => 'normal', |
| 445 | 'textAlign' => 'center', |
| 446 | ], |
| 447 | ], |
| 448 | ], |
| 449 | 'sortBy' => 'newest', |
| 450 | 'showDivider' => true, |
| 451 | 'divider' => |
| 452 | [ |
| 453 | 'context' => 'automatedLatestContentLayout.divider', |
| 454 | 'styles' => |
| 455 | [ |
| 456 | 'block' => |
| 457 | [ |
| 458 | 'backgroundColor' => 'transparent', |
| 459 | 'padding' => '13px', |
| 460 | 'borderStyle' => 'solid', |
| 461 | 'borderWidth' => '3px', |
| 462 | 'borderColor' => '#aaaaaa', |
| 463 | ], |
| 464 | ], |
| 465 | ], |
| 466 | 'backgroundColor' => '#ffffff', |
| 467 | 'backgroundColorAlternate' => '#eeeeee', |
| 468 | ], |
| 469 | 'button' => |
| 470 | [ |
| 471 | 'text' => 'Button', |
| 472 | 'url' => '', |
| 473 | 'styles' => |
| 474 | [ |
| 475 | 'block' => |
| 476 | [ |
| 477 | 'backgroundColor' => '#2ea1cd', |
| 478 | 'borderColor' => '#0074a2', |
| 479 | 'borderWidth' => '1px', |
| 480 | 'borderRadius' => '5px', |
| 481 | 'borderStyle' => 'solid', |
| 482 | 'width' => '180px', |
| 483 | 'lineHeight' => '40px', |
| 484 | 'fontColor' => '#ffffff', |
| 485 | 'fontFamily' => 'Verdana', |
| 486 | 'fontSize' => '18px', |
| 487 | 'fontWeight' => 'normal', |
| 488 | 'textAlign' => 'center', |
| 489 | ], |
| 490 | ], |
| 491 | ], |
| 492 | 'divider' => |
| 493 | [ |
| 494 | 'styles' => |
| 495 | [ |
| 496 | 'block' => |
| 497 | [ |
| 498 | 'backgroundColor' => 'transparent', |
| 499 | 'padding' => '13px', |
| 500 | 'borderStyle' => 'solid', |
| 501 | 'borderWidth' => '3px', |
| 502 | 'borderColor' => '#aaaaaa', |
| 503 | ], |
| 504 | ], |
| 505 | ], |
| 506 | 'footer' => |
| 507 | [ |
| 508 | 'text' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a><br />Add your postal address here!</p>', |
| 509 | 'styles' => |
| 510 | [ |
| 511 | 'block' => |
| 512 | [ |
| 513 | 'backgroundColor' => 'transparent', |
| 514 | ], |
| 515 | 'text' => |
| 516 | [ |
| 517 | 'fontColor' => '#222222', |
| 518 | 'fontFamily' => 'Arial', |
| 519 | 'fontSize' => '12px', |
| 520 | 'textAlign' => 'center', |
| 521 | ], |
| 522 | 'link' => |
| 523 | [ |
| 524 | 'fontColor' => '#6cb7d4', |
| 525 | 'textDecoration' => 'none', |
| 526 | ], |
| 527 | ], |
| 528 | ], |
| 529 | 'posts' => |
| 530 | [ |
| 531 | 'amount' => '10', |
| 532 | 'withLayout' => true, |
| 533 | 'contentType' => 'post', |
| 534 | 'postStatus' => 'publish', |
| 535 | 'inclusionType' => 'include', |
| 536 | 'displayType' => 'excerpt', |
| 537 | 'titleFormat' => 'h1', |
| 538 | 'titleAlignment' => 'left', |
| 539 | 'titleIsLink' => false, |
| 540 | 'imageFullWidth' => false, |
| 541 | 'featuredImagePosition' => 'alternate', |
| 542 | 'showAuthor' => 'no', |
| 543 | 'authorPrecededBy' => 'Author:', |
| 544 | 'showCategories' => 'no', |
| 545 | 'categoriesPrecededBy' => 'Categories:', |
| 546 | 'readMoreType' => 'link', |
| 547 | 'readMoreText' => 'Read more', |
| 548 | 'readMoreButton' => |
| 549 | [ |
| 550 | 'text' => 'Read more', |
| 551 | 'url' => '[postLink]', |
| 552 | 'context' => 'posts.readMoreButton', |
| 553 | 'styles' => |
| 554 | [ |
| 555 | 'block' => |
| 556 | [ |
| 557 | 'backgroundColor' => '#2ea1cd', |
| 558 | 'borderColor' => '#0074a2', |
| 559 | 'borderWidth' => '1px', |
| 560 | 'borderRadius' => '5px', |
| 561 | 'borderStyle' => 'solid', |
| 562 | 'width' => '180px', |
| 563 | 'lineHeight' => '40px', |
| 564 | 'fontColor' => '#ffffff', |
| 565 | 'fontFamily' => 'Verdana', |
| 566 | 'fontSize' => '18px', |
| 567 | 'fontWeight' => 'normal', |
| 568 | 'textAlign' => 'center', |
| 569 | ], |
| 570 | ], |
| 571 | ], |
| 572 | 'sortBy' => 'newest', |
| 573 | 'showDivider' => true, |
| 574 | 'divider' => |
| 575 | [ |
| 576 | 'context' => 'posts.divider', |
| 577 | 'styles' => |
| 578 | [ |
| 579 | 'block' => |
| 580 | [ |
| 581 | 'backgroundColor' => 'transparent', |
| 582 | 'padding' => '13px', |
| 583 | 'borderStyle' => 'solid', |
| 584 | 'borderWidth' => '3px', |
| 585 | 'borderColor' => '#aaaaaa', |
| 586 | ], |
| 587 | ], |
| 588 | ], |
| 589 | 'backgroundColor' => '#ffffff', |
| 590 | 'backgroundColorAlternate' => '#eeeeee', |
| 591 | ], |
| 592 | 'products' => |
| 593 | [ |
| 594 | 'amount' => '10', |
| 595 | 'withLayout' => true, |
| 596 | 'contentType' => 'product', |
| 597 | 'postStatus' => 'publish', |
| 598 | 'inclusionType' => 'include', |
| 599 | 'displayType' => 'excerpt', |
| 600 | 'titleFormat' => 'h1', |
| 601 | 'titleAlignment' => 'left', |
| 602 | 'titleIsLink' => false, |
| 603 | 'imageFullWidth' => false, |
| 604 | 'featuredImagePosition' => 'alternate', |
| 605 | 'pricePosition' => 'below', |
| 606 | 'readMoreType' => 'link', |
| 607 | 'readMoreText' => 'Buy now', |
| 608 | 'readMoreButton' => |
| 609 | [ |
| 610 | 'text' => 'Buy now', |
| 611 | 'url' => '[postLink]', |
| 612 | 'context' => 'posts.readMoreButton', |
| 613 | 'styles' => |
| 614 | [ |
| 615 | 'block' => |
| 616 | [ |
| 617 | 'backgroundColor' => '#2ea1cd', |
| 618 | 'borderColor' => '#0074a2', |
| 619 | 'borderWidth' => '1px', |
| 620 | 'borderRadius' => '5px', |
| 621 | 'borderStyle' => 'solid', |
| 622 | 'width' => '180px', |
| 623 | 'lineHeight' => '40px', |
| 624 | 'fontColor' => '#ffffff', |
| 625 | 'fontFamily' => 'Verdana', |
| 626 | 'fontSize' => '18px', |
| 627 | 'fontWeight' => 'normal', |
| 628 | 'textAlign' => 'center', |
| 629 | ], |
| 630 | ], |
| 631 | ], |
| 632 | 'sortBy' => 'newest', |
| 633 | 'showDivider' => true, |
| 634 | 'divider' => |
| 635 | [ |
| 636 | 'context' => 'posts.divider', |
| 637 | 'styles' => |
| 638 | [ |
| 639 | 'block' => |
| 640 | [ |
| 641 | 'backgroundColor' => 'transparent', |
| 642 | 'padding' => '13px', |
| 643 | 'borderStyle' => 'solid', |
| 644 | 'borderWidth' => '3px', |
| 645 | 'borderColor' => '#aaaaaa', |
| 646 | ], |
| 647 | ], |
| 648 | ], |
| 649 | 'backgroundColor' => '#ffffff', |
| 650 | 'backgroundColorAlternate' => '#eeeeee', |
| 651 | ], |
| 652 | 'social' => |
| 653 | [ |
| 654 | 'iconSet' => 'default', |
| 655 | 'styles' => |
| 656 | [ |
| 657 | 'block' => |
| 658 | [ |
| 659 | 'textAlign' => 'center', |
| 660 | ], |
| 661 | ], |
| 662 | 'icons' => |
| 663 | [ |
| 664 | 0 => |
| 665 | [ |
| 666 | 'type' => 'socialIcon', |
| 667 | 'iconType' => 'facebook', |
| 668 | 'link' => 'http://www.facebook.com', |
| 669 | 'image' => $socialIconUrl . '/01-social/Facebook.png', |
| 670 | 'height' => '32px', |
| 671 | 'width' => '32px', |
| 672 | 'text' => 'Facebook', |
| 673 | ], |
| 674 | 1 => |
| 675 | [ |
| 676 | 'type' => 'socialIcon', |
| 677 | 'iconType' => 'twitter', |
| 678 | 'link' => 'http://www.twitter.com', |
| 679 | 'image' => $socialIconUrl . '/01-social/Twitter.png', |
| 680 | 'height' => '32px', |
| 681 | 'width' => '32px', |
| 682 | 'text' => 'Twitter', |
| 683 | ], |
| 684 | ], |
| 685 | ], |
| 686 | 'spacer' => |
| 687 | [ |
| 688 | 'styles' => |
| 689 | [ |
| 690 | 'block' => |
| 691 | [ |
| 692 | 'backgroundColor' => 'transparent', |
| 693 | 'height' => '20px', |
| 694 | ], |
| 695 | ], |
| 696 | 'type' => 'spacer', |
| 697 | ], |
| 698 | 'header' => |
| 699 | [ |
| 700 | 'text' => 'Display problems? <a href="[link:newsletter_view_in_browser_url]">Open this email in your web browser.</a>', |
| 701 | 'styles' => |
| 702 | [ |
| 703 | 'block' => |
| 704 | [ |
| 705 | 'backgroundColor' => 'transparent', |
| 706 | ], |
| 707 | 'text' => |
| 708 | [ |
| 709 | 'fontColor' => '#222222', |
| 710 | 'fontFamily' => 'Arial', |
| 711 | 'fontSize' => '12px', |
| 712 | 'textAlign' => 'center', |
| 713 | ], |
| 714 | 'link' => |
| 715 | [ |
| 716 | 'fontColor' => '#6cb7d4', |
| 717 | 'textDecoration' => 'underline', |
| 718 | ], |
| 719 | ], |
| 720 | ], |
| 721 | ], |
| 722 | ]; |
| 723 | } |
| 724 | } |
| 725 |