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