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
GiftWelcome.php
352 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 GiftWelcome { |
| 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/gift'; |
| 17 | $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; |
| 18 | } |
| 19 | |
| 20 | public function get() { |
| 21 | return [ |
| 22 | 'name' => __("Gift Welcome", '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 | 'styles' => |
| 41 | [ |
| 42 | 'block' => |
| 43 | [ |
| 44 | 'backgroundColor' => 'transparent', |
| 45 | ], |
| 46 | ], |
| 47 | 'blocks' => |
| 48 | [ |
| 49 | 0 => |
| 50 | [ |
| 51 | 'type' => 'container', |
| 52 | 'orientation' => 'horizontal', |
| 53 | 'styles' => |
| 54 | [ |
| 55 | 'block' => |
| 56 | [ |
| 57 | 'backgroundColor' => '#ffffff', |
| 58 | ], |
| 59 | ], |
| 60 | 'blocks' => |
| 61 | [ |
| 62 | 0 => |
| 63 | [ |
| 64 | 'type' => 'container', |
| 65 | 'orientation' => 'vertical', |
| 66 | 'styles' => |
| 67 | [ |
| 68 | 'block' => |
| 69 | [ |
| 70 | 'backgroundColor' => 'transparent', |
| 71 | ], |
| 72 | ], |
| 73 | 'blocks' => |
| 74 | [ |
| 75 | 0 => |
| 76 | [ |
| 77 | 'type' => 'spacer', |
| 78 | 'styles' => |
| 79 | [ |
| 80 | 'block' => |
| 81 | [ |
| 82 | 'backgroundColor' => 'transparent', |
| 83 | 'height' => '40px', |
| 84 | ], |
| 85 | ], |
| 86 | ], |
| 87 | 1 => |
| 88 | [ |
| 89 | 'type' => 'image', |
| 90 | 'link' => '', |
| 91 | 'src' => $this->template_image_url . '/Gift-Header-1.jpg', |
| 92 | 'alt' => 'Gift-Header-1', |
| 93 | 'fullWidth' => true, |
| 94 | 'width' => '1280px', |
| 95 | 'height' => '920px', |
| 96 | 'styles' => |
| 97 | [ |
| 98 | 'block' => |
| 99 | [ |
| 100 | 'textAlign' => 'center', |
| 101 | ], |
| 102 | ], |
| 103 | ], |
| 104 | ], |
| 105 | ], |
| 106 | ], |
| 107 | ], |
| 108 | 1 => |
| 109 | [ |
| 110 | 'type' => 'container', |
| 111 | 'orientation' => 'horizontal', |
| 112 | 'styles' => |
| 113 | [ |
| 114 | 'block' => |
| 115 | [ |
| 116 | 'backgroundColor' => '#e7e7e7', |
| 117 | ], |
| 118 | ], |
| 119 | 'blocks' => |
| 120 | [ |
| 121 | 0 => |
| 122 | [ |
| 123 | 'type' => 'container', |
| 124 | 'orientation' => 'vertical', |
| 125 | 'styles' => |
| 126 | [ |
| 127 | 'block' => |
| 128 | [ |
| 129 | 'backgroundColor' => 'transparent', |
| 130 | ], |
| 131 | ], |
| 132 | 'blocks' => |
| 133 | [ |
| 134 | 0 => |
| 135 | [ |
| 136 | 'type' => 'text', |
| 137 | 'text' => '<h2 style="text-align: center;"><span style="color: #dd2d2d;">We\'re so happy you\'re onboard!</span></h2> |
| 138 | <p style="text-align: center;"><span style="color: #333333;">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> |
| 139 | <p style="text-align: center;"><span style="color: #333333;"></span></p> |
| 140 | <p style="text-align: center;"><span style="color: #333333;">Curabitur et commodo ipsum. Mauris tellus metus, tristique vel sollicitudin ut, malesuada in augue. Aliquam ultricies purus vel commodo vehicula.</span></p>', |
| 141 | ], |
| 142 | 1 => |
| 143 | [ |
| 144 | 'type' => 'button', |
| 145 | 'text' => 'Get Started', |
| 146 | 'url' => '', |
| 147 | 'styles' => |
| 148 | [ |
| 149 | 'block' => |
| 150 | [ |
| 151 | 'backgroundColor' => '#dd2d2d', |
| 152 | 'borderColor' => '#0074a2', |
| 153 | 'borderWidth' => '0px', |
| 154 | 'borderRadius' => '40px', |
| 155 | 'borderStyle' => 'solid', |
| 156 | 'width' => '180px', |
| 157 | 'lineHeight' => '50px', |
| 158 | 'fontColor' => '#ffffff', |
| 159 | 'fontFamily' => 'Arial', |
| 160 | 'fontSize' => '22px', |
| 161 | 'fontWeight' => 'bold', |
| 162 | 'textAlign' => 'center', |
| 163 | ], |
| 164 | ], |
| 165 | ], |
| 166 | 2 => |
| 167 | [ |
| 168 | 'type' => 'image', |
| 169 | 'link' => '', |
| 170 | 'src' => $this->template_image_url . '/Gift-Footer.jpg', |
| 171 | 'alt' => 'Gift-Footer', |
| 172 | 'fullWidth' => true, |
| 173 | 'width' => '1280px', |
| 174 | 'height' => '920px', |
| 175 | 'styles' => |
| 176 | [ |
| 177 | 'block' => |
| 178 | [ |
| 179 | 'textAlign' => 'center', |
| 180 | ], |
| 181 | ], |
| 182 | ], |
| 183 | ], |
| 184 | ], |
| 185 | ], |
| 186 | ], |
| 187 | 2 => |
| 188 | [ |
| 189 | 'type' => 'container', |
| 190 | 'orientation' => 'horizontal', |
| 191 | 'styles' => |
| 192 | [ |
| 193 | 'block' => |
| 194 | [ |
| 195 | 'backgroundColor' => '#ffffff', |
| 196 | ], |
| 197 | ], |
| 198 | 'blocks' => |
| 199 | [ |
| 200 | 0 => |
| 201 | [ |
| 202 | 'type' => 'container', |
| 203 | 'orientation' => 'vertical', |
| 204 | 'styles' => |
| 205 | [ |
| 206 | 'block' => |
| 207 | [ |
| 208 | 'backgroundColor' => 'transparent', |
| 209 | ], |
| 210 | ], |
| 211 | 'blocks' => |
| 212 | [ |
| 213 | 0 => |
| 214 | [ |
| 215 | 'type' => 'spacer', |
| 216 | 'styles' => |
| 217 | [ |
| 218 | 'block' => |
| 219 | [ |
| 220 | 'backgroundColor' => 'transparent', |
| 221 | 'height' => '23px', |
| 222 | ], |
| 223 | ], |
| 224 | ], |
| 225 | 1 => |
| 226 | [ |
| 227 | 'type' => 'text', |
| 228 | 'text' => '<p style="font-size: 11px; text-align: center;"><span style="color: #808080;"><strong>Address Line 1</strong></span></p> |
| 229 | <p style="font-size: 11px; text-align: center;"><span style="color: #808080;"><strong>Address Line 2</strong></span></p> |
| 230 | <p style="font-size: 11px; text-align: center;"><span style="color: #808080;"><strong>City</strong></span></p> |
| 231 | <p style="font-size: 11px; text-align: center;"><span style="color: #808080;"><strong>Country</strong></span></p>', |
| 232 | ], |
| 233 | 2 => |
| 234 | [ |
| 235 | 'type' => 'divider', |
| 236 | 'styles' => |
| 237 | [ |
| 238 | 'block' => |
| 239 | [ |
| 240 | 'backgroundColor' => 'transparent', |
| 241 | 'padding' => '5.5px', |
| 242 | 'borderStyle' => 'solid', |
| 243 | 'borderWidth' => '1px', |
| 244 | 'borderColor' => '#aaaaaa', |
| 245 | ], |
| 246 | ], |
| 247 | ], |
| 248 | 3 => |
| 249 | [ |
| 250 | 'type' => 'spacer', |
| 251 | 'styles' => |
| 252 | [ |
| 253 | 'block' => |
| 254 | [ |
| 255 | 'backgroundColor' => 'transparent', |
| 256 | 'height' => '20px', |
| 257 | ], |
| 258 | ], |
| 259 | ], |
| 260 | 4 => |
| 261 | [ |
| 262 | 'type' => 'social', |
| 263 | 'iconSet' => 'official', |
| 264 | 'icons' => |
| 265 | [ |
| 266 | 0 => |
| 267 | [ |
| 268 | 'type' => 'socialIcon', |
| 269 | 'iconType' => 'facebook', |
| 270 | 'link' => 'http://www.facebook.com', |
| 271 | 'image' => $this->social_icon_url . '/11-official/Facebook.png', |
| 272 | 'height' => '32px', |
| 273 | 'width' => '32px', |
| 274 | 'text' => 'Facebook', |
| 275 | ], |
| 276 | 1 => |
| 277 | [ |
| 278 | 'type' => 'socialIcon', |
| 279 | 'iconType' => 'twitter', |
| 280 | 'link' => 'http://www.twitter.com', |
| 281 | 'image' => $this->social_icon_url . '/11-official/X.png', |
| 282 | 'height' => '32px', |
| 283 | 'width' => '32px', |
| 284 | 'text' => 'Twitter', |
| 285 | ], |
| 286 | 2 => |
| 287 | [ |
| 288 | 'type' => 'socialIcon', |
| 289 | 'iconType' => 'instagram', |
| 290 | 'link' => 'http://instagram.com', |
| 291 | 'image' => $this->social_icon_url . '/11-official/Instagram.png', |
| 292 | 'height' => '32px', |
| 293 | 'width' => '32px', |
| 294 | 'text' => 'Instagram', |
| 295 | ], |
| 296 | ], |
| 297 | ], |
| 298 | 5 => |
| 299 | [ |
| 300 | 'type' => 'text', |
| 301 | 'text' => '<p style="text-align: center; font-size: 11px;"><a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a><span> | </span><a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a></p>', |
| 302 | ], |
| 303 | ], |
| 304 | ], |
| 305 | ], |
| 306 | ], |
| 307 | ], |
| 308 | ], |
| 309 | 'globalStyles' => |
| 310 | [ |
| 311 | 'text' => |
| 312 | [ |
| 313 | 'fontColor' => '#000000', |
| 314 | 'fontFamily' => 'Arial', |
| 315 | 'fontSize' => '15px', |
| 316 | ], |
| 317 | 'h1' => |
| 318 | [ |
| 319 | 'fontColor' => '#111111', |
| 320 | 'fontFamily' => 'Arial', |
| 321 | 'fontSize' => '30px', |
| 322 | ], |
| 323 | 'h2' => |
| 324 | [ |
| 325 | 'fontColor' => '#222222', |
| 326 | 'fontFamily' => 'Arial', |
| 327 | 'fontSize' => '24px', |
| 328 | ], |
| 329 | 'h3' => |
| 330 | [ |
| 331 | 'fontColor' => '#333333', |
| 332 | 'fontFamily' => 'Arial', |
| 333 | 'fontSize' => '22px', |
| 334 | ], |
| 335 | 'link' => |
| 336 | [ |
| 337 | 'fontColor' => '#dd2d2d', |
| 338 | 'textDecoration' => 'underline', |
| 339 | ], |
| 340 | 'wrapper' => |
| 341 | [ |
| 342 | 'backgroundColor' => '#ffffff', |
| 343 | ], |
| 344 | 'body' => |
| 345 | [ |
| 346 | 'backgroundColor' => '#ffffff', |
| 347 | ], |
| 348 | ], |
| 349 | ]; |
| 350 | } |
| 351 | } |
| 352 |