PATH:
home
/
lab2454c
/
caimegroup.com
/
wp-content
/
plugins
/
mailpoet
/
lib
/
Config
/
PopulatorData
/
Templates
<?php declare(strict_types = 1); namespace MailPoet\Config\PopulatorData\Templates; if (!defined('ABSPATH')) exit; class ConfirmInterestOrUnsubscribe { private $assets_url; private $external_template_image_url; private $template_image_url; public function __construct( $assets_url ) { $this->assets_url = $assets_url; $this->external_template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/confirm-interest-or-unsubscribe'; $this->template_image_url = $this->assets_url . '/img/blank_templates'; } public function get(): array { return [ 'name' => __('Confirm your interest or unsubscribe', 'mailpoet'), 'categories' => json_encode(['re_engagement', 'all']), 'readonly' => 1, 'thumbnail' => $this->getThumbnail(), 'body' => json_encode($this->getBody()), ]; } private function getBody(): array { return [ 'content' => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => '#ffffff', ], ], 'blocks' => [ [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '30px', ], ], ], [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/fake-logo.png', 'alt' => __('Fake logo', 'mailpoet'), 'fullWidth' => false, 'width' => '598px', 'height' => '71px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], [ 'type' => 'text', 'text' => __('<p style="text-align: left;">Hi [subscriber:firstname | default:there],</p><p style="text-align: left;"></p> <p style="text-align: left;"><span>It\'s been a while since you opened our emails. If you have changed your mind since you subscribed and are no longer interested, we get it! We won\'t make it hard for you, so feel free to unsubscribe right away. </span></p><p style="text-align: left;"></p> <p style="text-align: left;"><a href="[link:subscription_unsubscribe_url]">Unsubscribe me!</a></p><p style="text-align: left;"></p> <p style="text-align: left;">(When you unsubscribe, you\'ll stop receiving all future emails from us.)</p><p style="text-align: left;"></p> <p style="text-align: left;"><span>On the other hand, if you like our emails and want to keep receiving them, please <strong>reconfirm your subscription by clicking the big button below</strong>.</span></p>', 'mailpoet'), ], [ 'type' => 'button', 'text' => __('Yes, keep me subscribed!', 'mailpoet'), 'url' => '[link:subscription_re_engage_url]', 'styles' => [ 'block' => [ 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', 'borderWidth' => '1px', 'borderRadius' => '5px', 'borderStyle' => 'solid', 'width' => '288px', 'lineHeight' => '40px', 'fontColor' => '#ffffff', 'fontFamily' => 'Verdana', 'fontSize' => '16px', 'fontWeight' => 'normal', 'textAlign' => 'center', ], ], ], ], ], ], ], [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => '#ffffff', ], ], 'blocks' => [ [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ [ 'type' => 'text', 'text' => '<p><strong><em></em></strong></p><p><strong><em>' . __('The MailPoet Team', 'mailpoet') . '</em></strong></p>', ], [ 'type' => 'footer', '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>', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], 'text' => [ 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'left', ], 'link' => [ 'fontColor' => '#6cb7d4', 'textDecoration' => 'none', ], ], ], ], ], ], ], ], ], 'globalStyles' => [ 'text' => [ 'fontColor' => '#000000', 'fontFamily' => 'Arial', 'fontSize' => '15px', 'lineHeight' => '1.6', ], 'h1' => [ 'fontColor' => '#111111', 'fontFamily' => 'Trebuchet MS', 'fontSize' => '30px', 'lineHeight' => '1.6', ], 'h2' => [ 'fontColor' => '#222222', 'fontFamily' => 'Trebuchet MS', 'fontSize' => '24px', 'lineHeight' => '1.6', ], 'h3' => [ 'fontColor' => '#333333', 'fontFamily' => 'Trebuchet MS', 'fontSize' => '22px', 'lineHeight' => '1.6', ], 'link' => [ 'fontColor' => '#21759B', 'textDecoration' => 'underline', ], 'wrapper' => [ 'backgroundColor' => '#ffffff', ], 'body' => [ 'backgroundColor' => '#ffffff', ], ], ]; } private function getThumbnail(): string { return $this->external_template_image_url . '/thumbnail.20211026.jpg'; } }
[-] NewsletterBlank1Column.php
[edit]
[-] Minimal.php
[edit]
[-] PostNotificationsBlank1Column.php
[edit]
[-] WineCity.php
[edit]
[-] AppWelcome.php
[edit]
[-] YogaStudio.php
[edit]
[-] Synagogue.php
[edit]
[-] Poet.php
[edit]
[-] FashionShop.php
[edit]
[-] Fitness.php
[edit]
[-] FoodBox.php
[edit]
[-] Avocado.php
[edit]
[-] ModularStyleStories.php
[edit]
[-] WordPressTheme.php
[edit]
[-] index.php
[edit]
[-] Vlogger.php
[edit]
[-] NewsletterBlank121Column.php
[edit]
[-] Birds.php
[edit]
[+]
..
[-] WideStoryLayout.php
[edit]
[-] ComputerRepair.php
[edit]
[-] College.php
[edit]
[-] GiftWelcome.php
[edit]
[-] WorldCup.php
[edit]
[-] KidsClothing.php
[edit]
[-] NewsDay.php
[edit]
[-] BuddhistTemple.php
[edit]
[-] WelcomeBlank12Column.php
[edit]
[-] TakeAHike.php
[edit]
[-] Painter.php
[edit]
[-] CityLocalNews.php
[edit]
[-] Retro.php
[edit]
[-] NewsletterBlank13Column.php
[edit]
[-] SimpleText.php
[edit]
[-] FlowersWithCoupon.php
[edit]
[-] Motor.php
[edit]
[-] RenewableEnergy.php
[edit]
[-] IndustryConference.php
[edit]
[-] BrandingAgencyNews.php
[edit]
[-] Drone.php
[edit]
[-] FestivalEvent.php
[edit]
[-] LifestyleBlogB.php
[edit]
[-] RetroComputingMagazine.php
[edit]
[-] ConfirmInterestBeforeDeactivation.php
[edit]
[-] Engineering.php
[edit]
[-] Phone.php
[edit]
[-] Guitarist.php
[edit]
[-] Sunglasses.php
[edit]
[-] JazzClub.php
[edit]
[-] DogFood.php
[edit]
[-] RockBand.php
[edit]
[-] ScienceWeekly.php
[edit]
[-] WelcomeBlank1Column.php
[edit]
[-] NewspaperTraditional.php
[edit]
[-] FarmersMarket.php
[edit]
[-] FashionBlogA.php
[edit]
[-] LifestyleBlogA.php
[edit]
[-] Mosque.php
[edit]
[-] RealEstate.php
[edit]
[-] PieceOfCake.php
[edit]
[-] HealthyFoodBlog.php
[edit]
[-] NewsletterBlank12Column.php
[edit]
[-] Charity.php
[edit]
[-] Coffee.php
[edit]
[-] NotSoMedium.php
[edit]
[-] Software.php
[edit]
[-] ClearNews.php
[edit]
[-] FashionStore.php
[edit]
[-] PrimarySchool.php
[edit]
[-] Hotels.php
[edit]
[-] ConfirmInterestOrUnsubscribe.php
[edit]
[-] Music.php
[edit]
[-] FashionBlog.php
[edit]
[-] Photography.php
[edit]
[-] Shoes.php
[edit]
[-] BookStoreWithCoupon.php
[edit]
[-] RssSimpleNews.php
[edit]
[-] Faith.php
[edit]