Remove old templates
[MAILPOET-922]
Before Width: | Height: | Size: 143 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 124 KiB |
Before Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 262 KiB |
Before Width: | Height: | Size: 276 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 441 KiB |
Before Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 122 KiB |
Before Width: | Height: | Size: 119 KiB |
Before Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 106 KiB |
Before Width: | Height: | Size: 73 KiB |
@ -26,7 +26,6 @@ class Populator {
|
||||
'newsletter_templates',
|
||||
);
|
||||
$this->templates = array(
|
||||
"FranksRoastHouseTemplate",
|
||||
"NewsletterBlank1Column",
|
||||
"NewsletterBlank12Column",
|
||||
"NewsletterBlank121Column",
|
||||
@ -35,9 +34,6 @@ class Populator {
|
||||
"WelcomeBlank1Column",
|
||||
"WelcomeBlank12Column",
|
||||
"SimpleText",
|
||||
"Restaurant",
|
||||
"StoreDiscount",
|
||||
"TravelEmail"
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -1,351 +0,0 @@
|
||||
<?php
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
if(!defined('ABSPATH')) exit;
|
||||
|
||||
class FranksRoastHouseTemplate {
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->assets_url = $assets_url;
|
||||
$this->external_template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/franks-roast-house';
|
||||
$this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Frank's Roast House", 'mailpoet'),
|
||||
'description' => __("Think of this as your sandbox. Play around with this example newsletter to see what MailPoet can do for you.", 'mailpoet'),
|
||||
'readonly' => 1,
|
||||
'thumbnail' => $this->getThumbnail(),
|
||||
'body' => json_encode($this->getBody()),
|
||||
);
|
||||
}
|
||||
|
||||
private function getBody() {
|
||||
return array(
|
||||
"content" => array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(
|
||||
array(
|
||||
"orientation" => "horizontal",
|
||||
"blocks" => array(
|
||||
array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(
|
||||
array(
|
||||
"type" => "header",
|
||||
"text" => __("<a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser.</a>", 'mailpoet'),
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "#ccc6c6"
|
||||
),
|
||||
"text" => array(
|
||||
"fontColor" => "#222222",
|
||||
"fontFamily" => "Arial",
|
||||
"fontSize" => "12px",
|
||||
"textAlign" => "center"
|
||||
),
|
||||
"link" => array(
|
||||
"fontColor" => "#36251e",
|
||||
"textDecoration" => "underline"
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"type" => "image",
|
||||
"link" => "http://www.example.com",
|
||||
"src" => $this->external_template_image_url . "/header-v2.jpg",
|
||||
"alt" => __("Frank's Café", 'mailpoet'),
|
||||
"fullWidth" => true,
|
||||
"width" => "600px",
|
||||
"height" => "220px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "30px"
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"type" => "text",
|
||||
"text" => __("<p>Hi there [subscriber:firstname | default:coffee drinker]</p>\n<p></p>\n<p>Sit back and enjoy your favorite roast as you read this week's newsletter. </p>", 'mailpoet')
|
||||
),
|
||||
array(
|
||||
"type" => "image",
|
||||
"link" => "http://example.org",
|
||||
"src" => $this->external_template_image_url . "/coffee-grain.jpg",
|
||||
"alt" => __('Coffee grain', 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "1599px",
|
||||
"height" => "777px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"type" => "text",
|
||||
"text" => __("<h1 style=\"text-align: center;\">--- Guest Coffee Roaster: <em>Brew Bros. ---</em></h1>\n<p><em></em></p>\n<p>Visit our Center Avenue store to try the latest guest coffee from Brew Bros, a local coffee roaster. This young duo started only two years ago, but have quickly gained popularity through pop-up shops, local events, and collaborations with food trucks.</p>\n<p></p>\n<blockquote>\n<p><span style=\"color: #ff6600;\"><em>Tasting notes: A rich, caramel flavor with subtle hints of molasses. The perfect wake-up morning espresso!</em></span></p>\n</blockquote>", 'mailpoet')
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
"type" => "container",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"orientation" => "horizontal",
|
||||
"blocks" => array(
|
||||
array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(
|
||||
array(
|
||||
"type" => "text",
|
||||
"text" => __("<h2>Sandwich Competition</h2>", 'mailpoet')
|
||||
),
|
||||
array(
|
||||
"type" => "image",
|
||||
"link" => "http://example.org",
|
||||
"src" => $this->external_template_image_url . "/sandwich.jpg",
|
||||
"alt" => __('Sandwich', 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "640px",
|
||||
"height" => "344px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"type" => "text",
|
||||
"text" => __("<p>Have an idea for the Next Great Sandwich? Tell us! We're offering free lunch for a month if you can invent an awesome new sandwich for our menu.</p>\n<p></p>\n<p></p>\n<p>Simply tweet your ideas to <a href=\"http://www.example.com\" title=\"This isn't a real twitter account\">@franksroasthouse</a> and use #sandwichcomp and we'll let you know if you're a winner.</p>", 'mailpoet')
|
||||
),
|
||||
array(
|
||||
"type" => "button",
|
||||
"text" => ("Find out more"),
|
||||
"url" => "http://example.org",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "#047da7",
|
||||
"borderColor" => "#004a68",
|
||||
"borderWidth" => "1px",
|
||||
"borderRadius" => "3px",
|
||||
"borderStyle" => "solid",
|
||||
"width" => "180px",
|
||||
"lineHeight" => "34px",
|
||||
"fontColor" => "#ffffff",
|
||||
"fontFamily" => "Arial",
|
||||
"fontSize" => "14px",
|
||||
"fontWeight" => "normal",
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"type" => "text",
|
||||
"text" => __("<h3 style=\"text-align: center;\">Follow Us</h3>", 'mailpoet')
|
||||
),
|
||||
array(
|
||||
"type" => "social",
|
||||
"iconSet" => "full-symbol-black",
|
||||
"icons" => array(
|
||||
array(
|
||||
"type" => "socialIcon",
|
||||
"iconType" => "facebook",
|
||||
"link" => "http://www.facebook.com/mailpoetplugin",
|
||||
"image" => $this->social_icon_url . "/07-full-symbol-black/Facebook.png",
|
||||
"height" => "32px",
|
||||
"width" => "32px",
|
||||
"text" => "Facebook"
|
||||
),
|
||||
array(
|
||||
"type" => "socialIcon",
|
||||
"iconType" => "twitter",
|
||||
"link" => "http://www.twitter.com/mailpoet",
|
||||
"image" => $this->social_icon_url . "/07-full-symbol-black/Twitter.png",
|
||||
"height" => "32px",
|
||||
"width" => "32px",
|
||||
"text" => "Twitter"
|
||||
),
|
||||
array(
|
||||
"type" => "socialIcon",
|
||||
"iconType" => "instagram",
|
||||
"link" => "http://www.instagram.com/test",
|
||||
"image" => $this->social_icon_url . "/07-full-symbol-black/Instagram.png",
|
||||
"height" => "32px",
|
||||
"width" => "32px",
|
||||
"text" => "Instagram"
|
||||
),
|
||||
array(
|
||||
"type" => "socialIcon",
|
||||
"iconType" => "website",
|
||||
"link" => "http://www.mailpoet.com",
|
||||
"image" => $this->social_icon_url . "/07-full-symbol-black/Website.png",
|
||||
"height" => "32px",
|
||||
"width" => "32px",
|
||||
"text" => "Website"
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(
|
||||
array(
|
||||
"type" => "text",
|
||||
"text" => __("<h2>New Store Opening!</h2>", 'mailpoet')
|
||||
),
|
||||
array(
|
||||
"type" => "image",
|
||||
"link" => "http://example.org",
|
||||
"src" => $this->external_template_image_url . "/map-v2.jpg",
|
||||
"alt" => __('Map', 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "636px",
|
||||
"height" => "342px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"type" => "text",
|
||||
"text" => __("<p>Watch out Broad Street, we're coming to you very soon! </p>\n<p></p>\n<p>Keep an eye on your inbox, as we'll have some special offers for our email subscribers plus an exclusive launch party invite!<br /><br /></p>", 'mailpoet')
|
||||
),
|
||||
array(
|
||||
"type" => "text",
|
||||
"text" => __("<h2>New and Improved Hours!</h2>\n<p></p>\n<p>Frank's is now open even later, so you can get your caffeine fix all day (and night) long! Here's our new opening hours:</p>\n<p></p>\n<ul>\n<li>Monday - Thursday: 6am - 12am</li>\n<li>Friday - Saturday: 6am - 1:30am</li>\n<li>Sunday: 7:30am - 11pm</li>\n</ul>", 'mailpoet')
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
"type" => "container",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "#ebebeb"
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"orientation" => "horizontal",
|
||||
"blocks" => array(
|
||||
array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(
|
||||
array(
|
||||
"type" => "footer",
|
||||
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage subscription</a><br />12345 MailPoet Drive, EmailVille, 76543</p>", 'mailpoet'),
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "#a9a7a7"
|
||||
),
|
||||
"text" => array(
|
||||
"fontColor" => "#000000",
|
||||
"fontFamily" => "Arial",
|
||||
"fontSize" => "12px",
|
||||
"textAlign" => "center"
|
||||
),
|
||||
"link" => array(
|
||||
"fontColor" => "#000000",
|
||||
"textDecoration" => "underline"
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
"type" => "container",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
"globalStyles" => array(
|
||||
"text" => array(
|
||||
"fontColor" => "#000000",
|
||||
"fontFamily" => "Arial",
|
||||
"fontSize" => "14px"
|
||||
),
|
||||
"h1" => array(
|
||||
"fontColor" => "#604b4b",
|
||||
"fontFamily" => "Lucida",
|
||||
"fontSize" => "30px"
|
||||
),
|
||||
"h2" => array(
|
||||
"fontColor" => "#047da7",
|
||||
"fontFamily" => "Lucida",
|
||||
"fontSize" => "22px"
|
||||
),
|
||||
"h3" => array(
|
||||
"fontColor" => "#333333",
|
||||
"fontFamily" => "Georgia",
|
||||
"fontSize" => "20px"
|
||||
),
|
||||
"link" => array(
|
||||
"fontColor" => "#047da7",
|
||||
"textDecoration" => "underline"
|
||||
),
|
||||
"wrapper" => array(
|
||||
"backgroundColor" => "#ffffff"
|
||||
),
|
||||
"body" => array(
|
||||
"backgroundColor" => "#ccc6c6"
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
private function getThumbnail() {
|
||||
return $this->external_template_image_url . '/screenshot.jpg';
|
||||
}
|
||||
|
||||
}
|
@ -1,413 +0,0 @@
|
||||
<?php
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
if(!defined('ABSPATH')) exit;
|
||||
|
||||
class Restaurant {
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->assets_url = $assets_url;
|
||||
$this->external_template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/restaurant';
|
||||
$this->template_image_url = $this->assets_url . '/img/sample_templates/restaurant';
|
||||
$this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Restaurant", 'mailpoet'),
|
||||
'description' => __("What's fresh on the menu?", 'mailpoet'),
|
||||
'readonly' => 1,
|
||||
'thumbnail' => $this->getThumbnail(),
|
||||
'body' => json_encode($this->getBody()),
|
||||
);
|
||||
}
|
||||
|
||||
private function getBody() {
|
||||
return array(
|
||||
"content" => array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/header.jpg",
|
||||
"alt" => "Joe's Burger Joint",
|
||||
"fullWidth" => true,
|
||||
"width" => "660px",
|
||||
"height" => "100px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/burger.jpg",
|
||||
"alt" => "burger",
|
||||
"fullWidth" => true,
|
||||
"width" => "1127px",
|
||||
"height" => "945px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "30px"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "button",
|
||||
"text" => "Make a reservation",
|
||||
"url" => "",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "#d83b3b",
|
||||
"borderColor" => "#ffffff",
|
||||
"borderWidth" => "0px",
|
||||
"borderRadius" => "0px",
|
||||
"borderStyle" => "solid",
|
||||
"width" => "225px",
|
||||
"lineHeight" => "50px",
|
||||
"fontColor" => "#ffffff",
|
||||
"fontFamily" => "Verdana",
|
||||
"fontSize" => "18px",
|
||||
"fontWeight" => "normal",
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => "<h1 style=\"text-align: center;\"><em>Upgrade! Add these sides</em></h1>"
|
||||
))
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/boyga-1329911-639x852.jpg",
|
||||
"alt" => "boyga-1329911-639x852",
|
||||
"fullWidth" => false,
|
||||
"width" => "639px",
|
||||
"height" => "852px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => "<blockquote>\n<p>These onion rings have the perfect crispy batter! - Hayley King, Daily News</p>\n</blockquote>"
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/macaroni-w-salad-1323787.jpg",
|
||||
"alt" => "Macaroni salad",
|
||||
"fullWidth" => false,
|
||||
"width" => "600px",
|
||||
"height" => "800px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => "<blockquote>\n<p>NEW! Ultimate Mac & Cheese Salad. Available at all locations</p>\n</blockquote>"
|
||||
))
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "divider",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"padding" => "29px",
|
||||
"borderStyle" => "dashed",
|
||||
"borderWidth" => "3px",
|
||||
"borderColor" => "#aaaaaa"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "#e0e0e0"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "text",
|
||||
"text" => "<h2 style=\"text-align: center;\">Find us at these locations</h2>"
|
||||
))
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "#e0e0e0"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "text",
|
||||
"text" => "<h3><span style=\"text-decoration: underline;\"><em>Denver</em></span></h3>\n<p>1263 Schoville Street</p>\n<p>53355 DENVER</p>\n<p>CO</p>"
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "text",
|
||||
"text" => "<h3><span style=\"text-decoration: underline;\"><em>Fort Collins</em></span></h3>\n<p><em></em>157 Maine Street</p>\n<p>86432 FORT COLLINS<br />CO</p>\n<p></p>"
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "text",
|
||||
"text" => "<h3><span style=\"text-decoration: underline;\"><em>Pueblo</em></span></h3>\n<p><em></em>5390 York Avenue</p>\n<p>64297 Pueblo</p>\n<p>CO</p>"
|
||||
))
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "30px"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "social",
|
||||
"iconSet" => "full-symbol-black",
|
||||
"icons" => array(array(
|
||||
"type" => "socialIcon",
|
||||
"iconType" => "facebook",
|
||||
"link" => "",
|
||||
"image" => $this->social_icon_url . "/07-full-symbol-black/Facebook.png",
|
||||
"height" => "32px",
|
||||
"width" => "32px",
|
||||
"text" => "Facebook"
|
||||
), array(
|
||||
"type" => "socialIcon",
|
||||
"iconType" => "twitter",
|
||||
"link" => "",
|
||||
"image" => $this->social_icon_url . "/07-full-symbol-black/Twitter.png",
|
||||
"height" => "32px",
|
||||
"width" => "32px",
|
||||
"text" => "Twitter"
|
||||
), array(
|
||||
"type" => "socialIcon",
|
||||
"iconType" => "instagram",
|
||||
"link" => "",
|
||||
"image" => $this->social_icon_url . "/07-full-symbol-black/Instagram.png",
|
||||
"height" => "32px",
|
||||
"width" => "32px",
|
||||
"text" => "Instagram"
|
||||
))
|
||||
), array(
|
||||
"type" => "header",
|
||||
"text" => "<p><a href=\"[link:newsletter_view_in_browser_url]\">View this email in your web browser</a></p>",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
),
|
||||
"text" => array(
|
||||
"fontColor" => "#222222",
|
||||
"fontFamily" => "Verdana",
|
||||
"fontSize" => "12px",
|
||||
"textAlign" => "center"
|
||||
),
|
||||
"link" => array(
|
||||
"fontColor" => "#d83b3b",
|
||||
"textDecoration" => "underline"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "footer",
|
||||
"text" => "<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage subscription</a><br />Address: Colorado</p>",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
),
|
||||
"text" => array(
|
||||
"fontColor" => "#222222",
|
||||
"fontFamily" => "Verdana",
|
||||
"fontSize" => "12px",
|
||||
"textAlign" => "center"
|
||||
),
|
||||
"link" => array(
|
||||
"fontColor" => "#d83b3b",
|
||||
"textDecoration" => "none"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
))
|
||||
),
|
||||
"globalStyles" => array(
|
||||
"text" => array(
|
||||
"fontColor" => "#434343",
|
||||
"fontFamily" => "Tahoma",
|
||||
"fontSize" => "16px"
|
||||
),
|
||||
"h1" => array(
|
||||
"fontColor" => "#222222",
|
||||
"fontFamily" => "Verdana",
|
||||
"fontSize" => "24px"
|
||||
),
|
||||
"h2" => array(
|
||||
"fontColor" => "#222222",
|
||||
"fontFamily" => "Verdana",
|
||||
"fontSize" => "22px"
|
||||
),
|
||||
"h3" => array(
|
||||
"fontColor" => "#222222",
|
||||
"fontFamily" => "Verdana",
|
||||
"fontSize" => "20px"
|
||||
),
|
||||
"link" => array(
|
||||
"fontColor" => "#21759B",
|
||||
"textDecoration" => "underline"
|
||||
),
|
||||
"wrapper" => array(
|
||||
"backgroundColor" => "#f0f0f0"
|
||||
),
|
||||
"body" => array(
|
||||
"backgroundColor" => "#ffffff"
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
private function getThumbnail() {
|
||||
return $this->external_template_image_url . '/screenshot.jpg';
|
||||
}
|
||||
|
||||
}
|
@ -1,406 +0,0 @@
|
||||
<?php
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
if(!defined('ABSPATH')) exit;
|
||||
|
||||
class StoreDiscount {
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->assets_url = $assets_url;
|
||||
$this->external_template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/store-discount';
|
||||
$this->template_image_url = $this->assets_url . '/img/sample_templates/discount';
|
||||
$this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Store Discount", 'mailpoet'),
|
||||
'description' => __("Store discount email with coupon and shopping suggestions", 'mailpoet'),
|
||||
'readonly' => 1,
|
||||
'thumbnail' => $this->getThumbnail(),
|
||||
'body' => json_encode($this->getBody()),
|
||||
);
|
||||
}
|
||||
|
||||
private function getBody() {
|
||||
return array(
|
||||
"content" => array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "20px"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/bicycle-header3.png",
|
||||
"alt" => __("bicycle-header3", 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "423px",
|
||||
"height" => "135px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<p></p>\n<p>Hi [subscriber:firstname | default:reader]</p>\n<p class=\"\"></p>\n<p>Fancy 15% off your next order? Use this coupon on any product in our store. Expires Wednesday! To apply the discount, enter the code on the payments page.</p>", 'mailpoet')
|
||||
), array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "20px"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "#ebdddd"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "divider",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"padding" => "16px",
|
||||
"borderStyle" => "dashed",
|
||||
"borderWidth" => "2px",
|
||||
"borderColor" => "#9a5fa1"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<h1 style=\"text-align: center;\"><em><strong>Get a 15% off your next order</strong></em></h1>", 'mailpoet')
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<h2 style=\"text-align: center;\"><strong>USE CODE: WELOVEMAILPOET</strong></h2>", 'mailpoet')
|
||||
), array(
|
||||
"type" => "divider",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"padding" => "16px",
|
||||
"borderStyle" => "dashed",
|
||||
"borderWidth" => "2px",
|
||||
"borderColor" => "#9a5fa1"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "20px"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "button",
|
||||
"text" => __("SHOP NOW", 'mailpoet'),
|
||||
"url" => "",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "#9a5fa1",
|
||||
"borderColor" => "#854f8b",
|
||||
"borderWidth" => "3px",
|
||||
"borderRadius" => "5px",
|
||||
"borderStyle" => "solid",
|
||||
"width" => "288px",
|
||||
"lineHeight" => "50px",
|
||||
"fontColor" => "#ffffff",
|
||||
"fontFamily" => "Verdana",
|
||||
"fontSize" => "18px",
|
||||
"fontWeight" => "normal",
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<h1 style=\"text-align: center;\"><strong><em>Use your discount on these great products...</em></strong></h1>", 'mailpoet')
|
||||
), array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "20px"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/red-icycle.jpg",
|
||||
"alt" => __("red-bicycle", 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "558px",
|
||||
"height" => "399px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<h3 style=\"text-align: center;\">Lovely Red Bicycle</h3>\n<p>What can we say? It's a totally awesome red bike, and it's the first of its kind in our collection. No sweat!</p>\n<h3 style=\"text-align: center;\"><strong><span style=\"color: #488e88;\">$289.99</span></strong></h3>", 'mailpoet')
|
||||
), array(
|
||||
"type" => "button",
|
||||
"text" => __("Buy", 'mailpoet'),
|
||||
"url" => "",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "#9a5fa1",
|
||||
"borderColor" => "#854f8b",
|
||||
"borderWidth" => "3px",
|
||||
"borderRadius" => "5px",
|
||||
"borderStyle" => "solid",
|
||||
"width" => "180px",
|
||||
"lineHeight" => "40px",
|
||||
"fontColor" => "#ffffff",
|
||||
"fontFamily" => "Verdana",
|
||||
"fontSize" => "18px",
|
||||
"fontWeight" => "normal",
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/orange-bicycle.jpg",
|
||||
"alt" => __("orange-bicycle", 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "639px",
|
||||
"height" => "457px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<h3 style=\"text-align: center;\">Little Orange Bicycle</h3>\n<p>Another product that's just as awesome but it's the second type, and more orange, with some blue. Cool beans!</p>\n<h3 style=\"line-height: 22.4px; text-align: center;\"><span style=\"color: #488e88;\"><strong>$209.99</strong></span></h3>", 'mailpoet')
|
||||
), array(
|
||||
"type" => "button",
|
||||
"text" => __("Buy", 'mailpoet'),
|
||||
"url" => "",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "#9a5fa1",
|
||||
"borderColor" => "#854f8b",
|
||||
"borderWidth" => "3px",
|
||||
"borderRadius" => "5px",
|
||||
"borderStyle" => "solid",
|
||||
"width" => "180px",
|
||||
"lineHeight" => "40px",
|
||||
"fontColor" => "#ffffff",
|
||||
"fontFamily" => "Verdana",
|
||||
"fontSize" => "18px",
|
||||
"fontWeight" => "normal",
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "22px"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "divider",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"padding" => "20px",
|
||||
"borderStyle" => "solid",
|
||||
"borderWidth" => "1px",
|
||||
"borderColor" => "#9e9e9e"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<p><em>Terms and Conditions:</em></p>\n<ul>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Must be used by midnight EST December 15 2036.</span></li>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Discount does not include shipping.</span></li>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Cannot be used in conjunction with any other offer.</span></li>\n</ul>", 'mailpoet')
|
||||
), array(
|
||||
"type" => "social",
|
||||
"iconSet" => "grey",
|
||||
"icons" => array(array(
|
||||
"type" => "socialIcon",
|
||||
"iconType" => "facebook",
|
||||
"link" => "",
|
||||
"image" => $this->social_icon_url . "/02-grey/Facebook.png",
|
||||
"height" => "32px",
|
||||
"width" => "32px",
|
||||
"text" => __("Facebook", 'mailpoet')
|
||||
), array(
|
||||
"type" => "socialIcon",
|
||||
"iconType" => "twitter",
|
||||
"link" => "",
|
||||
"image" => $this->social_icon_url . "/02-grey/Twitter.png",
|
||||
"height" => "32px",
|
||||
"width" => "32px",
|
||||
"text" => __("Twitter", 'mailpoet')
|
||||
))
|
||||
), array(
|
||||
"type" => "footer",
|
||||
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage subscription</a></p>\n<p>1 Store Street, Shopville, CA 1345</p>", 'mailpoet'),
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
),
|
||||
"text" => array(
|
||||
"fontColor" => "#343434",
|
||||
"fontFamily" => "Verdana",
|
||||
"fontSize" => "12px",
|
||||
"textAlign" => "center"
|
||||
),
|
||||
"link" => array(
|
||||
"fontColor" => "#488e88",
|
||||
"textDecoration" => "none"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
))
|
||||
),
|
||||
"globalStyles" => array(
|
||||
"text" => array(
|
||||
"fontColor" => "#343434",
|
||||
"fontFamily" => "Verdana",
|
||||
"fontSize" => "14px"
|
||||
),
|
||||
"h1" => array(
|
||||
"fontColor" => "#488e88",
|
||||
"fontFamily" => "Trebuchet MS",
|
||||
"fontSize" => "22px"
|
||||
),
|
||||
"h2" => array(
|
||||
"fontColor" => "#9a5fa1",
|
||||
"fontFamily" => "Verdana",
|
||||
"fontSize" => "24px"
|
||||
),
|
||||
"h3" => array(
|
||||
"fontColor" => "#9a5fa1",
|
||||
"fontFamily" => "Trebuchet MS",
|
||||
"fontSize" => "18px"
|
||||
),
|
||||
"link" => array(
|
||||
"fontColor" => "#488e88",
|
||||
"textDecoration" => "underline"
|
||||
),
|
||||
"wrapper" => array(
|
||||
"backgroundColor" => "#afe3de"
|
||||
),
|
||||
"body" => array(
|
||||
"backgroundColor" => "#afe3de"
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
private function getThumbnail() {
|
||||
return $this->external_template_image_url . '/screenshot.jpg';
|
||||
}
|
||||
|
||||
}
|
@ -1,527 +0,0 @@
|
||||
<?php
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
if(!defined('ABSPATH')) exit;
|
||||
|
||||
class TravelEmail {
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->assets_url = $assets_url;
|
||||
$this->external_template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/travel-email';
|
||||
$this->template_image_url = $this->assets_url . '/img/sample_templates/travel';
|
||||
$this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Travel email", 'mailpoet'),
|
||||
'description' => __("A little postcard from your trip", 'mailpoet'),
|
||||
'readonly' => 1,
|
||||
'thumbnail' => $this->getThumbnail(),
|
||||
'body' => json_encode($this->getBody()),
|
||||
);
|
||||
}
|
||||
|
||||
private function getBody() {
|
||||
return array(
|
||||
"content" => array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/header.png",
|
||||
"alt" => __("Travelling Tales with Jane & Steven", 'mailpoet'),
|
||||
"fullWidth" => true,
|
||||
"width" => "660px",
|
||||
"height" => "165px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "30px"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<h1 style=\"text-align: center;\">Hi [subscriber:firstname | default:reader]!</h1>\n<p></p>\n<p>Greetings from New Zealand! We're here enjoying the sights, sounds, and smells of Rotarua! Yesterday, we visited the local hot springs, and today, we're going swimming.</p>\n<p>Don't forget to stay updated with Twitter!</p>", 'mailpoet')
|
||||
), array(
|
||||
"type" => "social",
|
||||
"iconSet" => "circles",
|
||||
"icons" => array(array(
|
||||
"type" => "socialIcon",
|
||||
"iconType" => "twitter",
|
||||
"link" => "",
|
||||
"image" => $this->social_icon_url . "/03-circles/Twitter.png",
|
||||
"height" => "32px",
|
||||
"width" => "32px",
|
||||
"text" => __("Twitter", 'mailpoet')
|
||||
))
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<h1 style=\"text-align: center;\"><strong>Photos from Rotarua</strong></h1>", 'mailpoet')
|
||||
), array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "20px"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/gallery1.jpg",
|
||||
"alt" => __("hot thermals", 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "640px",
|
||||
"height" => "425px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "40px"
|
||||
)
|
||||
)
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/gallery2.jpg",
|
||||
"alt" => __("The view from our campsite", 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "640px",
|
||||
"height" => "425px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "40px"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/gallery3.jpg",
|
||||
"alt" => __("Red sky at night", 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "640px",
|
||||
"height" => "425px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/gallery4.jpg",
|
||||
"alt" => __("Don't go chasing waterfalls", 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "640px",
|
||||
"height" => "425px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "20px"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "button",
|
||||
"text" => __("View NZ Photo Gallery", 'mailpoet'),
|
||||
"url" => "",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "#f16161",
|
||||
"borderColor" => "#ffffff",
|
||||
"borderWidth" => "3px",
|
||||
"borderRadius" => "5px",
|
||||
"borderStyle" => "solid",
|
||||
"width" => "288px",
|
||||
"lineHeight" => "48px",
|
||||
"fontColor" => "#ffffff",
|
||||
"fontFamily" => "Verdana",
|
||||
"fontSize" => "18px",
|
||||
"fontWeight" => "normal",
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "divider",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"padding" => "23px",
|
||||
"borderStyle" => "double",
|
||||
"borderWidth" => "3px",
|
||||
"borderColor" => "#aaaaaa"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<h2><em>Here's our top recommendations in Rotarua</em></h2>", 'mailpoet')
|
||||
), array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "20px"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/glow-worms.jpg",
|
||||
"alt" => __("Glowworms, Waitomo Caves", 'mailpoet'),
|
||||
"fullWidth" => true,
|
||||
"width" => "640px",
|
||||
"height" => "428px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<p><em><a href=\"http://www.waitomo.com/Waitomo-Glowworm-Caves/Pages/default.aspx\"><strong>Waitomo GlowWorm Caves</strong></a></em></p>", 'mailpoet')
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/luge.jpg",
|
||||
"alt" => __("luge", 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "375px",
|
||||
"height" => "500px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<p><em><strong><a href=\"http://www.skyline.co.nz/rotorua/ssr_luge/\">Luge!</a></strong></em></p>", 'mailpoet')
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/holiday-park.jpg",
|
||||
"alt" => __("holiday-park", 'mailpoet'),
|
||||
"fullWidth" => true,
|
||||
"width" => "640px",
|
||||
"height" => "425px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<p><em><strong><a href=\"http://rotoruathermal.co.nz/\">Roturua Thermal Holiday Park</a></strong></em></p>", 'mailpoet')
|
||||
))
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "21px"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<p>Tomorrow we're heading towards Taupo where we'll visit the 'Craters of the moon' and go prawn fishing! Hopefully the weather will stay good.</p>\n<p></p>\n<p>Keep on travellin'</p>\n<p>Jane & Steven</p>", 'mailpoet')
|
||||
))
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "divider",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"padding" => "13px",
|
||||
"borderStyle" => "dotted",
|
||||
"borderWidth" => "2px",
|
||||
"borderColor" => "#aaaaaa"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "header",
|
||||
"text" => ("Display problems? <a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser.</a>"),
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
),
|
||||
"text" => array(
|
||||
"fontColor" => "#222222",
|
||||
"fontFamily" => "Courier New",
|
||||
"fontSize" => "12px",
|
||||
"textAlign" => "center"
|
||||
),
|
||||
"link" => array(
|
||||
"fontColor" => "#343434",
|
||||
"textDecoration" => "underline"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "footer",
|
||||
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage subscription</a></p>", 'mailpoet'),
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
),
|
||||
"text" => array(
|
||||
"fontColor" => "#343434",
|
||||
"fontFamily" => "Courier New",
|
||||
"fontSize" => "12px",
|
||||
"textAlign" => "center"
|
||||
),
|
||||
"link" => array(
|
||||
"fontColor" => "#343434",
|
||||
"textDecoration" => "underline"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
))
|
||||
),
|
||||
"globalStyles" => array(
|
||||
"text" => array(
|
||||
"fontColor" => "#343434",
|
||||
"fontFamily" => "Courier New",
|
||||
"fontSize" => "16px"
|
||||
),
|
||||
"h1" => array(
|
||||
"fontColor" => "#180d6b",
|
||||
"fontFamily" => "Trebuchet MS",
|
||||
"fontSize" => "24px"
|
||||
),
|
||||
"h2" => array(
|
||||
"fontColor" => "#180d6b",
|
||||
"fontFamily" => "Trebuchet MS",
|
||||
"fontSize" => "20px"
|
||||
),
|
||||
"h3" => array(
|
||||
"fontColor" => "#343434",
|
||||
"fontFamily" => "Trebuchet MS",
|
||||
"fontSize" => "18px"
|
||||
),
|
||||
"link" => array(
|
||||
"fontColor" => "#f16161",
|
||||
"textDecoration" => "underline"
|
||||
),
|
||||
"wrapper" => array(
|
||||
"backgroundColor" => "#daf3ff"
|
||||
),
|
||||
"body" => array(
|
||||
"backgroundColor" => "#ffffff"
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
private function getThumbnail() {
|
||||
return $this->external_template_image_url . '/screenshot.jpg';
|
||||
}
|
||||
|
||||
}
|