This commit is contained in:
emmymayo
2025-02-05 23:15:46 +01:00
commit 7269c99357
16995 changed files with 3389680 additions and 0 deletions
@@ -0,0 +1,419 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class AppWelcome {
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/app_welcome';
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("App Welcome", 'mailpoet'),
'categories' => json_encode(['welcome', 'all']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getBody() {
return [
'content' => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#eeeeee',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => '#eeeeee',
'height' => '30px',
],
],
],
],
],
],
],
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#32b6c6',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/App-Signup-Logo-1.png',
'alt' => 'App-Signup-Logo',
'fullWidth' => false,
'width' => '80px',
'height' => '80px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
[
'type' => 'text',
'text' => '<h1 style="text-align: center; margin: 0;"><strong>Welcome to Appy</strong></h1><p style="text-align: center; margin: 0;"><span style="color: #ffffff;">Let\'s get started!</span></p>',
],
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/App-Signup-Header.png',
'alt' => 'App-Signup-Header',
'fullWidth' => false,
'width' => '1280px',
'height' => '500px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
],
],
],
],
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#ffffff',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
[
'type' => 'text',
'text' => '<p style="text-align: center;">Hi [subscriber:firstname | default:subscriber],</p>
<p style="text-align: center;"></p>
<p style="text-align: center;">In MailPoet, you can write emails in plain text, just like in a regular email. This can make your email newsletters more personal and attention-grabbing.</p>
<p style="text-align: center;"></p>
<p style="text-align: center;">Is this too simple? You can still style your text with basic formatting, like <strong>bold</strong> or <em>italics.</em></p>
<p style="text-align: center;"></p>
<p style="text-align: center;">Finally, you can also add a call-to-action button between 2 blocks of text, like this:</p>',
],
],
],
],
],
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#ffffff',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '23px',
],
],
],
[
'type' => 'button',
'text' => 'Get Started Here',
'url' => '',
'styles' => [
'block' => [
'backgroundColor' => '#32b6c6',
'borderColor' => '#32b6c6',
'borderWidth' => '0px',
'borderRadius' => '40px',
'borderStyle' => 'solid',
'width' => '188px',
'lineHeight' => '50px',
'fontColor' => '#ffffff',
'fontFamily' => 'Arial',
'fontSize' => '18px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '35px',
],
],
],
],
],
],
],
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/App-Signup-Team.jpg',
'alt' => 'App-Signup-Team',
'fullWidth' => true,
'width' => '1280px',
'height' => '700px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
],
],
],
],
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#eeeeee',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/App-Signup-Logo-Footer.png',
'alt' => 'App-Signup-Logo-Footer',
'fullWidth' => false,
'width' => '50px',
'height' => '50px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
[
'type' => 'text',
'text' => '<p style="text-align: center; font-size: 12px;"><strong>Appy</strong></p>
<p style="text-align: center; font-size: 12px;"><span>Address Line 1</span></p>
<p style="text-align: center; font-size: 12px;"><span>Address Line 2</span></p>
<p style="text-align: center; font-size: 12px;"><span>City</span></p>
<p style="text-align: center; font-size: 12px;"><a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a><span> | </span><a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a></p>',
],
[
'type' => 'social',
'iconSet' => 'full-symbol-color',
'icons' => [
[
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/06-full-symbol-color/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
[
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/06-full-symbol-color/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
[
'type' => 'socialIcon',
'iconType' => 'youtube',
'link' => 'http://www.youtube.com',
'image' => $this->social_icon_url . '/06-full-symbol-color/Youtube.png',
'height' => '32px',
'width' => '32px',
'text' => 'Youtube',
],
[
'type' => 'socialIcon',
'iconType' => 'instagram',
'link' => 'http://instagram.com',
'image' => $this->social_icon_url . '/06-full-symbol-color/Instagram.png',
'height' => '32px',
'width' => '32px',
'text' => 'Instagram',
],
],
],
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
],
],
],
],
],
],
'globalStyles' => [
'text' => [
'fontColor' => '#404040',
'fontFamily' => 'Arial',
'fontSize' => '15px',
],
'h1' => [
'fontColor' => '#ffffff',
'fontFamily' => 'Arial',
'fontSize' => '26px',
],
'h2' => [
'fontColor' => '#404040',
'fontFamily' => 'Arial',
'fontSize' => '22px',
],
'h3' => [
'fontColor' => '#32b6c6',
'fontFamily' => 'Arial',
'fontSize' => '18px',
],
'link' => [
'fontColor' => '#32b6c6',
'textDecoration' => 'underline',
],
'wrapper' => [
'backgroundColor' => '#ffffff',
],
'body' => [
'backgroundColor' => '#eeeeee',
],
],
];
}
private function getThumbnail() {
return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,231 @@
<?php declare(strict_types = 1);
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class ConfirmInterestBeforeDeactivation {
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-before-deactivation';
$this->template_image_url = $this->assets_url . '/img/blank_templates';
}
public function get(): array {
return [
'name' => __('Confirm interest before deactivation', '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>You have subscribed to receive email updates from us, but as we\'re not sure if you\'re reading our emails, we\'d like to ask - <strong>are you still interested in hearing from us?</strong> If yes, please reconfirm your subscription by clicking the button below:</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' => 'text',
'text' => '<p><span class="prismjs css-1xfvm4v" data-code-lang="" data-ds--code--code-block="">' . __("If you're no longer interested, that's completely fine. You don't need to take any action. Our system will automatically unsubscribe you soon from all of our future content.", 'mailpoet') . '</span></p>',
],
],
],
],
],
[
'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 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';
}
}
@@ -0,0 +1,230 @@
<?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.&nbsp;</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';
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,492 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class Faith {
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/faith';
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Faith", 'mailpoet'),
'categories' => json_encode(['standard', 'all']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getBody() {
return [
'content' => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/church-header.jpg',
'alt' => 'church-header',
'fullWidth' => true,
'width' => '1036px',
'height' => '563px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
1 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
2 => [
'type' => 'text',
'text' => '<h1 style="text-align: center;">Spreading Love &amp; Hope...</h1><p>Duis id molestie ex. Quisque finibus magna in justo tristique pellentesque. Nulla sed leo facilisis arcu malesuada molestie vel quis dolor. Donec imperdiet condimentum odio ut elementum. Aenean nisl massa, rutrum a ullamcorper eget, molestie non erat.&nbsp;</p>',
],
3 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#f3f4f4',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 => [
'type' => 'text',
'text' => '<h2 style="text-align: left;">Family Faith Events</h2>',
],
2 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/family.jpg',
'alt' => 'family',
'fullWidth' => false,
'width' => '660px',
'height' => '880px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
3 => [
'type' => 'text',
'text' => '<p>In maximus tempus pellentesque. Nunc scelerisque ante odio, vel placerat dui fermentum efficitur. Integer vitae ex suscipit, aliquet eros vitae, ornare est. <a href="http://www.example.com">Aenean vel dapibus nisi</a>.</p>',
],
4 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 => [
'type' => 'text',
'text' => '<h2>Thoughts &amp; Prayers</h2>',
],
2 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/pray.jpg',
'alt' => 'pray',
'fullWidth' => false,
'width' => '660px',
'height' => '880px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
3 => [
'type' => 'text',
'text' => '<p>Donec sed vulputate ipsum. In scelerisque rutrum interdum. Donec imperdiet dignissim erat, in dictum lectus accumsan ut. <a href="http://www.example.com">Aliquam erat volutpat.</a></p>',
],
4 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
2 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 => [
'type' => 'text',
'text' => '<h1 style="text-align: center;">Latest News</h1>',
],
2 => [
'type' => 'divider',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'padding' => '7px',
'borderStyle' => 'dotted',
'borderWidth' => '1px',
'borderColor' => '#dcdcdc',
],
],
],
3 => [
'type' => 'automatedLatestContent',
'amount' => '3',
'contentType' => 'post',
'terms' => [],
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h3',
'titleAlignment' => 'left',
'titleIsLink' => false,
'imageFullWidth' => false,
'featuredImagePosition' => 'belowTitle',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'button',
'readMoreText' => 'Read more',
'readMoreButton' => [
'type' => 'button',
'text' => 'Read more',
'url' => '[postLink]',
'styles' => [
'block' => [
'backgroundColor' => '#dfeaf3',
'borderColor' => '#00ddff',
'borderWidth' => '0px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '160px',
'lineHeight' => '45px',
'fontColor' => '#597890',
'fontFamily' => 'Tahoma',
'fontSize' => '16px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
'sortBy' => 'newest',
'showDivider' => true,
'divider' => [
'type' => 'divider',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'dotted',
'borderWidth' => '2px',
'borderColor' => '#dfeaf3',
],
],
],
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
],
4 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
5 => [
'type' => 'divider',
'styles' => [
'block' => [
'backgroundColor' => '#e7eff6',
'padding' => '13px',
'borderStyle' => 'ridge',
'borderWidth' => '6px',
'borderColor' => '#597890',
],
],
],
],
],
],
],
3 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#e7eff6',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'footer',
'text' => '<a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a> | <a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a><br /><b>' . __("Add your postal address here!", 'mailpoet') . '</b>',
'styles' => [
'block' => [
'backgroundColor' => '#e7eff6',
],
'text' => [
'fontColor' => '#787878',
'fontFamily' => 'Tahoma',
'fontSize' => '14px',
'textAlign' => 'left',
],
'link' => [
'fontColor' => '#787878',
'textDecoration' => 'none',
],
],
],
1 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'text',
'text' => '<p style="text-align: center;">Find us socially:</p>',
],
1 => [
'type' => 'social',
'iconSet' => 'full-symbol-black',
'icons' => [
0 => [
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
1 => [
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
2 => [
'type' => 'socialIcon',
'iconType' => 'email',
'link' => '',
'image' => $this->social_icon_url . '/07-full-symbol-black/Email.png',
'height' => '32px',
'width' => '32px',
'text' => 'Email',
],
3 => [
'type' => 'socialIcon',
'iconType' => 'website',
'link' => '',
'image' => $this->social_icon_url . '/07-full-symbol-black/Website.png',
'height' => '32px',
'width' => '32px',
'text' => 'Website',
],
],
],
2 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
],
],
'globalStyles' => [
'text' => [
'fontColor' => '#787878',
'fontFamily' => 'Tahoma',
'fontSize' => '16px',
],
'h1' => [
'fontColor' => '#597890',
'fontFamily' => 'Comic Sans MS',
'fontSize' => '26px',
],
'h2' => [
'fontColor' => '#597890',
'fontFamily' => 'Comic Sans MS',
'fontSize' => '18px',
],
'h3' => [
'fontColor' => '#787878',
'fontFamily' => 'Tahoma',
'fontSize' => '18px',
],
'link' => [
'fontColor' => '#597890',
'textDecoration' => 'underline',
],
'wrapper' => [
'backgroundColor' => '#ffffff',
],
'body' => [
'backgroundColor' => '#e7eff6',
],
],
];
}
private function getThumbnail() {
return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,528 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class FestivalEvent {
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/festival_event';
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Festival Event", 'mailpoet'),
'categories' => json_encode(['standard', 'all']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getBody() {
return [
'content' => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => '#0a5388',
'height' => '20px',
],
],
],
1 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/festival-header.jpg',
'alt' => 'festival-header',
'fullWidth' => true,
'width' => '1320px',
'height' => '879px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
2 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '36px',
],
],
],
3 => [
'type' => 'text',
'text' => '<h1 style="text-align: center;">Pack your glowsticks, <br />Boomfest is back!&nbsp;</h1>
<p></p>
<p style="text-align: center;">Duis tempor nisl in risus hendrerit venenatis. <br />Curabitur ornare venenatis nisl non ullamcorper. </p>',
],
4 => [
'type' => 'button',
'text' => 'Duis id tincidunt',
'url' => '',
'styles' => [
'block' => [
'backgroundColor' => '#0a5388',
'borderColor' => '#0074a2',
'borderWidth' => '0px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '260px',
'lineHeight' => '50px',
'fontColor' => '#ffffff',
'fontFamily' => 'Courier New',
'fontSize' => '18px',
'fontWeight' => 'bold',
'textAlign' => 'center',
],
],
],
5 => [
'type' => 'text',
'text' => '<p style="text-align: center;">Maecenas scelerisque nisi sit amet metus efficitur dapibus!&nbsp;<br />Ut eros risus, facilisis ac aliquet vel, posuere ut urna.</p>',
],
6 => [
'type' => 'social',
'iconSet' => 'full-symbol-grey',
'icons' => [
0 => [
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
1 => [
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
2 => [
'type' => 'socialIcon',
'iconType' => 'instagram',
'link' => 'http://instagram.com',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Instagram.png',
'height' => '32px',
'width' => '32px',
'text' => 'Instagram',
],
],
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'divider',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'dashed',
'borderWidth' => '2px',
'borderColor' => '#ffffff',
],
],
],
1 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '28px',
],
],
],
2 => [
'type' => 'text',
'text' => '<h2 style="text-align: center;">Confirmed Lineup</h2>',
],
],
],
],
],
2 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'text',
'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>',
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'text',
'text' => '<h3><em><span style="color: #bae2ff;">New Acts Stage</span></em></h3><p>Nulla interdum<br />Massa nec<br />Pharetra<br />Varius</p>',
],
],
],
2 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'text',
'text' => '<h3><em><span style="color: #bae2ff;">Comedy Stage</span></em></h3><p>In pulvinar<br />Risus sed<br />Condimentum<br />Feugiat</p>',
],
],
],
],
],
3 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 => [
'type' => 'divider',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'dashed',
'borderWidth' => '2px',
'borderColor' => '#ffffff',
],
],
],
2 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
3 => [
'type' => 'text',
'text' => '<h2 style="text-align: center;">New to the festival this year</h2>',
],
4 => [
'type' => 'divider',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'padding' => '9px',
'borderStyle' => 'dashed',
'borderWidth' => '2px',
'borderColor' => '#ffffff',
],
],
],
5 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
4 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/street-food.jpg',
'alt' => 'street food',
'fullWidth' => true,
'width' => '499px',
'height' => '750px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
1 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
2 => [
'type' => 'text',
'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>',
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/happy.jpeg',
'alt' => 'happy',
'fullWidth' => true,
'width' => '499px',
'height' => '750px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
1 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
2 => [
'type' => 'text',
'text' => '<h3>Prepare to&nbsp;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>',
],
],
],
],
],
5 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 => [
'type' => 'divider',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'dashed',
'borderWidth' => '2px',
'borderColor' => '#ffffff',
],
],
],
2 => [
'type' => 'footer',
'text' => '<p>Mauris tristique ultricies ullamcorper. <br />Don\'t want to hear from us?&nbsp;<a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a></p><p></p><p>Add your postal address here.&nbsp;</p>',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
'text' => [
'fontColor' => '#ffffff',
'fontFamily' => 'Courier New',
'fontSize' => '13px',
'textAlign' => 'center',
],
'link' => [
'fontColor' => '#ffffff',
'textDecoration' => 'underline',
],
],
],
],
],
],
],
],
],
'globalStyles' => [
'text' => [
'fontColor' => '#ffffff',
'fontFamily' => 'Courier New',
'fontSize' => '16px',
],
'h1' => [
'fontColor' => '#ffffff',
'fontFamily' => 'Georgia',
'fontSize' => '36px',
],
'h2' => [
'fontColor' => '#ffffff',
'fontFamily' => 'Georgia',
'fontSize' => '26px',
],
'h3' => [
'fontColor' => '#ffffff',
'fontFamily' => 'Georgia',
'fontSize' => '24px',
],
'link' => [
'fontColor' => '#ffffff',
'textDecoration' => 'underline',
],
'wrapper' => [
'backgroundColor' => '#8d062b',
],
'body' => [
'backgroundColor' => '#0a5388',
],
],
];
}
private function getThumbnail() {
return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,760 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class FoodBox {
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/food_box';
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Welcome to FoodBox", 'mailpoet'),
'categories' => json_encode(['welcome', 'all']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getBody() {
return [
'content' => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#f4f4f4',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
2 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Food-Delivery-Logo.png',
'alt' => 'Food-Delivery-Logo',
'fullWidth' => false,
'width' => '640px',
'height' => '180px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Food-Delivery-App.png',
'alt' => 'Food-Delivery-App',
'fullWidth' => false,
'width' => '640px',
'height' => '180px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
],
],
],
],
3 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
4 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
1 => [
'type' => 'text',
'text' => '<h1><strong>Welcome to FoodBox</strong></h1>
<h2><strong>Lorem ipsum dolor sit amet</strong></h2>
<p>Curabitur sollicitudin eros eu cursus sollicitudin. Suspendisse laoreet sollicitudin urna, ut lacinia risus dictum a. Integer a neque eu magna commodo sodales eu eget ante.</p>',
],
2 => [
'type' => 'button',
'text' => 'Get Started',
'url' => '',
'styles' => [
'block' => [
'backgroundColor' => '#7cc119',
'borderColor' => '#7cc119',
'borderWidth' => '0px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '100px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Arial',
'fontSize' => '14px',
'fontWeight' => 'bold',
'textAlign' => 'left',
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Food-Delivery-Focus.jpg',
'alt' => 'Food-Delivery-Focus',
'fullWidth' => false,
'width' => '800px',
'height' => '800px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
],
],
],
],
5 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'divider',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'padding' => '31.5px',
'borderStyle' => 'solid',
'borderWidth' => '2px',
'borderColor' => '#e5e5e5',
],
],
],
],
],
],
],
6 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'text',
'text' => '<h2 style="text-align: center;">Get started in 3 simple steps</h2>',
],
],
],
],
],
7 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Food-Delivery-1-1.png',
'alt' => 'Food-Delivery-1',
'fullWidth' => false,
'width' => '800px',
'height' => '250px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
2 => [
'type' => 'text',
'text' => '<p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sollicitudin eros eu cursus sollicitudin.</p>',
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Food-Delivery-2-1.png',
'alt' => 'Food-Delivery-2',
'fullWidth' => false,
'width' => '800px',
'height' => '250px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
2 => [
'type' => 'text',
'text' => '<p style="text-align: center;"><span style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sollicitudin eros eu cursus sollicitudin.</span></p>',
],
],
],
2 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Food-Delivery-3-1.png',
'alt' => 'Food-Delivery-3',
'fullWidth' => false,
'width' => '800px',
'height' => '250px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
2 => [
'type' => 'text',
'text' => '<p style="text-align: center;"><span style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sollicitudin eros eu cursus sollicitudin.</span></p>',
],
],
],
],
],
8 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
1 => [
'type' => 'button',
'text' => 'Get Started',
'url' => '',
'styles' => [
'block' => [
'backgroundColor' => '#7cc119',
'borderColor' => '#7cc119',
'borderWidth' => '0px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '100px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Arial',
'fontSize' => '14px',
'fontWeight' => 'bold',
'textAlign' => 'center',
],
],
],
2 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '25px',
],
],
],
],
],
],
],
9 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#4599da',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
1 => [
'type' => 'text',
'text' => '<p style="text-align: center; font-size: 14px;"><strong><span style="color: #ffffff;">Link 1 - Link 2 - Link 3 - Link 4</span></strong></p>',
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '24px',
],
],
],
1 => [
'type' => 'social',
'iconSet' => 'full-symbol-grey',
'icons' => [
0 => [
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
1 => [
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
2 => [
'type' => 'socialIcon',
'iconType' => 'youtube',
'link' => 'http://www.youtube.com',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Youtube.png',
'height' => '32px',
'width' => '32px',
'text' => 'Youtube',
],
3 => [
'type' => 'socialIcon',
'iconType' => 'instagram',
'link' => 'http://instagram.com',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Instagram.png',
'height' => '32px',
'width' => '32px',
'text' => 'Instagram',
],
4 => [
'type' => 'socialIcon',
'iconType' => 'website',
'link' => '',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Website.png',
'height' => '32px',
'width' => '32px',
'text' => 'Website',
],
],
],
],
],
],
],
10 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#4599da',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '25px',
],
],
],
],
],
],
],
11 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#f4f4f4',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 => [
'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' => 'center',
],
'link' => [
'fontColor' => '#6cb7d4',
'textDecoration' => 'none',
],
],
],
2 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
],
],
],
],
],
],
'globalStyles' => [
'text' => [
'fontColor' => '#000000',
'fontFamily' => 'Arial',
'fontSize' => '12px',
],
'h1' => [
'fontColor' => '#4599da',
'fontFamily' => 'Arial',
'fontSize' => '26px',
],
'h2' => [
'fontColor' => '#878787',
'fontFamily' => 'Arial',
'fontSize' => '18px',
],
'h3' => [
'fontColor' => '#333333',
'fontFamily' => 'Arial',
'fontSize' => '14px',
],
'link' => [
'fontColor' => '#4599da',
'textDecoration' => 'underline',
],
'wrapper' => [
'backgroundColor' => '#ffffff',
],
'body' => [
'backgroundColor' => '#f4f4f4',
],
],
];
}
private function getThumbnail() {
return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
}
}
@@ -0,0 +1,351 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class GiftWelcome {
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/gift';
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Gift Welcome", 'mailpoet'),
'categories' => json_encode(['welcome', 'all']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getThumbnail() {
return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
}
private function getBody() {
return [
'content' =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#ffffff',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
1 =>
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Gift-Header-1.jpg',
'alt' => 'Gift-Header-1',
'fullWidth' => true,
'width' => '1280px',
'height' => '920px',
'styles' =>
[
'block' =>
[
'textAlign' => 'center',
],
],
],
],
],
],
],
1 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#e7e7e7',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'text',
'text' => '<h2 style="text-align: center;"><span style="color: #dd2d2d;">We\'re so happy you\'re onboard!</span></h2>
<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>
<p style="text-align: center;"><span style="color: #333333;"></span></p>
<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>',
],
1 =>
[
'type' => 'button',
'text' => 'Get Started',
'url' => '',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#dd2d2d',
'borderColor' => '#0074a2',
'borderWidth' => '0px',
'borderRadius' => '40px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '50px',
'fontColor' => '#ffffff',
'fontFamily' => 'Arial',
'fontSize' => '22px',
'fontWeight' => 'bold',
'textAlign' => 'center',
],
],
],
2 =>
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Gift-Footer.jpg',
'alt' => 'Gift-Footer',
'fullWidth' => true,
'width' => '1280px',
'height' => '920px',
'styles' =>
[
'block' =>
[
'textAlign' => 'center',
],
],
],
],
],
],
],
2 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#ffffff',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '23px',
],
],
],
1 =>
[
'type' => 'text',
'text' => '<p style="font-size: 11px; text-align: center;"><span style="color: #808080;"><strong>Address Line 1</strong></span></p>
<p style="font-size: 11px; text-align: center;"><span style="color: #808080;"><strong>Address Line 2</strong></span></p>
<p style="font-size: 11px; text-align: center;"><span style="color: #808080;"><strong>City</strong></span></p>
<p style="font-size: 11px; text-align: center;"><span style="color: #808080;"><strong>Country</strong></span></p>',
],
2 =>
[
'type' => 'divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '5.5px',
'borderStyle' => 'solid',
'borderWidth' => '1px',
'borderColor' => '#aaaaaa',
],
],
],
3 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
4 =>
[
'type' => 'social',
'iconSet' => 'grey',
'icons' =>
[
0 =>
[
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/02-grey/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
1 =>
[
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/02-grey/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
2 =>
[
'type' => 'socialIcon',
'iconType' => 'instagram',
'link' => 'http://instagram.com',
'image' => $this->social_icon_url . '/02-grey/Instagram.png',
'height' => '32px',
'width' => '32px',
'text' => 'Instagram',
],
],
],
5 =>
[
'type' => 'text',
'text' => '<p style="text-align: center; font-size: 11px;"><a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a><span>&nbsp;|&nbsp;</span><a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a></p>',
],
],
],
],
],
],
],
'globalStyles' =>
[
'text' =>
[
'fontColor' => '#000000',
'fontFamily' => 'Arial',
'fontSize' => '15px',
],
'h1' =>
[
'fontColor' => '#111111',
'fontFamily' => 'Arial',
'fontSize' => '30px',
],
'h2' =>
[
'fontColor' => '#222222',
'fontFamily' => 'Arial',
'fontSize' => '24px',
],
'h3' =>
[
'fontColor' => '#333333',
'fontFamily' => 'Arial',
'fontSize' => '22px',
],
'link' =>
[
'fontColor' => '#dd2d2d',
'textDecoration' => 'underline',
],
'wrapper' =>
[
'backgroundColor' => '#ffffff',
],
'body' =>
[
'backgroundColor' => '#ffffff',
],
],
];
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,385 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class NewsletterBlank121Column {
private $assets_url;
private $external_template_image_url;
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->assets_url = $assets_url;
$this->external_template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/newsletter-blank-1-2-1-column';
$this->template_image_url = $this->assets_url . '/img/blank_templates';
$this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Newsletter: Blank 1:2:1 Column", 'mailpoet'),
'categories' => json_encode(['standard', 'blank']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getBody() {
return [
"content" => [
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#f8f8f8",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "header",
"text" => '<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a>',
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
"text" => [
"fontColor" => "#222222",
"fontFamily" => "Arial",
"fontSize" => "12px",
"textAlign" => "center",
],
"link" => [
"fontColor" => "#6cb7d4",
"textDecoration" => "underline",
],
],
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#ffffff",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"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" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started!</strong></h1>\n<p>It's time to design your newsletter! In the right sidebar, you'll find four menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Columns</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>", 'mailpoet'),
],
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "13px",
"borderStyle" => "dotted",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "text",
"text" => '<h2>' . __('This template has...', 'mailpoet') . '</h2>',
],
[
"type" => "text",
"text" => __("<p>In the right sidebar, you can add layout blocks to your email:</p>\n<ul>\n<li>1 column</li>\n<li>2 columns</li>\n<li>3 columns</li>\n</ul>", 'mailpoet'),
],
],
],
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "text",
"text" => '<h2>' . __('... a 2-column layout.', 'mailpoet') . '</h2>',
],
[
"type" => "text",
"text" => '<p>' . __("You can change a layout's background color by clicking on the settings icon on the right edge of the Designer. Simply hover over this area to see the Settings (gear) icon.", 'mailpoet') . '</p>',
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "13px",
"borderStyle" => "dotted",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "text",
"text" => __("<h3 style=\"text-align: center;\"><span style=\"font-weight: 600;\">Let's end with a single column. </span></h3>\n<p style=\"line-height: 25.6px;\">In the right sidebar, you can add these layout blocks to your email:</p>\n<p style=\"line-height: 25.6px;\"></p>\n<ul style=\"line-height: 25.6px;\">\n<li>1 column</li>\n<li>2 columns</li>\n<li>3 columns</li>\n</ul>", 'mailpoet'),
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#f8f8f8",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "24.5px",
"borderStyle" => "solid",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
[
"type" => "social",
"iconSet" => "grey",
"icons" => [
[
"type" => "socialIcon",
"iconType" => "facebook",
"link" => "http://www.facebook.com",
"image" => $this->social_icon_url . "/02-grey/Facebook.png",
"height" => "32px",
"width" => "32px",
"text" => "Facebook",
],
[
"type" => "socialIcon",
"iconType" => "twitter",
"link" => "http://www.twitter.com",
"image" => $this->social_icon_url . "/02-grey/Twitter.png",
"height" => "32px",
"width" => "32px",
"text" => "Twitter",
],
],
],
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "7.5px",
"borderStyle" => "solid",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
[
"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" => "center",
],
"link" => [
"fontColor" => "#6cb7d4",
"textDecoration" => "none",
],
],
],
],
],
],
],
],
],
"globalStyles" => [
"text" => [
"fontColor" => "#000000",
"fontFamily" => "Arial",
"fontSize" => "16px",
],
"h1" => [
"fontColor" => "#111111",
"fontFamily" => "Trebuchet MS",
"fontSize" => "30px",
],
"h2" => [
"fontColor" => "#222222",
"fontFamily" => "Trebuchet MS",
"fontSize" => "24px",
],
"h3" => [
"fontColor" => "#333333",
"fontFamily" => "Trebuchet MS",
"fontSize" => "22px",
],
"link" => [
"fontColor" => "#21759B",
"textDecoration" => "underline",
],
"wrapper" => [
"backgroundColor" => "#ffffff",
],
"body" => [
"backgroundColor" => "#eeeeee",
],
],
];
}
private function getThumbnail() {
return $this->external_template_image_url . '/thumbnail.20190411-1500.jpg';
}
}
@@ -0,0 +1,325 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class NewsletterBlank12Column {
private $assets_url;
private $external_template_image_url;
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->assets_url = $assets_url;
$this->external_template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/newsletter-blank-1-2-column';
$this->template_image_url = $this->assets_url . '/img/blank_templates';
$this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Newsletter: Blank 1:2 Column", 'mailpoet'),
'categories' => json_encode(['standard', 'blank']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getBody() {
return [
"content" => [
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#f8f8f8",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "header",
"text" => '<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a>',
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
"text" => [
"fontColor" => "#222222",
"fontFamily" => "Arial",
"fontSize" => "12px",
"textAlign" => "center",
],
"link" => [
"fontColor" => "#6cb7d4",
"textDecoration" => "underline",
],
],
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#ffffff",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"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" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started!</strong></h1>\n<p>&nbsp;</p>\n<p>It's time to design your newsletter! In the right sidebar, you'll find 4 menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Columns</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>", 'mailpoet'),
],
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "13px",
"borderStyle" => "dotted",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "text",
"text" => '<h2>' . __('This template has...', 'mailpoet') . '</h2>',
],
[
"type" => "text",
"text" => __("<p>In the right sidebar, you can add these layout blocks to your email:</p>\n<ul>\n<li>1 column</li>\n<li>2 columns</li>\n<li>3 columns</li>\n</ul>", 'mailpoet'),
],
],
],
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "text",
"text" => '<h2>' . __('... a 2-column layout.', 'mailpoet') . '</h2>',
],
[
"type" => "text",
"text" => __("<p><span style=\"line-height: 25.6px;\">You can change a layout's background color by clicking on the settings icon on the right edge of the Designer. Simply hover over this area to see the Settings (gear) icon.</span></p>", 'mailpoet'),
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#f8f8f8",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "24.5px",
"borderStyle" => "solid",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
[
"type" => "social",
"iconSet" => "grey",
"icons" => [
[
"type" => "socialIcon",
"iconType" => "facebook",
"link" => "http://www.facebook.com",
"image" => $this->social_icon_url . "/02-grey/Facebook.png",
"height" => "32px",
"width" => "32px",
"text" => "Facebook",
],
[
"type" => "socialIcon",
"iconType" => "twitter",
"link" => "http://www.twitter.com",
"image" => $this->social_icon_url . "/02-grey/Twitter.png",
"height" => "32px",
"width" => "32px",
"text" => "Twitter",
],
],
],
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "7.5px",
"borderStyle" => "solid",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
[
"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" => "center",
],
"link" => [
"fontColor" => "#6cb7d4",
"textDecoration" => "none",
],
],
],
],
],
],
],
],
],
"globalStyles" => [
"text" => [
"fontColor" => "#000000",
"fontFamily" => "Arial",
"fontSize" => "16px",
],
"h1" => [
"fontColor" => "#111111",
"fontFamily" => "Trebuchet MS",
"fontSize" => "30px",
],
"h2" => [
"fontColor" => "#222222",
"fontFamily" => "Trebuchet MS",
"fontSize" => "24px",
],
"h3" => [
"fontColor" => "#333333",
"fontFamily" => "Trebuchet MS",
"fontSize" => "22px",
],
"link" => [
"fontColor" => "#21759B",
"textDecoration" => "underline",
],
"wrapper" => [
"backgroundColor" => "#ffffff",
],
"body" => [
"backgroundColor" => "#eeeeee",
],
],
];
}
private function getThumbnail() {
return $this->external_template_image_url . '/thumbnail.20190411-1500.jpg';
}
}
@@ -0,0 +1,348 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class NewsletterBlank13Column {
private $assets_url;
private $external_template_image_url;
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->assets_url = $assets_url;
$this->external_template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/newsletter-blank-1-3-column';
$this->template_image_url = $this->assets_url . '/img/blank_templates';
$this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Newsletter: Blank 1:3 Column", 'mailpoet'),
'categories' => json_encode(['standard', 'blank']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getBody() {
return [
"content" => [
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#f8f8f8",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "header",
"text" => '<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a>',
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
"text" => [
"fontColor" => "#222222",
"fontFamily" => "Arial",
"fontSize" => "12px",
"textAlign" => "center",
],
"link" => [
"fontColor" => "#6cb7d4",
"textDecoration" => "underline",
],
],
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#ffffff",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"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" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started! </strong></h1>\n<p>&nbsp;</p>\n<p>It's time to design your newsletter! In the right sidebar, you'll find four menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Columns</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>", 'mailpoet'),
],
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "13px",
"borderStyle" => "dotted",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "text",
"text" => '<h3>' . __('This template...', 'mailpoet') . '</h3>',
],
[
"type" => "text",
"text" => '<p>' . __('In the right sidebar, you can add layout blocks to your newsletter.', 'mailpoet') . '</p>',
],
],
],
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "text",
"text" => '<h3>' . __('... has a...', 'mailpoet') . '</h3>',
],
[
"type" => "text",
"text" => __("<p>You have the choice of:</p>\n<ul>\n<li>1 column</li>\n<li>2 columns</li>\n<li>3 columns</li>\n</ul>", 'mailpoet'),
],
],
],
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "text",
"text" => '<h3>' . __('3-column layout.', 'mailpoet') . '</h3>',
],
[
"type" => "text",
"text" => '<p>' . __('You can add as many layout blocks as you want!', 'mailpoet') . '</p>',
],
[
"type" => "text",
"text" => "",
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#f8f8f8",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "24.5px",
"borderStyle" => "solid",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
[
"type" => "social",
"iconSet" => "grey",
"icons" => [
[
"type" => "socialIcon",
"iconType" => "facebook",
"link" => "http://www.facebook.com",
"image" => $this->social_icon_url . "/02-grey/Facebook.png",
"height" => "32px",
"width" => "32px",
"text" => "Facebook",
],
[
"type" => "socialIcon",
"iconType" => "twitter",
"link" => "http://www.twitter.com",
"image" => $this->social_icon_url . "/02-grey/Twitter.png",
"height" => "32px",
"width" => "32px",
"text" => "Twitter",
],
],
],
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "7.5px",
"borderStyle" => "solid",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
[
"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" => "center",
],
"link" => [
"fontColor" => "#6cb7d4",
"textDecoration" => "none",
],
],
],
],
],
],
],
],
],
"globalStyles" => [
"text" => [
"fontColor" => "#000000",
"fontFamily" => "Arial",
"fontSize" => "16px",
],
"h1" => [
"fontColor" => "#111111",
"fontFamily" => "Trebuchet MS",
"fontSize" => "30px",
],
"h2" => [
"fontColor" => "#222222",
"fontFamily" => "Trebuchet MS",
"fontSize" => "24px",
],
"h3" => [
"fontColor" => "#333333",
"fontFamily" => "Trebuchet MS",
"fontSize" => "22px",
],
"link" => [
"fontColor" => "#21759B",
"textDecoration" => "underline",
],
"wrapper" => [
"backgroundColor" => "#ffffff",
],
"body" => [
"backgroundColor" => "#eeeeee",
],
],
];
}
private function getThumbnail() {
return $this->external_template_image_url . '/thumbnail.20190930.jpg';
}
}
@@ -0,0 +1,264 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class NewsletterBlank1Column {
private $assets_url;
private $external_template_image_url;
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->assets_url = $assets_url;
$this->external_template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/newsletter-blank-1-column';
$this->template_image_url = $this->assets_url . '/img/blank_templates';
$this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Newsletter: Blank 1 Column", 'mailpoet'),
'categories' => json_encode(['standard', 'blank']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getBody() {
return [
"content" => [
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#f8f8f8",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "header",
"text" => '<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a>',
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
"text" => [
"fontColor" => "#222222",
"fontFamily" => "Arial",
"fontSize" => "12px",
"textAlign" => "center",
],
"link" => [
"fontColor" => "#6cb7d4",
"textDecoration" => "underline",
],
],
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#ffffff",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"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" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started! </strong></h1>\n<p>&nbsp;</p>\n<p>It's time to design your newsletter! In the right sidebar, you'll find 4 menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Columns</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>", 'mailpoet'),
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#f8f8f8",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "24.5px",
"borderStyle" => "solid",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
[
"type" => "social",
"iconSet" => "grey",
"icons" => [
[
"type" => "socialIcon",
"iconType" => "facebook",
"link" => "http://www.facebook.com",
"image" => $this->social_icon_url . "/02-grey/Facebook.png",
"height" => "32px",
"width" => "32px",
"text" => "Facebook",
],
[
"type" => "socialIcon",
"iconType" => "twitter",
"link" => "http://www.twitter.com",
"image" => $this->social_icon_url . "/02-grey/Twitter.png",
"height" => "32px",
"width" => "32px",
"text" => "Twitter",
],
],
],
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "7.5px",
"borderStyle" => "solid",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
[
"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" => "center",
],
"link" => [
"fontColor" => "#6cb7d4",
"textDecoration" => "none",
],
],
],
],
],
],
],
],
],
"globalStyles" => [
"text" => [
"fontColor" => "#000000",
"fontFamily" => "Arial",
"fontSize" => "16px",
],
"h1" => [
"fontColor" => "#111111",
"fontFamily" => "Trebuchet MS",
"fontSize" => "30px",
],
"h2" => [
"fontColor" => "#222222",
"fontFamily" => "Trebuchet MS",
"fontSize" => "24px",
],
"h3" => [
"fontColor" => "#333333",
"fontFamily" => "Trebuchet MS",
"fontSize" => "22px",
],
"link" => [
"fontColor" => "#21759B",
"textDecoration" => "underline",
],
"wrapper" => [
"backgroundColor" => "#ffffff",
],
"body" => [
"backgroundColor" => "#eeeeee",
],
],
];
}
private function getThumbnail() {
return $this->external_template_image_url . '/thumbnail.20190411-1500.jpg';
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,781 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class Phone {
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/phone';
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("New Phone Purchase", 'mailpoet'),
'categories' => json_encode(['welcome', 'all']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getThumbnail() {
return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
}
private function getBody() {
return [
'content' =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => '#1b1821',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
1 =>
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Phone-Logo.png',
'alt' => 'Phone-Logo',
'fullWidth' => true,
'width' => '122px',
'height' => '23px',
'styles' =>
[
'block' =>
[
'textAlign' => 'center',
],
],
],
],
],
],
],
1 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => '#1b1821',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Phone-Title.png',
'alt' => 'Phone-Title',
'fullWidth' => true,
'width' => '1280px',
'height' => '215px',
'styles' =>
[
'block' =>
[
'textAlign' => 'center',
],
],
],
1 =>
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Phone-Header.jpg',
'alt' => 'Phone-Header',
'fullWidth' => true,
'width' => '1280px',
'height' => '920px',
'styles' =>
[
'block' =>
[
'textAlign' => 'center',
],
],
],
2 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
3 =>
[
'type' => 'text',
'text' => '<h3 style="text-align: center;"><span style="color: #ffffff;"><strong>Welcome to your brand new Casia 7200.</strong></span></h3>
<p style="text-align: center;"><strong><span style="color: #8748d5;">Let\'s get you all set up.</span></strong></p>
<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>',
],
4 =>
[
'type' => 'button',
'text' => 'Get Started',
'url' => '',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#8748d5',
'borderColor' => '#0074a2',
'borderWidth' => '0px',
'borderRadius' => '40px',
'borderStyle' => 'solid',
'width' => '159px',
'lineHeight' => '45px',
'fontColor' => '#ffffff',
'fontFamily' => 'Arial',
'fontSize' => '20px',
'fontWeight' => 'bold',
'textAlign' => 'center',
],
],
],
5 =>
[
'type' => 'divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'dashed',
'borderWidth' => '2px',
'borderColor' => '#2c2c2c',
],
],
],
6 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
],
],
],
],
2 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'text',
'text' => '<p style="font-size: 11px; text-align: left;"><span style="color: #999999;">Address Line 1</span></p>
<p style="font-size: 11px; text-align: left;"><span style="color: #999999;">Address Line 2</span></p>
<p style="font-size: 11px; text-align: left;"><span style="color: #999999;">City</span></p>
<p style="font-size: 11px; text-align: left;"><span style="color: #999999;">Country</span></p>',
],
],
],
1 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Phone-Logo.png',
'alt' => 'Phone-Logo',
'fullWidth' => false,
'width' => '122px',
'height' => '23px',
'styles' =>
[
'block' =>
[
'textAlign' => 'center',
],
],
],
1 =>
[
'type' => 'social',
'iconSet' => 'full-symbol-grey',
'icons' =>
[
0 =>
[
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
1 =>
[
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
2 =>
[
'type' => 'socialIcon',
'iconType' => 'pinterest',
'link' => 'http://www.pinterest.com',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Pinterest.png',
'height' => '32px',
'width' => '32px',
'text' => 'Pinterest',
],
3 =>
[
'type' => 'socialIcon',
'iconType' => 'linkedin',
'link' => 'http://www.linkedin.com',
'image' => $this->social_icon_url . '/08-full-symbol-grey/LinkedIn.png',
'height' => '32px',
'width' => '32px',
'text' => 'LinkedIn',
],
],
],
],
],
2 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'text',
'text' => '<p style="text-align: right; font-size: 11px;"><a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a></p>
<p style="text-align: right; font-size: 11px;"><a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a></p>',
],
],
],
],
],
],
],
'globalStyles' =>
[
'text' =>
[
'fontColor' => '#000000',
'fontFamily' => 'Arial',
'fontSize' => '15px',
],
'h1' =>
[
'fontColor' => '#111111',
'fontFamily' => 'Arial',
'fontSize' => '30px',
],
'h2' =>
[
'fontColor' => '#222222',
'fontFamily' => 'Arial',
'fontSize' => '24px',
],
'h3' =>
[
'fontColor' => '#333333',
'fontFamily' => 'Arial',
'fontSize' => '22px',
],
'link' =>
[
'fontColor' => '#8748d5',
'textDecoration' => 'underline',
],
'wrapper' =>
[
'backgroundColor' => '#1b1821',
],
'body' =>
[
'backgroundColor' => '#1b1821',
],
],
'blockDefaults' =>
[
'automatedLatestContent' =>
[
'amount' => '5',
'withLayout' => false,
'contentType' => 'post',
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h1',
'titleAlignment' => 'left',
'titleIsLink' => false,
'imageFullWidth' => false,
'featuredImagePosition' => 'belowTitle',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'button',
'readMoreText' => 'Read more',
'readMoreButton' =>
[
'text' => 'Read more',
'url' => '[postLink]',
'context' => 'automatedLatestContent.readMoreButton',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#2ea1cd',
'borderColor' => '#0074a2',
'borderWidth' => '1px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Verdana',
'fontSize' => '18px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
'sortBy' => 'newest',
'showDivider' => true,
'divider' =>
[
'context' => 'automatedLatestContent.divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '3px',
'borderColor' => '#aaaaaa',
],
],
],
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
],
'automatedLatestContentLayout' =>
[
'amount' => '5',
'withLayout' => true,
'contentType' => 'post',
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h1',
'titleAlignment' => 'left',
'titleIsLink' => false,
'imageFullWidth' => false,
'featuredImagePosition' => 'alternate',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'button',
'readMoreText' => 'Read more',
'readMoreButton' =>
[
'text' => 'Read more',
'url' => '[postLink]',
'context' => 'automatedLatestContentLayout.readMoreButton',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#2ea1cd',
'borderColor' => '#0074a2',
'borderWidth' => '1px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Verdana',
'fontSize' => '18px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
'sortBy' => 'newest',
'showDivider' => true,
'divider' =>
[
'context' => 'automatedLatestContentLayout.divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '3px',
'borderColor' => '#aaaaaa',
],
],
],
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
],
'button' =>
[
'text' => 'Button',
'url' => '',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#2ea1cd',
'borderColor' => '#0074a2',
'borderWidth' => '1px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Verdana',
'fontSize' => '18px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
'divider' =>
[
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '3px',
'borderColor' => '#aaaaaa',
],
],
],
'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' => 'center',
],
'link' =>
[
'fontColor' => '#6cb7d4',
'textDecoration' => 'none',
],
],
],
'posts' =>
[
'amount' => '10',
'withLayout' => true,
'contentType' => 'post',
'postStatus' => 'publish',
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h1',
'titleAlignment' => 'left',
'titleIsLink' => false,
'imageFullWidth' => false,
'featuredImagePosition' => 'alternate',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'link',
'readMoreText' => 'Read more',
'readMoreButton' =>
[
'text' => 'Read more',
'url' => '[postLink]',
'context' => 'posts.readMoreButton',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#2ea1cd',
'borderColor' => '#0074a2',
'borderWidth' => '1px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Verdana',
'fontSize' => '18px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
'sortBy' => 'newest',
'showDivider' => true,
'divider' =>
[
'context' => 'posts.divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '3px',
'borderColor' => '#aaaaaa',
],
],
],
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
],
'social' =>
[
'iconSet' => 'default',
'icons' =>
[
0 =>
[
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/01-social/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
1 =>
[
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/01-social/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
],
],
'spacer' =>
[
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
'header' =>
[
'text' => '<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a>',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
'text' =>
[
'fontColor' => '#222222',
'fontFamily' => 'Arial',
'fontSize' => '12px',
'textAlign' => 'center',
],
'link' =>
[
'fontColor' => '#6cb7d4',
'textDecoration' => 'underline',
],
],
],
],
];
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,448 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class PieceOfCake {
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/piece_of_cake';
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Piece of cake", 'mailpoet'),
'categories' => json_encode(['standard', 'all']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getBody() {
return [
'content' => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#ffffff',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'header',
'text' => '<p><strong>Open daily from 9am to 9pm |&nbsp;<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a></strong></p>',
'styles' => [
'block' => [
'backgroundColor' => '#ececeb',
],
'text' => [
'fontColor' => '#606060',
'fontFamily' => 'Arial',
'fontSize' => '13px',
'textAlign' => 'right',
],
'link' => [
'fontColor' => '#d42b2b',
'textDecoration' => 'none',
],
],
],
1 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
2 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Restaurant-Bakery-Logo-1.png',
'alt' => 'Restaurant-Bakery-Logo-1',
'fullWidth' => true,
'width' => '1280px',
'height' => '180px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
3 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
4 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Restaurant-Bakery-Header.jpg',
'alt' => 'Restaurant-Bakery-Header',
'fullWidth' => true,
'width' => '1280px',
'height' => '1600px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
5 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
6 => [
'type' => 'text',
'text' => '<h1 style="text-align: center;"><strong>It\'s our Birthday!</strong></h1>',
],
7 => [
'type' => 'text',
'text' => '<h3 style="text-align: center; line-height: 1.4;">To celebrate, we\'re adding a slice of our Birthday cake to every order. Pop in this weekend to use our special offer code and enjoy!</h3>',
],
8 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'text',
'text' => '<p style="text-align: center; border: 3px dashed #d42b2b; color: #d42b2b; padding: 10px; font-size: 24px;"><strong>HAPPYBDAY</strong></p>',
],
],
],
2 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
2 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '50px',
],
],
],
],
],
],
],
3 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#ececeb',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
4 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#ececeb',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'text',
'text' => '<p style="background-color: #ececeb; line-height: 1.3;"><span style="font-weight: 600;"><span style="font-size: 12px; text-align: center;">Add your postal address here.</span></span></p>',
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'social',
'iconSet' => 'full-symbol-color',
'icons' => [
0 => [
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/06-full-symbol-color/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
1 => [
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/06-full-symbol-color/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
2 => [
'type' => 'socialIcon',
'iconType' => 'youtube',
'link' => 'http://www.youtube.com',
'image' => $this->social_icon_url . '/06-full-symbol-color/Youtube.png',
'height' => '32px',
'width' => '32px',
'text' => 'Youtube',
],
3 => [
'type' => 'socialIcon',
'iconType' => 'instagram',
'link' => 'http://instagram.com',
'image' => $this->social_icon_url . '/06-full-symbol-color/Instagram.png',
'height' => '32px',
'width' => '32px',
'text' => 'Instagram',
],
],
],
],
],
2 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'text',
'text' => '<p style="text-align: right; line-height: 1.3;"><strong><a href="[link:subscription_unsubscribe_url]" style="color: #d42b2b; text-decoration: none; font-size: 12px; text-align: center;">' . __("Unsubscribe", 'mailpoet') . '</a></strong></p>
<p style="text-align: right; line-height: 1.3;"><strong><a href="[link:subscription_manage_url]" style="color: #d42b2b; text-decoration: none; font-size: 12px; text-align: center;">Manage&nbsp;Subscription</a></strong></p>',
],
],
],
],
],
5 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#ececeb',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
],
],
],
],
],
],
'globalStyles' => [
'text' => [
'fontColor' => '#606060',
'fontFamily' => 'Arial',
'fontSize' => '16px',
],
'h1' => [
'fontColor' => '#606060',
'fontFamily' => 'Arial',
'fontSize' => '30px',
],
'h2' => [
'fontColor' => '#d42b2b',
'fontFamily' => 'Arial',
'fontSize' => '24px',
],
'h3' => [
'fontColor' => '#606060',
'fontFamily' => 'Arial',
'fontSize' => '20px',
],
'link' => [
'fontColor' => '#d42b2b',
'textDecoration' => 'underline',
],
'wrapper' => [
'backgroundColor' => '#ffffff',
],
'body' => [
'backgroundColor' => '#ececeb',
],
],
];
}
private function getThumbnail() {
return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,351 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class PostNotificationsBlank1Column {
private $assets_url;
private $external_template_image_url;
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->assets_url = $assets_url;
$this->external_template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/post-notifications-blank-1-column';
$this->template_image_url = $this->assets_url . '/img/blank_templates';
$this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Post Notifications: Blank 1 Column", 'mailpoet'),
'categories' => json_encode(['notification', 'blank']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getBody() {
return [
"content" => [
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#f8f8f8",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "header",
"text" => '<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a>',
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
"text" => [
"fontColor" => "#222222",
"fontFamily" => "Arial",
"fontSize" => "12px",
"textAlign" => "center",
],
"link" => [
"fontColor" => "#6cb7d4",
"textDecoration" => "underline",
],
],
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#ffffff",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"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",
"fullWidth" => false,
"width" => "598px",
"height" => "71px",
"styles" => [
"block" => [
"textAlign" => "center",
],
],
],
[
"type" => "text",
"text" => __("<h1 style=\"text-align: center;\"><strong>Check Out Our New Blog Posts! </strong></h1>\n<p>&nbsp;</p>\n<p>MailPoet can <span style=\"line-height: 1.6em; background-color: inherit;\"><em>automatically</em> </span><span style=\"line-height: 1.6em; background-color: inherit;\">send your new blog posts to your subscribers.</span></p>\n<p><span style=\"line-height: 1.6em; background-color: inherit;\"></span></p>\n<p><span style=\"line-height: 1.6em; background-color: inherit;\">Below, you'll find three recent posts, which are displayed automatically, thanks to the <em>Automatic Latest Content</em> widget, which can be found in the right sidebar, under <em>Content</em>.</span></p>\n<p><span style=\"line-height: 1.6em; background-color: inherit;\"></span></p>\n<p><span style=\"line-height: 1.6em; background-color: inherit;\">To edit the settings and styles of your post, simply click on a post below.</span></p>", 'mailpoet'),
],
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "13px",
"borderStyle" => "dotted",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
[
"type" => "spacer",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"height" => "40px",
],
],
],
],
],
],
],
[
"type" => "automatedLatestContentLayout",
"withLayout" => true,
"amount" => "3",
"contentType" => "post",
"terms" => [],
"inclusionType" => "include",
"displayType" => "excerpt",
"titleFormat" => "h3",
"titleAlignment" => "left",
"titleIsLink" => false,
"imageFullWidth" => false,
"featuredImagePosition" => "alternate",
"showAuthor" => "no",
"authorPrecededBy" => __("Author:", 'mailpoet'),
"showCategories" => "no",
"categoriesPrecededBy" => __("Categories:", 'mailpoet'),
"readMoreType" => "button",
"readMoreText" => "Read more",
"readMoreButton" => [
"type" => "button",
"text" => __("Read the post", 'mailpoet'),
"url" => "[postLink]",
"styles" => [
"block" => [
"backgroundColor" => "#2ea1cd",
"borderColor" => "#0074a2",
"borderWidth" => "1px",
"borderRadius" => "5px",
"borderStyle" => "solid",
"width" => "160px",
"lineHeight" => "30px",
"fontColor" => "#ffffff",
"fontFamily" => "Verdana",
"fontSize" => "16px",
"fontWeight" => "normal",
"textAlign" => "center",
],
],
],
"sortBy" => "newest",
"showDivider" => true,
"divider" => [
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "13px",
"borderStyle" => "solid",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
"backgroundColor" => "#ffffff",
"backgroundColorAlternate" => "#eeeeee",
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#f8f8f8",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "spacer",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"height" => "40px",
],
],
],
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "24.5px",
"borderStyle" => "solid",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
[
"type" => "social",
"iconSet" => "grey",
"icons" => [
[
"type" => "socialIcon",
"iconType" => "facebook",
"link" => "http://www.facebook.com",
"image" => $this->social_icon_url . "/02-grey/Facebook.png",
"height" => "32px",
"width" => "32px",
"text" => "Facebook",
],
[
"type" => "socialIcon",
"iconType" => "twitter",
"link" => "http://www.twitter.com",
"image" => $this->social_icon_url . "/02-grey/Twitter.png",
"height" => "32px",
"width" => "32px",
"text" => "Twitter",
],
],
],
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "7.5px",
"borderStyle" => "solid",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
[
"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" => "center",
],
"link" => [
"fontColor" => "#6cb7d4",
"textDecoration" => "none",
],
],
],
],
],
],
],
],
],
"globalStyles" => [
"text" => [
"fontColor" => "#000000",
"fontFamily" => "Arial",
"fontSize" => "16px",
],
"h1" => [
"fontColor" => "#111111",
"fontFamily" => "Trebuchet MS",
"fontSize" => "30px",
],
"h2" => [
"fontColor" => "#222222",
"fontFamily" => "Trebuchet MS",
"fontSize" => "24px",
],
"h3" => [
"fontColor" => "#333333",
"fontFamily" => "Trebuchet MS",
"fontSize" => "22px",
],
"link" => [
"fontColor" => "#21759B",
"textDecoration" => "underline",
],
"wrapper" => [
"backgroundColor" => "#ffffff",
],
"body" => [
"backgroundColor" => "#eeeeee",
],
],
];
}
private function getThumbnail() {
return $this->external_template_image_url . '/thumbnail.20190411-1500.jpg';
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,665 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class RetroComputingMagazine {
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/retro_computing_magazine';
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Retro Computing Magazine", 'mailpoet'),
'categories' => json_encode(['standard', 'all']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getThumbnail() {
return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
}
private function getBody() {
return [
'content' =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#4473a1',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#008282',
'height' => '40px',
],
],
],
],
],
],
],
1 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#f8f8f8',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Windows94-Header.png',
'alt' => 'Windows94-Header',
'fullWidth' => true,
'width' => '1280px',
'height' => '740px',
'styles' =>
[
'block' =>
[
'textAlign' => 'center',
],
],
],
],
],
],
],
2 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#ffffff',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'header',
'text' => '<p><span style="color: #ffffff;"><a href="[link:newsletter_view_in_browser_url]" style="color: #ffffff;">' . __("View this in your browser.", 'mailpoet') . '</a></span></p>',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#008282',
],
'text' =>
[
'fontColor' => '#222222',
'fontFamily' => 'Courier New',
'fontSize' => '12px',
'textAlign' => 'left',
],
'link' =>
[
'fontColor' => '#6cb7d4',
'textDecoration' => 'underline',
],
],
],
1 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
2 =>
[
'type' => 'text',
'text' => '<h1 style="text-align: left;"><strong>We\'re upgrading!</strong></h1>
<p><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In elementum nunc vel est congue, a venenatis nunc aliquet. Curabitur luctus, nulla et dignissim elementum, ipsum eros fermentum nulla, non cursus eros mi eu velit. Nunc ex nibh, porta vulputate pharetra ac, placerat sed orci. Etiam enim enim, aliquet nec ligula in, ultrices iaculis dolor. Suspendisse potenti. Praesent fringilla augue ut lorem mattis, vitae fringilla nunc faucibus. </span></p>
<p><span></span></p>
<p><span>Quisque in leo felis. Etiam at libero et enim tincidunt scelerisque. Ut felis lectus, imperdiet quis justo quis, elementum sagittis tellus. Sed elementum, lacus at iaculis vestibulum, nunc leo gravida nisi, sed dapibus nisi odio ac ex. Aliquam id arcu dictum, cursus quam id, eleifend libero.</span></p>',
],
3 =>
[
'type' => 'divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'ridge',
'borderWidth' => '3px',
'borderColor' => '#aaaaaa',
],
],
],
4 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
5 =>
[
'type' => 'text',
'text' => '<h1><strong>Latest News</strong></h1>',
],
],
],
],
],
3 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'text',
'text' => '<h3 style="text-align: left;"><strong>What is it like to use a Windows 98 PC in 2017?</strong></h3>',
],
1 =>
[
'type' => 'text',
'text' => '<p class="mailpoet_wp_post"><span>Computers are much more advanced than they were even a few years ago, but of course we all like to complain about the dumb things they sometimes do. It&rsquo;s easy to forget how clunky things used to be, though...</span></p>
<p><a href="http://mailpoet.info/odds-on-10-science-breakthroughs-you-can-bet-on/">Read more</a></p>',
],
],
],
1 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'text',
'text' => '<h3 style="text-align: left;"><strong>Windows 95 still finds life online</strong></h3>',
],
1 =>
[
'type' => 'text',
'text' => '<p class="mailpoet_wp_post">Microsoft&rsquo;s Windows 95 has reached the ripe old age of 22 this year and to commemorate this milestone, TheNextWeb goes into some details about the operating system that users may have missed over the years...</p>
<p><a href="http://mailpoet.info/brazils-history-making-hurricane/">Read more</a></p>',
],
],
],
2 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'text',
'text' => '<h3 style="text-align: left;"><strong>New Sinclair ZX Spectrum Fully Funded</strong></h3>',
],
1 =>
[
'type' => 'text',
'text' => '<p class="mailpoet_wp_post">The new Sinclair ZX Spectrum Next home computer which was launched on Kickstarter to mark the 35th birthday of the original Spectrum produced by Sinclair Research has been fully funded in less than 48 hours...</p>
<p><a href="http://mailpoet.info/cutting-through-the-smog-what-to-do-to-fight-air-pollution/">Read more</a></p>',
],
],
],
],
],
4 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '35px',
],
],
],
1 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#008282',
'height' => '50px',
],
],
],
],
],
],
],
5 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#008282',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'text',
'text' => '<h2><strong><span style="color: #ffffff;">Did you know?</span></strong></h2>
<p><span style="color: #ffffff;">At the time of creation and development, the microcomputers in Japan were not powerful enough to handle the complex tasks related to the design and programming of Space Invaders. Nishikado then designed his own hardware and developmental tools to make the game a reality.</span></p>
<p><strong><span style="color: #ffffff;"></span></strong></p>',
],
],
],
1 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Windows94-Today.png',
'alt' => 'Windows94-Today',
'fullWidth' => false,
'width' => '364px',
'height' => '291px',
'styles' =>
[
'block' =>
[
'textAlign' => 'center',
],
],
],
],
],
],
],
6 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#008282',
'height' => '20px',
],
],
],
],
],
],
],
7 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#f8f8f8',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 =>
[
'type' => 'text',
'text' => '<p style="text-align: center;"><strong>Let\'s get social!</strong></p>',
],
2 =>
[
'type' => 'social',
'iconSet' => 'grey',
'icons' =>
[
0 =>
[
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/02-grey/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
1 =>
[
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/02-grey/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
2 =>
[
'type' => 'socialIcon',
'iconType' => 'youtube',
'link' => 'http://www.youtube.com',
'image' => $this->social_icon_url . '/02-grey/Youtube.png',
'height' => '32px',
'width' => '32px',
'text' => 'Youtube',
],
3 =>
[
'type' => 'socialIcon',
'iconType' => 'email',
'link' => '',
'image' => $this->social_icon_url . '/02-grey/Email.png',
'height' => '32px',
'width' => '32px',
'text' => 'Email',
],
],
],
3 =>
[
'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' => 'Courier New',
'fontSize' => '12px',
'textAlign' => 'center',
],
'link' =>
[
'fontColor' => '#008282',
'textDecoration' => 'none',
],
],
],
],
],
],
],
],
],
'globalStyles' =>
[
'text' =>
[
'fontColor' => '#000000',
'fontFamily' => 'Courier New',
'fontSize' => '14px',
],
'h1' =>
[
'fontColor' => '#111111',
'fontFamily' => 'Courier New',
'fontSize' => '30px',
],
'h2' =>
[
'fontColor' => '#222222',
'fontFamily' => 'Courier New',
'fontSize' => '24px',
],
'h3' =>
[
'fontColor' => '#333333',
'fontFamily' => 'Courier New',
'fontSize' => '18px',
],
'link' =>
[
'fontColor' => '#008282',
'textDecoration' => 'underline',
],
'wrapper' =>
[
'backgroundColor' => '#ffffff',
],
'body' =>
[
'backgroundColor' => '#008282',
],
],
];
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,840 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class RssSimpleNews {
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/rss-simple-news';
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Stripped RSS Style Layout", 'mailpoet'),
'categories' => json_encode(['notification', 'all']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getThumbnail() {
return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
}
private function getBody() {
return [
'content' =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => '#f4f4f4',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '25px',
],
],
],
],
],
],
],
1 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/RSS-Logo-2.png',
'alt' => 'RSS-Logo-2',
'fullWidth' => true,
'width' => '210px',
'height' => '90px',
'styles' =>
[
'block' =>
[
'textAlign' => 'center',
],
],
],
],
],
1 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
2 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '24px',
],
],
],
1 =>
[
'type' => 'social',
'iconSet' => 'full-symbol-color',
'icons' =>
[
0 =>
[
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/06-full-symbol-color/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
1 =>
[
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/06-full-symbol-color/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
2 =>
[
'type' => 'socialIcon',
'iconType' => 'website',
'link' => '',
'image' => $this->social_icon_url . '/06-full-symbol-color/Website.png',
'height' => '32px',
'width' => '32px',
'text' => 'Website',
],
],
],
],
],
],
],
2 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => '#ffffff',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'text',
'text' => '<h3 style="text-align: left;"><strong><span style="color: #333333;">Latest RSS Simple&nbsp;Posts</span></strong></h3>
<p><span style="color: #999999;">Week 23: 23/19/19</span></p>',
],
1 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
2 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
3 =>
[
'type' => 'automatedLatestContentLayout',
'withLayout' => true,
'amount' => '5',
'contentType' => 'post',
'terms' =>
[
],
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h3',
'titleAlignment' => 'left',
'titleIsLink' => true,
'imageFullWidth' => false,
'featuredImagePosition' => 'alternate',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'link',
'readMoreText' => 'Read more.',
'readMoreButton' =>
[
'type' => 'button',
'text' => 'Read more',
'url' => '[postLink]',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#2ea1cd',
'borderColor' => '#0074a2',
'borderWidth' => '1px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Verdana',
'fontSize' => '18px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
'context' => 'automatedLatestContentLayout.readMoreButton',
],
'sortBy' => 'newest',
'showDivider' => true,
'divider' =>
[
'type' => 'divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '1px',
'borderColor' => '#ececec',
],
],
'context' => 'automatedLatestContentLayout.divider',
],
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
],
4 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => '#f4f4f4',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
1 =>
[
'type' => 'text',
'text' => '<p><span style="color: #808080;"><strong>RSS Simple</strong></span></p>
<p><span style="color: #808080; font-size: 11px;"><strong><a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a><span>&nbsp;|&nbsp;</span><a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a></strong></span></p>
<p><span style="color: #808080; font-size: 11px;"><strong><span>' . __("Add your postal address here!", 'mailpoet') . '</span></strong></span></p>',
],
],
],
],
],
],
],
'globalStyles' =>
[
'text' =>
[
'fontColor' => '#000000',
'fontFamily' => 'Arial',
'fontSize' => '15px',
],
'h1' =>
[
'fontColor' => '#111111',
'fontFamily' => 'Arial',
'fontSize' => '30px',
],
'h2' =>
[
'fontColor' => '#222222',
'fontFamily' => 'Arial',
'fontSize' => '24px',
],
'h3' =>
[
'fontColor' => '#3478f5',
'fontFamily' => 'Arial',
'fontSize' => '20px',
],
'link' =>
[
'fontColor' => '#3478f5',
'textDecoration' => 'none',
],
'wrapper' =>
[
'backgroundColor' => '#ffffff',
],
'body' =>
[
'backgroundColor' => '#f4f4f4',
],
],
'blockDefaults' =>
[
'automatedLatestContent' =>
[
'amount' => '3',
'contentType' => 'post',
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h3',
'titleAlignment' => 'left',
'titleIsLink' => true,
'imageFullWidth' => false,
'featuredImagePosition' => 'belowTitle',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'link',
'readMoreText' => 'Read more',
'readMoreButton' =>
[
'text' => 'Read more',
'url' => '[postLink]',
'context' => 'automatedLatestContent.readMoreButton',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#2ea1cd',
'borderColor' => '#0074a2',
'borderWidth' => '1px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Verdana',
'fontSize' => '18px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
'type' => 'button',
],
'sortBy' => 'newest',
'showDivider' => true,
'divider' =>
[
'context' => 'automatedLatestContent.divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '1px',
'borderColor' => '#efe7f0',
],
],
'type' => 'divider',
],
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
'type' => 'automatedLatestContent',
'terms' =>
[
],
'withLayout' => false,
],
'automatedLatestContentLayout' =>
[
'amount' => '5',
'withLayout' => true,
'contentType' => 'post',
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h3',
'titleAlignment' => 'left',
'titleIsLink' => true,
'imageFullWidth' => false,
'featuredImagePosition' => 'alternate',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'link',
'readMoreText' => 'Read more.',
'readMoreButton' =>
[
'text' => 'Read more',
'url' => '[postLink]',
'context' => 'automatedLatestContentLayout.readMoreButton',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#2ea1cd',
'borderColor' => '#0074a2',
'borderWidth' => '1px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Verdana',
'fontSize' => '18px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
'type' => 'button',
],
'sortBy' => 'newest',
'showDivider' => true,
'divider' =>
[
'context' => 'automatedLatestContentLayout.divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '1px',
'borderColor' => '#ececec',
],
],
'type' => 'divider',
],
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
'type' => 'automatedLatestContentLayout',
'terms' =>
[
],
],
'button' =>
[
'text' => 'Read more',
'url' => '[postLink]',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#2ea1cd',
'borderColor' => '#0074a2',
'borderWidth' => '1px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Verdana',
'fontSize' => '18px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
'type' => 'button',
],
'container' =>
[
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
],
'divider' =>
[
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '3px',
'borderColor' => '#aaaaaa',
],
],
'type' => 'divider',
],
'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' => 'center',
],
'link' =>
[
'fontColor' => '#6cb7d4',
'textDecoration' => 'none',
],
],
],
'posts' =>
[
'amount' => '10',
'contentType' => 'post',
'postStatus' => 'publish',
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h1',
'titleAlignment' => 'left',
'titleIsLink' => false,
'imageFullWidth' => false,
'featuredImagePosition' => 'belowTitle',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'link',
'readMoreText' => 'Read more',
'readMoreButton' =>
[
'text' => 'Read more',
'url' => '[postLink]',
'context' => 'posts.readMoreButton',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#2ea1cd',
'borderColor' => '#0074a2',
'borderWidth' => '1px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Verdana',
'fontSize' => '18px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
'sortBy' => 'newest',
'showDivider' => true,
'divider' =>
[
'context' => 'posts.divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '3px',
'borderColor' => '#aaaaaa',
],
],
],
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
],
'social' =>
[
'iconSet' => 'default',
'icons' =>
[
0 =>
[
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/01-social/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
1 =>
[
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/01-social/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
],
],
'spacer' =>
[
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
'header' =>
[
'text' => '<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a>',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
'text' =>
[
'fontColor' => '#222222',
'fontFamily' => 'Arial',
'fontSize' => '12px',
'textAlign' => 'center',
],
'link' =>
[
'fontColor' => '#6cb7d4',
'textDecoration' => 'underline',
],
],
],
],
];
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,583 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class Shoes {
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/shoes';
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Shoes", 'mailpoet'),
'categories' => json_encode(['standard', 'all']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getBody() {
return [
'content' => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#f6f6f6',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Retail-Shoes-Logo.png',
'alt' => 'Retail-Shoes-Logo',
'fullWidth' => true,
'width' => '1280px',
'height' => '220px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#ffffff',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Retail-Shoes-Header.jpg',
'alt' => 'Retail-Shoes-Header',
'fullWidth' => true,
'width' => '1280px',
'height' => '700px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
],
],
],
],
2 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#f1b512',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 => [
'type' => 'text',
'text' => '<h2 style="text-align: center;"><span style="color: #614a0d;">Our New Range</span></h2>
<p style="text-align: center;"><span style="color: #614a0d;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque cursus aliquam urna, non ultricies diam sagittis sit amet. Etiam tempus a metus sed tincidunt.</span></p>
<p style="text-align: center;"><span style="color: #614a0d;">Curabitur fermentum ligula eget lacus aliquam volutpat. Integer sapien neque, laoreet quis lobortis sed, semper eget magna. Suspendisse potentiu.</span></p>',
],
2 => [
'type' => 'button',
'text' => 'Find Out More',
'url' => '',
'styles' => [
'block' => [
'backgroundColor' => '#41c7bf',
'borderColor' => '#28a9a2',
'borderWidth' => '2px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '160px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Arial',
'fontSize' => '16px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
3 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
],
],
],
],
3 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#36b0a9',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '70px',
],
],
],
1 => [
'type' => 'text',
'text' => '<h2><span style="color: #ffffff;">Handcrafted Shoes</span></h2>
<p style="font-size: 14px;"><span><span style="color: #ffffff;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque cursus aliquam urna, non ultricies diam sagittis sit amet. Etiam tempus a metus sed tincidunt. Curabitur fermentum ligula eget lacus aliquam volutpat.</span></span></p>',
],
2 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Retail-Shoes-Boxes-1.jpg',
'alt' => 'Retail-Shoes-Boxes-1',
'fullWidth' => true,
'width' => '700px',
'height' => '700px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
],
],
],
],
4 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#36b0a9',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Retail-Shoes-Boxes-2.jpg',
'alt' => 'Retail-Shoes-Boxes-2',
'fullWidth' => true,
'width' => '700px',
'height' => '700px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '70px',
],
],
],
1 => [
'type' => 'text',
'text' => '<h2><span style="color: #ffffff;">Perfect For Any Occasion</span></h2>
<p style="font-size: 14px;"><span><span style="color: #ffffff;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque cursus aliquam urna, non ultricies diam sagittis sit amet. Etiam tempus a metus sed tincidunt. Curabitur fermentum ligula eget lacus aliquam volutpat.</span></span></p>',
],
2 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
],
],
],
],
5 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#f6f6f6',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
1 => [
'type' => 'text',
'text' => '<h3 style="text-align: center;"><strong>We\'re open every day!</strong></h3>
<p style="text-align: center;">Call in any time and we\'ll help you pick the best shoes for any occasion.</p>
<p style="text-align: center;">If you\'re not happy, just bring them back to us and we\'ll give you a full refund.</p>',
],
2 => [
'type' => 'button',
'text' => 'Check Out Our Website',
'url' => '',
'styles' => [
'block' => [
'backgroundColor' => '#41c7bf',
'borderColor' => '#28a9a2',
'borderWidth' => '2px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '220px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Arial',
'fontSize' => '16px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
3 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
4 => [
'type' => 'divider',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '2px',
'borderColor' => '#d3d3d3',
],
],
],
5 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
6 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#f6f6f6',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Retail-Shoes-Logo-Footer.png',
'alt' => 'Retail-Shoes-Logo-Footer',
'fullWidth' => true,
'width' => '1280px',
'height' => '60px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
1 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
2 => [
'type' => 'text',
'text' => '<p style="text-align: center; font-size: 12px;"><span style="color: #999999;">Address Line 1</span></p>
<p style="text-align: center; font-size: 12px;"><span style="color: #999999;">Address Line 2</span></p>
<p style="text-align: center; font-size: 12px;"><span style="color: #999999;">City</span></p>
<p style="text-align: center; font-size: 12px;"><span style="color: #999999;">Country</span></p>',
],
3 => [
'type' => 'social',
'iconSet' => 'grey',
'icons' => [
0 => [
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/02-grey/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
1 => [
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/02-grey/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
2 => [
'type' => 'socialIcon',
'iconType' => 'instagram',
'link' => 'http://instagram.com',
'image' => $this->social_icon_url . '/02-grey/Instagram.png',
'height' => '32px',
'width' => '32px',
'text' => 'Instagram',
],
],
],
],
],
],
],
7 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#f6f6f6',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'footer',
'text' => '<p><a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a> | <a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a></p>',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
'text' => [
'fontColor' => '#222222',
'fontFamily' => 'Arial',
'fontSize' => '12px',
'textAlign' => 'center',
],
'link' => [
'fontColor' => '#41c7bf',
'textDecoration' => 'none',
],
],
],
1 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
],
],
],
],
],
],
'globalStyles' => [
'text' => [
'fontColor' => '#000000',
'fontFamily' => 'Arial',
'fontSize' => '15px',
],
'h1' => [
'fontColor' => '#111111',
'fontFamily' => 'Arial',
'fontSize' => '30px',
],
'h2' => [
'fontColor' => '#222222',
'fontFamily' => 'Arial',
'fontSize' => '24px',
],
'h3' => [
'fontColor' => '#333333',
'fontFamily' => 'Arial',
'fontSize' => '22px',
],
'link' => [
'fontColor' => '#21759B',
'textDecoration' => 'underline',
],
'wrapper' => [
'backgroundColor' => '#ffffff',
],
'body' => [
'backgroundColor' => '#f6f6f6',
],
],
];
}
private function getThumbnail() {
return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
}
}
@@ -0,0 +1,209 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class SimpleText {
private $assets_url;
private $external_template_image_url;
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->assets_url = $assets_url;
$this->external_template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/simple-text';
$this->template_image_url = $this->assets_url . '/img/blank_templates';
$this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Simple Text", 'mailpoet'),
'categories' => json_encode(['standard', 'blank']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getBody() {
return [
"content" => [
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#ffffff",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"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:subscriber],</p>\n<p style=\"text-align: left;\"></p>\n<p style=\"text-align: left;\">In MailPoet, you can write emails in plain text, just like in a regular email. This can make your email newsletters more personal and attention-grabbing.</p>\n<p style=\"text-align: left;\"></p>\n<p style=\"text-align: left;\">Is this too simple? You can still style your text with basic formatting, like <strong>bold</strong> or <em>italics.</em></p>\n<p style=\"text-align: left;\"></p>\n<p style=\"text-align: left;\">Finally, you can also add a call-to-action button between 2 blocks of text, like this:</p>", 'mailpoet'),
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#ffffff",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "spacer",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"height" => "23px",
],
],
],
[
"type" => "button",
"text" => __("It's time to take action!", 'mailpoet'),
"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" => "left",
],
],
],
[
"type" => "text",
"text" => __("<p>Thanks for reading. See you soon!</p>\n<p>&nbsp;</p>\n<p><strong><em>The MailPoet Team</em></strong></p>", 'mailpoet'),
],
[
"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",
],
"h1" => [
"fontColor" => "#111111",
"fontFamily" => "Trebuchet MS",
"fontSize" => "30px",
],
"h2" => [
"fontColor" => "#222222",
"fontFamily" => "Trebuchet MS",
"fontSize" => "24px",
],
"h3" => [
"fontColor" => "#333333",
"fontFamily" => "Trebuchet MS",
"fontSize" => "22px",
],
"link" => [
"fontColor" => "#21759B",
"textDecoration" => "underline",
],
"wrapper" => [
"backgroundColor" => "#ffffff",
],
"body" => [
"backgroundColor" => "#ffffff",
],
],
];
}
private function getThumbnail() {
return $this->external_template_image_url . '/thumbnail.20190411-1500.jpg';
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,714 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class Sunglasses {
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/sunglasses';
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Sunglasses", 'mailpoet'),
'categories' => json_encode(['welcome', 'all']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getThumbnail() {
return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
}
private function getBody() {
return [
'content' =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
1 =>
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Glasses-Logo.jpg',
'alt' => 'Glasses-Logo',
'fullWidth' => false,
'width' => '250px',
'height' => '66px',
'styles' =>
[
'block' =>
[
'textAlign' => 'center',
],
],
],
2 =>
[
'type' => 'divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#ffffff',
'padding' => '17px',
'borderStyle' => 'solid',
'borderWidth' => '2px',
'borderColor' => '#f8b849',
],
],
],
3 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
4 =>
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Glasses-Header-2.jpg',
'alt' => 'Glasses-Header-2',
'fullWidth' => true,
'width' => '1280px',
'height' => '116px',
'styles' =>
[
'block' =>
[
'textAlign' => 'center',
],
],
],
5 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
],
],
],
],
1 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'text',
'text' => '<h3 style="text-align: center;"><span style="color: #333333;"><strong>Here\'s what we sent you</strong></span></h3>',
],
],
],
],
],
2 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Glasses-Images-1.jpg',
'alt' => 'Glasses-Images-1',
'fullWidth' => true,
'width' => '1280px',
'height' => '650px',
'styles' =>
[
'block' =>
[
'textAlign' => 'center',
],
],
],
1 =>
[
'type' => 'text',
'text' => '<p style="text-align: center;"><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra.</span></p>',
],
2 =>
[
'type' => 'button',
'text' => 'Choose These Frames',
'url' => '',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#f8b849',
'borderColor' => '#0074a2',
'borderWidth' => '0px',
'borderRadius' => '0px',
'borderStyle' => 'solid',
'width' => '195px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Arial',
'fontSize' => '16px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
3 =>
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Glasses-Images-2.jpg',
'alt' => 'Glasses-Images-2',
'fullWidth' => true,
'width' => '1280px',
'height' => '650px',
'styles' =>
[
'block' =>
[
'textAlign' => 'center',
],
],
],
4 =>
[
'type' => 'text',
'text' => '<p style="text-align: center;"><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra.</span></p>',
],
5 =>
[
'type' => 'button',
'text' => 'Choose These Frames',
'url' => '',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#f8b849',
'borderColor' => '#0074a2',
'borderWidth' => '0px',
'borderRadius' => '0px',
'borderStyle' => 'solid',
'width' => '195px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Arial',
'fontSize' => '16px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
6 =>
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Glasses-Images-3.jpg',
'alt' => 'Glasses-Images-3',
'fullWidth' => true,
'width' => '1280px',
'height' => '650px',
'styles' =>
[
'block' =>
[
'textAlign' => 'center',
],
],
],
7 =>
[
'type' => 'text',
'text' => '<p style="text-align: center;"><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra.</span></p>',
],
8 =>
[
'type' => 'button',
'text' => 'Choose These Frames',
'url' => '',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#f8b849',
'borderColor' => '#0074a2',
'borderWidth' => '0px',
'borderRadius' => '0px',
'borderStyle' => 'solid',
'width' => '195px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Arial',
'fontSize' => '16px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
9 =>
[
'type' => 'divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#ffffff',
'padding' => '34.5px',
'borderStyle' => 'solid',
'borderWidth' => '2px',
'borderColor' => '#f8b849',
],
],
],
],
],
],
],
3 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Glasses-Header.jpg',
'alt' => 'Glasses-Header',
'fullWidth' => true,
'width' => '640px',
'height' => '920px',
'styles' =>
[
'block' =>
[
'textAlign' => 'center',
],
],
],
],
],
1 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '60px',
],
],
],
1 =>
[
'type' => 'text',
'text' => '<h3><strong>Our Summer Range Is Here</strong></h3>
<p>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.</p>
<p></p>
<p>Fusce finibus convallis augue, ut viverra felis placerat in. Curabitur et commodo ipsum. Mauris tellus metus, tristique vel sollicitudin ut, malesuada in augue.&nbsp;</p>',
],
2 =>
[
'type' => 'button',
'text' => 'Find Out More',
'url' => '',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#f8b849',
'borderColor' => '#0074a2',
'borderWidth' => '0px',
'borderRadius' => '0px',
'borderStyle' => 'solid',
'width' => '137px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Arial',
'fontSize' => '16px',
'fontWeight' => 'normal',
'textAlign' => 'left',
],
],
],
],
],
],
],
4 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#ffffff',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#ffffff',
'padding' => '34.5px',
'borderStyle' => 'solid',
'borderWidth' => '2px',
'borderColor' => '#f8b849',
],
],
],
],
],
],
],
5 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'text',
'text' => '<h2 style="text-align: center;"><span style="color: #333333;"><strong>Got any questions or need some help?</strong></span></h2>
<p style="text-align: center;"><span style="color: #333333;">We\'re just a click or a phone call away.</span></p>
<p style="text-align: center;"><span style="color: #333333;"></span></p>
<h3 style="text-align: center;"><span style="color: #333333;"><strong>Call Us:</strong> 08856877854</span></h3>
<h3 style="text-align: center;"></h3>',
],
1 =>
[
'type' => 'divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#ffffff',
'padding' => '23.5px',
'borderStyle' => 'solid',
'borderWidth' => '2px',
'borderColor' => '#f8b849',
],
],
],
],
],
],
],
6 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#ffffff',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'social',
'iconSet' => 'full-symbol-black',
'icons' =>
[
0 =>
[
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
1 =>
[
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
2 =>
[
'type' => 'socialIcon',
'iconType' => 'instagram',
'link' => 'http://instagram.com',
'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png',
'height' => '32px',
'width' => '32px',
'text' => 'Instagram',
],
3 =>
[
'type' => 'socialIcon',
'iconType' => 'email',
'link' => '',
'image' => $this->social_icon_url . '/07-full-symbol-black/Email.png',
'height' => '32px',
'width' => '32px',
'text' => 'Email',
],
],
],
1 =>
[
'type' => 'text',
'text' => '<p style="text-align: center; font-size: 11px;"><strong><span style="color: #808080;"><a href="[link:subscription_unsubscribe_url]" style="color: #808080;">' . __("Unsubscribe", 'mailpoet') . '</a>&nbsp;|&nbsp;<a href="[link:subscription_manage_url]" style="color: #808080;">' . __("Manage your subscription", 'mailpoet') . '</a></span></strong><br /><span style="color: #808080;">' . __("Add your postal address here!", 'mailpoet') . '</span></p>',
],
],
],
],
],
],
],
'globalStyles' =>
[
'text' =>
[
'fontColor' => '#000000',
'fontFamily' => 'Arial',
'fontSize' => '15px',
],
'h1' =>
[
'fontColor' => '#111111',
'fontFamily' => 'Arial',
'fontSize' => '30px',
],
'h2' =>
[
'fontColor' => '#222222',
'fontFamily' => 'Arial',
'fontSize' => '24px',
],
'h3' =>
[
'fontColor' => '#333333',
'fontFamily' => 'Arial',
'fontSize' => '22px',
],
'link' =>
[
'fontColor' => '#21759B',
'textDecoration' => 'underline',
],
'wrapper' =>
[
'backgroundColor' => '#ffffff',
],
'body' =>
[
'backgroundColor' => '#ffffff',
],
],
];
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,764 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class TakeAHike {
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/take_a_hike';
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Take a Hike", 'mailpoet'),
'categories' => json_encode(['standard', 'all']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getBody() {
return [
'content' => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/header.jpg',
'alt' => 'header',
'fullWidth' => true,
'width' => '1320px',
'height' => '483px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
1 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
2 => [
'type' => 'text',
'text' => '<p>Hi&nbsp;[subscriber:firstname | default:explorer]</p>
<p></p>
<p>Aliquam feugiat nisl eget eleifend congue. Nullam neque tellus, elementum vel elit dictum, tempus sagittis nunc. Phasellus quis commodo odio. Vestibulum vitae mi vel quam rhoncus egestas eget vitae eros.&nbsp;</p>',
],
3 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
4 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => '#843c15',
'height' => '40px',
],
],
],
5 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'text',
'text' => '<h1><strong>How to plan your hiking route</strong></h1>
<p>Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Aliquam dictum urna ac lacus dapibus rhoncus.</p>',
],
1 => [
'type' => 'button',
'text' => 'Read More',
'url' => 'https://www.google.co.uk',
'styles' => [
'block' => [
'backgroundColor' => '#64a1af',
'borderColor' => '#0074a2',
'borderWidth' => '0px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '150px',
'lineHeight' => '34px',
'fontColor' => '#ffffff',
'fontFamily' => 'Courier New',
'fontSize' => '18px',
'fontWeight' => 'bold',
'textAlign' => 'left',
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/map.jpg',
'alt' => 'map',
'fullWidth' => false,
'width' => '330px',
'height' => '227px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
],
],
],
],
2 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => '#843c15',
'height' => '40px',
],
],
],
2 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
3 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/boots.jpg',
'alt' => 'boots',
'fullWidth' => false,
'width' => '600px',
'height' => '400px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'text',
'text' => '<h2><strong>Tried &amp; tested: Our favourite walking boots</strong></h2>
<p>Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.&nbsp;</p>',
],
1 => [
'type' => 'button',
'text' => 'See Reviews',
'url' => '',
'styles' => [
'block' => [
'backgroundColor' => '#64a1af',
'borderColor' => '#0074a2',
'borderWidth' => '0px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '150px',
'lineHeight' => '34px',
'fontColor' => '#ffffff',
'fontFamily' => 'Courier New',
'fontSize' => '18px',
'fontWeight' => 'bold',
'textAlign' => 'left',
],
],
],
],
],
],
],
4 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => '#843c15',
'height' => '40px',
],
],
],
2 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
3 => [
'type' => 'text',
'text' => '<h3 style="text-align: center;"><strong>Hikers Gallery</strong></h3>',
],
],
],
],
],
5 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/gallery3.jpg',
'alt' => 'gallery3',
'fullWidth' => true,
'width' => '1000px',
'height' => '750px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/gallery1-300x225.jpg',
'alt' => 'gallery1',
'fullWidth' => true,
'width' => '300px',
'height' => '225px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
],
],
2 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/gallery2-1.jpg',
'alt' => 'gallery2',
'fullWidth' => true,
'width' => '1000px',
'height' => '750px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
],
],
],
],
6 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 => [
'type' => 'text',
'text' => '<p style="text-align: center;">Edit this to insert text</p>',
],
2 => [
'type' => 'button',
'text' => 'View More Photos',
'url' => '',
'styles' => [
'block' => [
'backgroundColor' => '#64a1af',
'borderColor' => '#0074a2',
'borderWidth' => '0px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '214px',
'lineHeight' => '34px',
'fontColor' => '#ffffff',
'fontFamily' => 'Courier New',
'fontSize' => '18px',
'fontWeight' => 'bold',
'textAlign' => 'center',
],
],
],
3 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => '#843c15',
'height' => '40px',
],
],
],
4 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
5 => [
'type' => 'text',
'text' => '<h3 style="text-align: center;"><strong>Hiking goes social...</strong></h3>',
],
6 => [
'type' => 'social',
'iconSet' => 'circles',
'icons' => [
0 => [
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/03-circles/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
1 => [
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/03-circles/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
2 => [
'type' => 'socialIcon',
'iconType' => 'instagram',
'link' => 'http://instagram.com',
'image' => $this->social_icon_url . '/03-circles/Instagram.png',
'height' => '32px',
'width' => '32px',
'text' => 'Instagram',
],
3 => [
'type' => 'socialIcon',
'iconType' => 'youtube',
'link' => 'http://www.youtube.com',
'image' => $this->social_icon_url . '/03-circles/Youtube.png',
'height' => '32px',
'width' => '32px',
'text' => 'Youtube',
],
],
],
7 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
8 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => '#843c15',
'height' => '40px',
],
],
],
],
],
],
],
7 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#64a1af',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
8 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#64a1af',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'footer',
'text' => '<p><a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a> | <a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a></p>',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
'text' => [
'fontColor' => '#ffffff',
'fontFamily' => 'Arial',
'fontSize' => '13px',
'textAlign' => 'left',
],
'link' => [
'fontColor' => '#ffffff',
'textDecoration' => 'underline',
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'footer',
'text' => '<p>' . __("Add your postal address here!", 'mailpoet') . '</p>',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
'text' => [
'fontColor' => '#ffffff',
'fontFamily' => 'Arial',
'fontSize' => '13px',
'textAlign' => 'right',
],
'link' => [
'fontColor' => '#ffffff',
'textDecoration' => 'underline',
],
],
],
],
],
],
],
9 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#64a1af',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
],
],
'globalStyles' => [
'text' => [
'fontColor' => '#4f230c',
'fontFamily' => 'Arial',
'fontSize' => '16px',
],
'h1' => [
'fontColor' => '#423c39',
'fontFamily' => 'Courier New',
'fontSize' => '24px',
],
'h2' => [
'fontColor' => '#265f6d',
'fontFamily' => 'Courier New',
'fontSize' => '24px',
],
'h3' => [
'fontColor' => '#423c39',
'fontFamily' => 'Courier New',
'fontSize' => '20px',
],
'link' => [
'fontColor' => '#843c15',
'textDecoration' => 'underline',
],
'wrapper' => [
'backgroundColor' => '#ffffff',
],
'body' => [
'backgroundColor' => '#843c15',
],
],
];
}
private function getThumbnail() {
return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,355 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class WelcomeBlank12Column {
private $assets_url;
private $external_template_image_url;
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->assets_url = $assets_url;
$this->external_template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/welcome-email-blank-1-2-column';
$this->template_image_url = $this->assets_url . '/img/blank_templates';
$this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Welcome Email: Blank 1:2 Column", 'mailpoet'),
'categories' => json_encode(['welcome', 'blank']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getBody() {
return [
"content" => [
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#f8f8f8",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "header",
"text" => '<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a>',
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
"text" => [
"fontColor" => "#222222",
"fontFamily" => "Arial",
"fontSize" => "12px",
"textAlign" => "center",
],
"link" => [
"fontColor" => "#6cb7d4",
"textDecoration" => "underline",
],
],
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#ffffff",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"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" => __("<h1 style=\"text-align: center;\"><strong>Hi, new subscriber!</strong></h1>\n<p>&nbsp;</p>\n<p>[subscriber:firstname | default:Subscriber],</p>\n<p>&nbsp;</p>\n<p>You recently joined our list and we'd like to give you a warm welcome!</p>", 'mailpoet'),
],
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "13px",
"borderStyle" => "solid",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
[
"type" => "spacer",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"height" => "20px",
],
],
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "text",
"text" => __("<h3>Our Most Popular Posts</h3>", 'mailpoet'),
],
[
"type" => "text",
"text" => __("<ul>\n<li><a href=\"https://www.mailpoet.com/blog/the-importance-of-focus-when-writing/\">The Importance of Focus When Writing</a></li>\n<li><a href=\"https://www.mailpoet.com/blog/writing-next-great-email-subject-line/\">How to Write a Great Subject Line</a></li>\n<li><a href=\"https://www.mailpoet.com/blog/write-advice-motivation/\">Just Sit Down and Write &ndash; Advice on Motivation from Ernest Hemingway</a></li>\n</ul>", 'mailpoet'),
],
],
],
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "text",
"text" => __("<h3>What's Next?</h3>", 'mailpoet'),
],
[
"type" => "text",
"text" => __("<p>Add a single button to your newsletter in order to have one clear call-to-action, which will increase your click rates.</p>", 'mailpoet'),
],
[
"type" => "button",
"text" => __("Read up!", 'mailpoet'),
"url" => "",
"styles" => [
"block" => [
"backgroundColor" => "#2ea1cd",
"borderColor" => "#0074a2",
"borderWidth" => "1px",
"borderRadius" => "5px",
"borderStyle" => "solid",
"width" => "180px",
"lineHeight" => "40px",
"fontColor" => "#ffffff",
"fontFamily" => "Verdana",
"fontSize" => "18px",
"fontWeight" => "normal",
"textAlign" => "center",
],
],
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#f8f8f8",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "24.5px",
"borderStyle" => "solid",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
[
"type" => "social",
"iconSet" => "grey",
"icons" => [
[
"type" => "socialIcon",
"iconType" => "facebook",
"link" => "https://www.facebook.com",
"image" => $this->social_icon_url . "/02-grey/Facebook.png",
"height" => "32px",
"width" => "32px",
"text" => "Facebook",
],
[
"type" => "socialIcon",
"iconType" => "twitter",
"link" => "https://www.twitter.com",
"image" => $this->social_icon_url . "/02-grey/Twitter.png",
"height" => "32px",
"width" => "32px",
"text" => "Twitter",
],
],
],
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "7.5px",
"borderStyle" => "solid",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
[
"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" => "center",
],
"link" => [
"fontColor" => "#6cb7d4",
"textDecoration" => "none",
],
],
],
],
],
],
],
],
],
"globalStyles" => [
"text" => [
"fontColor" => "#000000",
"fontFamily" => "Arial",
"fontSize" => "16px",
],
"h1" => [
"fontColor" => "#111111",
"fontFamily" => "Trebuchet MS",
"fontSize" => "26px",
],
"h2" => [
"fontColor" => "#222222",
"fontFamily" => "Trebuchet MS",
"fontSize" => "24px",
],
"h3" => [
"fontColor" => "#333333",
"fontFamily" => "Trebuchet MS",
"fontSize" => "22px",
],
"link" => [
"fontColor" => "#21759B",
"textDecoration" => "underline",
],
"wrapper" => [
"backgroundColor" => "#ffffff",
],
"body" => [
"backgroundColor" => "#eeeeee",
],
],
];
}
private function getThumbnail() {
return $this->external_template_image_url . '/thumbnail.20190411-1500.jpg';
}
}
@@ -0,0 +1,264 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class WelcomeBlank1Column {
private $assets_url;
private $external_template_image_url;
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->assets_url = $assets_url;
$this->external_template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/welcome-email-blank-1-column';
$this->template_image_url = $this->assets_url . '/img/blank_templates';
$this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Welcome Email: Blank 1 Column", 'mailpoet'),
'categories' => json_encode(['welcome', 'blank']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getBody() {
return [
"content" => [
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#f8f8f8",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "header",
"text" => '<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a>',
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
"text" => [
"fontColor" => "#222222",
"fontFamily" => "Arial",
"fontSize" => "12px",
"textAlign" => "center",
],
"link" => [
"fontColor" => "#6cb7d4",
"textDecoration" => "underline",
],
],
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#ffffff",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"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" => __("<h1 style=\"text-align: center;\"><strong>Hi, new subscriber!</strong></h1>\n<p>&nbsp;</p>\n<p>[subscriber:firstname | default:Subscriber],</p>\n<p>&nbsp;</p>\n<p>You recently joined our list and we'd like to give you a warm welcome!</p>\n<p>&nbsp;</p>\n<p>Want to get to know us better? Check out some of our most popular articles: </p>\n<ol>\n<li><a href=\"https://www.mailpoet.com/blog/the-importance-of-focus-when-writing/\">The Importance of Focus When Writing</a></li>\n<li><a href=\"https://www.mailpoet.com/blog/writing-next-great-email-subject-line/\">How to Write a Great Subject Line</a></li>\n<li><a href=\"https://www.mailpoet.com/blog/write-advice-motivation/\">Just Sit Down and Write &ndash; Advice on Motivation from Ernest Hemingway</a></li>\n</ol>", 'mailpoet'),
],
],
],
],
],
[
"type" => "container",
"orientation" => "horizontal",
"styles" => [
"block" => [
"backgroundColor" => "#f8f8f8",
],
],
"blocks" => [
[
"type" => "container",
"orientation" => "vertical",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
],
],
"blocks" => [
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "24.5px",
"borderStyle" => "solid",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
[
"type" => "social",
"iconSet" => "grey",
"icons" => [
[
"type" => "socialIcon",
"iconType" => "facebook",
"link" => "https://www.facebook.com",
"image" => $this->social_icon_url . "/02-grey/Facebook.png",
"height" => "32px",
"width" => "32px",
"text" => "Facebook",
],
[
"type" => "socialIcon",
"iconType" => "twitter",
"link" => "https://www.twitter.com",
"image" => $this->social_icon_url . "/02-grey/Twitter.png",
"height" => "32px",
"width" => "32px",
"text" => "Twitter",
],
],
],
[
"type" => "divider",
"styles" => [
"block" => [
"backgroundColor" => "transparent",
"padding" => "7.5px",
"borderStyle" => "solid",
"borderWidth" => "3px",
"borderColor" => "#aaaaaa",
],
],
],
[
"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" => "center",
],
"link" => [
"fontColor" => "#6cb7d4",
"textDecoration" => "none",
],
],
],
],
],
],
],
],
],
"globalStyles" => [
"text" => [
"fontColor" => "#000000",
"fontFamily" => "Arial",
"fontSize" => "16px",
],
"h1" => [
"fontColor" => "#111111",
"fontFamily" => "Trebuchet MS",
"fontSize" => "30px",
],
"h2" => [
"fontColor" => "#222222",
"fontFamily" => "Trebuchet MS",
"fontSize" => "24px",
],
"h3" => [
"fontColor" => "#333333",
"fontFamily" => "Trebuchet MS",
"fontSize" => "22px",
],
"link" => [
"fontColor" => "#21759B",
"textDecoration" => "underline",
],
"wrapper" => [
"backgroundColor" => "#ffffff",
],
"body" => [
"backgroundColor" => "#eeeeee",
],
],
];
}
private function getThumbnail() {
return $this->external_template_image_url . '/thumbnail.20190411-1500.jpg';
}
}
@@ -0,0 +1,779 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class WideStoryLayout {
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/wide-story-layout';
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Wide Story Layout", 'mailpoet'),
'categories' => json_encode(['notification', 'all']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getThumbnail() {
return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
}
private function getBody() {
return [
'content' =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => '#f0f0f0',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '50px',
],
],
],
1 =>
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Wide-Logo.png',
'alt' => 'Wide-Logo',
'fullWidth' => false,
'width' => '200px',
'height' => '37px',
'styles' =>
[
'block' =>
[
'textAlign' => 'center',
],
],
],
2 =>
[
'type' => 'text',
'text' => '<h3 style="text-align: center;"><span style="color: #808080;">Our Latest Posts</span></h3>',
],
3 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
1 =>
[
'type' => 'automatedLatestContentLayout',
'withLayout' => true,
'amount' => '3',
'contentType' => 'post',
'terms' =>
[
],
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h3',
'titleAlignment' => 'left',
'titleIsLink' => false,
'imageFullWidth' => false,
'featuredImagePosition' => 'alternate',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'button',
'readMoreText' => 'Read more',
'readMoreButton' =>
[
'type' => 'button',
'text' => 'Read The Post',
'url' => '[postLink]',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#5ecd39',
'borderColor' => '#000000',
'borderWidth' => '0px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '288px',
'lineHeight' => '36px',
'fontColor' => '#ffffff',
'fontFamily' => 'Lucida',
'fontSize' => '16px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
'context' => 'automatedLatestContentLayout.readMoreButton',
],
'sortBy' => 'newest',
'showDivider' => true,
'divider' =>
[
'type' => 'divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#f0f0f0',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '30px',
'borderColor' => '#f0f0f0',
],
],
'context' => 'automatedLatestContentLayout.divider',
],
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
],
2 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Wide-Footer.jpg',
'alt' => 'Wide-Footer',
'fullWidth' => true,
'width' => '1280px',
'height' => '721px',
'styles' =>
[
'block' =>
[
'textAlign' => 'center',
],
],
],
],
],
],
],
3 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => '#5ecd39',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '21px',
],
],
],
1 =>
[
'type' => 'social',
'iconSet' => 'full-symbol-grey',
'icons' =>
[
0 =>
[
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
1 =>
[
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
2 =>
[
'type' => 'socialIcon',
'iconType' => 'website',
'link' => '',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Website.png',
'height' => '32px',
'width' => '32px',
'text' => 'Website',
],
3 =>
[
'type' => 'socialIcon',
'iconType' => 'instagram',
'link' => 'http://instagram.com',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Instagram.png',
'height' => '32px',
'width' => '32px',
'text' => 'Instagram',
],
],
],
2 =>
[
'type' => 'footer',
'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>',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
'text' =>
[
'fontColor' => '#222222',
'fontFamily' => 'Arial',
'fontSize' => '12px',
'textAlign' => 'center',
],
'link' =>
[
'fontColor' => '#6cb7d4',
'textDecoration' => 'none',
],
],
],
3 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
],
],
],
],
],
],
'globalStyles' =>
[
'text' =>
[
'fontColor' => '#000000',
'fontFamily' => 'Arial',
'fontSize' => '15px',
],
'h1' =>
[
'fontColor' => '#111111',
'fontFamily' => 'Lucida',
'fontSize' => '30px',
],
'h2' =>
[
'fontColor' => '#222222',
'fontFamily' => 'Lucida',
'fontSize' => '24px',
],
'h3' =>
[
'fontColor' => '#333333',
'fontFamily' => 'Lucida',
'fontSize' => '18px',
],
'link' =>
[
'fontColor' => '#5ecd39',
'textDecoration' => 'underline',
],
'wrapper' =>
[
'backgroundColor' => '#ffffff',
],
'body' =>
[
'backgroundColor' => '#f0f0f0',
],
],
'blockDefaults' =>
[
'automatedLatestContent' =>
[
'amount' => '5',
'withLayout' => false,
'contentType' => 'post',
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h1',
'titleAlignment' => 'left',
'titleIsLink' => false,
'imageFullWidth' => false,
'featuredImagePosition' => 'belowTitle',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'button',
'readMoreText' => 'Read more',
'readMoreButton' =>
[
'text' => 'Read more',
'url' => '[postLink]',
'context' => 'automatedLatestContent.readMoreButton',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#2ea1cd',
'borderColor' => '#0074a2',
'borderWidth' => '1px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Verdana',
'fontSize' => '18px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
'sortBy' => 'newest',
'showDivider' => true,
'divider' =>
[
'context' => 'automatedLatestContent.divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '3px',
'borderColor' => '#aaaaaa',
],
],
],
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
],
'automatedLatestContentLayout' =>
[
'amount' => '3',
'withLayout' => true,
'contentType' => 'post',
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h3',
'titleAlignment' => 'left',
'titleIsLink' => false,
'imageFullWidth' => false,
'featuredImagePosition' => 'alternate',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'button',
'readMoreText' => 'Read more',
'readMoreButton' =>
[
'text' => 'Read The Post',
'url' => '[postLink]',
'context' => 'automatedLatestContentLayout.readMoreButton',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#5ecd39',
'borderColor' => '#000000',
'borderWidth' => '0px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '288px',
'lineHeight' => '36px',
'fontColor' => '#ffffff',
'fontFamily' => 'Lucida',
'fontSize' => '16px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
'type' => 'button',
],
'sortBy' => 'newest',
'showDivider' => true,
'divider' =>
[
'context' => 'automatedLatestContentLayout.divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#f0f0f0',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '30px',
'borderColor' => '#f0f0f0',
],
],
'type' => 'divider',
],
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
'type' => 'automatedLatestContentLayout',
'terms' =>
[
],
],
'button' =>
[
'text' => 'Read The Post',
'url' => '[postLink]',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#5ecd39',
'borderColor' => '#000000',
'borderWidth' => '0px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '288px',
'lineHeight' => '36px',
'fontColor' => '#ffffff',
'fontFamily' => 'Lucida',
'fontSize' => '16px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
'type' => 'button',
],
'container' =>
[
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
],
'divider' =>
[
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '3px',
'borderColor' => '#aaaaaa',
],
],
],
'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' => 'center',
],
'link' =>
[
'fontColor' => '#6cb7d4',
'textDecoration' => 'none',
],
],
],
'posts' =>
[
'amount' => '10',
'withLayout' => true,
'contentType' => 'post',
'postStatus' => 'publish',
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h1',
'titleAlignment' => 'left',
'titleIsLink' => false,
'imageFullWidth' => false,
'featuredImagePosition' => 'alternate',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'link',
'readMoreText' => 'Read more',
'readMoreButton' =>
[
'text' => 'Read more',
'url' => '[postLink]',
'context' => 'posts.readMoreButton',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#2ea1cd',
'borderColor' => '#0074a2',
'borderWidth' => '1px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Verdana',
'fontSize' => '18px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
'sortBy' => 'newest',
'showDivider' => true,
'divider' =>
[
'context' => 'posts.divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '3px',
'borderColor' => '#aaaaaa',
],
],
],
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
],
'social' =>
[
'iconSet' => 'default',
'icons' =>
[
0 =>
[
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/01-social/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
1 =>
[
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/01-social/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
],
],
'spacer' =>
[
'styles' =>
[
'block' =>
[
'backgroundColor' => '#ffffff',
'height' => '40px',
],
],
'type' => 'spacer',
],
'header' =>
[
'text' => '<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a>',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
'text' =>
[
'fontColor' => '#222222',
'fontFamily' => 'Arial',
'fontSize' => '12px',
'textAlign' => 'center',
],
'link' =>
[
'fontColor' => '#6cb7d4',
'textDecoration' => 'underline',
],
],
],
],
];
}
}
@@ -0,0 +1,952 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class WineCity {
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/wine-city';
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Wine City (with coupon)", 'mailpoet'),
'categories' => json_encode(['woocommerce', 'all']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getThumbnail() {
return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
}
private function getBody() {
return [
'content' =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '37px',
],
],
],
1 =>
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Wine-Logo.png',
'alt' => 'Wine-Logo',
'fullWidth' => false,
'width' => '136px',
'height' => '67px',
'styles' =>
[
'block' =>
[
'textAlign' => 'left',
],
],
],
],
],
1 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '31px',
],
],
],
1 =>
[
'type' => 'social',
'iconSet' => 'circles',
'icons' =>
[
0 =>
[
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/03-circles/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
1 =>
[
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/03-circles/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
2 =>
[
'type' => 'socialIcon',
'iconType' => 'instagram',
'link' => 'http://instagram.com',
'image' => $this->social_icon_url . '/03-circles/Instagram.png',
'height' => '32px',
'width' => '32px',
'text' => 'Instagram',
],
],
],
],
],
],
],
1 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '1px',
'borderColor' => '#aaaaaa',
],
],
],
],
],
],
],
2 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'text',
'text' => '<p style="text-align: left;"><span style="color: #6d6d6d;"><strong>Red Wine</strong></span></p>',
],
],
],
1 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'text',
'text' => '<p style="text-align: left;"><span style="color: #6d6d6d;"><strong>White&nbsp;Wine</strong></span></p>',
],
],
],
2 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'text',
'text' => '<p style="text-align: left;"><span style="color: #6d6d6d;"><strong>Rose&nbsp;Wine</strong></span></p>',
],
],
],
],
],
3 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
[
'src' => $this->template_image_url . '/Wine-Header-1.jpg',
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 =>
[
'type' => 'text',
'text' => '<h1 style="text-align: center;"><span style="color: #ffffff;"><strong>Have a drink on us</strong></span></h1>',
],
2 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '231px',
],
],
],
],
],
],
],
4 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => '#ffffff',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '34px',
],
],
],
1 =>
[
'type' => 'text',
'text' => '<h2 style="text-align: center;"><span style="color: #6d6d6d;"><strong>You\'re our VIP - now it\'s time to celebrate!&nbsp;</strong></span></h2>
<p style="text-align: center;"><span style="color: #6d6d6d;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam a elementum ex. Aliquam mollis metus ac nisl luctus pulvinar. Donec tincidunt pharetra sem, nec eleifend augue.</span></p>',
],
2 =>
[
'productIds' => [],
'excludedProductIds' => [],
'productCategoryIds' => [],
'excludedProductCategoryIds' => [],
'type' => 'coupon',
'amount' => 10,
'amountMax' => 100,
'discountType' => 'percent',
'expiryDay' => 10,
'usageLimit' => '',
'usageLimitPerUser' => '',
'minimumAmount' => '',
'maximumAmount' => '',
'emailRestrictions' => '',
'styles' => [
'block' => [
'backgroundColor' => '#ffffff',
'borderColor' => '#6d6d6d',
'borderWidth' => '2px',
'borderRadius' => '0px',
'borderStyle' => 'solid',
'width' => '219px',
'lineHeight' => '50px',
'fontColor' => '#6d6d6d',
'fontFamily' => 'Courier New',
'fontSize' => '30px',
'fontWeight' => 'bold',
'textAlign' => 'center',
],
],
'source' => 'createNew',
'code' => 'XXXX-XXXXXXX-XXXX',
],
3 =>
[
'type' => 'divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '17px',
'borderStyle' => 'solid',
'borderWidth' => '1px',
'borderColor' => '#aaaaaa',
],
],
],
4 =>
[
'type' => 'footer',
'text' => '<p><strong><span style="color: #6d6d6d;"><a href="[link:subscription_unsubscribe_url]" style="color: #6d6d6d;">' . __("Unsubscribe", 'mailpoet') . '</a> | <a href="[link:subscription_manage_url]" style="color: #6d6d6d;">' . __("Manage your subscription", 'mailpoet') . '</a></span></strong><br /><span style="color: #6d6d6d;">' . __("Add your postal address here!", 'mailpoet') . '</span></p>',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
'text' =>
[
'fontColor' => '#222222',
'fontFamily' => 'Arial',
'fontSize' => '12px',
'textAlign' => 'center',
],
'link' =>
[
'fontColor' => '#6cb7d4',
'textDecoration' => 'none',
],
],
],
5 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
5 =>
[
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => '#eeeeee',
],
],
'blocks' =>
[
0 =>
[
'type' => 'container',
'orientation' => 'vertical',
'image' =>
[
'src' => null,
'display' => 'scale',
],
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
],
'blocks' =>
[
0 =>
[
'type' => 'spacer',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
],
],
'globalStyles' =>
[
'text' =>
[
'fontColor' => '#000000',
'fontFamily' => 'Arial',
'fontSize' => '14px',
],
'h1' =>
[
'fontColor' => '#111111',
'fontFamily' => 'Arial',
'fontSize' => '40px',
],
'h2' =>
[
'fontColor' => '#222222',
'fontFamily' => 'Arial',
'fontSize' => '24px',
],
'h3' =>
[
'fontColor' => '#333333',
'fontFamily' => 'Arial',
'fontSize' => '22px',
],
'link' =>
[
'fontColor' => '#21759B',
'textDecoration' => 'underline',
],
'wrapper' =>
[
'backgroundColor' => '#ffffff',
],
'body' =>
[
'backgroundColor' => '#eeeeee',
],
],
'blockDefaults' =>
[
'automatedLatestContent' =>
[
'amount' => '5',
'contentType' => 'post',
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h1',
'titleAlignment' => 'left',
'titleIsLink' => false,
'imageFullWidth' => false,
'featuredImagePosition' => 'belowTitle',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'button',
'readMoreText' => 'Read more',
'readMoreButton' =>
[
'text' => 'Read more',
'url' => '[postLink]',
'context' => 'automatedLatestContent.readMoreButton',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#2ea1cd',
'borderColor' => '#0074a2',
'borderWidth' => '1px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Verdana',
'fontSize' => '18px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
'sortBy' => 'newest',
'showDivider' => true,
'divider' =>
[
'context' => 'automatedLatestContent.divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '3px',
'borderColor' => '#aaaaaa',
],
],
],
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
],
'automatedLatestContentLayout' =>
[
'amount' => '5',
'withLayout' => true,
'contentType' => 'post',
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h1',
'titleAlignment' => 'left',
'titleIsLink' => false,
'imageFullWidth' => false,
'featuredImagePosition' => 'alternate',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'button',
'readMoreText' => 'Read more',
'readMoreButton' =>
[
'text' => 'Read more',
'url' => '[postLink]',
'context' => 'automatedLatestContentLayout.readMoreButton',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#2ea1cd',
'borderColor' => '#0074a2',
'borderWidth' => '1px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Verdana',
'fontSize' => '18px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
'sortBy' => 'newest',
'showDivider' => true,
'divider' =>
[
'context' => 'automatedLatestContentLayout.divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '3px',
'borderColor' => '#aaaaaa',
],
],
],
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
],
'divider' =>
[
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '17px',
'borderStyle' => 'solid',
'borderWidth' => '1px',
'borderColor' => '#aaaaaa',
],
],
'type' => 'divider',
],
'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' => 'center',
],
'link' =>
[
'fontColor' => '#6cb7d4',
'textDecoration' => 'none',
],
],
'type' => 'footer',
],
'posts' =>
[
'amount' => '10',
'contentType' => 'post',
'postStatus' => 'publish',
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h1',
'titleAlignment' => 'left',
'titleIsLink' => false,
'imageFullWidth' => false,
'featuredImagePosition' => 'belowTitle',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'link',
'readMoreText' => 'Read more',
'readMoreButton' =>
[
'text' => 'Read more',
'url' => '[postLink]',
'context' => 'posts.readMoreButton',
'styles' =>
[
'block' =>
[
'backgroundColor' => '#2ea1cd',
'borderColor' => '#0074a2',
'borderWidth' => '1px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Verdana',
'fontSize' => '18px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
'sortBy' => 'newest',
'showDivider' => true,
'divider' =>
[
'context' => 'posts.divider',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '3px',
'borderColor' => '#aaaaaa',
],
],
],
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
],
'social' =>
[
'iconSet' => 'circles',
'icons' =>
[
0 =>
[
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/03-circles/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
1 =>
[
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/03-circles/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
2 =>
[
'type' => 'socialIcon',
'iconType' => 'instagram',
'link' => 'http://instagram.com',
'image' => $this->social_icon_url . '/03-circles/Instagram.png',
'height' => '32px',
'width' => '32px',
'text' => 'Instagram',
],
],
'type' => 'social',
],
'spacer' =>
[
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
'height' => '231px',
],
],
'type' => 'spacer',
],
'header' =>
[
'text' => '<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a>',
'styles' =>
[
'block' =>
[
'backgroundColor' => 'transparent',
],
'text' =>
[
'fontColor' => '#222222',
'fontFamily' => 'Arial',
'fontSize' => '12px',
'textAlign' => 'center',
],
'link' =>
[
'fontColor' => '#6cb7d4',
'textDecoration' => 'underline',
],
],
],
],
];
}
}
@@ -0,0 +1,789 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class WorldCup {
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/world_cup';
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("World Cup", 'mailpoet'),
'categories' => json_encode(['standard', 'all']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getBody() {
return [
'content' => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#222222',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Sports-Football-Header.png',
'alt' => 'Sports-Football-Header',
'fullWidth' => true,
'width' => '1280px',
'height' => '220px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Sports-Football-Divider-1.png',
'alt' => 'Sports-Football-Divider-1',
'fullWidth' => true,
'width' => '1280px',
'height' => '50px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
],
],
],
],
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#da6110',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
[
'type' => 'text',
'text' => '<p><strong><span style="color: #ffffff; font-size: 14px;">Issue #1</span></strong></p>',
],
],
],
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'text',
'text' => '<p style="text-align: right;"><a href="[link:newsletter_view_in_browser_url]" target="_blank" style="color: #ffffff; font-size: 14px; text-align: center;">View In Browser</a></p>
<p style="text-align: right;"><span style="color: #ffffff; text-align: start;">Monday 1st January 2017</span></p>',
],
],
],
],
],
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#ffffff',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => '#da6110',
'height' => '20px',
],
],
],
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Sports-Football-Header-1.png',
'alt' => 'Sports-Football-Header',
'fullWidth' => true,
'width' => '1280px',
'height' => '580px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
[
'type' => 'text',
'text' => '<h2 style="text-align: left;"><strong>Welcome Back!</strong></h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat lorem at est congue, non consequat lacus iaculis. Integer euismod mauris velit, vel ultrices nibh bibendum quis. Donec eget fermentum magna.</p>
<p></p>
<p>Nullam congue dui lectus, quis pellentesque orci placerat eu. Fusce semper neque a mi aliquet vulputate sed sit amet nisi. Etiam sed nisl nec orci pretium lacinia eget in turpis. Maecenas in posuere justo. Vestibulum et sapien vestibulum, imperdiet neque in, maximus velit.</p>
<p></p>
<p>Proin dignissim elit magna, viverra scelerisque libero vehicula sed</p>',
],
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Sports-Football-Divider-3.png',
'alt' => 'Sports-Football-Divider-3',
'fullWidth' => true,
'width' => '1280px',
'height' => '50px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => '#efefef',
'height' => '20px',
],
],
],
],
],
],
],
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#efefef',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'text',
'text' => '<h2 style="padding-bottom: 0;"><span style="font-weight: 600;">Latest News</span></h2>',
],
],
],
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'button',
'text' => 'View All News',
'url' => '',
'styles' => [
'block' => [
'backgroundColor' => '#d35400',
'borderColor' => '#d35400',
'borderWidth' => '1px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '110px',
'lineHeight' => '36px',
'fontColor' => '#ffffff',
'fontFamily' => 'Tahoma',
'fontSize' => '14px',
'fontWeight' => 'normal',
'textAlign' => 'right',
],
],
],
],
],
],
],
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#efefef',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#efefef',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'image',
'link' => 'http://mailpoet.info/brazils-history-making-hurricane/',
'src' => $this->template_image_url . '/2865897_full-lnd.jpg',
'alt' => 'Brazils history-making Hurricane',
'fullWidth' => false,
'width' => 652,
'height' => 366,
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
[
'type' => 'text',
'text' => '<h3 style="text-align: left;"><strong>Brazil&rsquo;s history-making Hurricane</strong></h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat lorem at est congue, non consequat lacus iaculis. Integer euismod mauris velit, vel ultrices nibh bibendum quis. Donec eget fermentum magna. Nullam congue dui lectus, quis pellentesque orci placerat eu. Fusce semper neque a mi aliquet vulputate sed sit amet nisi...</p>
<p><a href="http://mailpoet.info/brazils-history-making-hurricane/">Read More</a></p>',
],
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#efefef',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'image',
'link' => 'http://mailpoet.info/icelands-dentist-coach-defying-convention-and-expectations/',
'src' => $this->template_image_url . '/2866107_full-lnd.jpg',
'alt' => 'Icelands dentist-coach defying convention and expectations',
'fullWidth' => false,
'width' => 652,
'height' => 366,
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
[
'type' => 'text',
'text' => '<h3><strong>Iceland&rsquo;s dentist-coach defying convention and expectations</strong></h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat lorem at est congue, non consequat lacus iaculis. Integer euismod mauris velit...</p>
<p><a href="http://mailpoet.info/icelands-dentist-coach-defying-convention-and-expectations/">Read More</a></p>',
],
],
],
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'image',
'link' => 'http://mailpoet.info/impact-and-legacy-of-2018-fifa-world-cup-russia-facts-and-figures/',
'src' => $this->template_image_url . '/2709222_full-lnd.jpg',
'alt' => 'Impact and legacy of 2018 FIFA World Cup Russia: facts and figures',
'fullWidth' => false,
'width' => 652,
'height' => 366,
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
[
'type' => 'text',
'text' => '<h3 style="text-align: left;"><strong>Impact and legacy of 2018 FIFA World Cup Russia: facts and figures</strong></h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat lorem at est congue, non consequat lacus iaculis. Integer euismod...</p>
<p><a href="http://mailpoet.info/impact-and-legacy-of-2018-fifa-world-cup-russia-facts-and-figures/">Read More</a></p>',
],
],
],
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'image',
'link' => 'http://mailpoet.info/linekers-life-changing-treble/',
'src' => $this->template_image_url . '/2867790_full-lnd.jpg',
'alt' => 'Linekers life-changing treble',
'fullWidth' => false,
'width' => 652,
'height' => 366,
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
[
'type' => 'text',
'text' => '<h3 style="text-align: left;"><strong>Lineker&rsquo;s life-changing treble</strong></h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat lorem at est congue, non consequat lacus iaculis. Integer euismod mauris velit&nbsp;<span style="background-color: inherit;">consequat lorem at est congue...</span></p>
<p><a href="http://mailpoet.info/linekers-life-changing-treble/">Read More</a></p>',
],
],
],
],
],
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#f8f8f8',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => '#efefef',
'height' => '20px',
],
],
],
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Sports-Football-Divider-2.png',
'alt' => 'Sports-Football-Divider-2',
'fullWidth' => true,
'width' => '1280px',
'height' => '50px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
],
],
],
],
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#222222',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Sports-Football-Footer-1.png',
'alt' => 'Sports-Football-Footer',
'fullWidth' => true,
'width' => '1280px',
'height' => '500px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => '#da6110',
'height' => '20px',
],
],
],
],
],
],
],
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#da6110',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'social',
'iconSet' => 'full-symbol-grey',
'icons' => [
[
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
[
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
[
'type' => 'socialIcon',
'iconType' => 'youtube',
'link' => 'http://www.youtube.com',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Youtube.png',
'height' => '32px',
'width' => '32px',
'text' => 'Youtube',
],
[
'type' => 'socialIcon',
'iconType' => 'instagram',
'link' => 'http://instagram.com',
'image' => $this->social_icon_url . '/08-full-symbol-grey/Instagram.png',
'height' => '32px',
'width' => '32px',
'text' => 'Instagram',
],
],
],
],
],
],
],
[
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#b55311',
],
],
'blocks' => [
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => '#da6110',
'height' => '20px',
],
],
],
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
[
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Sports-Football-Logo-Small.png',
'alt' => 'Sports-Football-Logo-Small',
'fullWidth' => false,
'width' => '772px',
'height' => '171px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
[
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => '#da6110',
'height' => '20px',
],
],
],
[
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
[
'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' => '#ffffff',
'fontFamily' => 'Tahoma',
'fontSize' => '12px',
'textAlign' => 'right',
],
'link' => [
'fontColor' => '#ffffff',
'textDecoration' => 'underline',
],
],
],
],
],
],
],
],
],
'globalStyles' => [
'text' => [
'fontColor' => '#000000',
'fontFamily' => 'Tahoma',
'fontSize' => '14px',
],
'h1' => [
'fontColor' => '#111111',
'fontFamily' => 'Tahoma',
'fontSize' => '30px',
],
'h2' => [
'fontColor' => '#da6110',
'fontFamily' => 'Tahoma',
'fontSize' => '24px',
],
'h3' => [
'fontColor' => '#333333',
'fontFamily' => 'Tahoma',
'fontSize' => '18px',
],
'link' => [
'fontColor' => '#da6110',
'textDecoration' => 'underline',
],
'wrapper' => [
'backgroundColor' => '#ffffff',
],
'body' => [
'backgroundColor' => '#222222',
],
],
];
}
private function getThumbnail() {
return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
}
}
@@ -0,0 +1,797 @@
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\Config\PopulatorData\Templates;
if (!defined('ABSPATH')) exit;
class YogaStudio {
private $template_image_url;
private $social_icon_url;
public function __construct(
$assets_url
) {
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/yoga_studio';
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
}
public function get() {
return [
'name' => __("Yoga Studio", 'mailpoet'),
'categories' => json_encode(['standard', 'all']),
'readonly' => 1,
'thumbnail' => $this->getThumbnail(),
'body' => json_encode($this->getBody()),
];
}
private function getBody() {
return [
'content' => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#f8f8f8',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => '#1e2937',
'height' => '20px',
],
],
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#ffffff',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/yoga-1.png',
'alt' => 'yoga-1',
'fullWidth' => true,
'width' => '1280px',
'height' => '740px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
1 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
2 => [
'type' => 'text',
'text' => '<h2 style="text-align: center;"><strong>Here\'s your classes for this week:</strong></h2>',
],
3 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
],
],
],
],
2 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'text',
'text' => '<h3><strong><span style="color: #83bd31;"><em>Weekdays</em></span></strong></h3>
<p><strong>Monday</strong>: 7am, 9am, 11am, 3pm and 5pm.</p>
<p><strong>Tuesday</strong>: 7am, 9am, 11am, 3pm and 5pm.</p>
<p><strong>Wednesday</strong>: 7am, 9am, 11am, 3pm and 5pm.</p>
<p><strong>Thursday</strong>:&nbsp;CLOSED FOR PRIVATE CLASS.</p>
<p><strong>Friday</strong>: 7am, 9am, 11am,&nbsp;and 3pm.</p>',
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'text',
'text' => '<h3><strong><span style="color: #83bd31;"><em>Weekend</em></span></strong></h3>
<p><strong>Saturday</strong>: 7am, 9am, 11am, 3pm and 5pm.</p>
<p><strong>Sunday</strong>: 7am, 9am, 11am, 3pm and 5pm.</p>
<p></p>',
],
],
],
],
],
3 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 => [
'type' => 'divider',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'padding' => '22px',
'borderStyle' => 'solid',
'borderWidth' => '1px',
'borderColor' => '#d5d5d5',
],
],
],
2 => [
'type' => 'text',
'text' => '<h3 style="text-align: center;"><span style="font-weight: 600;">Meet the instructors</span></h3>',
],
],
],
],
],
4 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/yoga-person-1.png',
'alt' => 'yoga-person-1',
'fullWidth' => false,
'width' => '400px',
'height' => '400px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
2 => [
'type' => 'text',
'text' => '<h3 style="text-align: center;"><span style="color: #83bd31;"><span style="font-weight: 600;">Maria Smith</span></span></h3>
<p style="text-align: center;">Nullam hendrerit feugiat feugiat. Praesent mollis ante lacus, quis tempor leo sagittis vel. Donec sagittis eros at felis venenatis ultricies.</p>',
],
3 => [
'type' => 'button',
'text' => 'Find Out More',
'url' => '',
'styles' => [
'block' => [
'backgroundColor' => '#83bd31',
'borderColor' => '#83bd31',
'borderWidth' => '1px',
'borderRadius' => '40px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '30px',
'fontColor' => '#ffffff',
'fontFamily' => 'Arial',
'fontSize' => '14px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
4 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/yoga-person-2.png',
'alt' => 'yoga-person-2',
'fullWidth' => false,
'width' => '400px',
'height' => '400px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
2 => [
'type' => 'text',
'text' => '<h3 style="text-align: center;"><span style="color: #83bd31;"><span style="font-weight: 600;">Fiona&nbsp;Davies</span></span></h3>
<p style="text-align: center;">Nullam hendrerit feugiat feugiat. Praesent mollis ante lacus, quis tempor leo sagittis vel. Donec sagittis eros at felis venenatis ultricies.</p>',
],
3 => [
'type' => 'button',
'text' => 'Find Out More',
'url' => '',
'styles' => [
'block' => [
'backgroundColor' => '#83bd31',
'borderColor' => '#83bd31',
'borderWidth' => '1px',
'borderRadius' => '40px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '30px',
'fontColor' => '#ffffff',
'fontFamily' => 'Arial',
'fontSize' => '14px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
4 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
],
],
2 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '20px',
],
],
],
1 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/yoga-person-3.png',
'alt' => 'yoga-person-3',
'fullWidth' => false,
'width' => '400px',
'height' => '400px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
2 => [
'type' => 'text',
'text' => '<h3 style="text-align: center;"><span style="color: #83bd31;"><span style="font-weight: 600;">Matthew&nbsp;Johnson</span></span></h3>
<p style="text-align: center;">Nullam hendrerit feugiat feugiat. Praesent mollis ante lacus, quis tempor leo sagittis vel. Donec sagittis eros at felis venenatis ultricies.</p>',
],
3 => [
'type' => 'button',
'text' => 'Find Out More',
'url' => '',
'styles' => [
'block' => [
'backgroundColor' => '#83bd31',
'borderColor' => '#83bd31',
'borderWidth' => '1px',
'borderRadius' => '40px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '31px',
'fontColor' => '#ffffff',
'fontFamily' => 'Arial',
'fontSize' => '14px',
'fontWeight' => 'normal',
'textAlign' => 'center',
],
],
],
4 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '30px',
],
],
],
],
],
],
],
5 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#83bd31',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
1 => [
'type' => 'text',
'text' => '<p><strong>Pose of the week:</strong></p>
<h2>Virabhadrasana I</h2>
<p>The myth is that the powerful priest Daksha made a great yagna (ritual sacrifice) but did not invite his youngest daughter Sati and her husband Shiva, the supreme ruler of the universe. Sati found out and decided to go alone to the yagna.</p>
<p></p>
<p>When she arrived, Sati entered into an argument with her father. Unable to withstand his insults, she spoke a vow to her father, &ldquo;Since it was you who gave me this body, I no longer wish to be associated with it.&rdquo;</p>',
],
2 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
1 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/yoga-pose.png',
'alt' => 'yoga-pose',
'fullWidth' => false,
'width' => '400px',
'height' => '400px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
2 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '35px',
],
],
],
],
],
],
],
6 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#ffffff',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
'height' => '40px',
],
],
],
1 => [
'type' => 'text',
'text' => '<h3 style="text-align: center;"><span style="font-weight: 600;">Quote of the week</span></h3>',
],
2 => [
'type' => 'text',
'text' => '<h2 style="text-align: center;"><em>Be a lamp to yourself. Be your own confidence. Hold on to the truth within yourself as to the only truth.</em></h2>
<p style="text-align: center;"><span style="font-family: Arial, sans-serif; font-size: 14px; text-align: center; color: #999999;">Buddha</span><em></em></p>',
],
3 => [
'type' => 'spacer',
'styles' => [
'block' => [
'backgroundColor' => '#ffffff',
'height' => '20px',
],
],
],
4 => [
'type' => 'divider',
'styles' => [
'block' => [
'backgroundColor' => '#d5d5d5',
'padding' => '15px',
'borderStyle' => 'solid',
'borderWidth' => '1px',
'borderColor' => '#b3b3b3',
],
],
],
],
],
],
],
7 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => '#d5d5d5',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/yoga-logo-small.png',
'alt' => 'yoga-logo-small',
'fullWidth' => false,
'width' => '50px',
'height' => '50px',
'styles' => [
'block' => [
'textAlign' => 'center',
],
],
],
1 => [
'type' => 'social',
'iconSet' => 'full-symbol-black',
'icons' => [
0 => [
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
],
1 => [
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
],
2 => [
'type' => 'socialIcon',
'iconType' => 'instagram',
'link' => 'http://instagram.com',
'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png',
'height' => '32px',
'width' => '32px',
'text' => 'Instagram',
],
3 => [
'type' => 'socialIcon',
'iconType' => 'youtube',
'link' => 'http://www.youtube.com',
'image' => $this->social_icon_url . '/07-full-symbol-black/Youtube.png',
'height' => '32px',
'width' => '32px',
'text' => 'Youtube',
],
],
],
],
],
1 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'text',
'text' => '<p style="font-size: 13px; text-align: center;"><strong>Yoga Studio</strong></p>
<p style="font-size: 11px; text-align: center;">Address Line 1</p>
<p style="font-size: 11px; text-align: center;">Address Line 2</p>
<p style="font-size: 11px; text-align: center;">City/Town</p>
<p style="font-size: 11px; text-align: center;">Country</p>',
],
],
],
2 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'footer',
'text' => '<p><a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a></p><p><a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a></p>',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
'text' => [
'fontColor' => '#222222',
'fontFamily' => 'Arial',
'fontSize' => '11px',
'textAlign' => 'center',
],
'link' => [
'fontColor' => '#000000',
'textDecoration' => 'underline',
],
],
],
],
],
],
],
8 => [
'type' => 'container',
'orientation' => 'horizontal',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'container',
'orientation' => 'vertical',
'styles' => [
'block' => [
'backgroundColor' => 'transparent',
],
],
'blocks' => [
0 => [
'type' => 'divider',
'styles' => [
'block' => [
'backgroundColor' => '#d5d5d5',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '1px',
'borderColor' => '#aaaaaa',
],
],
],
],
],
],
],
],
],
'globalStyles' => [
'text' => [
'fontColor' => '#1e2937',
'fontFamily' => 'Arial',
'fontSize' => '13px',
],
'h1' => [
'fontColor' => '#1e2937',
'fontFamily' => 'Arial',
'fontSize' => '30px',
],
'h2' => [
'fontColor' => '#1e2937',
'fontFamily' => 'Arial',
'fontSize' => '24px',
],
'h3' => [
'fontColor' => '#1e2937',
'fontFamily' => 'Arial',
'fontSize' => '20px',
],
'link' => [
'fontColor' => '#83bd31',
'textDecoration' => 'underline',
],
'wrapper' => [
'backgroundColor' => '#ffffff',
],
'body' => [
'backgroundColor' => '#1e2937',
],
],
];
}
private function getThumbnail() {
return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
}
}
@@ -0,0 +1 @@
<?php