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
FestivalEvent.php
529 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 FestivalEvent { |
| 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/festival_event'; |
| 17 | $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; |
| 18 | } |
| 19 | |
| 20 | public function get() { |
| 21 | return [ |
| 22 | 'name' => __("Festival Event", '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 | 'type' => 'container', |
| 34 | 'orientation' => 'vertical', |
| 35 | 'styles' => [ |
| 36 | 'block' => [ |
| 37 | 'backgroundColor' => 'transparent', |
| 38 | ], |
| 39 | ], |
| 40 | 'blocks' => [ |
| 41 | 0 => [ |
| 42 | 'type' => 'container', |
| 43 | 'orientation' => 'horizontal', |
| 44 | 'styles' => [ |
| 45 | 'block' => [ |
| 46 | 'backgroundColor' => 'transparent', |
| 47 | ], |
| 48 | ], |
| 49 | 'blocks' => [ |
| 50 | 0 => [ |
| 51 | 'type' => 'container', |
| 52 | 'orientation' => 'vertical', |
| 53 | 'styles' => [ |
| 54 | 'block' => [ |
| 55 | 'backgroundColor' => 'transparent', |
| 56 | ], |
| 57 | ], |
| 58 | 'blocks' => [ |
| 59 | 0 => [ |
| 60 | 'type' => 'spacer', |
| 61 | 'styles' => [ |
| 62 | 'block' => [ |
| 63 | 'backgroundColor' => '#0a5388', |
| 64 | 'height' => '20px', |
| 65 | ], |
| 66 | ], |
| 67 | ], |
| 68 | 1 => [ |
| 69 | 'type' => 'image', |
| 70 | 'link' => '', |
| 71 | 'src' => $this->template_image_url . '/festival-header.jpg', |
| 72 | 'alt' => 'festival-header', |
| 73 | 'fullWidth' => true, |
| 74 | 'width' => '1320px', |
| 75 | 'height' => '879px', |
| 76 | 'styles' => [ |
| 77 | 'block' => [ |
| 78 | 'textAlign' => 'center', |
| 79 | ], |
| 80 | ], |
| 81 | ], |
| 82 | 2 => [ |
| 83 | 'type' => 'spacer', |
| 84 | 'styles' => [ |
| 85 | 'block' => [ |
| 86 | 'backgroundColor' => 'transparent', |
| 87 | 'height' => '36px', |
| 88 | ], |
| 89 | ], |
| 90 | ], |
| 91 | 3 => [ |
| 92 | 'type' => 'text', |
| 93 | 'text' => '<h1 style="text-align: center;">Pack your glowsticks, <br />Boomfest is back! </h1> |
| 94 | <p></p> |
| 95 | <p style="text-align: center;">Duis tempor nisl in risus hendrerit venenatis. <br />Curabitur ornare venenatis nisl non ullamcorper. </p>', |
| 96 | ], |
| 97 | 4 => [ |
| 98 | 'type' => 'button', |
| 99 | 'text' => 'Duis id tincidunt', |
| 100 | 'url' => '', |
| 101 | 'styles' => [ |
| 102 | 'block' => [ |
| 103 | 'backgroundColor' => '#0a5388', |
| 104 | 'borderColor' => '#0074a2', |
| 105 | 'borderWidth' => '0px', |
| 106 | 'borderRadius' => '5px', |
| 107 | 'borderStyle' => 'solid', |
| 108 | 'width' => '260px', |
| 109 | 'lineHeight' => '50px', |
| 110 | 'fontColor' => '#ffffff', |
| 111 | 'fontFamily' => 'Courier New', |
| 112 | 'fontSize' => '18px', |
| 113 | 'fontWeight' => 'bold', |
| 114 | 'textAlign' => 'center', |
| 115 | ], |
| 116 | ], |
| 117 | ], |
| 118 | 5 => [ |
| 119 | 'type' => 'text', |
| 120 | 'text' => '<p style="text-align: center;">Maecenas scelerisque nisi sit amet metus efficitur dapibus! <br />Ut eros risus, facilisis ac aliquet vel, posuere ut urna.</p>', |
| 121 | ], |
| 122 | 6 => [ |
| 123 | 'type' => 'social', |
| 124 | 'iconSet' => 'official-white', |
| 125 | 'icons' => [ |
| 126 | 0 => [ |
| 127 | 'type' => 'socialIcon', |
| 128 | 'iconType' => 'facebook', |
| 129 | 'link' => 'http://www.facebook.com', |
| 130 | 'image' => $this->social_icon_url . '/12-official-white/Facebook.png', |
| 131 | 'height' => '32px', |
| 132 | 'width' => '32px', |
| 133 | 'text' => 'Facebook', |
| 134 | ], |
| 135 | 1 => [ |
| 136 | 'type' => 'socialIcon', |
| 137 | 'iconType' => 'twitter', |
| 138 | 'link' => 'http://www.twitter.com', |
| 139 | 'image' => $this->social_icon_url . '/12-official-white/X.png', |
| 140 | 'height' => '32px', |
| 141 | 'width' => '32px', |
| 142 | 'text' => 'Twitter', |
| 143 | ], |
| 144 | 2 => [ |
| 145 | 'type' => 'socialIcon', |
| 146 | 'iconType' => 'instagram', |
| 147 | 'link' => 'http://instagram.com', |
| 148 | 'image' => $this->social_icon_url . '/12-official-white/Instagram.png', |
| 149 | 'height' => '32px', |
| 150 | 'width' => '32px', |
| 151 | 'text' => 'Instagram', |
| 152 | ], |
| 153 | ], |
| 154 | ], |
| 155 | ], |
| 156 | ], |
| 157 | ], |
| 158 | ], |
| 159 | 1 => [ |
| 160 | 'type' => 'container', |
| 161 | 'orientation' => 'horizontal', |
| 162 | 'styles' => [ |
| 163 | 'block' => [ |
| 164 | 'backgroundColor' => 'transparent', |
| 165 | ], |
| 166 | ], |
| 167 | 'blocks' => [ |
| 168 | 0 => [ |
| 169 | 'type' => 'container', |
| 170 | 'orientation' => 'vertical', |
| 171 | 'styles' => [ |
| 172 | 'block' => [ |
| 173 | 'backgroundColor' => 'transparent', |
| 174 | ], |
| 175 | ], |
| 176 | 'blocks' => [ |
| 177 | 0 => [ |
| 178 | 'type' => 'divider', |
| 179 | 'styles' => [ |
| 180 | 'block' => [ |
| 181 | 'backgroundColor' => 'transparent', |
| 182 | 'padding' => '13px', |
| 183 | 'borderStyle' => 'dashed', |
| 184 | 'borderWidth' => '2px', |
| 185 | 'borderColor' => '#ffffff', |
| 186 | ], |
| 187 | ], |
| 188 | ], |
| 189 | 1 => [ |
| 190 | 'type' => 'spacer', |
| 191 | 'styles' => [ |
| 192 | 'block' => [ |
| 193 | 'backgroundColor' => 'transparent', |
| 194 | 'height' => '28px', |
| 195 | ], |
| 196 | ], |
| 197 | ], |
| 198 | 2 => [ |
| 199 | 'type' => 'text', |
| 200 | 'text' => '<h2 style="text-align: center;">Confirmed Lineup</h2>', |
| 201 | ], |
| 202 | ], |
| 203 | ], |
| 204 | ], |
| 205 | ], |
| 206 | 2 => [ |
| 207 | 'type' => 'container', |
| 208 | 'orientation' => 'horizontal', |
| 209 | 'styles' => [ |
| 210 | 'block' => [ |
| 211 | 'backgroundColor' => 'transparent', |
| 212 | ], |
| 213 | ], |
| 214 | 'blocks' => [ |
| 215 | 0 => [ |
| 216 | 'type' => 'container', |
| 217 | 'orientation' => 'vertical', |
| 218 | 'styles' => [ |
| 219 | 'block' => [ |
| 220 | 'backgroundColor' => 'transparent', |
| 221 | ], |
| 222 | ], |
| 223 | 'blocks' => [ |
| 224 | 0 => [ |
| 225 | 'type' => 'text', |
| 226 | 'text' => '<h3><em><span style="color: #bae2ff;">Main Stage</span></em></h3><p>Quisque libero<br />Nulla convallis<br />Vestibulum Ornare<br />Consectetur Odio</p>', |
| 227 | ], |
| 228 | ], |
| 229 | ], |
| 230 | 1 => [ |
| 231 | 'type' => 'container', |
| 232 | 'orientation' => 'vertical', |
| 233 | 'styles' => [ |
| 234 | 'block' => [ |
| 235 | 'backgroundColor' => 'transparent', |
| 236 | ], |
| 237 | ], |
| 238 | 'blocks' => [ |
| 239 | 0 => [ |
| 240 | 'type' => 'text', |
| 241 | 'text' => '<h3><em><span style="color: #bae2ff;">New Acts Stage</span></em></h3><p>Nulla interdum<br />Massa nec<br />Pharetra<br />Varius</p>', |
| 242 | ], |
| 243 | ], |
| 244 | ], |
| 245 | 2 => [ |
| 246 | 'type' => 'container', |
| 247 | 'orientation' => 'vertical', |
| 248 | 'styles' => [ |
| 249 | 'block' => [ |
| 250 | 'backgroundColor' => 'transparent', |
| 251 | ], |
| 252 | ], |
| 253 | 'blocks' => [ |
| 254 | 0 => [ |
| 255 | 'type' => 'text', |
| 256 | 'text' => '<h3><em><span style="color: #bae2ff;">Comedy Stage</span></em></h3><p>In pulvinar<br />Risus sed<br />Condimentum<br />Feugiat</p>', |
| 257 | ], |
| 258 | ], |
| 259 | ], |
| 260 | ], |
| 261 | ], |
| 262 | 3 => [ |
| 263 | 'type' => 'container', |
| 264 | 'orientation' => 'horizontal', |
| 265 | 'styles' => [ |
| 266 | 'block' => [ |
| 267 | 'backgroundColor' => 'transparent', |
| 268 | ], |
| 269 | ], |
| 270 | 'blocks' => [ |
| 271 | 0 => [ |
| 272 | 'type' => 'container', |
| 273 | 'orientation' => 'vertical', |
| 274 | 'styles' => [ |
| 275 | 'block' => [ |
| 276 | 'backgroundColor' => 'transparent', |
| 277 | ], |
| 278 | ], |
| 279 | 'blocks' => [ |
| 280 | 0 => [ |
| 281 | 'type' => 'spacer', |
| 282 | 'styles' => [ |
| 283 | 'block' => [ |
| 284 | 'backgroundColor' => 'transparent', |
| 285 | 'height' => '20px', |
| 286 | ], |
| 287 | ], |
| 288 | ], |
| 289 | 1 => [ |
| 290 | 'type' => 'divider', |
| 291 | 'styles' => [ |
| 292 | 'block' => [ |
| 293 | 'backgroundColor' => 'transparent', |
| 294 | 'padding' => '13px', |
| 295 | 'borderStyle' => 'dashed', |
| 296 | 'borderWidth' => '2px', |
| 297 | 'borderColor' => '#ffffff', |
| 298 | ], |
| 299 | ], |
| 300 | ], |
| 301 | 2 => [ |
| 302 | 'type' => 'spacer', |
| 303 | 'styles' => [ |
| 304 | 'block' => [ |
| 305 | 'backgroundColor' => 'transparent', |
| 306 | 'height' => '20px', |
| 307 | ], |
| 308 | ], |
| 309 | ], |
| 310 | 3 => [ |
| 311 | 'type' => 'text', |
| 312 | 'text' => '<h2 style="text-align: center;">New to the festival this year</h2>', |
| 313 | ], |
| 314 | 4 => [ |
| 315 | 'type' => 'divider', |
| 316 | 'styles' => [ |
| 317 | 'block' => [ |
| 318 | 'backgroundColor' => 'transparent', |
| 319 | 'padding' => '9px', |
| 320 | 'borderStyle' => 'dashed', |
| 321 | 'borderWidth' => '2px', |
| 322 | 'borderColor' => '#ffffff', |
| 323 | ], |
| 324 | ], |
| 325 | ], |
| 326 | 5 => [ |
| 327 | 'type' => 'spacer', |
| 328 | 'styles' => [ |
| 329 | 'block' => [ |
| 330 | 'backgroundColor' => 'transparent', |
| 331 | 'height' => '20px', |
| 332 | ], |
| 333 | ], |
| 334 | ], |
| 335 | ], |
| 336 | ], |
| 337 | ], |
| 338 | ], |
| 339 | 4 => [ |
| 340 | 'type' => 'container', |
| 341 | 'orientation' => 'horizontal', |
| 342 | 'styles' => [ |
| 343 | 'block' => [ |
| 344 | 'backgroundColor' => 'transparent', |
| 345 | ], |
| 346 | ], |
| 347 | 'blocks' => [ |
| 348 | 0 => [ |
| 349 | 'type' => 'container', |
| 350 | 'orientation' => 'vertical', |
| 351 | 'styles' => [ |
| 352 | 'block' => [ |
| 353 | 'backgroundColor' => 'transparent', |
| 354 | ], |
| 355 | ], |
| 356 | 'blocks' => [ |
| 357 | 0 => [ |
| 358 | 'type' => 'image', |
| 359 | 'link' => '', |
| 360 | 'src' => $this->template_image_url . '/street-food.jpg', |
| 361 | 'alt' => 'street food', |
| 362 | 'fullWidth' => true, |
| 363 | 'width' => '499px', |
| 364 | 'height' => '750px', |
| 365 | 'styles' => [ |
| 366 | 'block' => [ |
| 367 | 'textAlign' => 'center', |
| 368 | ], |
| 369 | ], |
| 370 | ], |
| 371 | 1 => [ |
| 372 | 'type' => 'spacer', |
| 373 | 'styles' => [ |
| 374 | 'block' => [ |
| 375 | 'backgroundColor' => 'transparent', |
| 376 | 'height' => '20px', |
| 377 | ], |
| 378 | ], |
| 379 | ], |
| 380 | 2 => [ |
| 381 | 'type' => 'text', |
| 382 | 'text' => '<h3>Award-winning Street Food</h3><p>Nullam pharetra lectus id porta pulvinar. Proin ac massa nibh. Nullam ac mi pharetra, lobortis nunc et, placerat leo. Mauris eu feugiat elit. Pellentesque eget turpis eu diam vehicula convallis non <a href="https://www.mailpoet.com">luctus enim.</a></p>', |
| 383 | ], |
| 384 | ], |
| 385 | ], |
| 386 | 1 => [ |
| 387 | 'type' => 'container', |
| 388 | 'orientation' => 'vertical', |
| 389 | 'styles' => [ |
| 390 | 'block' => [ |
| 391 | 'backgroundColor' => 'transparent', |
| 392 | ], |
| 393 | ], |
| 394 | 'blocks' => [ |
| 395 | 0 => [ |
| 396 | 'type' => 'image', |
| 397 | 'link' => '', |
| 398 | 'src' => $this->template_image_url . '/happy.jpeg', |
| 399 | 'alt' => 'happy', |
| 400 | 'fullWidth' => true, |
| 401 | 'width' => '499px', |
| 402 | 'height' => '750px', |
| 403 | 'styles' => [ |
| 404 | 'block' => [ |
| 405 | 'textAlign' => 'center', |
| 406 | ], |
| 407 | ], |
| 408 | ], |
| 409 | 1 => [ |
| 410 | 'type' => 'spacer', |
| 411 | 'styles' => [ |
| 412 | 'block' => [ |
| 413 | 'backgroundColor' => 'transparent', |
| 414 | 'height' => '20px', |
| 415 | ], |
| 416 | ], |
| 417 | ], |
| 418 | 2 => [ |
| 419 | 'type' => 'text', |
| 420 | 'text' => '<h3>Prepare to dazzle with our Glitter Run</h3><p>Donec quis orci at metus finibus tincidunt. Sed vel urna sed urna maximus congue eu et turpis. Nulla tempus hendrerit justo eget molestie. Vivamus quis molestie lacus. Donec commodo odio a nisi feugiat, vitae egestas mi.</p>', |
| 421 | ], |
| 422 | ], |
| 423 | ], |
| 424 | ], |
| 425 | ], |
| 426 | 5 => [ |
| 427 | 'type' => 'container', |
| 428 | 'orientation' => 'horizontal', |
| 429 | 'styles' => [ |
| 430 | 'block' => [ |
| 431 | 'backgroundColor' => 'transparent', |
| 432 | ], |
| 433 | ], |
| 434 | 'blocks' => [ |
| 435 | 0 => [ |
| 436 | 'type' => 'container', |
| 437 | 'orientation' => 'vertical', |
| 438 | 'styles' => [ |
| 439 | 'block' => [ |
| 440 | 'backgroundColor' => 'transparent', |
| 441 | ], |
| 442 | ], |
| 443 | 'blocks' => [ |
| 444 | 0 => [ |
| 445 | 'type' => 'spacer', |
| 446 | 'styles' => [ |
| 447 | 'block' => [ |
| 448 | 'backgroundColor' => 'transparent', |
| 449 | 'height' => '20px', |
| 450 | ], |
| 451 | ], |
| 452 | ], |
| 453 | 1 => [ |
| 454 | 'type' => 'divider', |
| 455 | 'styles' => [ |
| 456 | 'block' => [ |
| 457 | 'backgroundColor' => 'transparent', |
| 458 | 'padding' => '13px', |
| 459 | 'borderStyle' => 'dashed', |
| 460 | 'borderWidth' => '2px', |
| 461 | 'borderColor' => '#ffffff', |
| 462 | ], |
| 463 | ], |
| 464 | ], |
| 465 | 2 => [ |
| 466 | 'type' => 'footer', |
| 467 | 'text' => '<p>Mauris tristique ultricies ullamcorper. <br />Don\'t want to hear from us? <a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a></p><p></p><p>Add your postal address here. </p>', |
| 468 | 'styles' => [ |
| 469 | 'block' => [ |
| 470 | 'backgroundColor' => 'transparent', |
| 471 | ], |
| 472 | 'text' => [ |
| 473 | 'fontColor' => '#ffffff', |
| 474 | 'fontFamily' => 'Courier New', |
| 475 | 'fontSize' => '13px', |
| 476 | 'textAlign' => 'center', |
| 477 | ], |
| 478 | 'link' => [ |
| 479 | 'fontColor' => '#ffffff', |
| 480 | 'textDecoration' => 'underline', |
| 481 | ], |
| 482 | ], |
| 483 | ], |
| 484 | ], |
| 485 | ], |
| 486 | ], |
| 487 | ], |
| 488 | ], |
| 489 | ], |
| 490 | 'globalStyles' => [ |
| 491 | 'text' => [ |
| 492 | 'fontColor' => '#ffffff', |
| 493 | 'fontFamily' => 'Courier New', |
| 494 | 'fontSize' => '16px', |
| 495 | ], |
| 496 | 'h1' => [ |
| 497 | 'fontColor' => '#ffffff', |
| 498 | 'fontFamily' => 'Georgia', |
| 499 | 'fontSize' => '36px', |
| 500 | ], |
| 501 | 'h2' => [ |
| 502 | 'fontColor' => '#ffffff', |
| 503 | 'fontFamily' => 'Georgia', |
| 504 | 'fontSize' => '26px', |
| 505 | ], |
| 506 | 'h3' => [ |
| 507 | 'fontColor' => '#ffffff', |
| 508 | 'fontFamily' => 'Georgia', |
| 509 | 'fontSize' => '24px', |
| 510 | ], |
| 511 | 'link' => [ |
| 512 | 'fontColor' => '#ffffff', |
| 513 | 'textDecoration' => 'underline', |
| 514 | ], |
| 515 | 'wrapper' => [ |
| 516 | 'backgroundColor' => '#8d062b', |
| 517 | ], |
| 518 | 'body' => [ |
| 519 | 'backgroundColor' => '#0a5388', |
| 520 | ], |
| 521 | ], |
| 522 | ]; |
| 523 | } |
| 524 | |
| 525 | private function getThumbnail() { |
| 526 | return $this->template_image_url . '/thumbnail.20190411-1500.jpg'; |
| 527 | } |
| 528 | } |
| 529 |