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
WideStoryLayout.php
780 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 WideStoryLayout { |
| 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/wide-story-layout'; |
| 17 | $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; |
| 18 | } |
| 19 | |
| 20 | public function get() { |
| 21 | return [ |
| 22 | 'name' => __("Wide Story Layout", 'mailpoet'), |
| 23 | 'categories' => json_encode(['notification', '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' => '#f0f0f0', |
| 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' => '50px', |
| 99 | ], |
| 100 | ], |
| 101 | ], |
| 102 | 1 => |
| 103 | [ |
| 104 | 'type' => 'image', |
| 105 | 'link' => '', |
| 106 | 'src' => $this->template_image_url . '/Wide-Logo.png', |
| 107 | 'alt' => 'Wide-Logo', |
| 108 | 'fullWidth' => false, |
| 109 | 'width' => '200px', |
| 110 | 'height' => '37px', |
| 111 | 'styles' => |
| 112 | [ |
| 113 | 'block' => |
| 114 | [ |
| 115 | 'textAlign' => 'center', |
| 116 | ], |
| 117 | ], |
| 118 | ], |
| 119 | 2 => |
| 120 | [ |
| 121 | 'type' => 'text', |
| 122 | 'text' => '<h3 style="text-align: center;"><span style="color: #808080;">Our Latest Posts</span></h3>', |
| 123 | ], |
| 124 | 3 => |
| 125 | [ |
| 126 | 'type' => 'spacer', |
| 127 | 'styles' => |
| 128 | [ |
| 129 | 'block' => |
| 130 | [ |
| 131 | 'backgroundColor' => 'transparent', |
| 132 | 'height' => '20px', |
| 133 | ], |
| 134 | ], |
| 135 | ], |
| 136 | ], |
| 137 | ], |
| 138 | ], |
| 139 | ], |
| 140 | 1 => |
| 141 | [ |
| 142 | 'type' => 'automatedLatestContentLayout', |
| 143 | 'withLayout' => true, |
| 144 | 'amount' => '3', |
| 145 | 'contentType' => 'post', |
| 146 | 'terms' => |
| 147 | [ |
| 148 | ], |
| 149 | 'inclusionType' => 'include', |
| 150 | 'displayType' => 'excerpt', |
| 151 | 'titleFormat' => 'h3', |
| 152 | 'titleAlignment' => 'left', |
| 153 | 'titleIsLink' => false, |
| 154 | 'imageFullWidth' => false, |
| 155 | 'featuredImagePosition' => 'alternate', |
| 156 | 'showAuthor' => 'no', |
| 157 | 'authorPrecededBy' => 'Author:', |
| 158 | 'showCategories' => 'no', |
| 159 | 'categoriesPrecededBy' => 'Categories:', |
| 160 | 'readMoreType' => 'button', |
| 161 | 'readMoreText' => 'Read more', |
| 162 | 'readMoreButton' => |
| 163 | [ |
| 164 | 'type' => 'button', |
| 165 | 'text' => 'Read The Post', |
| 166 | 'url' => '[postLink]', |
| 167 | 'styles' => |
| 168 | [ |
| 169 | 'block' => |
| 170 | [ |
| 171 | 'backgroundColor' => '#5ecd39', |
| 172 | 'borderColor' => '#000000', |
| 173 | 'borderWidth' => '0px', |
| 174 | 'borderRadius' => '5px', |
| 175 | 'borderStyle' => 'solid', |
| 176 | 'width' => '288px', |
| 177 | 'lineHeight' => '36px', |
| 178 | 'fontColor' => '#ffffff', |
| 179 | 'fontFamily' => 'Lucida', |
| 180 | 'fontSize' => '16px', |
| 181 | 'fontWeight' => 'normal', |
| 182 | 'textAlign' => 'center', |
| 183 | ], |
| 184 | ], |
| 185 | 'context' => 'automatedLatestContentLayout.readMoreButton', |
| 186 | ], |
| 187 | 'sortBy' => 'newest', |
| 188 | 'showDivider' => true, |
| 189 | 'divider' => |
| 190 | [ |
| 191 | 'type' => 'divider', |
| 192 | 'styles' => |
| 193 | [ |
| 194 | 'block' => |
| 195 | [ |
| 196 | 'backgroundColor' => '#f0f0f0', |
| 197 | 'padding' => '13px', |
| 198 | 'borderStyle' => 'solid', |
| 199 | 'borderWidth' => '30px', |
| 200 | 'borderColor' => '#f0f0f0', |
| 201 | ], |
| 202 | ], |
| 203 | 'context' => 'automatedLatestContentLayout.divider', |
| 204 | ], |
| 205 | 'backgroundColor' => '#ffffff', |
| 206 | 'backgroundColorAlternate' => '#eeeeee', |
| 207 | ], |
| 208 | 2 => |
| 209 | [ |
| 210 | 'type' => 'container', |
| 211 | 'orientation' => 'horizontal', |
| 212 | 'image' => |
| 213 | [ |
| 214 | 'src' => null, |
| 215 | 'display' => 'scale', |
| 216 | ], |
| 217 | 'styles' => |
| 218 | [ |
| 219 | 'block' => |
| 220 | [ |
| 221 | 'backgroundColor' => 'transparent', |
| 222 | ], |
| 223 | ], |
| 224 | 'blocks' => |
| 225 | [ |
| 226 | 0 => |
| 227 | [ |
| 228 | 'type' => 'container', |
| 229 | 'orientation' => 'vertical', |
| 230 | 'image' => |
| 231 | [ |
| 232 | 'src' => null, |
| 233 | 'display' => 'scale', |
| 234 | ], |
| 235 | 'styles' => |
| 236 | [ |
| 237 | 'block' => |
| 238 | [ |
| 239 | 'backgroundColor' => 'transparent', |
| 240 | ], |
| 241 | ], |
| 242 | 'blocks' => |
| 243 | [ |
| 244 | 0 => |
| 245 | [ |
| 246 | 'type' => 'image', |
| 247 | 'link' => '', |
| 248 | 'src' => $this->template_image_url . '/Wide-Footer.jpg', |
| 249 | 'alt' => 'Wide-Footer', |
| 250 | 'fullWidth' => true, |
| 251 | 'width' => '1280px', |
| 252 | 'height' => '721px', |
| 253 | 'styles' => |
| 254 | [ |
| 255 | 'block' => |
| 256 | [ |
| 257 | 'textAlign' => 'center', |
| 258 | ], |
| 259 | ], |
| 260 | ], |
| 261 | ], |
| 262 | ], |
| 263 | ], |
| 264 | ], |
| 265 | 3 => |
| 266 | [ |
| 267 | 'type' => 'container', |
| 268 | 'orientation' => 'horizontal', |
| 269 | 'image' => |
| 270 | [ |
| 271 | 'src' => null, |
| 272 | 'display' => 'scale', |
| 273 | ], |
| 274 | 'styles' => |
| 275 | [ |
| 276 | 'block' => |
| 277 | [ |
| 278 | 'backgroundColor' => '#5ecd39', |
| 279 | ], |
| 280 | ], |
| 281 | 'blocks' => |
| 282 | [ |
| 283 | 0 => |
| 284 | [ |
| 285 | 'type' => 'container', |
| 286 | 'orientation' => 'vertical', |
| 287 | 'image' => |
| 288 | [ |
| 289 | 'src' => null, |
| 290 | 'display' => 'scale', |
| 291 | ], |
| 292 | 'styles' => |
| 293 | [ |
| 294 | 'block' => |
| 295 | [ |
| 296 | 'backgroundColor' => 'transparent', |
| 297 | ], |
| 298 | ], |
| 299 | 'blocks' => |
| 300 | [ |
| 301 | 0 => |
| 302 | [ |
| 303 | 'type' => 'spacer', |
| 304 | 'styles' => |
| 305 | [ |
| 306 | 'block' => |
| 307 | [ |
| 308 | 'backgroundColor' => 'transparent', |
| 309 | 'height' => '21px', |
| 310 | ], |
| 311 | ], |
| 312 | ], |
| 313 | 1 => |
| 314 | [ |
| 315 | 'type' => 'social', |
| 316 | 'iconSet' => 'official-white', |
| 317 | 'icons' => |
| 318 | [ |
| 319 | 0 => |
| 320 | [ |
| 321 | 'type' => 'socialIcon', |
| 322 | 'iconType' => 'facebook', |
| 323 | 'link' => 'http://www.facebook.com', |
| 324 | 'image' => $this->social_icon_url . '/12-official-white/Facebook.png', |
| 325 | 'height' => '32px', |
| 326 | 'width' => '32px', |
| 327 | 'text' => 'Facebook', |
| 328 | ], |
| 329 | 1 => |
| 330 | [ |
| 331 | 'type' => 'socialIcon', |
| 332 | 'iconType' => 'twitter', |
| 333 | 'link' => 'http://www.twitter.com', |
| 334 | 'image' => $this->social_icon_url . '/12-official-white/X.png', |
| 335 | 'height' => '32px', |
| 336 | 'width' => '32px', |
| 337 | 'text' => 'Twitter', |
| 338 | ], |
| 339 | 2 => |
| 340 | [ |
| 341 | 'type' => 'socialIcon', |
| 342 | 'iconType' => 'website', |
| 343 | 'link' => '', |
| 344 | 'image' => $this->social_icon_url . '/12-official-white/Website.png', |
| 345 | 'height' => '32px', |
| 346 | 'width' => '32px', |
| 347 | 'text' => 'Website', |
| 348 | ], |
| 349 | 3 => |
| 350 | [ |
| 351 | 'type' => 'socialIcon', |
| 352 | 'iconType' => 'instagram', |
| 353 | 'link' => 'http://instagram.com', |
| 354 | 'image' => $this->social_icon_url . '/12-official-white/Instagram.png', |
| 355 | 'height' => '32px', |
| 356 | 'width' => '32px', |
| 357 | 'text' => 'Instagram', |
| 358 | ], |
| 359 | ], |
| 360 | ], |
| 361 | 2 => |
| 362 | [ |
| 363 | 'type' => 'footer', |
| 364 | 'text' => '<p><span style="color: #ffffff;"><a href="[link:subscription_unsubscribe_url]" style="color: #ffffff;">' . __("Unsubscribe", 'mailpoet') . '</a> | <a href="[link:subscription_manage_url]" style="color: #ffffff;">' . __("Manage your subscription", 'mailpoet') . '</a></span><br /><span style="color: #ffffff;">' . __("Add your postal address here!", 'mailpoet') . '</span></p>', |
| 365 | 'styles' => |
| 366 | [ |
| 367 | 'block' => |
| 368 | [ |
| 369 | 'backgroundColor' => 'transparent', |
| 370 | ], |
| 371 | 'text' => |
| 372 | [ |
| 373 | 'fontColor' => '#222222', |
| 374 | 'fontFamily' => 'Arial', |
| 375 | 'fontSize' => '12px', |
| 376 | 'textAlign' => 'center', |
| 377 | ], |
| 378 | 'link' => |
| 379 | [ |
| 380 | 'fontColor' => '#6cb7d4', |
| 381 | 'textDecoration' => 'none', |
| 382 | ], |
| 383 | ], |
| 384 | ], |
| 385 | 3 => |
| 386 | [ |
| 387 | 'type' => 'spacer', |
| 388 | 'styles' => |
| 389 | [ |
| 390 | 'block' => |
| 391 | [ |
| 392 | 'backgroundColor' => 'transparent', |
| 393 | 'height' => '40px', |
| 394 | ], |
| 395 | ], |
| 396 | ], |
| 397 | ], |
| 398 | ], |
| 399 | ], |
| 400 | ], |
| 401 | ], |
| 402 | ], |
| 403 | 'globalStyles' => |
| 404 | [ |
| 405 | 'text' => |
| 406 | [ |
| 407 | 'fontColor' => '#000000', |
| 408 | 'fontFamily' => 'Arial', |
| 409 | 'fontSize' => '15px', |
| 410 | ], |
| 411 | 'h1' => |
| 412 | [ |
| 413 | 'fontColor' => '#111111', |
| 414 | 'fontFamily' => 'Lucida', |
| 415 | 'fontSize' => '30px', |
| 416 | ], |
| 417 | 'h2' => |
| 418 | [ |
| 419 | 'fontColor' => '#222222', |
| 420 | 'fontFamily' => 'Lucida', |
| 421 | 'fontSize' => '24px', |
| 422 | ], |
| 423 | 'h3' => |
| 424 | [ |
| 425 | 'fontColor' => '#333333', |
| 426 | 'fontFamily' => 'Lucida', |
| 427 | 'fontSize' => '18px', |
| 428 | ], |
| 429 | 'link' => |
| 430 | [ |
| 431 | 'fontColor' => '#5ecd39', |
| 432 | 'textDecoration' => 'underline', |
| 433 | ], |
| 434 | 'wrapper' => |
| 435 | [ |
| 436 | 'backgroundColor' => '#ffffff', |
| 437 | ], |
| 438 | 'body' => |
| 439 | [ |
| 440 | 'backgroundColor' => '#f0f0f0', |
| 441 | ], |
| 442 | ], |
| 443 | 'blockDefaults' => |
| 444 | [ |
| 445 | 'automatedLatestContent' => |
| 446 | [ |
| 447 | 'amount' => '5', |
| 448 | 'withLayout' => false, |
| 449 | 'contentType' => 'post', |
| 450 | 'inclusionType' => 'include', |
| 451 | 'displayType' => 'excerpt', |
| 452 | 'titleFormat' => 'h1', |
| 453 | 'titleAlignment' => 'left', |
| 454 | 'titleIsLink' => false, |
| 455 | 'imageFullWidth' => false, |
| 456 | 'featuredImagePosition' => 'belowTitle', |
| 457 | 'showAuthor' => 'no', |
| 458 | 'authorPrecededBy' => 'Author:', |
| 459 | 'showCategories' => 'no', |
| 460 | 'categoriesPrecededBy' => 'Categories:', |
| 461 | 'readMoreType' => 'button', |
| 462 | 'readMoreText' => 'Read more', |
| 463 | 'readMoreButton' => |
| 464 | [ |
| 465 | 'text' => 'Read more', |
| 466 | 'url' => '[postLink]', |
| 467 | 'context' => 'automatedLatestContent.readMoreButton', |
| 468 | 'styles' => |
| 469 | [ |
| 470 | 'block' => |
| 471 | [ |
| 472 | 'backgroundColor' => '#2ea1cd', |
| 473 | 'borderColor' => '#0074a2', |
| 474 | 'borderWidth' => '1px', |
| 475 | 'borderRadius' => '5px', |
| 476 | 'borderStyle' => 'solid', |
| 477 | 'width' => '180px', |
| 478 | 'lineHeight' => '40px', |
| 479 | 'fontColor' => '#ffffff', |
| 480 | 'fontFamily' => 'Verdana', |
| 481 | 'fontSize' => '18px', |
| 482 | 'fontWeight' => 'normal', |
| 483 | 'textAlign' => 'center', |
| 484 | ], |
| 485 | ], |
| 486 | ], |
| 487 | 'sortBy' => 'newest', |
| 488 | 'showDivider' => true, |
| 489 | 'divider' => |
| 490 | [ |
| 491 | 'context' => 'automatedLatestContent.divider', |
| 492 | 'styles' => |
| 493 | [ |
| 494 | 'block' => |
| 495 | [ |
| 496 | 'backgroundColor' => 'transparent', |
| 497 | 'padding' => '13px', |
| 498 | 'borderStyle' => 'solid', |
| 499 | 'borderWidth' => '3px', |
| 500 | 'borderColor' => '#aaaaaa', |
| 501 | ], |
| 502 | ], |
| 503 | ], |
| 504 | 'backgroundColor' => '#ffffff', |
| 505 | 'backgroundColorAlternate' => '#eeeeee', |
| 506 | ], |
| 507 | 'automatedLatestContentLayout' => |
| 508 | [ |
| 509 | 'amount' => '3', |
| 510 | 'withLayout' => true, |
| 511 | 'contentType' => 'post', |
| 512 | 'inclusionType' => 'include', |
| 513 | 'displayType' => 'excerpt', |
| 514 | 'titleFormat' => 'h3', |
| 515 | 'titleAlignment' => 'left', |
| 516 | 'titleIsLink' => false, |
| 517 | 'imageFullWidth' => false, |
| 518 | 'featuredImagePosition' => 'alternate', |
| 519 | 'showAuthor' => 'no', |
| 520 | 'authorPrecededBy' => 'Author:', |
| 521 | 'showCategories' => 'no', |
| 522 | 'categoriesPrecededBy' => 'Categories:', |
| 523 | 'readMoreType' => 'button', |
| 524 | 'readMoreText' => 'Read more', |
| 525 | 'readMoreButton' => |
| 526 | [ |
| 527 | 'text' => 'Read The Post', |
| 528 | 'url' => '[postLink]', |
| 529 | 'context' => 'automatedLatestContentLayout.readMoreButton', |
| 530 | 'styles' => |
| 531 | [ |
| 532 | 'block' => |
| 533 | [ |
| 534 | 'backgroundColor' => '#5ecd39', |
| 535 | 'borderColor' => '#000000', |
| 536 | 'borderWidth' => '0px', |
| 537 | 'borderRadius' => '5px', |
| 538 | 'borderStyle' => 'solid', |
| 539 | 'width' => '288px', |
| 540 | 'lineHeight' => '36px', |
| 541 | 'fontColor' => '#ffffff', |
| 542 | 'fontFamily' => 'Lucida', |
| 543 | 'fontSize' => '16px', |
| 544 | 'fontWeight' => 'normal', |
| 545 | 'textAlign' => 'center', |
| 546 | ], |
| 547 | ], |
| 548 | 'type' => 'button', |
| 549 | ], |
| 550 | 'sortBy' => 'newest', |
| 551 | 'showDivider' => true, |
| 552 | 'divider' => |
| 553 | [ |
| 554 | 'context' => 'automatedLatestContentLayout.divider', |
| 555 | 'styles' => |
| 556 | [ |
| 557 | 'block' => |
| 558 | [ |
| 559 | 'backgroundColor' => '#f0f0f0', |
| 560 | 'padding' => '13px', |
| 561 | 'borderStyle' => 'solid', |
| 562 | 'borderWidth' => '30px', |
| 563 | 'borderColor' => '#f0f0f0', |
| 564 | ], |
| 565 | ], |
| 566 | 'type' => 'divider', |
| 567 | ], |
| 568 | 'backgroundColor' => '#ffffff', |
| 569 | 'backgroundColorAlternate' => '#eeeeee', |
| 570 | 'type' => 'automatedLatestContentLayout', |
| 571 | 'terms' => |
| 572 | [ |
| 573 | ], |
| 574 | ], |
| 575 | 'button' => |
| 576 | [ |
| 577 | 'text' => 'Read The Post', |
| 578 | 'url' => '[postLink]', |
| 579 | 'styles' => |
| 580 | [ |
| 581 | 'block' => |
| 582 | [ |
| 583 | 'backgroundColor' => '#5ecd39', |
| 584 | 'borderColor' => '#000000', |
| 585 | 'borderWidth' => '0px', |
| 586 | 'borderRadius' => '5px', |
| 587 | 'borderStyle' => 'solid', |
| 588 | 'width' => '288px', |
| 589 | 'lineHeight' => '36px', |
| 590 | 'fontColor' => '#ffffff', |
| 591 | 'fontFamily' => 'Lucida', |
| 592 | 'fontSize' => '16px', |
| 593 | 'fontWeight' => 'normal', |
| 594 | 'textAlign' => 'center', |
| 595 | ], |
| 596 | ], |
| 597 | 'type' => 'button', |
| 598 | ], |
| 599 | 'container' => |
| 600 | [ |
| 601 | 'image' => |
| 602 | [ |
| 603 | 'src' => null, |
| 604 | 'display' => 'scale', |
| 605 | ], |
| 606 | 'styles' => |
| 607 | [ |
| 608 | 'block' => |
| 609 | [ |
| 610 | 'backgroundColor' => 'transparent', |
| 611 | ], |
| 612 | ], |
| 613 | ], |
| 614 | 'divider' => |
| 615 | [ |
| 616 | 'styles' => |
| 617 | [ |
| 618 | 'block' => |
| 619 | [ |
| 620 | 'backgroundColor' => 'transparent', |
| 621 | 'padding' => '13px', |
| 622 | 'borderStyle' => 'solid', |
| 623 | 'borderWidth' => '3px', |
| 624 | 'borderColor' => '#aaaaaa', |
| 625 | ], |
| 626 | ], |
| 627 | ], |
| 628 | 'footer' => |
| 629 | [ |
| 630 | '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>', |
| 631 | 'styles' => |
| 632 | [ |
| 633 | 'block' => |
| 634 | [ |
| 635 | 'backgroundColor' => 'transparent', |
| 636 | ], |
| 637 | 'text' => |
| 638 | [ |
| 639 | 'fontColor' => '#222222', |
| 640 | 'fontFamily' => 'Arial', |
| 641 | 'fontSize' => '12px', |
| 642 | 'textAlign' => 'center', |
| 643 | ], |
| 644 | 'link' => |
| 645 | [ |
| 646 | 'fontColor' => '#6cb7d4', |
| 647 | 'textDecoration' => 'none', |
| 648 | ], |
| 649 | ], |
| 650 | ], |
| 651 | 'posts' => |
| 652 | [ |
| 653 | 'amount' => '10', |
| 654 | 'withLayout' => true, |
| 655 | 'contentType' => 'post', |
| 656 | 'postStatus' => 'publish', |
| 657 | 'inclusionType' => 'include', |
| 658 | 'displayType' => 'excerpt', |
| 659 | 'titleFormat' => 'h1', |
| 660 | 'titleAlignment' => 'left', |
| 661 | 'titleIsLink' => false, |
| 662 | 'imageFullWidth' => false, |
| 663 | 'featuredImagePosition' => 'alternate', |
| 664 | 'showAuthor' => 'no', |
| 665 | 'authorPrecededBy' => 'Author:', |
| 666 | 'showCategories' => 'no', |
| 667 | 'categoriesPrecededBy' => 'Categories:', |
| 668 | 'readMoreType' => 'link', |
| 669 | 'readMoreText' => 'Read more', |
| 670 | 'readMoreButton' => |
| 671 | [ |
| 672 | 'text' => 'Read more', |
| 673 | 'url' => '[postLink]', |
| 674 | 'context' => 'posts.readMoreButton', |
| 675 | 'styles' => |
| 676 | [ |
| 677 | 'block' => |
| 678 | [ |
| 679 | 'backgroundColor' => '#2ea1cd', |
| 680 | 'borderColor' => '#0074a2', |
| 681 | 'borderWidth' => '1px', |
| 682 | 'borderRadius' => '5px', |
| 683 | 'borderStyle' => 'solid', |
| 684 | 'width' => '180px', |
| 685 | 'lineHeight' => '40px', |
| 686 | 'fontColor' => '#ffffff', |
| 687 | 'fontFamily' => 'Verdana', |
| 688 | 'fontSize' => '18px', |
| 689 | 'fontWeight' => 'normal', |
| 690 | 'textAlign' => 'center', |
| 691 | ], |
| 692 | ], |
| 693 | ], |
| 694 | 'sortBy' => 'newest', |
| 695 | 'showDivider' => true, |
| 696 | 'divider' => |
| 697 | [ |
| 698 | 'context' => 'posts.divider', |
| 699 | 'styles' => |
| 700 | [ |
| 701 | 'block' => |
| 702 | [ |
| 703 | 'backgroundColor' => 'transparent', |
| 704 | 'padding' => '13px', |
| 705 | 'borderStyle' => 'solid', |
| 706 | 'borderWidth' => '3px', |
| 707 | 'borderColor' => '#aaaaaa', |
| 708 | ], |
| 709 | ], |
| 710 | ], |
| 711 | 'backgroundColor' => '#ffffff', |
| 712 | 'backgroundColorAlternate' => '#eeeeee', |
| 713 | ], |
| 714 | 'social' => |
| 715 | [ |
| 716 | 'iconSet' => 'official', |
| 717 | 'icons' => |
| 718 | [ |
| 719 | 0 => |
| 720 | [ |
| 721 | 'type' => 'socialIcon', |
| 722 | 'iconType' => 'facebook', |
| 723 | 'link' => 'http://www.facebook.com', |
| 724 | 'image' => $this->social_icon_url . '/11-official/Facebook.png', |
| 725 | 'height' => '32px', |
| 726 | 'width' => '32px', |
| 727 | 'text' => 'Facebook', |
| 728 | ], |
| 729 | 1 => |
| 730 | [ |
| 731 | 'type' => 'socialIcon', |
| 732 | 'iconType' => 'twitter', |
| 733 | 'link' => 'http://www.twitter.com', |
| 734 | 'image' => $this->social_icon_url . '/11-official/X.png', |
| 735 | 'height' => '32px', |
| 736 | 'width' => '32px', |
| 737 | 'text' => 'Twitter', |
| 738 | ], |
| 739 | ], |
| 740 | ], |
| 741 | 'spacer' => |
| 742 | [ |
| 743 | 'styles' => |
| 744 | [ |
| 745 | 'block' => |
| 746 | [ |
| 747 | 'backgroundColor' => '#ffffff', |
| 748 | 'height' => '40px', |
| 749 | ], |
| 750 | ], |
| 751 | 'type' => 'spacer', |
| 752 | ], |
| 753 | 'header' => |
| 754 | [ |
| 755 | 'text' => '<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a>', |
| 756 | 'styles' => |
| 757 | [ |
| 758 | 'block' => |
| 759 | [ |
| 760 | 'backgroundColor' => 'transparent', |
| 761 | ], |
| 762 | 'text' => |
| 763 | [ |
| 764 | 'fontColor' => '#222222', |
| 765 | 'fontFamily' => 'Arial', |
| 766 | 'fontSize' => '12px', |
| 767 | 'textAlign' => 'center', |
| 768 | ], |
| 769 | 'link' => |
| 770 | [ |
| 771 | 'fontColor' => '#6cb7d4', |
| 772 | 'textDecoration' => 'underline', |
| 773 | ], |
| 774 | ], |
| 775 | ], |
| 776 | ], |
| 777 | ]; |
| 778 | } |
| 779 | } |
| 780 |