AppWelcome.php
1 year ago
Avocado.php
1 year ago
Birds.php
1 year ago
BirthdayCelebration.php
2 months ago
BookStoreWithCoupon.php
1 year ago
BrandingAgencyNews.php
1 year ago
BuddhistTemple.php
1 year ago
Charity.php
1 year ago
CityLocalNews.php
1 year ago
ClearNews.php
1 year ago
Coffee.php
1 year ago
College.php
1 year ago
ComputerRepair.php
1 year ago
ConfirmInterestBeforeDeactivation.php
2 years ago
ConfirmInterestOrUnsubscribe.php
2 years ago
DogFood.php
1 year ago
Drone.php
1 year ago
Engineering.php
1 year ago
Faith.php
1 year ago
FarmersMarket.php
1 year ago
FashionBlog.php
1 year ago
FashionBlogA.php
1 year ago
FashionShop.php
1 year ago
FashionStore.php
1 year ago
FestivalEvent.php
1 year ago
Fitness.php
1 year ago
FlowersWithCoupon.php
1 year ago
FoodBox.php
1 year ago
GiftWelcome.php
1 year ago
Guitarist.php
1 year ago
HealthyFoodBlog.php
1 year ago
Hotels.php
1 year ago
IndustryConference.php
1 year ago
JazzClub.php
1 year ago
KidsClothing.php
1 year ago
LifestyleBlogA.php
1 year ago
LifestyleBlogB.php
1 year ago
Minimal.php
1 year ago
ModularStyleStories.php
1 year ago
Mosque.php
1 year ago
Motor.php
1 year ago
Music.php
1 year ago
NewsDay.php
1 year ago
NewsletterBlank121Column.php
1 year ago
NewsletterBlank12Column.php
1 year ago
NewsletterBlank13Column.php
1 year ago
NewsletterBlank1Column.php
1 year ago
NewspaperTraditional.php
1 year ago
NotSoMedium.php
1 year ago
Painter.php
1 year ago
Phone.php
1 year ago
Photography.php
1 year ago
PieceOfCake.php
1 year ago
Poet.php
1 year ago
PostNotificationsBlank1Column.php
1 year ago
PrimarySchool.php
1 year ago
RealEstate.php
1 year ago
RenewableEnergy.php
1 year ago
Retro.php
1 year ago
RetroComputingMagazine.php
1 year ago
RockBand.php
1 year ago
RssSimpleNews.php
1 year ago
ScienceWeekly.php
1 year ago
Shoes.php
1 year ago
SimpleText.php
2 years ago
Software.php
1 year ago
Sunglasses.php
1 year ago
Synagogue.php
1 year ago
TakeAHike.php
1 year ago
Vlogger.php
1 year ago
WelcomeBlank12Column.php
1 year ago
WelcomeBlank1Column.php
1 year ago
WideStoryLayout.php
1 year ago
WineCity.php
1 year ago
WordPressTheme.php
1 year ago
WorldCup.php
1 year ago
YogaStudio.php
1 year ago
index.php
3 years ago
Minimal.php
1221 lines
| 1 | <?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing |
| 2 | |
| 3 | namespace MailPoet\Config\PopulatorData\Templates; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | class Minimal { |
| 9 | |
| 10 | private $template_image_url; |
| 11 | private $social_icon_url; |
| 12 | |
| 13 | public function __construct( |
| 14 | $assets_url |
| 15 | ) { |
| 16 | $this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/minimal'; |
| 17 | $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; |
| 18 | } |
| 19 | |
| 20 | public function get() { |
| 21 | return [ |
| 22 | 'name' => __("Minimal", 'mailpoet'), |
| 23 | 'categories' => json_encode(['welcome', 'all']), |
| 24 | 'readonly' => 1, |
| 25 | 'thumbnail' => $this->getThumbnail(), |
| 26 | 'body' => json_encode($this->getBody()), |
| 27 | ]; |
| 28 | } |
| 29 | |
| 30 | private function getThumbnail() { |
| 31 | return $this->template_image_url . '/thumbnail.20190411-1500.jpg'; |
| 32 | } |
| 33 | |
| 34 | private function getBody() { |
| 35 | return [ |
| 36 | 'content' => |
| 37 | [ |
| 38 | 'type' => 'container', |
| 39 | 'orientation' => 'vertical', |
| 40 | 'image' => |
| 41 | [ |
| 42 | 'src' => null, |
| 43 | 'display' => 'scale', |
| 44 | ], |
| 45 | 'styles' => |
| 46 | [ |
| 47 | 'block' => |
| 48 | [ |
| 49 | 'backgroundColor' => 'transparent', |
| 50 | ], |
| 51 | ], |
| 52 | 'blocks' => |
| 53 | [ |
| 54 | 0 => |
| 55 | [ |
| 56 | 'type' => 'container', |
| 57 | 'orientation' => 'horizontal', |
| 58 | 'image' => |
| 59 | [ |
| 60 | 'src' => null, |
| 61 | 'display' => 'scale', |
| 62 | ], |
| 63 | 'styles' => |
| 64 | [ |
| 65 | 'block' => |
| 66 | [ |
| 67 | 'backgroundColor' => 'transparent', |
| 68 | ], |
| 69 | ], |
| 70 | 'blocks' => |
| 71 | [ |
| 72 | 0 => |
| 73 | [ |
| 74 | 'type' => 'container', |
| 75 | 'orientation' => 'vertical', |
| 76 | 'image' => |
| 77 | [ |
| 78 | 'src' => null, |
| 79 | 'display' => 'scale', |
| 80 | ], |
| 81 | 'styles' => |
| 82 | [ |
| 83 | 'block' => |
| 84 | [ |
| 85 | 'backgroundColor' => 'transparent', |
| 86 | ], |
| 87 | ], |
| 88 | 'blocks' => |
| 89 | [ |
| 90 | 0 => |
| 91 | [ |
| 92 | 'type' => 'spacer', |
| 93 | 'styles' => |
| 94 | [ |
| 95 | 'block' => |
| 96 | [ |
| 97 | 'backgroundColor' => 'transparent', |
| 98 | 'height' => '29px', |
| 99 | ], |
| 100 | ], |
| 101 | ], |
| 102 | ], |
| 103 | ], |
| 104 | ], |
| 105 | ], |
| 106 | 1 => |
| 107 | [ |
| 108 | 'type' => 'container', |
| 109 | 'orientation' => 'horizontal', |
| 110 | 'image' => |
| 111 | [ |
| 112 | 'src' => null, |
| 113 | 'display' => 'scale', |
| 114 | ], |
| 115 | 'styles' => |
| 116 | [ |
| 117 | 'block' => |
| 118 | [ |
| 119 | 'backgroundColor' => '#303c54', |
| 120 | ], |
| 121 | ], |
| 122 | 'blocks' => |
| 123 | [ |
| 124 | 0 => |
| 125 | [ |
| 126 | 'type' => 'container', |
| 127 | 'orientation' => 'vertical', |
| 128 | 'image' => |
| 129 | [ |
| 130 | 'src' => null, |
| 131 | 'display' => 'scale', |
| 132 | ], |
| 133 | 'styles' => |
| 134 | [ |
| 135 | 'block' => |
| 136 | [ |
| 137 | 'backgroundColor' => 'transparent', |
| 138 | ], |
| 139 | ], |
| 140 | 'blocks' => |
| 141 | [ |
| 142 | 0 => |
| 143 | [ |
| 144 | 'type' => 'spacer', |
| 145 | 'styles' => |
| 146 | [ |
| 147 | 'block' => |
| 148 | [ |
| 149 | 'backgroundColor' => 'transparent', |
| 150 | 'height' => '60px', |
| 151 | ], |
| 152 | ], |
| 153 | ], |
| 154 | 1 => |
| 155 | [ |
| 156 | 'type' => 'image', |
| 157 | 'link' => '', |
| 158 | 'src' => $this->template_image_url . '/Minimal-Logo1.png', |
| 159 | 'alt' => 'Minimal-Logo1', |
| 160 | 'fullWidth' => false, |
| 161 | 'width' => '590px', |
| 162 | 'height' => '93px', |
| 163 | 'styles' => |
| 164 | [ |
| 165 | 'block' => |
| 166 | [ |
| 167 | 'textAlign' => 'center', |
| 168 | ], |
| 169 | ], |
| 170 | ], |
| 171 | 2 => |
| 172 | [ |
| 173 | 'type' => 'spacer', |
| 174 | 'styles' => |
| 175 | [ |
| 176 | 'block' => |
| 177 | [ |
| 178 | 'backgroundColor' => 'transparent', |
| 179 | 'height' => '60px', |
| 180 | ], |
| 181 | ], |
| 182 | ], |
| 183 | ], |
| 184 | ], |
| 185 | 1 => |
| 186 | [ |
| 187 | 'type' => 'container', |
| 188 | 'orientation' => 'vertical', |
| 189 | 'image' => |
| 190 | [ |
| 191 | 'src' => null, |
| 192 | 'display' => 'scale', |
| 193 | ], |
| 194 | 'styles' => |
| 195 | [ |
| 196 | 'block' => |
| 197 | [ |
| 198 | 'backgroundColor' => 'transparent', |
| 199 | ], |
| 200 | ], |
| 201 | 'blocks' => |
| 202 | [ |
| 203 | 0 => |
| 204 | [ |
| 205 | 'type' => 'spacer', |
| 206 | 'styles' => |
| 207 | [ |
| 208 | 'block' => |
| 209 | [ |
| 210 | 'backgroundColor' => 'transparent', |
| 211 | 'height' => '80px', |
| 212 | ], |
| 213 | ], |
| 214 | ], |
| 215 | 1 => |
| 216 | [ |
| 217 | 'type' => 'text', |
| 218 | 'text' => '<p style="text-align: right;"><span style="color: #8b9cbc;">EST.2009</span></p>', |
| 219 | ], |
| 220 | ], |
| 221 | ], |
| 222 | ], |
| 223 | ], |
| 224 | 2 => |
| 225 | [ |
| 226 | 'type' => 'container', |
| 227 | 'orientation' => 'horizontal', |
| 228 | 'image' => |
| 229 | [ |
| 230 | 'src' => null, |
| 231 | 'display' => 'scale', |
| 232 | ], |
| 233 | 'styles' => |
| 234 | [ |
| 235 | 'block' => |
| 236 | [ |
| 237 | 'backgroundColor' => '#ffffff', |
| 238 | ], |
| 239 | ], |
| 240 | 'blocks' => |
| 241 | [ |
| 242 | 0 => |
| 243 | [ |
| 244 | 'type' => 'container', |
| 245 | 'orientation' => 'vertical', |
| 246 | 'image' => |
| 247 | [ |
| 248 | 'src' => null, |
| 249 | 'display' => 'scale', |
| 250 | ], |
| 251 | 'styles' => |
| 252 | [ |
| 253 | 'block' => |
| 254 | [ |
| 255 | 'backgroundColor' => 'transparent', |
| 256 | ], |
| 257 | ], |
| 258 | 'blocks' => |
| 259 | [ |
| 260 | 0 => |
| 261 | [ |
| 262 | 'type' => 'spacer', |
| 263 | 'styles' => |
| 264 | [ |
| 265 | 'block' => |
| 266 | [ |
| 267 | 'backgroundColor' => 'transparent', |
| 268 | 'height' => '41px', |
| 269 | ], |
| 270 | ], |
| 271 | ], |
| 272 | 1 => |
| 273 | [ |
| 274 | 'type' => 'text', |
| 275 | 'text' => '<h2>Welcome to Minimal, Kim.</h2>', |
| 276 | ], |
| 277 | 2 => |
| 278 | [ |
| 279 | 'type' => 'text', |
| 280 | 'text' => '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra. Pellentesque in interdum eros, a venenatis velit. Fusce finibus convallis augue, ut viverra felis placerat in. Curabitur et commodo ipsum. Mauris tellus metus, tristique vel sollicitudin ut, malesuada in augue. Aliquam ultricies purus vel commodo vehicula. Cras sollicitudin nunc facilisis neque tristique sagittis.</p> |
| 281 | <p></p> |
| 282 | <p>Maecenas iaculis, lacus malesuada dictum dapibus, justo justo molestie lorem, ac dapibus magna urna vel arcu. Aliquam erat volutpat. Sed bibendum, ipsum sed ullamcorper blandit, eros odio interdum nibh, non venenatis metus lacus vitae lectus.</p>', |
| 283 | ], |
| 284 | 3 => |
| 285 | [ |
| 286 | 'type' => 'divider', |
| 287 | 'styles' => |
| 288 | [ |
| 289 | 'block' => |
| 290 | [ |
| 291 | 'backgroundColor' => 'transparent', |
| 292 | 'padding' => '30px', |
| 293 | 'borderStyle' => 'dotted', |
| 294 | 'borderWidth' => '2px', |
| 295 | 'borderColor' => '#d9d9d9', |
| 296 | ], |
| 297 | ], |
| 298 | ], |
| 299 | 4 => |
| 300 | [ |
| 301 | 'type' => 'text', |
| 302 | 'text' => '<h2>Some of our recent stories</h2>', |
| 303 | ], |
| 304 | ], |
| 305 | ], |
| 306 | ], |
| 307 | ], |
| 308 | 3 => |
| 309 | [ |
| 310 | 'type' => 'container', |
| 311 | 'orientation' => 'horizontal', |
| 312 | 'image' => |
| 313 | [ |
| 314 | 'src' => null, |
| 315 | 'display' => 'scale', |
| 316 | ], |
| 317 | 'styles' => |
| 318 | [ |
| 319 | 'block' => |
| 320 | [ |
| 321 | 'backgroundColor' => 'transparent', |
| 322 | ], |
| 323 | ], |
| 324 | 'blocks' => |
| 325 | [ |
| 326 | 0 => |
| 327 | [ |
| 328 | 'type' => 'container', |
| 329 | 'orientation' => 'vertical', |
| 330 | 'image' => |
| 331 | [ |
| 332 | 'src' => null, |
| 333 | 'display' => 'scale', |
| 334 | ], |
| 335 | 'styles' => |
| 336 | [ |
| 337 | 'block' => |
| 338 | [ |
| 339 | 'backgroundColor' => 'transparent', |
| 340 | ], |
| 341 | ], |
| 342 | 'blocks' => |
| 343 | [ |
| 344 | 0 => |
| 345 | [ |
| 346 | 'type' => 'image', |
| 347 | 'link' => '', |
| 348 | 'src' => $this->template_image_url . '/plasma-stingray111-800x533.jpg', |
| 349 | 'alt' => 'plasma-stingray111-800x533', |
| 350 | 'fullWidth' => false, |
| 351 | 'width' => '800px', |
| 352 | 'height' => '533px', |
| 353 | 'styles' => |
| 354 | [ |
| 355 | 'block' => |
| 356 | [ |
| 357 | 'textAlign' => 'center', |
| 358 | ], |
| 359 | ], |
| 360 | ], |
| 361 | ], |
| 362 | ], |
| 363 | 1 => |
| 364 | [ |
| 365 | 'type' => 'container', |
| 366 | 'orientation' => 'vertical', |
| 367 | 'image' => |
| 368 | [ |
| 369 | 'src' => null, |
| 370 | 'display' => 'scale', |
| 371 | ], |
| 372 | 'styles' => |
| 373 | [ |
| 374 | 'block' => |
| 375 | [ |
| 376 | 'backgroundColor' => 'transparent', |
| 377 | ], |
| 378 | ], |
| 379 | 'blocks' => |
| 380 | [ |
| 381 | 0 => |
| 382 | [ |
| 383 | 'type' => 'text', |
| 384 | 'text' => '<h3>Story Title Goes Here</h3> |
| 385 | <p><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra.</span></p> |
| 386 | <p><span></span></p> |
| 387 | <p><strong><a href="https://wordpress.org/">Read More</a></strong></p>', |
| 388 | ], |
| 389 | ], |
| 390 | ], |
| 391 | ], |
| 392 | ], |
| 393 | 4 => |
| 394 | [ |
| 395 | 'type' => 'container', |
| 396 | 'orientation' => 'horizontal', |
| 397 | 'image' => |
| 398 | [ |
| 399 | 'src' => null, |
| 400 | 'display' => 'scale', |
| 401 | ], |
| 402 | 'styles' => |
| 403 | [ |
| 404 | 'block' => |
| 405 | [ |
| 406 | 'backgroundColor' => 'transparent', |
| 407 | ], |
| 408 | ], |
| 409 | 'blocks' => |
| 410 | [ |
| 411 | 0 => |
| 412 | [ |
| 413 | 'type' => 'container', |
| 414 | 'orientation' => 'vertical', |
| 415 | 'image' => |
| 416 | [ |
| 417 | 'src' => null, |
| 418 | 'display' => 'scale', |
| 419 | ], |
| 420 | 'styles' => |
| 421 | [ |
| 422 | 'block' => |
| 423 | [ |
| 424 | 'backgroundColor' => 'transparent', |
| 425 | ], |
| 426 | ], |
| 427 | 'blocks' => |
| 428 | [ |
| 429 | 0 => |
| 430 | [ |
| 431 | 'type' => 'image', |
| 432 | 'link' => '', |
| 433 | 'src' => $this->template_image_url . '/gettyimages-578313682-800x533.jpg', |
| 434 | 'alt' => 'gettyimages-578313682-800x533', |
| 435 | 'fullWidth' => false, |
| 436 | 'width' => '800px', |
| 437 | 'height' => '533px', |
| 438 | 'styles' => |
| 439 | [ |
| 440 | 'block' => |
| 441 | [ |
| 442 | 'textAlign' => 'center', |
| 443 | ], |
| 444 | ], |
| 445 | ], |
| 446 | ], |
| 447 | ], |
| 448 | 1 => |
| 449 | [ |
| 450 | 'type' => 'container', |
| 451 | 'orientation' => 'vertical', |
| 452 | 'image' => |
| 453 | [ |
| 454 | 'src' => null, |
| 455 | 'display' => 'scale', |
| 456 | ], |
| 457 | 'styles' => |
| 458 | [ |
| 459 | 'block' => |
| 460 | [ |
| 461 | 'backgroundColor' => 'transparent', |
| 462 | ], |
| 463 | ], |
| 464 | 'blocks' => |
| 465 | [ |
| 466 | 0 => |
| 467 | [ |
| 468 | 'type' => 'text', |
| 469 | 'text' => '<h3>Story Title Goes Here</h3> |
| 470 | <p><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra.</span></p> |
| 471 | <p><span></span></p> |
| 472 | <p><strong><a href="https://wordpress.org/">Read More</a></strong></p>', |
| 473 | ], |
| 474 | ], |
| 475 | ], |
| 476 | ], |
| 477 | ], |
| 478 | 5 => |
| 479 | [ |
| 480 | 'type' => 'container', |
| 481 | 'orientation' => 'horizontal', |
| 482 | 'image' => |
| 483 | [ |
| 484 | 'src' => null, |
| 485 | 'display' => 'scale', |
| 486 | ], |
| 487 | 'styles' => |
| 488 | [ |
| 489 | 'block' => |
| 490 | [ |
| 491 | 'backgroundColor' => 'transparent', |
| 492 | ], |
| 493 | ], |
| 494 | 'blocks' => |
| 495 | [ |
| 496 | 0 => |
| 497 | [ |
| 498 | 'type' => 'container', |
| 499 | 'orientation' => 'vertical', |
| 500 | 'image' => |
| 501 | [ |
| 502 | 'src' => null, |
| 503 | 'display' => 'scale', |
| 504 | ], |
| 505 | 'styles' => |
| 506 | [ |
| 507 | 'block' => |
| 508 | [ |
| 509 | 'backgroundColor' => 'transparent', |
| 510 | ], |
| 511 | ], |
| 512 | 'blocks' => |
| 513 | [ |
| 514 | 0 => |
| 515 | [ |
| 516 | 'type' => 'image', |
| 517 | 'link' => '', |
| 518 | 'src' => $this->template_image_url . '/5_what_to_do_p352m1141746-800x533.jpg', |
| 519 | 'alt' => '5_what_to_do_p352m1141746-800x533', |
| 520 | 'fullWidth' => false, |
| 521 | 'width' => '800px', |
| 522 | 'height' => '533px', |
| 523 | 'styles' => |
| 524 | [ |
| 525 | 'block' => |
| 526 | [ |
| 527 | 'textAlign' => 'center', |
| 528 | ], |
| 529 | ], |
| 530 | ], |
| 531 | ], |
| 532 | ], |
| 533 | 1 => |
| 534 | [ |
| 535 | 'type' => 'container', |
| 536 | 'orientation' => 'vertical', |
| 537 | 'image' => |
| 538 | [ |
| 539 | 'src' => null, |
| 540 | 'display' => 'scale', |
| 541 | ], |
| 542 | 'styles' => |
| 543 | [ |
| 544 | 'block' => |
| 545 | [ |
| 546 | 'backgroundColor' => 'transparent', |
| 547 | ], |
| 548 | ], |
| 549 | 'blocks' => |
| 550 | [ |
| 551 | 0 => |
| 552 | [ |
| 553 | 'type' => 'text', |
| 554 | 'text' => '<h3>Story Title Goes Here</h3> |
| 555 | <p><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra.</span></p> |
| 556 | <p><span></span></p> |
| 557 | <p><strong><a href="https://wordpress.org/">Read More</a></strong></p>', |
| 558 | ], |
| 559 | ], |
| 560 | ], |
| 561 | ], |
| 562 | ], |
| 563 | 6 => |
| 564 | [ |
| 565 | 'type' => 'container', |
| 566 | 'orientation' => 'horizontal', |
| 567 | 'image' => |
| 568 | [ |
| 569 | 'src' => null, |
| 570 | 'display' => 'scale', |
| 571 | ], |
| 572 | 'styles' => |
| 573 | [ |
| 574 | 'block' => |
| 575 | [ |
| 576 | 'backgroundColor' => 'transparent', |
| 577 | ], |
| 578 | ], |
| 579 | 'blocks' => |
| 580 | [ |
| 581 | 0 => |
| 582 | [ |
| 583 | 'type' => 'container', |
| 584 | 'orientation' => 'vertical', |
| 585 | 'image' => |
| 586 | [ |
| 587 | 'src' => null, |
| 588 | 'display' => 'scale', |
| 589 | ], |
| 590 | 'styles' => |
| 591 | [ |
| 592 | 'block' => |
| 593 | [ |
| 594 | 'backgroundColor' => 'transparent', |
| 595 | ], |
| 596 | ], |
| 597 | 'blocks' => |
| 598 | [ |
| 599 | 0 => |
| 600 | [ |
| 601 | 'type' => 'spacer', |
| 602 | 'styles' => |
| 603 | [ |
| 604 | 'block' => |
| 605 | [ |
| 606 | 'backgroundColor' => 'transparent', |
| 607 | 'height' => '35px', |
| 608 | ], |
| 609 | ], |
| 610 | ], |
| 611 | ], |
| 612 | ], |
| 613 | ], |
| 614 | ], |
| 615 | 7 => |
| 616 | [ |
| 617 | 'type' => 'container', |
| 618 | 'orientation' => 'horizontal', |
| 619 | 'image' => |
| 620 | [ |
| 621 | 'src' => null, |
| 622 | 'display' => 'scale', |
| 623 | ], |
| 624 | 'styles' => |
| 625 | [ |
| 626 | 'block' => |
| 627 | [ |
| 628 | 'backgroundColor' => '#f3f3f3', |
| 629 | ], |
| 630 | ], |
| 631 | 'blocks' => |
| 632 | [ |
| 633 | 0 => |
| 634 | [ |
| 635 | 'type' => 'container', |
| 636 | 'orientation' => 'vertical', |
| 637 | 'image' => |
| 638 | [ |
| 639 | 'src' => null, |
| 640 | 'display' => 'scale', |
| 641 | ], |
| 642 | 'styles' => |
| 643 | [ |
| 644 | 'block' => |
| 645 | [ |
| 646 | 'backgroundColor' => 'transparent', |
| 647 | ], |
| 648 | ], |
| 649 | 'blocks' => |
| 650 | [ |
| 651 | 0 => |
| 652 | [ |
| 653 | 'type' => 'spacer', |
| 654 | 'styles' => |
| 655 | [ |
| 656 | 'block' => |
| 657 | [ |
| 658 | 'backgroundColor' => 'transparent', |
| 659 | 'height' => '47px', |
| 660 | ], |
| 661 | ], |
| 662 | ], |
| 663 | 1 => |
| 664 | [ |
| 665 | 'type' => 'image', |
| 666 | 'link' => '', |
| 667 | 'src' => $this->template_image_url . '/Minimal-Logo-Small.png', |
| 668 | 'alt' => 'Minimal-Logo-Small', |
| 669 | 'fullWidth' => false, |
| 670 | 'width' => '120px', |
| 671 | 'height' => '23px', |
| 672 | 'styles' => |
| 673 | [ |
| 674 | 'block' => |
| 675 | [ |
| 676 | 'textAlign' => 'center', |
| 677 | ], |
| 678 | ], |
| 679 | ], |
| 680 | ], |
| 681 | ], |
| 682 | 1 => |
| 683 | [ |
| 684 | 'type' => 'container', |
| 685 | 'orientation' => 'vertical', |
| 686 | 'image' => |
| 687 | [ |
| 688 | 'src' => null, |
| 689 | 'display' => 'scale', |
| 690 | ], |
| 691 | 'styles' => |
| 692 | [ |
| 693 | 'block' => |
| 694 | [ |
| 695 | 'backgroundColor' => 'transparent', |
| 696 | ], |
| 697 | ], |
| 698 | 'blocks' => |
| 699 | [ |
| 700 | 0 => |
| 701 | [ |
| 702 | 'type' => 'spacer', |
| 703 | 'styles' => |
| 704 | [ |
| 705 | 'block' => |
| 706 | [ |
| 707 | 'backgroundColor' => 'transparent', |
| 708 | 'height' => '40px', |
| 709 | ], |
| 710 | ], |
| 711 | ], |
| 712 | 1 => |
| 713 | [ |
| 714 | 'type' => 'social', |
| 715 | 'iconSet' => 'official', |
| 716 | 'icons' => |
| 717 | [ |
| 718 | 0 => |
| 719 | [ |
| 720 | 'type' => 'socialIcon', |
| 721 | 'iconType' => 'facebook', |
| 722 | 'link' => 'http://www.facebook.com', |
| 723 | 'image' => $this->social_icon_url . '/11-official/Facebook.png', |
| 724 | 'height' => '32px', |
| 725 | 'width' => '32px', |
| 726 | 'text' => 'Facebook', |
| 727 | ], |
| 728 | 1 => |
| 729 | [ |
| 730 | 'type' => 'socialIcon', |
| 731 | 'iconType' => 'twitter', |
| 732 | 'link' => 'http://www.twitter.com', |
| 733 | 'image' => $this->social_icon_url . '/11-official/X.png', |
| 734 | 'height' => '32px', |
| 735 | 'width' => '32px', |
| 736 | 'text' => 'Twitter', |
| 737 | ], |
| 738 | 2 => |
| 739 | [ |
| 740 | 'type' => 'socialIcon', |
| 741 | 'iconType' => 'instagram', |
| 742 | 'link' => 'http://instagram.com', |
| 743 | 'image' => $this->social_icon_url . '/11-official/Instagram.png', |
| 744 | 'height' => '32px', |
| 745 | 'width' => '32px', |
| 746 | 'text' => 'Instagram', |
| 747 | ], |
| 748 | ], |
| 749 | ], |
| 750 | ], |
| 751 | ], |
| 752 | 2 => |
| 753 | [ |
| 754 | 'type' => 'container', |
| 755 | 'orientation' => 'vertical', |
| 756 | 'image' => |
| 757 | [ |
| 758 | 'src' => null, |
| 759 | 'display' => 'scale', |
| 760 | ], |
| 761 | 'styles' => |
| 762 | [ |
| 763 | 'block' => |
| 764 | [ |
| 765 | 'backgroundColor' => 'transparent', |
| 766 | ], |
| 767 | ], |
| 768 | 'blocks' => |
| 769 | [ |
| 770 | 0 => |
| 771 | [ |
| 772 | 'type' => 'spacer', |
| 773 | 'styles' => |
| 774 | [ |
| 775 | 'block' => |
| 776 | [ |
| 777 | 'backgroundColor' => 'transparent', |
| 778 | 'height' => '20px', |
| 779 | ], |
| 780 | ], |
| 781 | ], |
| 782 | 1 => |
| 783 | [ |
| 784 | 'type' => 'footer', |
| 785 | 'text' => '<p><span style="color: #808080;"><a href="[link:subscription_unsubscribe_url]" style="color: #808080;">' . __("Unsubscribe", 'mailpoet') . '</a></span></p> |
| 786 | <p><span style="color: #808080;"><a href="[link:subscription_manage_url]" style="color: #808080;">' . __("Manage your subscription", 'mailpoet') . '</a></span><br /><span style="color: #999999;">' . __("Add your postal address here!", 'mailpoet') . '</span></p>', |
| 787 | 'styles' => |
| 788 | [ |
| 789 | 'block' => |
| 790 | [ |
| 791 | 'backgroundColor' => 'transparent', |
| 792 | ], |
| 793 | 'text' => |
| 794 | [ |
| 795 | 'fontColor' => '#222222', |
| 796 | 'fontFamily' => 'Arial', |
| 797 | 'fontSize' => '12px', |
| 798 | 'textAlign' => 'left', |
| 799 | ], |
| 800 | 'link' => |
| 801 | [ |
| 802 | 'fontColor' => '#6cb7d4', |
| 803 | 'textDecoration' => 'none', |
| 804 | ], |
| 805 | ], |
| 806 | ], |
| 807 | ], |
| 808 | ], |
| 809 | ], |
| 810 | ], |
| 811 | 8 => |
| 812 | [ |
| 813 | 'type' => 'container', |
| 814 | 'orientation' => 'horizontal', |
| 815 | 'image' => |
| 816 | [ |
| 817 | 'src' => null, |
| 818 | 'display' => 'scale', |
| 819 | ], |
| 820 | 'styles' => |
| 821 | [ |
| 822 | 'block' => |
| 823 | [ |
| 824 | 'backgroundColor' => '#f3f3f3', |
| 825 | ], |
| 826 | ], |
| 827 | 'blocks' => |
| 828 | [ |
| 829 | 0 => |
| 830 | [ |
| 831 | 'type' => 'container', |
| 832 | 'orientation' => 'vertical', |
| 833 | 'image' => |
| 834 | [ |
| 835 | 'src' => null, |
| 836 | 'display' => 'scale', |
| 837 | ], |
| 838 | 'styles' => |
| 839 | [ |
| 840 | 'block' => |
| 841 | [ |
| 842 | 'backgroundColor' => 'transparent', |
| 843 | ], |
| 844 | ], |
| 845 | 'blocks' => |
| 846 | [ |
| 847 | 0 => |
| 848 | [ |
| 849 | 'type' => 'spacer', |
| 850 | 'styles' => |
| 851 | [ |
| 852 | 'block' => |
| 853 | [ |
| 854 | 'backgroundColor' => 'transparent', |
| 855 | 'height' => '20px', |
| 856 | ], |
| 857 | ], |
| 858 | ], |
| 859 | ], |
| 860 | ], |
| 861 | ], |
| 862 | ], |
| 863 | ], |
| 864 | ], |
| 865 | 'globalStyles' => |
| 866 | [ |
| 867 | 'text' => |
| 868 | [ |
| 869 | 'fontColor' => '#000000', |
| 870 | 'fontFamily' => 'Georgia', |
| 871 | 'fontSize' => '15px', |
| 872 | ], |
| 873 | 'h1' => |
| 874 | [ |
| 875 | 'fontColor' => '#111111', |
| 876 | 'fontFamily' => 'Georgia', |
| 877 | 'fontSize' => '30px', |
| 878 | ], |
| 879 | 'h2' => |
| 880 | [ |
| 881 | 'fontColor' => '#222222', |
| 882 | 'fontFamily' => 'Georgia', |
| 883 | 'fontSize' => '24px', |
| 884 | ], |
| 885 | 'h3' => |
| 886 | [ |
| 887 | 'fontColor' => '#333333', |
| 888 | 'fontFamily' => 'Georgia', |
| 889 | 'fontSize' => '22px', |
| 890 | ], |
| 891 | 'link' => |
| 892 | [ |
| 893 | 'fontColor' => '#303c54', |
| 894 | 'textDecoration' => 'underline', |
| 895 | ], |
| 896 | 'wrapper' => |
| 897 | [ |
| 898 | 'backgroundColor' => '#ffffff', |
| 899 | ], |
| 900 | 'body' => |
| 901 | [ |
| 902 | 'backgroundColor' => '#ffffff', |
| 903 | ], |
| 904 | ], |
| 905 | 'blockDefaults' => |
| 906 | [ |
| 907 | 'automatedLatestContent' => |
| 908 | [ |
| 909 | 'amount' => '5', |
| 910 | 'withLayout' => false, |
| 911 | 'contentType' => 'post', |
| 912 | 'inclusionType' => 'include', |
| 913 | 'displayType' => 'excerpt', |
| 914 | 'titleFormat' => 'h1', |
| 915 | 'titleAlignment' => 'left', |
| 916 | 'titleIsLink' => false, |
| 917 | 'imageFullWidth' => false, |
| 918 | 'featuredImagePosition' => 'belowTitle', |
| 919 | 'showAuthor' => 'no', |
| 920 | 'authorPrecededBy' => 'Author:', |
| 921 | 'showCategories' => 'no', |
| 922 | 'categoriesPrecededBy' => 'Categories:', |
| 923 | 'readMoreType' => 'button', |
| 924 | 'readMoreText' => 'Read more', |
| 925 | 'readMoreButton' => |
| 926 | [ |
| 927 | 'text' => 'Read more', |
| 928 | 'url' => '[postLink]', |
| 929 | 'context' => 'automatedLatestContent.readMoreButton', |
| 930 | 'styles' => |
| 931 | [ |
| 932 | 'block' => |
| 933 | [ |
| 934 | 'backgroundColor' => '#2ea1cd', |
| 935 | 'borderColor' => '#0074a2', |
| 936 | 'borderWidth' => '1px', |
| 937 | 'borderRadius' => '5px', |
| 938 | 'borderStyle' => 'solid', |
| 939 | 'width' => '180px', |
| 940 | 'lineHeight' => '40px', |
| 941 | 'fontColor' => '#ffffff', |
| 942 | 'fontFamily' => 'Verdana', |
| 943 | 'fontSize' => '18px', |
| 944 | 'fontWeight' => 'normal', |
| 945 | 'textAlign' => 'center', |
| 946 | ], |
| 947 | ], |
| 948 | ], |
| 949 | 'sortBy' => 'newest', |
| 950 | 'showDivider' => true, |
| 951 | 'divider' => |
| 952 | [ |
| 953 | 'context' => 'automatedLatestContent.divider', |
| 954 | 'styles' => |
| 955 | [ |
| 956 | 'block' => |
| 957 | [ |
| 958 | 'backgroundColor' => 'transparent', |
| 959 | 'padding' => '13px', |
| 960 | 'borderStyle' => 'solid', |
| 961 | 'borderWidth' => '3px', |
| 962 | 'borderColor' => '#aaaaaa', |
| 963 | ], |
| 964 | ], |
| 965 | ], |
| 966 | 'backgroundColor' => '#ffffff', |
| 967 | 'backgroundColorAlternate' => '#eeeeee', |
| 968 | ], |
| 969 | 'automatedLatestContentLayout' => |
| 970 | [ |
| 971 | 'amount' => '5', |
| 972 | 'withLayout' => true, |
| 973 | 'contentType' => 'post', |
| 974 | 'inclusionType' => 'include', |
| 975 | 'displayType' => 'excerpt', |
| 976 | 'titleFormat' => 'h1', |
| 977 | 'titleAlignment' => 'left', |
| 978 | 'titleIsLink' => false, |
| 979 | 'imageFullWidth' => false, |
| 980 | 'featuredImagePosition' => 'alternate', |
| 981 | 'showAuthor' => 'no', |
| 982 | 'authorPrecededBy' => 'Author:', |
| 983 | 'showCategories' => 'no', |
| 984 | 'categoriesPrecededBy' => 'Categories:', |
| 985 | 'readMoreType' => 'button', |
| 986 | 'readMoreText' => 'Read more', |
| 987 | 'readMoreButton' => |
| 988 | [ |
| 989 | 'text' => 'Read more', |
| 990 | 'url' => '[postLink]', |
| 991 | 'context' => 'automatedLatestContentLayout.readMoreButton', |
| 992 | 'styles' => |
| 993 | [ |
| 994 | 'block' => |
| 995 | [ |
| 996 | 'backgroundColor' => '#2ea1cd', |
| 997 | 'borderColor' => '#0074a2', |
| 998 | 'borderWidth' => '1px', |
| 999 | 'borderRadius' => '5px', |
| 1000 | 'borderStyle' => 'solid', |
| 1001 | 'width' => '180px', |
| 1002 | 'lineHeight' => '40px', |
| 1003 | 'fontColor' => '#ffffff', |
| 1004 | 'fontFamily' => 'Verdana', |
| 1005 | 'fontSize' => '18px', |
| 1006 | 'fontWeight' => 'normal', |
| 1007 | 'textAlign' => 'center', |
| 1008 | ], |
| 1009 | ], |
| 1010 | ], |
| 1011 | 'sortBy' => 'newest', |
| 1012 | 'showDivider' => true, |
| 1013 | 'divider' => |
| 1014 | [ |
| 1015 | 'context' => 'automatedLatestContentLayout.divider', |
| 1016 | 'styles' => |
| 1017 | [ |
| 1018 | 'block' => |
| 1019 | [ |
| 1020 | 'backgroundColor' => 'transparent', |
| 1021 | 'padding' => '13px', |
| 1022 | 'borderStyle' => 'solid', |
| 1023 | 'borderWidth' => '3px', |
| 1024 | 'borderColor' => '#aaaaaa', |
| 1025 | ], |
| 1026 | ], |
| 1027 | ], |
| 1028 | 'backgroundColor' => '#ffffff', |
| 1029 | 'backgroundColorAlternate' => '#eeeeee', |
| 1030 | ], |
| 1031 | 'button' => |
| 1032 | [ |
| 1033 | 'text' => 'Button', |
| 1034 | 'url' => '', |
| 1035 | 'styles' => |
| 1036 | [ |
| 1037 | 'block' => |
| 1038 | [ |
| 1039 | 'backgroundColor' => '#2ea1cd', |
| 1040 | 'borderColor' => '#0074a2', |
| 1041 | 'borderWidth' => '1px', |
| 1042 | 'borderRadius' => '5px', |
| 1043 | 'borderStyle' => 'solid', |
| 1044 | 'width' => '180px', |
| 1045 | 'lineHeight' => '40px', |
| 1046 | 'fontColor' => '#ffffff', |
| 1047 | 'fontFamily' => 'Verdana', |
| 1048 | 'fontSize' => '18px', |
| 1049 | 'fontWeight' => 'normal', |
| 1050 | 'textAlign' => 'center', |
| 1051 | ], |
| 1052 | ], |
| 1053 | ], |
| 1054 | 'divider' => |
| 1055 | [ |
| 1056 | 'styles' => |
| 1057 | [ |
| 1058 | 'block' => |
| 1059 | [ |
| 1060 | 'backgroundColor' => 'transparent', |
| 1061 | 'padding' => '30px', |
| 1062 | 'borderStyle' => 'dotted', |
| 1063 | 'borderWidth' => '2px', |
| 1064 | 'borderColor' => '#d9d9d9', |
| 1065 | ], |
| 1066 | ], |
| 1067 | 'type' => 'divider', |
| 1068 | ], |
| 1069 | 'footer' => |
| 1070 | [ |
| 1071 | 'text' => '<p><a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a> | <a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a><br />' . __("Add your postal address here!", 'mailpoet') . '</p>', |
| 1072 | 'styles' => |
| 1073 | [ |
| 1074 | 'block' => |
| 1075 | [ |
| 1076 | 'backgroundColor' => 'transparent', |
| 1077 | ], |
| 1078 | 'text' => |
| 1079 | [ |
| 1080 | 'fontColor' => '#222222', |
| 1081 | 'fontFamily' => 'Arial', |
| 1082 | 'fontSize' => '12px', |
| 1083 | 'textAlign' => 'center', |
| 1084 | ], |
| 1085 | 'link' => |
| 1086 | [ |
| 1087 | 'fontColor' => '#6cb7d4', |
| 1088 | 'textDecoration' => 'none', |
| 1089 | ], |
| 1090 | ], |
| 1091 | ], |
| 1092 | 'posts' => |
| 1093 | [ |
| 1094 | 'amount' => '10', |
| 1095 | 'withLayout' => true, |
| 1096 | 'contentType' => 'post', |
| 1097 | 'postStatus' => 'publish', |
| 1098 | 'inclusionType' => 'include', |
| 1099 | 'displayType' => 'excerpt', |
| 1100 | 'titleFormat' => 'h1', |
| 1101 | 'titleAlignment' => 'left', |
| 1102 | 'titleIsLink' => false, |
| 1103 | 'imageFullWidth' => false, |
| 1104 | 'featuredImagePosition' => 'alternate', |
| 1105 | 'showAuthor' => 'no', |
| 1106 | 'authorPrecededBy' => 'Author:', |
| 1107 | 'showCategories' => 'no', |
| 1108 | 'categoriesPrecededBy' => 'Categories:', |
| 1109 | 'readMoreType' => 'link', |
| 1110 | 'readMoreText' => 'Read more', |
| 1111 | 'readMoreButton' => |
| 1112 | [ |
| 1113 | 'text' => 'Read more', |
| 1114 | 'url' => '[postLink]', |
| 1115 | 'context' => 'posts.readMoreButton', |
| 1116 | 'styles' => |
| 1117 | [ |
| 1118 | 'block' => |
| 1119 | [ |
| 1120 | 'backgroundColor' => '#2ea1cd', |
| 1121 | 'borderColor' => '#0074a2', |
| 1122 | 'borderWidth' => '1px', |
| 1123 | 'borderRadius' => '5px', |
| 1124 | 'borderStyle' => 'solid', |
| 1125 | 'width' => '180px', |
| 1126 | 'lineHeight' => '40px', |
| 1127 | 'fontColor' => '#ffffff', |
| 1128 | 'fontFamily' => 'Verdana', |
| 1129 | 'fontSize' => '18px', |
| 1130 | 'fontWeight' => 'normal', |
| 1131 | 'textAlign' => 'center', |
| 1132 | ], |
| 1133 | ], |
| 1134 | ], |
| 1135 | 'sortBy' => 'newest', |
| 1136 | 'showDivider' => true, |
| 1137 | 'divider' => |
| 1138 | [ |
| 1139 | 'context' => 'posts.divider', |
| 1140 | 'styles' => |
| 1141 | [ |
| 1142 | 'block' => |
| 1143 | [ |
| 1144 | 'backgroundColor' => 'transparent', |
| 1145 | 'padding' => '13px', |
| 1146 | 'borderStyle' => 'solid', |
| 1147 | 'borderWidth' => '3px', |
| 1148 | 'borderColor' => '#aaaaaa', |
| 1149 | ], |
| 1150 | ], |
| 1151 | ], |
| 1152 | 'backgroundColor' => '#ffffff', |
| 1153 | 'backgroundColorAlternate' => '#eeeeee', |
| 1154 | ], |
| 1155 | 'social' => |
| 1156 | [ |
| 1157 | 'iconSet' => 'official', |
| 1158 | 'icons' => |
| 1159 | [ |
| 1160 | 0 => |
| 1161 | [ |
| 1162 | 'type' => 'socialIcon', |
| 1163 | 'iconType' => 'facebook', |
| 1164 | 'link' => 'http://www.facebook.com', |
| 1165 | 'image' => $this->social_icon_url . '/11-official/Facebook.png', |
| 1166 | 'height' => '32px', |
| 1167 | 'width' => '32px', |
| 1168 | 'text' => 'Facebook', |
| 1169 | ], |
| 1170 | 1 => |
| 1171 | [ |
| 1172 | 'type' => 'socialIcon', |
| 1173 | 'iconType' => 'twitter', |
| 1174 | 'link' => 'http://www.twitter.com', |
| 1175 | 'image' => $this->social_icon_url . '/11-official/X.png', |
| 1176 | 'height' => '32px', |
| 1177 | 'width' => '32px', |
| 1178 | 'text' => 'Twitter', |
| 1179 | ], |
| 1180 | ], |
| 1181 | ], |
| 1182 | 'spacer' => |
| 1183 | [ |
| 1184 | 'styles' => |
| 1185 | [ |
| 1186 | 'block' => |
| 1187 | [ |
| 1188 | 'backgroundColor' => 'transparent', |
| 1189 | 'height' => '29px', |
| 1190 | ], |
| 1191 | ], |
| 1192 | 'type' => 'spacer', |
| 1193 | ], |
| 1194 | 'header' => |
| 1195 | [ |
| 1196 | 'text' => '<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a>', |
| 1197 | 'styles' => |
| 1198 | [ |
| 1199 | 'block' => |
| 1200 | [ |
| 1201 | 'backgroundColor' => 'transparent', |
| 1202 | ], |
| 1203 | 'text' => |
| 1204 | [ |
| 1205 | 'fontColor' => '#222222', |
| 1206 | 'fontFamily' => 'Arial', |
| 1207 | 'fontSize' => '12px', |
| 1208 | 'textAlign' => 'center', |
| 1209 | ], |
| 1210 | 'link' => |
| 1211 | [ |
| 1212 | 'fontColor' => '#6cb7d4', |
| 1213 | 'textDecoration' => 'underline', |
| 1214 | ], |
| 1215 | ], |
| 1216 | ], |
| 1217 | ], |
| 1218 | ]; |
| 1219 | } |
| 1220 | } |
| 1221 |