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
NewsDay.php
1105 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 NewsDay { |
| 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/news_day'; |
| 17 | $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; |
| 18 | } |
| 19 | |
| 20 | public function get() { |
| 21 | return [ |
| 22 | 'name' => __("News Day", 'mailpoet'), |
| 23 | 'categories' => json_encode(['standard', 'all']), |
| 24 | 'readonly' => 1, |
| 25 | 'thumbnail' => $this->getThumbnail(), |
| 26 | 'body' => json_encode($this->getBody()), |
| 27 | ]; |
| 28 | } |
| 29 | |
| 30 | private function getBody() { |
| 31 | return [ |
| 32 | 'content' => |
| 33 | [ |
| 34 | 'type' => 'container', |
| 35 | 'orientation' => 'vertical', |
| 36 | 'image' => |
| 37 | [ |
| 38 | 'src' => null, |
| 39 | 'display' => 'scale', |
| 40 | ], |
| 41 | 'styles' => |
| 42 | [ |
| 43 | 'block' => |
| 44 | [ |
| 45 | 'backgroundColor' => 'transparent', |
| 46 | ], |
| 47 | ], |
| 48 | 'blocks' => |
| 49 | [ |
| 50 | 0 => |
| 51 | [ |
| 52 | 'type' => 'container', |
| 53 | 'orientation' => 'horizontal', |
| 54 | 'image' => |
| 55 | [ |
| 56 | 'src' => null, |
| 57 | 'display' => 'scale', |
| 58 | ], |
| 59 | 'styles' => |
| 60 | [ |
| 61 | 'block' => |
| 62 | [ |
| 63 | 'backgroundColor' => '#ffffff', |
| 64 | ], |
| 65 | ], |
| 66 | 'blocks' => |
| 67 | [ |
| 68 | 0 => |
| 69 | [ |
| 70 | 'type' => 'container', |
| 71 | 'orientation' => 'vertical', |
| 72 | 'image' => |
| 73 | [ |
| 74 | 'src' => null, |
| 75 | 'display' => 'scale', |
| 76 | ], |
| 77 | 'styles' => |
| 78 | [ |
| 79 | 'block' => |
| 80 | [ |
| 81 | 'backgroundColor' => 'transparent', |
| 82 | ], |
| 83 | ], |
| 84 | 'blocks' => |
| 85 | [ |
| 86 | 0 => |
| 87 | [ |
| 88 | 'type' => 'spacer', |
| 89 | 'styles' => |
| 90 | [ |
| 91 | 'block' => |
| 92 | [ |
| 93 | 'backgroundColor' => '#f2f2f2', |
| 94 | 'height' => '20px', |
| 95 | ], |
| 96 | ], |
| 97 | ], |
| 98 | 1 => |
| 99 | [ |
| 100 | 'type' => 'image', |
| 101 | 'link' => '', |
| 102 | 'src' => $this->template_image_url . '/News-Outlet-Title-2.jpg', |
| 103 | 'alt' => 'News-Outlet-Title-2', |
| 104 | 'fullWidth' => true, |
| 105 | 'width' => '1280px', |
| 106 | 'height' => '700px', |
| 107 | 'styles' => |
| 108 | [ |
| 109 | 'block' => |
| 110 | [ |
| 111 | 'textAlign' => 'center', |
| 112 | ], |
| 113 | ], |
| 114 | ], |
| 115 | ], |
| 116 | ], |
| 117 | ], |
| 118 | ], |
| 119 | 1 => |
| 120 | [ |
| 121 | 'type' => 'container', |
| 122 | 'orientation' => 'horizontal', |
| 123 | 'image' => |
| 124 | [ |
| 125 | 'src' => null, |
| 126 | 'display' => 'scale', |
| 127 | ], |
| 128 | 'styles' => |
| 129 | [ |
| 130 | 'block' => |
| 131 | [ |
| 132 | 'backgroundColor' => '#ffffff', |
| 133 | ], |
| 134 | ], |
| 135 | 'blocks' => |
| 136 | [ |
| 137 | 0 => |
| 138 | [ |
| 139 | 'type' => 'container', |
| 140 | 'orientation' => 'vertical', |
| 141 | 'image' => |
| 142 | [ |
| 143 | 'src' => null, |
| 144 | 'display' => 'scale', |
| 145 | ], |
| 146 | 'styles' => |
| 147 | [ |
| 148 | 'block' => |
| 149 | [ |
| 150 | 'backgroundColor' => 'transparent', |
| 151 | ], |
| 152 | ], |
| 153 | 'blocks' => |
| 154 | [ |
| 155 | 0 => |
| 156 | [ |
| 157 | 'type' => 'spacer', |
| 158 | 'styles' => |
| 159 | [ |
| 160 | 'block' => |
| 161 | [ |
| 162 | 'backgroundColor' => 'transparent', |
| 163 | 'height' => '25px', |
| 164 | ], |
| 165 | ], |
| 166 | ], |
| 167 | ], |
| 168 | ], |
| 169 | ], |
| 170 | ], |
| 171 | 2 => |
| 172 | [ |
| 173 | 'type' => 'container', |
| 174 | 'orientation' => 'horizontal', |
| 175 | 'image' => |
| 176 | [ |
| 177 | 'src' => null, |
| 178 | 'display' => 'scale', |
| 179 | ], |
| 180 | 'styles' => |
| 181 | [ |
| 182 | 'block' => |
| 183 | [ |
| 184 | 'backgroundColor' => 'transparent', |
| 185 | ], |
| 186 | ], |
| 187 | 'blocks' => |
| 188 | [ |
| 189 | 0 => |
| 190 | [ |
| 191 | 'type' => 'container', |
| 192 | 'orientation' => 'vertical', |
| 193 | 'image' => |
| 194 | [ |
| 195 | 'src' => null, |
| 196 | 'display' => 'scale', |
| 197 | ], |
| 198 | 'styles' => |
| 199 | [ |
| 200 | 'block' => |
| 201 | [ |
| 202 | 'backgroundColor' => 'transparent', |
| 203 | ], |
| 204 | ], |
| 205 | 'blocks' => |
| 206 | [ |
| 207 | 0 => |
| 208 | [ |
| 209 | 'type' => 'text', |
| 210 | 'text' => '<h1 style="text-align: left;"><span style="color: #2ca5d2;"><strong>Top Story</strong></span></h1>', |
| 211 | ], |
| 212 | 1 => |
| 213 | [ |
| 214 | 'type' => 'text', |
| 215 | 'text' => '<h2 style="text-align: left;"><strong>Plasma jet engines that could take you from the ground to space</strong></h2>', |
| 216 | ], |
| 217 | 2 => |
| 218 | [ |
| 219 | 'type' => 'image', |
| 220 | 'link' => 'http://mailpoet.info/plasma-jet-engines-that-could-take-you-from-the-ground-to-space/', |
| 221 | 'src' => $this->template_image_url . '/plasma-stingray111-800x533.jpg', |
| 222 | 'alt' => 'Plasma jet engines that could take you from the ground to space', |
| 223 | 'fullWidth' => false, |
| 224 | 'width' => '413.28125px', |
| 225 | 'height' => 440, |
| 226 | 'styles' => |
| 227 | [ |
| 228 | 'block' => |
| 229 | [ |
| 230 | 'textAlign' => 'center', |
| 231 | ], |
| 232 | ], |
| 233 | ], |
| 234 | 3 => |
| 235 | [ |
| 236 | 'type' => 'text', |
| 237 | 'text' => '<p class="mailpoet_wp_post">FORGET fuel-powered jet engines. We’re on the verge of having aircraft that can fly from the ground up to the edge of space using air and electricity alone. Traditional jet engines create thrust by mixing compressed air with fuel and igniting it. The burning mixture expands rapidly and is blasted out of the back of the engine, pushing it forwards. …</p><p><a href="http://mailpoet.info/plasma-jet-engines-that-could-take-you-from-the-ground-to-space/">Read More</a></p>', |
| 238 | ], |
| 239 | 4 => |
| 240 | [ |
| 241 | 'type' => 'divider', |
| 242 | 'styles' => |
| 243 | [ |
| 244 | 'block' => |
| 245 | [ |
| 246 | 'backgroundColor' => 'transparent', |
| 247 | 'padding' => '13px', |
| 248 | 'borderStyle' => 'solid', |
| 249 | 'borderWidth' => '1px', |
| 250 | 'borderColor' => '#aaaaaa', |
| 251 | ], |
| 252 | ], |
| 253 | ], |
| 254 | 5 => |
| 255 | [ |
| 256 | 'type' => 'spacer', |
| 257 | 'styles' => |
| 258 | [ |
| 259 | 'block' => |
| 260 | [ |
| 261 | 'backgroundColor' => 'transparent', |
| 262 | 'height' => '20px', |
| 263 | ], |
| 264 | ], |
| 265 | ], |
| 266 | 6 => |
| 267 | [ |
| 268 | 'type' => 'text', |
| 269 | 'text' => '<h3><span style="color: #2ca5d2;"><strong>Popular Posts Today</strong></span></h3>', |
| 270 | ], |
| 271 | 7 => |
| 272 | [ |
| 273 | 'type' => 'spacer', |
| 274 | 'styles' => |
| 275 | [ |
| 276 | 'block' => |
| 277 | [ |
| 278 | 'backgroundColor' => 'transparent', |
| 279 | 'height' => '20px', |
| 280 | ], |
| 281 | ], |
| 282 | ], |
| 283 | ], |
| 284 | ], |
| 285 | ], |
| 286 | ], |
| 287 | 3 => |
| 288 | [ |
| 289 | 'type' => 'container', |
| 290 | 'orientation' => 'horizontal', |
| 291 | 'image' => |
| 292 | [ |
| 293 | 'src' => null, |
| 294 | 'display' => 'scale', |
| 295 | ], |
| 296 | 'styles' => |
| 297 | [ |
| 298 | 'block' => |
| 299 | [ |
| 300 | 'backgroundColor' => 'transparent', |
| 301 | ], |
| 302 | ], |
| 303 | 'blocks' => |
| 304 | [ |
| 305 | 0 => |
| 306 | [ |
| 307 | 'type' => 'container', |
| 308 | 'orientation' => 'vertical', |
| 309 | 'image' => |
| 310 | [ |
| 311 | 'src' => null, |
| 312 | 'display' => 'scale', |
| 313 | ], |
| 314 | 'styles' => |
| 315 | [ |
| 316 | 'block' => |
| 317 | [ |
| 318 | 'backgroundColor' => 'transparent', |
| 319 | ], |
| 320 | ], |
| 321 | 'blocks' => |
| 322 | [ |
| 323 | 0 => |
| 324 | [ |
| 325 | 'type' => 'text', |
| 326 | 'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;"><strong>Cutting through the smog: What to do to fight air pollution</strong></h3> |
| 327 | <p class="mailpoet_wp_post">Tackling our air problems starts with traffic control, but individual action to reduce energy use and intensive farming would also help clean our air.</p> |
| 328 | <p><a href="http://mailpoet.info/cutting-through-the-smog-what-to-do-to-fight-air-pollution/">Read More</a></p>', |
| 329 | ], |
| 330 | 1 => |
| 331 | [ |
| 332 | 'type' => 'divider', |
| 333 | 'styles' => |
| 334 | [ |
| 335 | 'block' => |
| 336 | [ |
| 337 | 'backgroundColor' => 'transparent', |
| 338 | 'padding' => '13px', |
| 339 | 'borderStyle' => 'solid', |
| 340 | 'borderWidth' => '1px', |
| 341 | 'borderColor' => '#aaaaaa', |
| 342 | ], |
| 343 | ], |
| 344 | ], |
| 345 | 2 => |
| 346 | [ |
| 347 | 'type' => 'text', |
| 348 | 'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;"><strong>Ladybird’s transparent shell reveals how it moves</strong></h3> |
| 349 | <p class="mailpoet_wp_post">They certainly know how to fold. A see-through artificial wing case has been used to watch for the first time as ladybirds put away their wings after flight.</p> |
| 350 | <p><a href="http://mailpoet.info/ladybirds-transparent-shell-reveals-how-it-folds-its-wings/">Read More</a></p>', |
| 351 | ], |
| 352 | 3 => |
| 353 | [ |
| 354 | 'type' => 'divider', |
| 355 | 'styles' => |
| 356 | [ |
| 357 | 'block' => |
| 358 | [ |
| 359 | 'backgroundColor' => 'transparent', |
| 360 | 'padding' => '13px', |
| 361 | 'borderStyle' => 'solid', |
| 362 | 'borderWidth' => '1px', |
| 363 | 'borderColor' => '#aaaaaa', |
| 364 | ], |
| 365 | ], |
| 366 | ], |
| 367 | 4 => |
| 368 | [ |
| 369 | 'type' => 'text', |
| 370 | 'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;"><strong>Brazil’s history-making Hurricane</strong></h3> |
| 371 | <p class="mailpoet_wp_post">Jairzinho has just made history. In claiming the fourth goal of an unforgettable 1970 FIFA World Cup Mexico™ Final against Italy, he has maintained his record of scoring in every one of Brazil’s matches en route to the Trophy.</p> |
| 372 | <p><a href="http://mailpoet.info/brazils-history-making-hurricane/">Read More</a></p>', |
| 373 | ], |
| 374 | ], |
| 375 | ], |
| 376 | 1 => |
| 377 | [ |
| 378 | 'type' => 'container', |
| 379 | 'orientation' => 'vertical', |
| 380 | 'image' => |
| 381 | [ |
| 382 | 'src' => null, |
| 383 | 'display' => 'scale', |
| 384 | ], |
| 385 | 'styles' => |
| 386 | [ |
| 387 | 'block' => |
| 388 | [ |
| 389 | 'backgroundColor' => 'transparent', |
| 390 | ], |
| 391 | ], |
| 392 | 'blocks' => |
| 393 | [ |
| 394 | 0 => |
| 395 | [ |
| 396 | 'type' => 'text', |
| 397 | 'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;"><strong>Iceland’s dentist-coach defying convention and expectations</strong></h3> |
| 398 | <p class="mailpoet_wp_post">As Iceland’s key matches loom, with kick-off just a couple of hours away, you will find their national coach in the pub. This may seem unusual...</p> |
| 399 | <p><a href="http://mailpoet.info/icelands-dentist-coach-defying-convention-and-expectations/">Read More</a></p>', |
| 400 | ], |
| 401 | 1 => |
| 402 | [ |
| 403 | 'type' => 'divider', |
| 404 | 'styles' => |
| 405 | [ |
| 406 | 'block' => |
| 407 | [ |
| 408 | 'backgroundColor' => 'transparent', |
| 409 | 'padding' => '13px', |
| 410 | 'borderStyle' => 'solid', |
| 411 | 'borderWidth' => '1px', |
| 412 | 'borderColor' => '#aaaaaa', |
| 413 | ], |
| 414 | ], |
| 415 | ], |
| 416 | 2 => |
| 417 | [ |
| 418 | 'type' => 'text', |
| 419 | 'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;"><strong>Impact and legacy of 2018 FIFA World Cup Russia</strong></h3> |
| 420 | <p class="mailpoet_wp_post">Organising a FIFA World Cup™ in a sustainable manner is a major challenge. The scale of the event inevitably has an impact on the Host Country. </p> |
| 421 | <p><a href="http://mailpoet.info/impact-and-legacy-of-2018-fifa-world-cup-russia-facts-and-figures/">Read More</a></p>', |
| 422 | ], |
| 423 | 3 => |
| 424 | [ |
| 425 | 'type' => 'divider', |
| 426 | 'styles' => |
| 427 | [ |
| 428 | 'block' => |
| 429 | [ |
| 430 | 'backgroundColor' => 'transparent', |
| 431 | 'padding' => '13px', |
| 432 | 'borderStyle' => 'solid', |
| 433 | 'borderWidth' => '1px', |
| 434 | 'borderColor' => '#aaaaaa', |
| 435 | ], |
| 436 | ], |
| 437 | ], |
| 438 | 4 => |
| 439 | [ |
| 440 | 'type' => 'text', |
| 441 | 'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;"><strong>Lineker’s life-changing treble</strong></h3> |
| 442 | <p class="mailpoet_wp_post">Given that he won the Golden Boot in his first and came within a whisker of the Final in his second, one might expect Gary Lineker to have a tough time picking his FIFA World Cup™ highlight. Yet the man who scored ten times...</p> |
| 443 | <p><a href="http://mailpoet.info/linekers-life-changing-treble/">Read More</a></p>', |
| 444 | ], |
| 445 | ], |
| 446 | ], |
| 447 | ], |
| 448 | ], |
| 449 | 4 => |
| 450 | [ |
| 451 | 'type' => 'container', |
| 452 | 'orientation' => 'horizontal', |
| 453 | 'image' => |
| 454 | [ |
| 455 | 'src' => null, |
| 456 | 'display' => 'scale', |
| 457 | ], |
| 458 | 'styles' => |
| 459 | [ |
| 460 | 'block' => |
| 461 | [ |
| 462 | 'backgroundColor' => 'transparent', |
| 463 | ], |
| 464 | ], |
| 465 | 'blocks' => |
| 466 | [ |
| 467 | 0 => |
| 468 | [ |
| 469 | 'type' => 'container', |
| 470 | 'orientation' => 'vertical', |
| 471 | 'image' => |
| 472 | [ |
| 473 | 'src' => null, |
| 474 | 'display' => 'scale', |
| 475 | ], |
| 476 | 'styles' => |
| 477 | [ |
| 478 | 'block' => |
| 479 | [ |
| 480 | 'backgroundColor' => 'transparent', |
| 481 | ], |
| 482 | ], |
| 483 | 'blocks' => |
| 484 | [ |
| 485 | 0 => |
| 486 | [ |
| 487 | 'type' => 'spacer', |
| 488 | 'styles' => |
| 489 | [ |
| 490 | 'block' => |
| 491 | [ |
| 492 | 'backgroundColor' => 'transparent', |
| 493 | 'height' => '40px', |
| 494 | ], |
| 495 | ], |
| 496 | ], |
| 497 | 1 => |
| 498 | [ |
| 499 | 'type' => 'spacer', |
| 500 | 'styles' => |
| 501 | [ |
| 502 | 'block' => |
| 503 | [ |
| 504 | 'backgroundColor' => '#f2f2f2', |
| 505 | 'height' => '40px', |
| 506 | ], |
| 507 | ], |
| 508 | ], |
| 509 | 2 => |
| 510 | [ |
| 511 | 'type' => 'spacer', |
| 512 | 'styles' => |
| 513 | [ |
| 514 | 'block' => |
| 515 | [ |
| 516 | 'backgroundColor' => 'transparent', |
| 517 | 'height' => '20px', |
| 518 | ], |
| 519 | ], |
| 520 | ], |
| 521 | ], |
| 522 | ], |
| 523 | ], |
| 524 | ], |
| 525 | 5 => |
| 526 | [ |
| 527 | 'type' => 'container', |
| 528 | 'orientation' => 'horizontal', |
| 529 | 'image' => |
| 530 | [ |
| 531 | 'src' => null, |
| 532 | 'display' => 'scale', |
| 533 | ], |
| 534 | 'styles' => |
| 535 | [ |
| 536 | 'block' => |
| 537 | [ |
| 538 | 'backgroundColor' => 'transparent', |
| 539 | ], |
| 540 | ], |
| 541 | 'blocks' => |
| 542 | [ |
| 543 | 0 => |
| 544 | [ |
| 545 | 'type' => 'container', |
| 546 | 'orientation' => 'vertical', |
| 547 | 'image' => |
| 548 | [ |
| 549 | 'src' => null, |
| 550 | 'display' => 'scale', |
| 551 | ], |
| 552 | 'styles' => |
| 553 | [ |
| 554 | 'block' => |
| 555 | [ |
| 556 | 'backgroundColor' => 'transparent', |
| 557 | ], |
| 558 | ], |
| 559 | 'blocks' => |
| 560 | [ |
| 561 | 0 => |
| 562 | [ |
| 563 | 'type' => 'footer', |
| 564 | 'text' => '<p><strong>NewsDay</strong></p> |
| 565 | <p><a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a> | <a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a><br /><br /></p> |
| 566 | <p></p>', |
| 567 | 'styles' => |
| 568 | [ |
| 569 | 'block' => |
| 570 | [ |
| 571 | 'backgroundColor' => 'transparent', |
| 572 | ], |
| 573 | 'text' => |
| 574 | [ |
| 575 | 'fontColor' => '#222222', |
| 576 | 'fontFamily' => 'Arial', |
| 577 | 'fontSize' => '12px', |
| 578 | 'textAlign' => 'left', |
| 579 | ], |
| 580 | 'link' => |
| 581 | [ |
| 582 | 'fontColor' => '#6cb7d4', |
| 583 | 'textDecoration' => 'underline', |
| 584 | ], |
| 585 | ], |
| 586 | ], |
| 587 | ], |
| 588 | ], |
| 589 | 1 => |
| 590 | [ |
| 591 | 'type' => 'container', |
| 592 | 'orientation' => 'vertical', |
| 593 | 'image' => |
| 594 | [ |
| 595 | 'src' => null, |
| 596 | 'display' => 'scale', |
| 597 | ], |
| 598 | 'styles' => |
| 599 | [ |
| 600 | 'block' => |
| 601 | [ |
| 602 | 'backgroundColor' => 'transparent', |
| 603 | ], |
| 604 | ], |
| 605 | 'blocks' => |
| 606 | [ |
| 607 | 0 => |
| 608 | [ |
| 609 | 'type' => 'spacer', |
| 610 | 'styles' => |
| 611 | [ |
| 612 | 'block' => |
| 613 | [ |
| 614 | 'backgroundColor' => 'transparent', |
| 615 | 'height' => '20px', |
| 616 | ], |
| 617 | ], |
| 618 | ], |
| 619 | 1 => |
| 620 | [ |
| 621 | 'type' => 'social', |
| 622 | 'iconSet' => 'official', |
| 623 | 'icons' => |
| 624 | [ |
| 625 | 0 => |
| 626 | [ |
| 627 | 'type' => 'socialIcon', |
| 628 | 'iconType' => 'facebook', |
| 629 | 'link' => 'http://www.facebook.com', |
| 630 | 'image' => $this->social_icon_url . '/11-official/Facebook.png', |
| 631 | 'height' => '32px', |
| 632 | 'width' => '32px', |
| 633 | 'text' => 'Facebook', |
| 634 | ], |
| 635 | 1 => |
| 636 | [ |
| 637 | 'type' => 'socialIcon', |
| 638 | 'iconType' => 'twitter', |
| 639 | 'link' => 'http://www.twitter.com', |
| 640 | 'image' => $this->social_icon_url . '/11-official/X.png', |
| 641 | 'height' => '32px', |
| 642 | 'width' => '32px', |
| 643 | 'text' => 'Twitter', |
| 644 | ], |
| 645 | 2 => |
| 646 | [ |
| 647 | 'type' => 'socialIcon', |
| 648 | 'iconType' => 'youtube', |
| 649 | 'link' => 'http://www.youtube.com', |
| 650 | 'image' => $this->social_icon_url . '/11-official/Youtube.png', |
| 651 | 'height' => '32px', |
| 652 | 'width' => '32px', |
| 653 | 'text' => 'Youtube', |
| 654 | ], |
| 655 | 3 => |
| 656 | [ |
| 657 | 'type' => 'socialIcon', |
| 658 | 'iconType' => 'instagram', |
| 659 | 'link' => 'http://instagram.com', |
| 660 | 'image' => $this->social_icon_url . '/11-official/Instagram.png', |
| 661 | 'height' => '32px', |
| 662 | 'width' => '32px', |
| 663 | 'text' => 'Instagram', |
| 664 | ], |
| 665 | 4 => |
| 666 | [ |
| 667 | 'type' => 'socialIcon', |
| 668 | 'iconType' => 'linkedin', |
| 669 | 'link' => 'http://www.linkedin.com', |
| 670 | 'image' => $this->social_icon_url . '/11-official/Linkedin.png', |
| 671 | 'height' => '32px', |
| 672 | 'width' => '32px', |
| 673 | 'text' => 'LinkedIn', |
| 674 | ], |
| 675 | ], |
| 676 | ], |
| 677 | 2 => |
| 678 | [ |
| 679 | 'type' => 'spacer', |
| 680 | 'styles' => |
| 681 | [ |
| 682 | 'block' => |
| 683 | [ |
| 684 | 'backgroundColor' => 'transparent', |
| 685 | 'height' => '20px', |
| 686 | ], |
| 687 | ], |
| 688 | ], |
| 689 | ], |
| 690 | ], |
| 691 | ], |
| 692 | ], |
| 693 | 6 => |
| 694 | [ |
| 695 | 'type' => 'container', |
| 696 | 'orientation' => 'horizontal', |
| 697 | 'image' => |
| 698 | [ |
| 699 | 'src' => null, |
| 700 | 'display' => 'scale', |
| 701 | ], |
| 702 | 'styles' => |
| 703 | [ |
| 704 | 'block' => |
| 705 | [ |
| 706 | 'backgroundColor' => 'transparent', |
| 707 | ], |
| 708 | ], |
| 709 | 'blocks' => |
| 710 | [ |
| 711 | 0 => |
| 712 | [ |
| 713 | 'type' => 'container', |
| 714 | 'orientation' => 'vertical', |
| 715 | 'image' => |
| 716 | [ |
| 717 | 'src' => null, |
| 718 | 'display' => 'scale', |
| 719 | ], |
| 720 | 'styles' => |
| 721 | [ |
| 722 | 'block' => |
| 723 | [ |
| 724 | 'backgroundColor' => 'transparent', |
| 725 | ], |
| 726 | ], |
| 727 | 'blocks' => |
| 728 | [ |
| 729 | 0 => |
| 730 | [ |
| 731 | 'type' => 'spacer', |
| 732 | 'styles' => |
| 733 | [ |
| 734 | 'block' => |
| 735 | [ |
| 736 | 'backgroundColor' => '#f2f2f2', |
| 737 | 'height' => '40px', |
| 738 | ], |
| 739 | ], |
| 740 | ], |
| 741 | ], |
| 742 | ], |
| 743 | ], |
| 744 | ], |
| 745 | ], |
| 746 | ], |
| 747 | 'globalStyles' => |
| 748 | [ |
| 749 | 'text' => |
| 750 | [ |
| 751 | 'fontColor' => '#000000', |
| 752 | 'fontFamily' => 'Arial', |
| 753 | 'fontSize' => '13px', |
| 754 | ], |
| 755 | 'h1' => |
| 756 | [ |
| 757 | 'fontColor' => '#111111', |
| 758 | 'fontFamily' => 'Arial', |
| 759 | 'fontSize' => '30px', |
| 760 | ], |
| 761 | 'h2' => |
| 762 | [ |
| 763 | 'fontColor' => '#222222', |
| 764 | 'fontFamily' => 'Arial', |
| 765 | 'fontSize' => '24px', |
| 766 | ], |
| 767 | 'h3' => |
| 768 | [ |
| 769 | 'fontColor' => '#333333', |
| 770 | 'fontFamily' => 'Arial', |
| 771 | 'fontSize' => '22px', |
| 772 | ], |
| 773 | 'link' => |
| 774 | [ |
| 775 | 'fontColor' => '#2ca5d2', |
| 776 | 'textDecoration' => 'underline', |
| 777 | ], |
| 778 | 'wrapper' => |
| 779 | [ |
| 780 | 'backgroundColor' => '#ffffff', |
| 781 | ], |
| 782 | 'body' => |
| 783 | [ |
| 784 | 'backgroundColor' => '#f2f2f2', |
| 785 | ], |
| 786 | ], |
| 787 | 'blockDefaults' => |
| 788 | [ |
| 789 | 'automatedLatestContent' => |
| 790 | [ |
| 791 | 'amount' => '5', |
| 792 | 'withLayout' => false, |
| 793 | 'contentType' => 'post', |
| 794 | 'inclusionType' => 'include', |
| 795 | 'displayType' => 'excerpt', |
| 796 | 'titleFormat' => 'h1', |
| 797 | 'titleAlignment' => 'left', |
| 798 | 'titleIsLink' => false, |
| 799 | 'imageFullWidth' => false, |
| 800 | 'featuredImagePosition' => 'belowTitle', |
| 801 | 'showAuthor' => 'no', |
| 802 | 'authorPrecededBy' => 'Author:', |
| 803 | 'showCategories' => 'no', |
| 804 | 'categoriesPrecededBy' => 'Categories:', |
| 805 | 'readMoreType' => 'button', |
| 806 | 'readMoreText' => 'Read more', |
| 807 | 'readMoreButton' => |
| 808 | [ |
| 809 | 'text' => 'Read more', |
| 810 | 'url' => '[postLink]', |
| 811 | 'context' => 'automatedLatestContent.readMoreButton', |
| 812 | 'styles' => |
| 813 | [ |
| 814 | 'block' => |
| 815 | [ |
| 816 | 'backgroundColor' => '#2ea1cd', |
| 817 | 'borderColor' => '#0074a2', |
| 818 | 'borderWidth' => '1px', |
| 819 | 'borderRadius' => '5px', |
| 820 | 'borderStyle' => 'solid', |
| 821 | 'width' => '180px', |
| 822 | 'lineHeight' => '40px', |
| 823 | 'fontColor' => '#ffffff', |
| 824 | 'fontFamily' => 'Verdana', |
| 825 | 'fontSize' => '18px', |
| 826 | 'fontWeight' => 'normal', |
| 827 | 'textAlign' => 'center', |
| 828 | ], |
| 829 | ], |
| 830 | ], |
| 831 | 'sortBy' => 'newest', |
| 832 | 'showDivider' => true, |
| 833 | 'divider' => |
| 834 | [ |
| 835 | 'context' => 'automatedLatestContent.divider', |
| 836 | 'styles' => |
| 837 | [ |
| 838 | 'block' => |
| 839 | [ |
| 840 | 'backgroundColor' => 'transparent', |
| 841 | 'padding' => '13px', |
| 842 | 'borderStyle' => 'solid', |
| 843 | 'borderWidth' => '3px', |
| 844 | 'borderColor' => '#aaaaaa', |
| 845 | ], |
| 846 | ], |
| 847 | ], |
| 848 | 'backgroundColor' => '#ffffff', |
| 849 | 'backgroundColorAlternate' => '#eeeeee', |
| 850 | ], |
| 851 | 'automatedLatestContentLayout' => |
| 852 | [ |
| 853 | 'amount' => '5', |
| 854 | 'withLayout' => true, |
| 855 | 'contentType' => 'post', |
| 856 | 'inclusionType' => 'include', |
| 857 | 'displayType' => 'excerpt', |
| 858 | 'titleFormat' => 'h1', |
| 859 | 'titleAlignment' => 'left', |
| 860 | 'titleIsLink' => false, |
| 861 | 'imageFullWidth' => false, |
| 862 | 'featuredImagePosition' => 'alternate', |
| 863 | 'showAuthor' => 'no', |
| 864 | 'authorPrecededBy' => 'Author:', |
| 865 | 'showCategories' => 'no', |
| 866 | 'categoriesPrecededBy' => 'Categories:', |
| 867 | 'readMoreType' => 'button', |
| 868 | 'readMoreText' => 'Read more', |
| 869 | 'readMoreButton' => |
| 870 | [ |
| 871 | 'text' => 'Read more', |
| 872 | 'url' => '[postLink]', |
| 873 | 'context' => 'automatedLatestContentLayout.readMoreButton', |
| 874 | 'styles' => |
| 875 | [ |
| 876 | 'block' => |
| 877 | [ |
| 878 | 'backgroundColor' => '#2ea1cd', |
| 879 | 'borderColor' => '#0074a2', |
| 880 | 'borderWidth' => '1px', |
| 881 | 'borderRadius' => '5px', |
| 882 | 'borderStyle' => 'solid', |
| 883 | 'width' => '180px', |
| 884 | 'lineHeight' => '40px', |
| 885 | 'fontColor' => '#ffffff', |
| 886 | 'fontFamily' => 'Verdana', |
| 887 | 'fontSize' => '18px', |
| 888 | 'fontWeight' => 'normal', |
| 889 | 'textAlign' => 'center', |
| 890 | ], |
| 891 | ], |
| 892 | ], |
| 893 | 'sortBy' => 'newest', |
| 894 | 'showDivider' => true, |
| 895 | 'divider' => |
| 896 | [ |
| 897 | 'context' => 'automatedLatestContentLayout.divider', |
| 898 | 'styles' => |
| 899 | [ |
| 900 | 'block' => |
| 901 | [ |
| 902 | 'backgroundColor' => 'transparent', |
| 903 | 'padding' => '13px', |
| 904 | 'borderStyle' => 'solid', |
| 905 | 'borderWidth' => '3px', |
| 906 | 'borderColor' => '#aaaaaa', |
| 907 | ], |
| 908 | ], |
| 909 | ], |
| 910 | 'backgroundColor' => '#ffffff', |
| 911 | 'backgroundColorAlternate' => '#eeeeee', |
| 912 | ], |
| 913 | 'button' => |
| 914 | [ |
| 915 | 'text' => 'Button', |
| 916 | 'url' => '', |
| 917 | 'styles' => |
| 918 | [ |
| 919 | 'block' => |
| 920 | [ |
| 921 | 'backgroundColor' => '#2ea1cd', |
| 922 | 'borderColor' => '#0074a2', |
| 923 | 'borderWidth' => '1px', |
| 924 | 'borderRadius' => '5px', |
| 925 | 'borderStyle' => 'solid', |
| 926 | 'width' => '180px', |
| 927 | 'lineHeight' => '40px', |
| 928 | 'fontColor' => '#ffffff', |
| 929 | 'fontFamily' => 'Verdana', |
| 930 | 'fontSize' => '18px', |
| 931 | 'fontWeight' => 'normal', |
| 932 | 'textAlign' => 'center', |
| 933 | ], |
| 934 | ], |
| 935 | ], |
| 936 | 'divider' => |
| 937 | [ |
| 938 | 'styles' => |
| 939 | [ |
| 940 | 'block' => |
| 941 | [ |
| 942 | 'backgroundColor' => 'transparent', |
| 943 | 'padding' => '13px', |
| 944 | 'borderStyle' => 'solid', |
| 945 | 'borderWidth' => '3px', |
| 946 | 'borderColor' => '#aaaaaa', |
| 947 | ], |
| 948 | ], |
| 949 | ], |
| 950 | 'footer' => |
| 951 | [ |
| 952 | '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>', |
| 953 | 'styles' => |
| 954 | [ |
| 955 | 'block' => |
| 956 | [ |
| 957 | 'backgroundColor' => 'transparent', |
| 958 | ], |
| 959 | 'text' => |
| 960 | [ |
| 961 | 'fontColor' => '#222222', |
| 962 | 'fontFamily' => 'Arial', |
| 963 | 'fontSize' => '12px', |
| 964 | 'textAlign' => 'center', |
| 965 | ], |
| 966 | 'link' => |
| 967 | [ |
| 968 | 'fontColor' => '#6cb7d4', |
| 969 | 'textDecoration' => 'none', |
| 970 | ], |
| 971 | ], |
| 972 | ], |
| 973 | 'posts' => |
| 974 | [ |
| 975 | 'amount' => '10', |
| 976 | 'withLayout' => true, |
| 977 | 'contentType' => 'post', |
| 978 | 'postStatus' => 'publish', |
| 979 | 'inclusionType' => 'include', |
| 980 | 'displayType' => 'excerpt', |
| 981 | 'titleFormat' => 'h1', |
| 982 | 'titleAlignment' => 'left', |
| 983 | 'titleIsLink' => false, |
| 984 | 'imageFullWidth' => false, |
| 985 | 'featuredImagePosition' => 'alternate', |
| 986 | 'showAuthor' => 'no', |
| 987 | 'authorPrecededBy' => 'Author:', |
| 988 | 'showCategories' => 'no', |
| 989 | 'categoriesPrecededBy' => 'Categories:', |
| 990 | 'readMoreType' => 'link', |
| 991 | 'readMoreText' => 'Read more', |
| 992 | 'readMoreButton' => |
| 993 | [ |
| 994 | 'text' => 'Read more', |
| 995 | 'url' => '[postLink]', |
| 996 | 'context' => 'posts.readMoreButton', |
| 997 | 'styles' => |
| 998 | [ |
| 999 | 'block' => |
| 1000 | [ |
| 1001 | 'backgroundColor' => '#2ea1cd', |
| 1002 | 'borderColor' => '#0074a2', |
| 1003 | 'borderWidth' => '1px', |
| 1004 | 'borderRadius' => '5px', |
| 1005 | 'borderStyle' => 'solid', |
| 1006 | 'width' => '180px', |
| 1007 | 'lineHeight' => '40px', |
| 1008 | 'fontColor' => '#ffffff', |
| 1009 | 'fontFamily' => 'Verdana', |
| 1010 | 'fontSize' => '18px', |
| 1011 | 'fontWeight' => 'normal', |
| 1012 | 'textAlign' => 'center', |
| 1013 | ], |
| 1014 | ], |
| 1015 | ], |
| 1016 | 'sortBy' => 'newest', |
| 1017 | 'showDivider' => true, |
| 1018 | 'divider' => |
| 1019 | [ |
| 1020 | 'context' => 'posts.divider', |
| 1021 | 'styles' => |
| 1022 | [ |
| 1023 | 'block' => |
| 1024 | [ |
| 1025 | 'backgroundColor' => 'transparent', |
| 1026 | 'padding' => '13px', |
| 1027 | 'borderStyle' => 'solid', |
| 1028 | 'borderWidth' => '3px', |
| 1029 | 'borderColor' => '#aaaaaa', |
| 1030 | ], |
| 1031 | ], |
| 1032 | ], |
| 1033 | 'backgroundColor' => '#ffffff', |
| 1034 | 'backgroundColorAlternate' => '#eeeeee', |
| 1035 | ], |
| 1036 | 'social' => |
| 1037 | [ |
| 1038 | 'iconSet' => 'official', |
| 1039 | 'icons' => |
| 1040 | [ |
| 1041 | 0 => |
| 1042 | [ |
| 1043 | 'type' => 'socialIcon', |
| 1044 | 'iconType' => 'facebook', |
| 1045 | 'link' => 'http://www.facebook.com', |
| 1046 | 'image' => $this->social_icon_url . '/11-official/Facebook.png', |
| 1047 | 'height' => '32px', |
| 1048 | 'width' => '32px', |
| 1049 | 'text' => 'Facebook', |
| 1050 | ], |
| 1051 | 1 => |
| 1052 | [ |
| 1053 | 'type' => 'socialIcon', |
| 1054 | 'iconType' => 'twitter', |
| 1055 | 'link' => 'http://www.twitter.com', |
| 1056 | 'image' => $this->social_icon_url . '/11-official/X.png', |
| 1057 | 'height' => '32px', |
| 1058 | 'width' => '32px', |
| 1059 | 'text' => 'Twitter', |
| 1060 | ], |
| 1061 | ], |
| 1062 | ], |
| 1063 | 'spacer' => |
| 1064 | [ |
| 1065 | 'styles' => |
| 1066 | [ |
| 1067 | 'block' => |
| 1068 | [ |
| 1069 | 'backgroundColor' => 'transparent', |
| 1070 | 'height' => '40px', |
| 1071 | ], |
| 1072 | ], |
| 1073 | ], |
| 1074 | 'header' => |
| 1075 | [ |
| 1076 | 'text' => '<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a>', |
| 1077 | 'styles' => |
| 1078 | [ |
| 1079 | 'block' => |
| 1080 | [ |
| 1081 | 'backgroundColor' => 'transparent', |
| 1082 | ], |
| 1083 | 'text' => |
| 1084 | [ |
| 1085 | 'fontColor' => '#222222', |
| 1086 | 'fontFamily' => 'Arial', |
| 1087 | 'fontSize' => '12px', |
| 1088 | 'textAlign' => 'center', |
| 1089 | ], |
| 1090 | 'link' => |
| 1091 | [ |
| 1092 | 'fontColor' => '#6cb7d4', |
| 1093 | 'textDecoration' => 'underline', |
| 1094 | ], |
| 1095 | ], |
| 1096 | ], |
| 1097 | ], |
| 1098 | ]; |
| 1099 | } |
| 1100 | |
| 1101 | private function getThumbnail() { |
| 1102 | return $this->template_image_url . '/thumbnail.20190411-1500.jpg'; |
| 1103 | } |
| 1104 | } |
| 1105 |