diff --git a/assets/img/sample_templates/coffee/coffee-grain.jpg b/assets/img/sample_templates/coffee/coffee-grain.jpg deleted file mode 100644 index 0a76f8dde4..0000000000 Binary files a/assets/img/sample_templates/coffee/coffee-grain.jpg and /dev/null differ diff --git a/assets/img/sample_templates/coffee/header-v2.jpg b/assets/img/sample_templates/coffee/header-v2.jpg deleted file mode 100644 index 7f86fa0e79..0000000000 Binary files a/assets/img/sample_templates/coffee/header-v2.jpg and /dev/null differ diff --git a/assets/img/sample_templates/coffee/map-v2.jpg b/assets/img/sample_templates/coffee/map-v2.jpg deleted file mode 100644 index 7d6ad2f01a..0000000000 Binary files a/assets/img/sample_templates/coffee/map-v2.jpg and /dev/null differ diff --git a/assets/img/sample_templates/coffee/sandwich.jpg b/assets/img/sample_templates/coffee/sandwich.jpg deleted file mode 100644 index 55c05001c7..0000000000 Binary files a/assets/img/sample_templates/coffee/sandwich.jpg and /dev/null differ diff --git a/assets/img/sample_templates/discount/bicycle-header2.png b/assets/img/sample_templates/discount/bicycle-header2.png deleted file mode 100644 index 78027d13b4..0000000000 Binary files a/assets/img/sample_templates/discount/bicycle-header2.png and /dev/null differ diff --git a/assets/img/sample_templates/discount/bicycle-header3.png b/assets/img/sample_templates/discount/bicycle-header3.png deleted file mode 100644 index f2cafdcf5c..0000000000 Binary files a/assets/img/sample_templates/discount/bicycle-header3.png and /dev/null differ diff --git a/assets/img/sample_templates/discount/orange-bicycle.jpg b/assets/img/sample_templates/discount/orange-bicycle.jpg deleted file mode 100644 index cf58e7c917..0000000000 Binary files a/assets/img/sample_templates/discount/orange-bicycle.jpg and /dev/null differ diff --git a/assets/img/sample_templates/discount/red-icycle.jpg b/assets/img/sample_templates/discount/red-icycle.jpg deleted file mode 100644 index 1452e25f2c..0000000000 Binary files a/assets/img/sample_templates/discount/red-icycle.jpg and /dev/null differ diff --git a/assets/img/sample_templates/restaurant/boyga-1329911-639x852.jpg b/assets/img/sample_templates/restaurant/boyga-1329911-639x852.jpg deleted file mode 100644 index 507d4e5d57..0000000000 Binary files a/assets/img/sample_templates/restaurant/boyga-1329911-639x852.jpg and /dev/null differ diff --git a/assets/img/sample_templates/restaurant/burger.jpg b/assets/img/sample_templates/restaurant/burger.jpg deleted file mode 100644 index e0fdc83f2d..0000000000 Binary files a/assets/img/sample_templates/restaurant/burger.jpg and /dev/null differ diff --git a/assets/img/sample_templates/restaurant/header.jpg b/assets/img/sample_templates/restaurant/header.jpg deleted file mode 100644 index 89c790c54b..0000000000 Binary files a/assets/img/sample_templates/restaurant/header.jpg and /dev/null differ diff --git a/assets/img/sample_templates/restaurant/macaroni-w-salad-1323787.jpg b/assets/img/sample_templates/restaurant/macaroni-w-salad-1323787.jpg deleted file mode 100644 index 8fe7d34319..0000000000 Binary files a/assets/img/sample_templates/restaurant/macaroni-w-salad-1323787.jpg and /dev/null differ diff --git a/assets/img/sample_templates/travel/gallery1.jpg b/assets/img/sample_templates/travel/gallery1.jpg deleted file mode 100644 index a0f0b41778..0000000000 Binary files a/assets/img/sample_templates/travel/gallery1.jpg and /dev/null differ diff --git a/assets/img/sample_templates/travel/gallery2.jpg b/assets/img/sample_templates/travel/gallery2.jpg deleted file mode 100644 index 7fd1904f9b..0000000000 Binary files a/assets/img/sample_templates/travel/gallery2.jpg and /dev/null differ diff --git a/assets/img/sample_templates/travel/gallery3.jpg b/assets/img/sample_templates/travel/gallery3.jpg deleted file mode 100644 index e856e22056..0000000000 Binary files a/assets/img/sample_templates/travel/gallery3.jpg and /dev/null differ diff --git a/assets/img/sample_templates/travel/gallery4.jpg b/assets/img/sample_templates/travel/gallery4.jpg deleted file mode 100644 index 5ff8439efa..0000000000 Binary files a/assets/img/sample_templates/travel/gallery4.jpg and /dev/null differ diff --git a/assets/img/sample_templates/travel/glow-worms.jpg b/assets/img/sample_templates/travel/glow-worms.jpg deleted file mode 100644 index 195ea83312..0000000000 Binary files a/assets/img/sample_templates/travel/glow-worms.jpg and /dev/null differ diff --git a/assets/img/sample_templates/travel/header.png b/assets/img/sample_templates/travel/header.png deleted file mode 100644 index 51b81ccd69..0000000000 Binary files a/assets/img/sample_templates/travel/header.png and /dev/null differ diff --git a/assets/img/sample_templates/travel/holiday-park.jpg b/assets/img/sample_templates/travel/holiday-park.jpg deleted file mode 100644 index 80db99cdc5..0000000000 Binary files a/assets/img/sample_templates/travel/holiday-park.jpg and /dev/null differ diff --git a/assets/img/sample_templates/travel/luge.jpg b/assets/img/sample_templates/travel/luge.jpg deleted file mode 100644 index 10f6164726..0000000000 Binary files a/assets/img/sample_templates/travel/luge.jpg and /dev/null differ diff --git a/lib/Config/Populator.php b/lib/Config/Populator.php index 7b65a382fd..1285d8e1ed 100644 --- a/lib/Config/Populator.php +++ b/lib/Config/Populator.php @@ -26,7 +26,6 @@ class Populator { 'newsletter_templates', ); $this->templates = array( - "FranksRoastHouseTemplate", "NewsletterBlank1Column", "NewsletterBlank12Column", "NewsletterBlank121Column", @@ -35,9 +34,23 @@ class Populator { "WelcomeBlank1Column", "WelcomeBlank12Column", "SimpleText", - "Restaurant", - "StoreDiscount", - "TravelEmail" + "BurgerJoint", + "AppWelcome", + "WorldCup", + "FoodBox", + "Discount", + "KickOff", + "TakeAHike", + "FestivalEvent", + "PieceOfCake", + "Shoes", + "ScienceWeekly", + "ChocolateStore", + "Faith", + "TravelNomads", + "CoffeeShop", + "NewsDay", + "YogaStudio", ); } diff --git a/lib/Config/PopulatorData/Templates/AppWelcome.php b/lib/Config/PopulatorData/Templates/AppWelcome.php new file mode 100644 index 0000000000..a2200f5d4d --- /dev/null +++ b/lib/Config/PopulatorData/Templates/AppWelcome.php @@ -0,0 +1,415 @@ +template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/app_welcome'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("App Welcome", 'mailpoet'), + 'description' => __("A welcome email template for your app.", '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' => '#eeeeee', + ), + ), + 'blocks' => array( + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#eeeeee', + 'height' => '30px', + ), + ), + ), + ), + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#32b6c6', + ), + ), + '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' => '40px', + ), + ), + ), + array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/App-Signup-Logo-1.png', + 'alt' => 'App-Signup-Logo', + 'fullWidth' => false, + 'width' => '80px', + 'height' => '80px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + array( + 'type' => 'text', + 'text' => '

Welcome to Appy

Let\'s get started!

', + ), + + array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/App-Signup-Header.png', + 'alt' => 'App-Signup-Header', + 'fullWidth' => false, + 'width' => '1280px', + 'height' => '500px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ffffff', + ), + ), + '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' => '40px', + ), + ), + ), + array( + 'type' => 'text', + 'text' => '

Hi [subscriber:firstname | default:subscriber],

+

+

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.

+

+

Is this too simple? You can still style your text with basic formatting, like bold or italics.

+

+

Finally, you can also add a call-to-action button between 2 blocks of text, like this:

', + ), + ), + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ffffff', + ), + ), + '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' => '23px', + ), + ), + ), + array( + 'type' => 'button', + 'text' => 'Get Started Here', + 'url' => '', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#32b6c6', + 'borderColor' => '#32b6c6', + 'borderWidth' => '0px', + 'borderRadius' => '40px', + 'borderStyle' => 'solid', + 'width' => '188px', + 'lineHeight' => '50px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '35px', + ), + ), + ), + ), + ), + ), + ), + 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->template_image_url . '/App-Signup-Team.jpg', + 'alt' => 'App-Signup-Team', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '700px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#eeeeee', + ), + ), + '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' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/App-Signup-Logo-Footer.png', + 'alt' => 'App-Signup-Logo-Footer', + 'fullWidth' => false, + 'width' => '50px', + 'height' => '50px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + array( + 'type' => 'text', + 'text' => '

Appy

+

Address Line 1

+

Address Line 2

+

City

+

Unsubscribe | Manage subscription

', + ), + array( + 'type' => 'social', + 'iconSet' => 'full-symbol-color', + 'icons' => array( + array( + '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', + ), + array( + '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', + ), + array( + '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', + ), + array( + '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', + ), + ), + ), + array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => array( + 'text' => array( + 'fontColor' => '#404040', + 'fontFamily' => 'Arial', + 'fontSize' => '15px', + ), + 'h1' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '26px', + ), + 'h2' => array( + 'fontColor' => '#404040', + 'fontFamily' => 'Arial', + 'fontSize' => '22px', + ), + 'h3' => array( + 'fontColor' => '#32b6c6', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + ), + 'link' => array( + 'fontColor' => '#32b6c6', + 'textDecoration' => 'underline', + ), + 'wrapper' => array( + 'backgroundColor' => '#ffffff', + ), + 'body' => array( + 'backgroundColor' => '#eeeeee', + ), + ), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/app-welcome-email.jpg'; + } + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/BurgerJoint.php b/lib/Config/PopulatorData/Templates/BurgerJoint.php new file mode 100644 index 0000000000..4eb0820bab --- /dev/null +++ b/lib/Config/PopulatorData/Templates/BurgerJoint.php @@ -0,0 +1,497 @@ +template_image_url = 'http://ps.w.org/mailpoet/assets/newsletter-templates/burger_joint'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Burger Joint", 'mailpoet'), + 'description' => __("Add more or less ketchup or mayo to this restaurant template.", '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' => 'http://example.org', + 'src' => $this->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' => 'http://example.org', + 'src' => $this->template_image_url . '/burger-03.jpg', + 'alt' => 'burger-03', + 'fullWidth' => true, + 'width' => '1200px', + 'height' => '613px', + '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' => 'http://example.org', + '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' => '

Upgrade! Add these sides

', + ), + 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' => 'http://example.org', + 'src' => $this->template_image_url . '/fries-01.jpg', + 'alt' => 'fries-01', + 'fullWidth' => false, + 'width' => '1000px', + 'height' => '1500px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + array( + 'type' => 'text', + 'text' => '

Cras cursus viverra nulla non tempus. Curabitur sed neque vel sapien! - Morbi ullamcorper, Tellus Diam

', + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + array( + 'type' => 'image', + 'link' => 'http://example.org', + 'src' => $this->template_image_url . '/rolls-01.jpg', + 'alt' => 'rolls-01', + 'fullWidth' => false, + 'width' => '1000px', + 'height' => '1500px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + array( + 'type' => 'text', + 'text' => '

Morbi ex diam, venenatis a efficitur et, iaculis at nibh. - Quis Ullamcorper, Tortor Ligula

', + ), + ), + ), + ), + ), + 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' => '34px', + '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' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + array( + 'type' => 'text', + 'text' => '

Find us at these locations

', + ), + array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 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' => '

Denver

1263 Schoville Street

53355 DENVER

CO

', + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + array( + 'type' => 'text', + 'text' => '

Fort Collins

157 Maine Street

86432 FORT COLLINS
CO

', + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + array( + 'type' => 'text', + 'text' => '

Pueblo

5390 York Avenue

64297 Pueblo

CO

', + ), + ), + ), + ), + ), + 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' => 'http://example.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + array( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://example.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + array( + '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', + ), + ), + ), + array( + 'type' => 'header', + 'text' => '

View this email in your web browser

', + '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' => '

Unsubscribe | Manage subscription
Address: Colorado

', + '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->template_image_url . '/burger-joint.jpg'; + } + +} diff --git a/lib/Config/PopulatorData/Templates/ChocolateStore.php b/lib/Config/PopulatorData/Templates/ChocolateStore.php new file mode 100644 index 0000000000..ccd240cfe7 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/ChocolateStore.php @@ -0,0 +1,846 @@ +template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/chocolate_store'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Chocolate Store", 'mailpoet'), + 'description' => __("A classy black store template.", '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( + 0 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '28px', + ), + ), + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/cafe-cocoa-logo_small.png', + 'alt' => 'cafe-cocoa-logo_small', + 'fullWidth' => true, + 'width' => '648px', + 'height' => '80px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'social', + 'iconSet' => 'full-symbol-grey', + 'icons' => array( + 0 => array( + '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 => array( + '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 => array( + '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 => array( + '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 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '36px', + ), + ), + ), + ), + ), + ), + ), + 3 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#5b5b5b', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/cocoa-hero.jpg', + 'alt' => 'cocoa-hero', + 'fullWidth' => true, + 'width' => '1320px', + 'height' => '677px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

SEASONAL SPECIAL: RUM TRUFFLE

+

Vestibulum eu nulla quis nulla rutrum efficitur ac in orci. Praesent vulputate neque et scelerisque porttitor. Duis mauris ipsum, sagittis nec semper et, dapibus eget nunc. Fusce ornare eros non mauris tempus varius.

', + ), + 3 => array( + 'type' => 'button', + 'text' => 'Shop Truffles', + 'url' => '', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#a4a4a4', + 'borderColor' => '#4e4e4e', + 'borderWidth' => '2px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + 4 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 4 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/bottom-divider-1.png', + 'alt' => 'bottom-divider', + 'fullWidth' => true, + 'width' => '1320px', + 'height' => '102px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '50px', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Store News

', + ), + 3 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 5 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/cake-shop.png', + 'alt' => 'cake-shop', + 'fullWidth' => true, + 'width' => '300px', + 'height' => '300px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/bottom-divider_lightgrey-1.png', + 'alt' => 'bottom-divider_lightgrey', + 'fullWidth' => true, + 'width' => '440px', + 'height' => '60px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 2 => array( + 'type' => 'header', + 'text' => '

Duis pellentesque nibh in lectus blandit.

', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + 'text' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + 'textAlign' => 'left', + ), + 'link' => array( + 'fontColor' => '#ffffff', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/new-desserts.png', + 'alt' => 'new-desserts', + 'fullWidth' => true, + 'width' => '300px', + 'height' => '300px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/bottom-divider_lightgrey-1.png', + 'alt' => 'bottom-divider_lightgrey', + 'fullWidth' => true, + 'width' => '440px', + 'height' => '60px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 2 => array( + 'type' => 'header', + 'text' => '

Phasellus feugiat laoreet ex ac elementum.

', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + 'text' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + 'textAlign' => 'left', + ), + 'link' => array( + 'fontColor' => '#a4a4a4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/cupcakes.jpg', + 'alt' => 'cupcakes', + 'fullWidth' => true, + 'width' => '300px', + 'height' => '300px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/bottom-divider_lightgrey-1.png', + 'alt' => 'bottom-divider_lightgrey', + 'fullWidth' => true, + 'width' => '440px', + 'height' => '60px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 2 => array( + 'type' => 'header', + 'text' => '

Mauris lacinia venenatis luctus. 

', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + 'text' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + 'textAlign' => 'left', + ), + 'link' => array( + 'fontColor' => '#ffffff', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ), + ), + ), + 6 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => array( + 'type' => 'button', + 'text' => 'Visit Store', + 'url' => '', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#a4a4a4', + 'borderColor' => '#4e4e4e', + 'borderWidth' => '2px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '20px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + 2 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'double', + 'borderWidth' => '7px', + 'borderColor' => '#4e4e4e', + ), + ), + ), + 3 => array( + 'type' => 'text', + 'text' => '

Cocoa Blogs...

', + ), + 4 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '8.5px', + 'borderStyle' => 'double', + 'borderWidth' => '7px', + 'borderColor' => '#4e4e4e', + ), + ), + ), + 5 => array( + 'type' => 'automatedLatestContent', + 'amount' => '1', + 'contentType' => 'post', + 'terms' => array(), + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'center', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'belowText', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => array( + 'type' => 'button', + 'text' => 'Read more', + 'url' => '[postLink]', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#a4a4a4', + 'borderColor' => '#4e4e4e', + 'borderWidth' => '2px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#000001', + 'fontFamily' => 'Georgia', + 'fontSize' => '20px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => false, + 'divider' => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 6 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 7 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '10.5px', + 'borderStyle' => 'double', + 'borderWidth' => '7px', + 'borderColor' => '#4e4e4e', + ), + ), + ), + ), + ), + ), + ), + 7 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'social', + 'iconSet' => 'full-symbol-grey', + 'icons' => array( + 0 => array( + '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 => array( + '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', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Add your postal address here!

', + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'footer', + 'text' => '

Praesent metus ante, venenatis egestas nisl ac, molestie viverra ante. 

+

 

+

Unsubscribe
Manage subscription

', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + 'text' => array( + 'fontColor' => '#dadada', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + 'textAlign' => 'center', + ), + 'link' => array( + 'fontColor' => '#dadada', + 'textDecoration' => 'underline', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

Aliquam feugiat nisl eget eleifend congue.

', + ), + 1 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/owner-1.jpg', + 'alt' => 'owner', + 'fullWidth' => false, + 'width' => '100px', + 'height' => '100px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => array( + 'text' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + ), + 'h1' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Georgia', + 'fontSize' => '24px', + ), + 'h2' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Georgia', + 'fontSize' => '32px', + ), + 'h3' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Georgia', + 'fontSize' => '24px', + ), + 'link' => array( + 'fontColor' => '#ffffff', + 'textDecoration' => 'underline', + ), + 'wrapper' => array( + 'backgroundColor' => '#000000', + ), + 'body' => array( + 'backgroundColor' => '#000000', + ), + ), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/chocolate-store.jpg'; + } + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/CoffeeShop.php b/lib/Config/PopulatorData/Templates/CoffeeShop.php new file mode 100644 index 0000000000..1c942086c0 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/CoffeeShop.php @@ -0,0 +1,425 @@ +template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/franks-roast-house'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Coffee Shop", 'mailpoet'), + 'description' => __("Coffee and sugar in your coffee?", '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( + 0 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ccc6c6', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 2 => array( + 'type' => 'image', + 'link' => 'http://www.example.com', + 'src' => $this->template_image_url . '/header-v2.jpg', + 'alt' => 'Frank\'s Café', + 'fullWidth' => true, + 'width' => '600px', + 'height' => '220px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 3 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 4 => array( + 'type' => 'text', + 'text' => '

Hi there [subscriber:firstname | default:coffee drinker]

+

+

Sit back and enjoy your favorite roast as you read this week\'s newsletter.

', + ), + 5 => array( + 'type' => 'image', + 'link' => 'http://example.org', + 'src' => $this->template_image_url . '/coffee-grain.jpg', + 'alt' => 'Coffee grain', + 'fullWidth' => true, + 'width' => '1599px', + 'height' => '777px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 6 => array( + 'type' => 'text', + 'text' => '

--- Guest Roaster: Brew Bros. ---

+

+

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.

+

+
+

Tasting notes: A rich, caramel flavor with subtle hints of molasses. The perfect wake-up morning espresso!

+
', + ), + 7 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '22px', + ), + ), + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ebebeb', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Sandwich Competition

', + ), + 2 => array( + 'type' => 'image', + 'link' => 'http://example.org', + 'src' => $this->template_image_url . '/sandwich.jpg', + 'alt' => 'Sandwich', + 'fullWidth' => false, + 'width' => '640px', + 'height' => '344px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 3 => array( + 'type' => 'text', + 'text' => '

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.

+

+

Simply tweet your ideas to @franksroasthouse and use #sandwichcomp and we\'ll let you know if you\'re a winner.

', + ), + 4 => array( + 'type' => 'button', + 'text' => 'Find out more', + 'url' => 'http://example.org', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#604b4b', + 'borderColor' => '#443232', + 'borderWidth' => '1px', + 'borderRadius' => '3px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '34px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 5 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 6 => array( + 'type' => 'text', + 'text' => '

Follow Us

', + ), + 7 => array( + 'type' => 'social', + 'iconSet' => 'full-symbol-black', + 'icons' => array( + 0 => 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', + ), + 1 => 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', + ), + 2 => 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', + ), + 3 => 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', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

New Store Opening!

', + ), + 2 => array( + 'type' => 'image', + 'link' => 'http://example.org', + 'src' => $this->template_image_url . '/map-v2.jpg', + 'alt' => 'Map', + 'fullWidth' => false, + 'width' => '636px', + 'height' => '342px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 3 => array( + 'type' => 'text', + 'text' => '

Watch out Broad Street, we\'re coming to you very soon!

+

+

Keep an eye on your inbox, as we\'ll have some special offers for our email subscribers plus an exclusive launch party invite!

', + ), + 4 => array( + 'type' => 'text', + 'text' => '

New and Improved Hours!

+

+

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:

+

+ ', + ), + 5 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '33px', + ), + ), + ), + ), + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage subscription
12345 MailPoet Drive, EmailVille, 76543

', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#a9a7a7', + ), + 'text' => array( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'right', + ), + 'link' => array( + 'fontColor' => '#000000', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => array( + 'text' => array( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + ), + 'h1' => array( + 'fontColor' => '#604b4b', + 'fontFamily' => 'Lucida', + 'fontSize' => '30px', + ), + 'h2' => array( + 'fontColor' => '#5c4242', + 'fontFamily' => 'Lucida', + 'fontSize' => '22px', + ), + 'h3' => array( + 'fontColor' => '#333333', + 'fontFamily' => 'Lucida', + 'fontSize' => '20px', + ), + 'link' => array( + 'fontColor' => '#047da7', + 'textDecoration' => 'underline', + ), + 'wrapper' => array( + 'backgroundColor' => '#ffffff', + ), + 'body' => array( + 'backgroundColor' => '#ccc6c6', + ), + ), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/coffee-shop.jpg'; + } + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/Discount.php b/lib/Config/PopulatorData/Templates/Discount.php new file mode 100644 index 0000000000..acddcb27a0 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/Discount.php @@ -0,0 +1,467 @@ +template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/discount'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Discount", 'mailpoet'), + 'description' => __("A useful layout for a simple discount email.", '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( + 0 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'image', + 'link' => 'http://example.org', + 'src' => $this->template_image_url . '/bicycle-header3.png', + 'alt' => 'bicycle-header3', + 'fullWidth' => false, + 'width' => '423px', + 'height' => '135px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

+

Hi [subscriber:firstname | default:reader]

+

+

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec ut venenatis ipsum. Etiam efficitur magna a convallis consectetur. Nunc dapibus cursus mauris vel sollicitudin. Etiam magna libero, posuere ac nulla nec, iaculis pulvinar arcu.

', + ), + 3 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ebdddd', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '16px', + 'borderStyle' => 'dashed', + 'borderWidth' => '2px', + 'borderColor' => '#9a5fa1', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

15% odio felis fringilla eget enim

', + ), + 2 => array( + 'type' => 'text', + 'text' => '

FUSCE LOBORTIS: WELOVEMAILPOET

', + ), + 3 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '16px', + 'borderStyle' => 'dashed', + 'borderWidth' => '2px', + 'borderColor' => '#9a5fa1', + ), + ), + ), + ), + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'button', + 'text' => 'SHOP NOW', + 'url' => 'http://example.org', + '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', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Use your discount on these great products...

', + ), + 3 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 3 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => 'http://example.org', + 'src' => $this->template_image_url . '/red-icycle-2.jpg', + 'alt' => 'red-icycle', + 'fullWidth' => false, + 'width' => '558px', + 'height' => '399px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Lovely Red Bicycle

+

Quisque nec vulputate velit, non sagittis ex. Suspendisse ligula urna, tempus sed iaculis sit amet, convallis at arcu.

+

$289.99

', + ), + 2 => array( + 'type' => 'button', + 'text' => 'Tempus', + 'url' => 'http://example.org', + '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', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => 'http://example.org', + 'src' => $this->template_image_url . '/orange-bicycle.jpg', + 'alt' => 'orange-bicycle', + 'fullWidth' => false, + 'width' => '639px', + 'height' => '457px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Little Orange Bicycle

+

Praesent molestie mollis sapien vel dignissim. Maecenas ultrices, odio eget dapibus iaculis, ligula ex aliquet leo.

+

$209.99

', + ), + 2 => array( + 'type' => 'button', + 'text' => 'Tempus', + 'url' => 'http://example.org', + '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', + ), + ), + ), + ), + ), + ), + ), + 4 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '22px', + ), + ), + ), + 1 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '20px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#9e9e9e', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Diam et vestibulum facilisis:

+ ', + ), + 3 => array( + 'type' => 'social', + 'iconSet' => 'grey', + 'icons' => array( + 0 => array( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://example.com', + 'image' => $this->social_icon_url . '/02-grey/Facebook.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => array( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://example.com', + 'image' => $this->social_icon_url . '/02-grey/Twitter.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + ), + ), + 4 => array( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage subscription

1 Store Street, Shopville, CA 1345

', + '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->template_image_url . '/discount.jpg'; + } + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/Faith.php b/lib/Config/PopulatorData/Templates/Faith.php new file mode 100644 index 0000000000..9537dd8c2d --- /dev/null +++ b/lib/Config/PopulatorData/Templates/Faith.php @@ -0,0 +1,488 @@ +template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/faith'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Faith", 'mailpoet'), + 'description' => __("A calm and muted faith template.", '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( + 0 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/church-header.jpg', + 'alt' => 'church-header', + 'fullWidth' => true, + 'width' => '1036px', + 'height' => '563px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Spreading Love & Hope...

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. 

', + ), + 3 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#f3f4f4', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Family Faith Events

', + ), + 2 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/family.jpg', + 'alt' => 'family', + 'fullWidth' => false, + 'width' => '660px', + 'height' => '880px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 3 => array( + 'type' => 'text', + 'text' => '

In maximus tempus pellentesque. Nunc scelerisque ante odio, vel placerat dui fermentum efficitur. Integer vitae ex suscipit, aliquet eros vitae, ornare est. Aenean vel dapibus nisi.

', + ), + 4 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Thoughts & Prayers

', + ), + 2 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/pray.jpg', + 'alt' => 'pray', + 'fullWidth' => false, + 'width' => '660px', + 'height' => '880px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 3 => array( + 'type' => 'text', + 'text' => '

Donec sed vulputate ipsum. In scelerisque rutrum interdum. Donec imperdiet dignissim erat, in dictum lectus accumsan ut. Aliquam erat volutpat.

', + ), + 4 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Latest News

', + ), + 2 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '7px', + 'borderStyle' => 'dotted', + 'borderWidth' => '1px', + 'borderColor' => '#dcdcdc', + ), + ), + ), + 3 => array( + 'type' => 'automatedLatestContent', + 'amount' => '3', + 'contentType' => 'post', + 'terms' => array(), + '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' => array( + 'type' => 'button', + 'text' => 'Read more', + 'url' => '[postLink]', + 'styles' => array( + 'block' => array( + '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' => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'dotted', + 'borderWidth' => '2px', + 'borderColor' => '#dfeaf3', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 4 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 5 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#e7eff6', + 'padding' => '13px', + 'borderStyle' => 'ridge', + 'borderWidth' => '6px', + 'borderColor' => '#597890', + ), + ), + ), + ), + ), + ), + ), + 3 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#e7eff6', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'footer', + 'text' => 'Unsubscribe | Manage subscription
Add your postal address here!', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#e7eff6', + ), + 'text' => array( + 'fontColor' => '#787878', + 'fontFamily' => 'Tahoma', + 'fontSize' => '14px', + 'textAlign' => 'left', + ), + 'link' => array( + 'fontColor' => '#787878', + 'textDecoration' => 'none', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

Find us socially:

', + ), + 1 => array( + 'type' => 'social', + 'iconSet' => 'full-symbol-black', + 'icons' => array( + 0 => array( + '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 => array( + '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 => array( + 'type' => 'socialIcon', + 'iconType' => 'email', + 'link' => '', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Email.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Email', + ), + 3 => array( + 'type' => 'socialIcon', + 'iconType' => 'website', + 'link' => '', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Website.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Website', + ), + ), + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => array( + 'text' => array( + 'fontColor' => '#787878', + 'fontFamily' => 'Tahoma', + 'fontSize' => '16px', + ), + 'h1' => array( + 'fontColor' => '#597890', + 'fontFamily' => 'Comic Sans MS', + 'fontSize' => '26px', + ), + 'h2' => array( + 'fontColor' => '#597890', + 'fontFamily' => 'Comic Sans MS', + 'fontSize' => '18px', + ), + 'h3' => array( + 'fontColor' => '#787878', + 'fontFamily' => 'Tahoma', + 'fontSize' => '18px', + ), + 'link' => array( + 'fontColor' => '#597890', + 'textDecoration' => 'underline', + ), + 'wrapper' => array( + 'backgroundColor' => '#ffffff', + ), + 'body' => array( + 'backgroundColor' => '#e7eff6', + ), + ), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/faith.jpg'; + } + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/FestivalEvent.php b/lib/Config/PopulatorData/Templates/FestivalEvent.php new file mode 100644 index 0000000000..68a0236b1f --- /dev/null +++ b/lib/Config/PopulatorData/Templates/FestivalEvent.php @@ -0,0 +1,524 @@ +template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/festival_event'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Festival Event", 'mailpoet'), + 'description' => __("A colourful festival event template.", '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( + 0 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#0a5388', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/festival-header.jpg', + 'alt' => 'festival-header', + 'fullWidth' => true, + 'width' => '1320px', + 'height' => '879px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '36px', + ), + ), + ), + 3 => array( + 'type' => 'text', + 'text' => '

Pack your glowsticks,
Boomfest is back! 

+

+

Duis tempor nisl in risus hendrerit venenatis.
Curabitur ornare venenatis nisl non ullamcorper.

', + ), + 4 => array( + 'type' => 'button', + 'text' => 'Duis id tincidunt', + 'url' => '', + 'styles' => array( + 'block' => array( + '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 => array( + 'type' => 'text', + 'text' => '

Maecenas scelerisque nisi sit amet metus efficitur dapibus! 
Ut eros risus, facilisis ac aliquet vel, posuere ut urna.

', + ), + 6 => array( + 'type' => 'social', + 'iconSet' => 'full-symbol-grey', + 'icons' => array( + 0 => array( + '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 => array( + '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 => array( + '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 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'dashed', + 'borderWidth' => '2px', + 'borderColor' => '#ffffff', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '28px', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Confirmed Lineup

', + ), + ), + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

Main Stage

Quisque libero
Nulla convallis
Vestibulum Ornare
Consectetur Odio

', + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

New Acts Stage

Nulla interdum
Massa nec
Pharetra
Varius

', + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

Comedy Stage

In pulvinar
Risus sed
Condimentum
Feugiat

', + ), + ), + ), + ), + ), + 3 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'dashed', + 'borderWidth' => '2px', + 'borderColor' => '#ffffff', + ), + ), + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 3 => array( + 'type' => 'text', + 'text' => '

New to the festival this year

', + ), + 4 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '9px', + 'borderStyle' => 'dashed', + 'borderWidth' => '2px', + 'borderColor' => '#ffffff', + ), + ), + ), + 5 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 4 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/street-food.jpg', + 'alt' => 'street food', + 'fullWidth' => true, + 'width' => '499px', + 'height' => '750px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Award-winning Street Food

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 luctus enim.

', + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/happy.jpeg', + 'alt' => 'happy', + 'fullWidth' => true, + 'width' => '499px', + 'height' => '750px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Prepare to dazzle with our Glitter Run

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.

', + ), + ), + ), + ), + ), + 5 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'dashed', + 'borderWidth' => '2px', + 'borderColor' => '#ffffff', + ), + ), + ), + 2 => array( + 'type' => 'footer', + 'text' => '

Mauris tristique ultricies ullamcorper.
Don\'t want to hear from us? Unsubscribe

Add your postal address here. 

', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + 'text' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Courier New', + 'fontSize' => '13px', + 'textAlign' => 'center', + ), + 'link' => array( + 'fontColor' => '#ffffff', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => array( + 'text' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Courier New', + 'fontSize' => '16px', + ), + 'h1' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Georgia', + 'fontSize' => '36px', + ), + 'h2' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Georgia', + 'fontSize' => '26px', + ), + 'h3' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Georgia', + 'fontSize' => '24px', + ), + 'link' => array( + 'fontColor' => '#ffffff', + 'textDecoration' => 'underline', + ), + 'wrapper' => array( + 'backgroundColor' => '#8d062b', + ), + 'body' => array( + 'backgroundColor' => '#0a5388', + ), + ), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/festival-event.jpg'; + } + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/FoodBox.php b/lib/Config/PopulatorData/Templates/FoodBox.php new file mode 100644 index 0000000000..d1aab2a691 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/FoodBox.php @@ -0,0 +1,757 @@ +template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/food_box'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Welcome to FoodBox", 'mailpoet'), + 'description' => __("A welcome email template for your takeaway.", '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( + 0 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#f4f4f4', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Food-Delivery-Logo.png', + 'alt' => 'Food-Delivery-Logo', + 'fullWidth' => false, + 'width' => '640px', + 'height' => '180px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Food-Delivery-App.png', + 'alt' => 'Food-Delivery-App', + 'fullWidth' => false, + 'width' => '640px', + 'height' => '180px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 3 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 4 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Welcome to FoodBox

+

Lorem ipsum dolor sit amet

+

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.

', + ), + 2 => array( + 'type' => 'button', + 'text' => 'Get Started', + 'url' => '', + 'styles' => array( + 'block' => array( + '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 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Food-Delivery-Focus.jpg', + 'alt' => 'Food-Delivery-Focus', + 'fullWidth' => false, + 'width' => '800px', + 'height' => '800px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 5 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '31.5px', + 'borderStyle' => 'solid', + 'borderWidth' => '2px', + 'borderColor' => '#e5e5e5', + ), + ), + ), + ), + ), + ), + ), + 6 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

Get started in 3 simple steps

', + ), + ), + ), + ), + ), + 7 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Food-Delivery-1-1.png', + 'alt' => 'Food-Delivery-1', + 'fullWidth' => false, + 'width' => '800px', + 'height' => '250px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sollicitudin eros eu cursus sollicitudin.

', + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Food-Delivery-2-1.png', + 'alt' => 'Food-Delivery-2', + 'fullWidth' => false, + 'width' => '800px', + 'height' => '250px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sollicitudin eros eu cursus sollicitudin.

', + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Food-Delivery-3-1.png', + 'alt' => 'Food-Delivery-3', + 'fullWidth' => false, + 'width' => '800px', + 'height' => '250px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sollicitudin eros eu cursus sollicitudin.

', + ), + ), + ), + ), + ), + 8 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 1 => array( + 'type' => 'button', + 'text' => 'Get Started', + 'url' => '', + 'styles' => array( + 'block' => array( + '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 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '25px', + ), + ), + ), + ), + ), + ), + ), + 9 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#4599da', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Link 1 - Link 2 - Link 3 - Link 4

', + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '24px', + ), + ), + ), + 1 => array( + 'type' => 'social', + 'iconSet' => 'full-symbol-grey', + 'icons' => array( + 0 => array( + '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 => array( + '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 => array( + '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 => array( + '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 => array( + 'type' => 'socialIcon', + 'iconType' => 'website', + 'link' => '', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Website.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Website', + ), + ), + ), + ), + ), + ), + ), + 10 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#4599da', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '25px', + ), + ), + ), + ), + ), + ), + ), + 11 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#f4f4f4', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + 'text' => array( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => array( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => array( + 'text' => array( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + ), + 'h1' => array( + 'fontColor' => '#4599da', + 'fontFamily' => 'Arial', + 'fontSize' => '26px', + ), + 'h2' => array( + 'fontColor' => '#878787', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + ), + 'h3' => array( + 'fontColor' => '#333333', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + ), + 'link' => array( + 'fontColor' => '#4599da', + 'textDecoration' => 'underline', + ), + 'wrapper' => array( + 'backgroundColor' => '#ffffff', + ), + 'body' => array( + 'backgroundColor' => '#f4f4f4', + ), + ), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/welcome-to-foodbox.jpg'; + } + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php b/lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php deleted file mode 100644 index 509e30b451..0000000000 --- a/lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php +++ /dev/null @@ -1,351 +0,0 @@ -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" => __("Open this email in your web browser.", '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" => __("

Hi there [subscriber:firstname | default:coffee drinker]

\n

\n

Sit back and enjoy your favorite roast as you read this week's newsletter.

", '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" => __("

--- Guest Coffee Roaster: Brew Bros. ---

\n

\n

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.

\n

\n
\n

Tasting notes: A rich, caramel flavor with subtle hints of molasses. The perfect wake-up morning espresso!

\n
", '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" => __("

Sandwich Competition

", '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" => __("

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.

\n

\n

\n

Simply tweet your ideas to @franksroasthouse and use #sandwichcomp and we'll let you know if you're a winner.

", '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" => __("

Follow Us

", '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" => __("

New Store Opening!

", '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" => __("

Watch out Broad Street, we're coming to you very soon!

\n

\n

Keep an eye on your inbox, as we'll have some special offers for our email subscribers plus an exclusive launch party invite!

", 'mailpoet') - ), - array( - "type" => "text", - "text" => __("

New and Improved Hours!

\n

\n

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:

\n

\n", '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" => __("

Unsubscribe | Manage subscription
12345 MailPoet Drive, EmailVille, 76543

", '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'; - } - -} diff --git a/lib/Config/PopulatorData/Templates/KickOff.php b/lib/Config/PopulatorData/Templates/KickOff.php new file mode 100644 index 0000000000..f86e4e0c24 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/KickOff.php @@ -0,0 +1,721 @@ +template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/kick_off'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Kick-Off", 'mailpoet'), + 'description' => __("Sporty green template for your team or sport event.", '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( + 0 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/football-header.jpg', + 'alt' => 'football-header', + 'fullWidth' => true, + 'width' => '1320px', + 'height' => '540px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

ALL THE LATEST MATCH RESULTS & NEWS FROM THE SUNDAYS CLUB

', + ), + 3 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/football-player-1.jpeg', + 'alt' => 'football-player', + 'fullWidth' => false, + 'width' => '600px', + 'height' => '840px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Nam convallis lorem tellus, eget sodales magna semper quis.

', + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

North

+

Nottington 0-1 East Lettersley

+

Little Bickburgh 2-1 Rockingham

+

+

South

+

Richmond West 1-0 Offington

+

Shorleton 5-2 Garphingham

+

Westwood 1-3 Chesham

+

+

West

+

Millham 4-2 Dunn Village

+

Emmington 1-1 Finham

+

Little Forest 0-2 Winton

+

+

East

+

Southfield 2-1 Fincham

+

High Ridlington 0-1 Benham

+

Tinton 4-6 Dortington

', + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '25px', + 'borderStyle' => 'ridge', + 'borderWidth' => '5px', + 'borderColor' => '#484747', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

MATCH REPORTS

', + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '21px', + ), + ), + ), + ), + ), + ), + ), + 3 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

Branham United vs Finkley

+

Vestibulum consectetur, quam sed tristique feugiat, elit sapien molestie mi, eu dapibus eros sapien ut risus. Nullam non scelerisque ligula.

+

+

Donec vitae nunc tempus, elementum magna et, ultrices velit. Sed eu consequat sapien, at dictum diam. Sed tristique egestas justo sit amet vulputate. Proin rhoncus sem eu odio ultricies ultrices.

', + ), + 1 => array( + 'type' => 'button', + 'text' => 'READ MORE', + 'url' => 'http://www.google.co.uk', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#61cc5a', + 'borderColor' => '#2f6a2c', + 'borderWidth' => '3px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#252525', + 'fontFamily' => 'Lucida', + 'fontSize' => '14px', + 'fontWeight' => 'bold', + 'textAlign' => 'left', + ), + ), + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

Champton Albion vs Swanhall

+

Aenean a arcu egestas, tincidunt nisi ut, mollis arcu. Sed eget dapibus nisi. Quisque tortor mi, consequat ut erat et, porta imperdiet dui.

+

+

Mauris vestibulum tortor ut justo luctus blandit. Vestibulum mollis sollicitudin tempor. Duis gravida, dui quis eleifend scelerisque, libero orci semper metus, sed maximus odio tortor ac sem.

', + ), + 1 => array( + 'type' => 'button', + 'text' => 'READ MORE', + 'url' => 'https://www.google.co.uk', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#61cc5a', + 'borderColor' => '#2f6a2c', + 'borderWidth' => '3px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#252525', + 'fontFamily' => 'Lucida', + 'fontSize' => '14px', + 'fontWeight' => 'bold', + 'textAlign' => 'left', + ), + ), + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 4 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#8aeb83', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '28px', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

FROM OUR ONLINE STORE

', + ), + ), + ), + ), + ), + 5 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#8aeb83', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/shoes.jpg', + 'alt' => 'shoes', + 'fullWidth' => false, + 'width' => '400px', + 'height' => '400px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Team Colours Laces

Donec imperdiet
Tortor tincidunt, luctus libero vel, dapibus quam

', + ), + 3 => array( + 'type' => 'button', + 'text' => 'SHOP', + 'url' => '', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#61cc5a', + 'borderColor' => '#2f6a2c', + 'borderWidth' => '3px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#252525', + 'fontFamily' => 'Lucida', + 'fontSize' => '14px', + 'fontWeight' => 'bold', + 'textAlign' => 'left', + ), + ), + ), + 4 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/football.jpg', + 'alt' => 'football', + 'fullWidth' => false, + 'width' => '400px', + 'height' => '400px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Match Quality Balls

Donec vulputate tempor auctor purus sit amet cursus ultricies

', + ), + 3 => array( + 'type' => 'button', + 'text' => 'SHOP', + 'url' => '', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#61cc5a', + 'borderColor' => '#2f6a2c', + 'borderWidth' => '3px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#252525', + 'fontFamily' => 'Lucida', + 'fontSize' => '14px', + 'fontWeight' => 'bold', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/plant-pot.jpg', + 'alt' => 'plant-pot', + 'fullWidth' => false, + 'width' => '400px', + 'height' => '400px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Football Plant Pots

Libero tortor aliquet metus eget efficitur est lorem sit amet purus

', + ), + 3 => array( + 'type' => 'button', + 'text' => 'SHOP', + 'url' => '', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#61cc5a', + 'borderColor' => '#2f6a2c', + 'borderWidth' => '3px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#252525', + 'fontFamily' => 'Lucida', + 'fontSize' => '14px', + 'fontWeight' => 'bold', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + ), + ), + 6 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => array( + 'type' => 'footer', + 'text' => 'Unsubscribe | Manage subscription
Add your postal address here!', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + 'text' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Lucida', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => array( + 'fontColor' => '#ffffff', + 'textDecoration' => 'underline', + ), + ), + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '23px', + ), + ), + ), + 3 => array( + 'type' => 'social', + 'iconSet' => 'full-symbol-grey', + 'icons' => array( + 0 => array( + '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 => array( + '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 => array( + '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 => array( + 'type' => 'socialIcon', + 'iconType' => 'email', + 'link' => '', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Email.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Email', + ), + ), + ), + 4 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => array( + 'text' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Georgia', + 'fontSize' => '16px', + ), + 'h1' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Lucida', + 'fontSize' => '24px', + ), + 'h2' => array( + 'fontColor' => '#61cc5a', + 'fontFamily' => 'Lucida', + 'fontSize' => '22px', + ), + 'h3' => array( + 'fontColor' => '#333333', + 'fontFamily' => 'Lucida', + 'fontSize' => '20px', + ), + 'link' => array( + 'fontColor' => '#21759B', + 'textDecoration' => 'underline', + ), + 'wrapper' => array( + 'backgroundColor' => '#252525', + ), + 'body' => array( + 'backgroundColor' => '#eaeaea', + ), + ), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/sports.jpg'; + } + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/NewsDay.php b/lib/Config/PopulatorData/Templates/NewsDay.php new file mode 100644 index 0000000000..69138eacf4 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/NewsDay.php @@ -0,0 +1,555 @@ +template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/news_day'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("News Day", 'mailpoet'), + 'description' => __("Media ready template. ", '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( + 0 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#f2f2f2', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/News-Outlet-Title-2.jpg', + 'alt' => 'News-Outlet-Title-2', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '700px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '25px', + ), + ), + ), + ), + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

Top Story

', + ), + 1 => array( + 'type' => 'text', + 'text' => '

Plasma jet engines that could take you from the ground to space

', + ), + 2 => array( + 'type' => 'image', + 'link' => 'http://mailpoet.info/plasma-jet-engines-that-could-take-you-from-the-ground-to-space/', + 'src' => $this->template_image_url . '/plasma-stingray111-800x533.jpg', + 'alt' => 'Plasma jet engines that could take you from the ground to space', + 'fullWidth' => false, + 'width' => 660, + 'height' => 440, + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 3 => array( + 'type' => 'text', + 'text' => '

FORGET fuel-powered jet engines. We’re on the verge of having aircraft that can fly from the ground up to the edge of space using air and electricity alone. Traditional jet engines create thrust by mixing compressed air with fuel and igniting it. The burning mixture expands rapidly and is blasted out of the back of the engine, pushing it forwards. …

Read More

', + ), + 4 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 5 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 6 => array( + 'type' => 'text', + 'text' => '

Popular Posts Today

', + ), + 7 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 3 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

Cutting through the smog: What to do to fight air pollution

+

Tackling our air problems starts with traffic control, but individual action to reduce energy use and intensive farming would also help clean our air.

+

Read More

', + ), + 1 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Ladybird’s transparent shell reveals how it moves

+

They certainly know how to fold. A see-through artificial wing case has been used to watch for the first time as ladybirds put away their wings after flight.

+

Read More

', + ), + 3 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 4 => array( + 'type' => 'text', + 'text' => '

Brazil’s history-making Hurricane

+

Jairzinho has just made history. In claiming the fourth goal of an unforgettable 1970 FIFA World Cup Mexico™ Final against Italy, he has maintained his record of scoring in every one of Brazil’s matches en route to the Trophy.

+

Read More

', + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

Iceland’s dentist-coach defying convention and expectations

+

As Iceland’s key matches loom, with kick-off just a couple of hours away, you will find their national coach in the pub. This may seem unusual...

+

Read More

', + ), + 1 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Impact and legacy of 2018 FIFA World Cup Russia

+

Organising a FIFA World Cup™ in a sustainable manner is a major challenge. The scale of the event inevitably has an impact on the Host Country. 

+

Read More

', + ), + 3 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 4 => array( + 'type' => 'text', + 'text' => '

Lineker’s life-changing treble

+

Given that he won the Golden Boot in his first and came within a whisker of the Final in his second, one might expect Gary Lineker to have a tough time picking his FIFA World Cup™ highlight. Yet the man who scored ten times...

+

Read More

', + ), + ), + ), + ), + ), + 4 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#f2f2f2', + 'height' => '40px', + ), + ), + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 5 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'footer', + 'text' => '

NewsDay

+

Unsubscribe | Manage subscription

+

', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + 'text' => array( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'left', + ), + 'link' => array( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'social', + 'iconSet' => 'circles', + 'icons' => array( + 0 => array( + '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 => array( + '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 => array( + 'type' => 'socialIcon', + 'iconType' => 'youtube', + 'link' => 'http://www.youtube.com', + 'image' => $this->social_icon_url . '/03-circles/Youtube.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Youtube', + ), + 3 => array( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/03-circles/Instagram.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + 4 => array( + 'type' => 'socialIcon', + 'iconType' => 'linkedin', + 'link' => 'http://www.linkedin.com', + 'image' => $this->social_icon_url . '/03-circles/LinkedIn.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'LinkedIn', + ), + ), + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 6 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#f2f2f2', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => array( + 'text' => array( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '13px', + ), + 'h1' => array( + 'fontColor' => '#111111', + 'fontFamily' => 'Arial', + 'fontSize' => '30px', + ), + 'h2' => array( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => array( + 'fontColor' => '#333333', + 'fontFamily' => 'Arial', + 'fontSize' => '22px', + ), + 'link' => array( + 'fontColor' => '#2ca5d2', + 'textDecoration' => 'underline', + ), + 'wrapper' => array( + 'backgroundColor' => '#ffffff', + ), + 'body' => array( + 'backgroundColor' => '#f2f2f2', + ), + ), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/news-day.jpg'; + } + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/PieceOfCake.php b/lib/Config/PopulatorData/Templates/PieceOfCake.php new file mode 100644 index 0000000000..6c3192c23d --- /dev/null +++ b/lib/Config/PopulatorData/Templates/PieceOfCake.php @@ -0,0 +1,444 @@ +template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/piece_of_cake'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Piece of cake", 'mailpoet'), + 'description' => __("Baked with plenty of images.", '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( + 0 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'header', + 'text' => '

Open daily from 9am to 9pm | View Online

', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ececeb', + ), + 'text' => array( + 'fontColor' => '#606060', + 'fontFamily' => 'Arial', + 'fontSize' => '13px', + 'textAlign' => 'right', + ), + 'link' => array( + 'fontColor' => '#d42b2b', + 'textDecoration' => 'none', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 2 => array( + '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' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 3 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 4 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Restaurant-Bakery-Header.jpg', + 'alt' => 'Restaurant-Bakery-Header', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '1600px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 5 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 6 => array( + 'type' => 'text', + 'text' => '

It\'s our Birthday!

', + ), + 7 => array( + 'type' => 'text', + 'text' => '

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!

', + ), + 8 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

HAPPYBDAY

', + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '50px', + ), + ), + ), + ), + ), + ), + ), + 3 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ececeb', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 4 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ececeb', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

Add your postal address here.

', + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'social', + 'iconSet' => 'full-symbol-color', + 'icons' => array( + 0 => array( + '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 => array( + '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 => array( + '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 => array( + '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 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

Unsubscribe

+

Manage Subscription

', + ), + ), + ), + ), + ), + 5 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ececeb', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => array( + 'text' => array( + 'fontColor' => '#606060', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + ), + 'h1' => array( + 'fontColor' => '#606060', + 'fontFamily' => 'Arial', + 'fontSize' => '30px', + ), + 'h2' => array( + 'fontColor' => '#d42b2b', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => array( + 'fontColor' => '#606060', + 'fontFamily' => 'Arial', + 'fontSize' => '20px', + ), + 'link' => array( + 'fontColor' => '#d42b2b', + 'textDecoration' => 'underline', + ), + 'wrapper' => array( + 'backgroundColor' => '#ffffff', + ), + 'body' => array( + 'backgroundColor' => '#ececeb', + ), + ), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/piece-of-cake.jpg'; + } + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/Restaurant.php b/lib/Config/PopulatorData/Templates/Restaurant.php deleted file mode 100644 index 766605f408..0000000000 --- a/lib/Config/PopulatorData/Templates/Restaurant.php +++ /dev/null @@ -1,413 +0,0 @@ -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" => "

Upgrade! Add these sides

" - )) - )) - ), 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" => "
\n

These onion rings have the perfect crispy batter! - Hayley King, Daily News

\n
" - )) - ), 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" => "
\n

NEW! Ultimate Mac & Cheese Salad. Available at all locations

\n
" - )) - )) - ), 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" => "

Find us at these locations

" - )) - )) - ), 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" => "

Denver

\n

1263 Schoville Street

\n

53355 DENVER

\n

CO

" - )) - ), array( - "type" => "container", - "orientation" => "vertical", - "styles" => array( - "block" => array( - "backgroundColor" => "transparent" - ) - ), - "blocks" => array(array( - "type" => "text", - "text" => "

Fort Collins

\n

157 Maine Street

\n

86432 FORT COLLINS
CO

\n

" - )) - ), array( - "type" => "container", - "orientation" => "vertical", - "styles" => array( - "block" => array( - "backgroundColor" => "transparent" - ) - ), - "blocks" => array(array( - "type" => "text", - "text" => "

Pueblo

\n

5390 York Avenue

\n

64297 Pueblo

\n

CO

" - )) - )) - ), 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" => "

View this email in your web browser

", - "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" => "

Unsubscribe | Manage subscription
Address: Colorado

", - "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'; - } - -} diff --git a/lib/Config/PopulatorData/Templates/ScienceWeekly.php b/lib/Config/PopulatorData/Templates/ScienceWeekly.php new file mode 100644 index 0000000000..760bdcc286 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/ScienceWeekly.php @@ -0,0 +1,677 @@ +template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/science_weekly'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Science Weekly", 'mailpoet'), + 'description' => __("The right chemistry to send your weekly posts.", '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( + 0 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Science-Logo.png', + 'alt' => 'Science-Logo', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '300px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Health-Mag-Title-2.png', + 'alt' => 'Health-Mag-Title-2', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '300px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#b1b6d1', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

Display problems? Open this email in your web browser.

', + ), + ), + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#b1b6d1', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 3 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'automatedLatestContent', + 'amount' => '2', + 'contentType' => 'post', + 'terms' => array(), + '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' => array( + 'type' => 'button', + 'text' => 'Read more', + 'url' => '[postLink]', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#2b2d37', + 'borderColor' => '#112d31', + 'borderWidth' => '1px', + 'borderRadius' => '21px', + 'borderStyle' => 'solid', + 'width' => '114px', + 'lineHeight' => '33px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + 'fontWeight' => 'normal', + 'textAlign' => 'left', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + ), + ), + ), + ), + 4 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ffffff', + 'height' => '30px', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#b1b6d1', + 'height' => '20px', + ), + ), + ), + 2 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Health-Mag-End-1.png', + 'alt' => 'Health-Mag-End', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '50px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 3 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#2b2d37', + 'height' => '35px', + ), + ), + ), + ), + ), + ), + ), + 5 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Health-Mag-Promo-Start.png', + 'alt' => 'Health-Mag-Promo-Start', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '50px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 6 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '50px', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Download our app!

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed in odio dui. Duis et dolor nec erat dictum laoreet. Morbi dapibus turpis id eros viverra tempor.

+

+

Fusce et diam ac sapien posuere luctus. Etiam in vehicula metus, ac viverra elit. Duis diam lacus, molestie vel enim non, rutrum placerat massa. Suspendisse a elit tincidunt, egestas lacus at, maximus diam.

+

', + ), + 2 => array( + 'type' => 'button', + 'text' => 'Download Now', + 'url' => '', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#2b2d37', + 'borderColor' => '#2b2d37', + 'borderWidth' => '1px', + 'borderRadius' => '40px', + 'borderStyle' => 'solid', + 'width' => '144px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + 'fontWeight' => 'normal', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Health-Mag-Phone.png', + 'alt' => 'Health-Mag-Phone', + 'fullWidth' => false, + 'width' => '400px', + 'height' => '573px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 7 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Health-Mag-Promo-End.png', + 'alt' => 'Health-Mag-Promo-End', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '50px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 8 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#2b2d37', + 'height' => '35px', + ), + ), + ), + 1 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Health-Mag-Promo-Start.png', + 'alt' => 'Health-Mag-Promo-Start', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '50px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 9 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

Keep In Touch With Us

', + ), + 1 => array( + 'type' => 'social', + 'iconSet' => 'circles', + 'icons' => array( + 0 => array( + '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 => array( + '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 => array( + 'type' => 'socialIcon', + 'iconType' => 'youtube', + 'link' => 'http://www.youtube.com', + 'image' => $this->social_icon_url . '/03-circles/Youtube.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Youtube', + ), + 3 => array( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/03-circles/Instagram.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + ), + ), + ), + ), + 10 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Health-Mag-Promo-End.png', + 'alt' => 'Health-Mag-Promo-End', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '50px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#2b2d37', + 'height' => '26px', + ), + ), + ), + 2 => array( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#2b2d37', + ), + 'text' => array( + 'fontColor' => '#d6d6d6', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => array( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 3 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#2b2d37', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => array( + 'text' => array( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '15px', + ), + 'h1' => array( + 'fontColor' => '#111111', + 'fontFamily' => 'Arial', + 'fontSize' => '26px', + ), + 'h2' => array( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '22px', + ), + 'h3' => array( + 'fontColor' => '#333333', + 'fontFamily' => 'Arial', + 'fontSize' => '20px', + ), + 'link' => array( + 'fontColor' => '#21759B', + 'textDecoration' => 'underline', + ), + 'wrapper' => array( + 'backgroundColor' => '#ffffff', + ), + 'body' => array( + 'backgroundColor' => '#2b2d37', + ), + ), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/science-weekly.jpg'; + } + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/Shoes.php b/lib/Config/PopulatorData/Templates/Shoes.php new file mode 100644 index 0000000000..b48a34a25e --- /dev/null +++ b/lib/Config/PopulatorData/Templates/Shoes.php @@ -0,0 +1,579 @@ +template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/shoes'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Shoes", 'mailpoet'), + 'description' => __("Nothing like a pair that fits perfectly.", '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( + 0 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#f6f6f6', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Retail-Shoes-Logo.png', + 'alt' => 'Retail-Shoes-Logo', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '220px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Retail-Shoes-Header.jpg', + 'alt' => 'Retail-Shoes-Header', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '700px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#f1b512', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Our New Range

+

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. Integer sapien neque, laoreet quis lobortis sed, semper eget magna. Suspendisse potentiu.

', + ), + 2 => array( + 'type' => 'button', + 'text' => 'Find Out More', + 'url' => '', + 'styles' => array( + 'block' => array( + '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 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + ), + ), + ), + ), + 3 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#36b0a9', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '70px', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Handcrafted Shoes

+

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.

', + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + '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' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 4 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#36b0a9', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + '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' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '70px', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Perfect For Any Occasion

+

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.

', + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + 5 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#f6f6f6', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

We\'re open every day!

+

Call in any time and we\'ll help you pick the best shoes for any occasion.

+

If you\'re not happy, just bring them back to us and we\'ll give you a full refund.

', + ), + 2 => array( + 'type' => 'button', + 'text' => 'Check Out Our Website', + 'url' => '', + 'styles' => array( + 'block' => array( + '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 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 4 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '2px', + 'borderColor' => '#d3d3d3', + ), + ), + ), + 5 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 6 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#f6f6f6', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + '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' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Address Line 1

+

Address Line 2

+

City

+

Country

', + ), + 3 => array( + 'type' => 'social', + 'iconSet' => 'grey', + 'icons' => array( + 0 => array( + '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 => array( + '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 => array( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/02-grey/Instagram.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + ), + ), + ), + ), + 7 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#f6f6f6', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage your subscription

', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + 'text' => array( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => array( + 'fontColor' => '#41c7bf', + 'textDecoration' => 'none', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => array( + 'text' => array( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '15px', + ), + 'h1' => array( + 'fontColor' => '#111111', + 'fontFamily' => 'Arial', + 'fontSize' => '30px', + ), + 'h2' => array( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => array( + 'fontColor' => '#333333', + 'fontFamily' => 'Arial', + 'fontSize' => '22px', + ), + 'link' => array( + 'fontColor' => '#21759B', + 'textDecoration' => 'underline', + ), + 'wrapper' => array( + 'backgroundColor' => '#ffffff', + ), + 'body' => array( + 'backgroundColor' => '#f6f6f6', + ), + ), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/shoes.jpg'; + } + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/StoreDiscount.php b/lib/Config/PopulatorData/Templates/StoreDiscount.php deleted file mode 100644 index ed0e06b258..0000000000 --- a/lib/Config/PopulatorData/Templates/StoreDiscount.php +++ /dev/null @@ -1,406 +0,0 @@ -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" => __("

\n

Hi [subscriber:firstname | default:reader]

\n

\n

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.

", '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" => __("

Get a 15% off your next order

", 'mailpoet') - ), array( - "type" => "text", - "text" => __("

USE CODE: WELOVEMAILPOET

", '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" => __("

Use your discount on these great products...

", '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" => __("

Lovely Red Bicycle

\n

What can we say? It's a totally awesome red bike, and it's the first of its kind in our collection. No sweat!

\n

$289.99

", '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" => __("

Little Orange Bicycle

\n

Another product that's just as awesome but it's the second type, and more orange, with some blue. Cool beans!

\n

$209.99

", '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" => __("

Terms and Conditions:

\n", '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" => __("

Unsubscribe | Manage subscription

\n

1 Store Street, Shopville, CA 1345

", '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'; - } - -} diff --git a/lib/Config/PopulatorData/Templates/TakeAHike.php b/lib/Config/PopulatorData/Templates/TakeAHike.php new file mode 100644 index 0000000000..f97775e2cb --- /dev/null +++ b/lib/Config/PopulatorData/Templates/TakeAHike.php @@ -0,0 +1,769 @@ +template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/take_a_hike'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Take a Hike", 'mailpoet'), + 'description' => __("Can you climb to the top?", '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( + 0 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/header.jpg', + 'alt' => 'header', + 'fullWidth' => true, + 'width' => '1320px', + 'height' => '483px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Hi [subscriber:firstname | default:explorer]

+

+

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. 

', + ), + 3 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 4 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#843c15', + 'height' => '40px', + ), + ), + ), + 5 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

How to plan your hiking route

+

Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Aliquam dictum urna ac lacus dapibus rhoncus.

', + ), + 1 => array( + 'type' => 'button', + 'text' => 'Read More', + 'url' => 'https://www.google.co.uk', + 'styles' => array( + 'block' => array( + '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 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/map.jpg', + 'alt' => 'map', + 'fullWidth' => false, + 'width' => '330px', + 'height' => '227px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#843c15', + 'height' => '40px', + ), + ), + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 3 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/boots.jpg', + 'alt' => 'boots', + 'fullWidth' => false, + 'width' => '600px', + 'height' => '400px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

Tried & tested: Our favourite walking boots

+

Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. 

', + ), + 1 => array( + 'type' => 'button', + 'text' => 'See Reviews', + 'url' => '', + 'styles' => array( + 'block' => array( + '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 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#843c15', + 'height' => '40px', + ), + ), + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 3 => array( + 'type' => 'text', + 'text' => '

Hikers Gallery

', + ), + ), + ), + ), + ), + 5 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/gallery3.jpg', + 'alt' => 'gallery3', + 'fullWidth' => true, + 'width' => '1000px', + 'height' => '750px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/gallery1-300x225.jpg', + 'alt' => 'gallery1', + 'fullWidth' => true, + 'width' => '300px', + 'height' => '225px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/gallery2-1.jpg', + 'alt' => 'gallery2', + 'fullWidth' => true, + 'width' => '1000px', + 'height' => '750px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 6 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Edit this to insert text

', + ), + 2 => array( + 'type' => 'button', + 'text' => 'View More Photos', + 'url' => '', + 'styles' => array( + 'block' => array( + '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 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#843c15', + 'height' => '40px', + ), + ), + ), + 4 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 5 => array( + 'type' => 'text', + 'text' => '

Hiking goes social...

', + ), + 6 => array( + 'type' => 'social', + 'iconSet' => 'circles', + 'icons' => array( + 0 => array( + '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 => array( + '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 => array( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/03-circles/Instagram.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + 3 => array( + 'type' => 'socialIcon', + 'iconType' => 'google-plus', + 'link' => 'http://plus.google.com', + 'image' => $this->social_icon_url . '/03-circles/Google-Plus.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Google Plus', + ), + 4 => array( + '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 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 8 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#843c15', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + 7 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#64a1af', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 8 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#64a1af', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage subscription

', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + 'text' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '13px', + 'textAlign' => 'left', + ), + 'link' => array( + 'fontColor' => '#ffffff', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'footer', + 'text' => '

Add your postal address here!

', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + 'text' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '13px', + 'textAlign' => 'right', + ), + 'link' => array( + 'fontColor' => '#ffffff', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ), + ), + ), + 9 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#64a1af', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => array( + 'text' => array( + 'fontColor' => '#4f230c', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + ), + 'h1' => array( + 'fontColor' => '#423c39', + 'fontFamily' => 'Courier New', + 'fontSize' => '24px', + ), + 'h2' => array( + 'fontColor' => '#265f6d', + 'fontFamily' => 'Courier New', + 'fontSize' => '24px', + ), + 'h3' => array( + 'fontColor' => '#423c39', + 'fontFamily' => 'Courier New', + 'fontSize' => '20px', + ), + 'link' => array( + 'fontColor' => '#843c15', + 'textDecoration' => 'underline', + ), + 'wrapper' => array( + 'backgroundColor' => '#ffffff', + ), + 'body' => array( + 'backgroundColor' => '#843c15', + ), + ), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/take-a-hike.jpg'; + } + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/TravelEmail.php b/lib/Config/PopulatorData/Templates/TravelEmail.php deleted file mode 100644 index 7d1f37009b..0000000000 --- a/lib/Config/PopulatorData/Templates/TravelEmail.php +++ /dev/null @@ -1,527 +0,0 @@ -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" => __("

Hi [subscriber:firstname | default:reader]!

\n

\n

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.

\n

Don't forget to stay updated with Twitter!

", '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" => __("

Photos from Rotarua

", '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" => __("

Here's our top recommendations in Rotarua

", '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" => __("

Waitomo GlowWorm Caves

", '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" => __("

Luge!

", '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" => __("

Roturua Thermal Holiday Park

", '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" => __("

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.

\n

\n

Keep on travellin'

\n

Jane & Steven

", '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? Open this email in your web browser."), - "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" => __("

Unsubscribe | Manage subscription

", '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'; - } - -} diff --git a/lib/Config/PopulatorData/Templates/TravelNomads.php b/lib/Config/PopulatorData/Templates/TravelNomads.php new file mode 100644 index 0000000000..e84c6f07a5 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/TravelNomads.php @@ -0,0 +1,603 @@ +template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/travel_nomads'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Travel Nomads", 'mailpoet'), + 'description' => __("Ideal for sharing your travel adventures.", '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( + 0 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => 'http://example.org', + 'src' => $this->template_image_url . '/header-1.png', + 'alt' => 'Travelling Tales with Jane & Steven', + 'fullWidth' => true, + 'width' => '660px', + 'height' => '165px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Hi [subscriber:firstname | default:reader]!

+

+

Donec viverra arcu nec elit congue pellentesque. In ac dictum magna. Morbi sit amet accumsan augue. Cras cursus viverra nulla non tempus. Curabitur sed neque vel sapien feugiat mattis. Morbi ullamcorper tellus diam, sed rutrum nisi faucibus at.

', + ), + 3 => array( + 'type' => 'social', + 'iconSet' => 'circles', + 'icons' => array( + 0 => array( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://example.com', + 'image' => $this->social_icon_url . '/03-circles/Twitter.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + ), + ), + 4 => array( + 'type' => 'text', + 'text' => '

Photos from Rotarua

', + ), + 5 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => 'http://example.org', + 'src' => $this->template_image_url . '/hot-thermals-1.jpg', + 'alt' => 'hot thermals', + 'fullWidth' => false, + 'width' => '640px', + 'height' => '425px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => 'http://example.org', + 'src' => $this->template_image_url . '/5398660557_e5e338357e_z.jpg', + 'alt' => 'The view from our campsite', + 'fullWidth' => false, + 'width' => '640px', + 'height' => '425px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => 'http://example.org', + 'src' => $this->template_image_url . '/5399212952_b3fea8fffb_z.jpg', + 'alt' => 'Red sky at night', + 'fullWidth' => false, + 'width' => '640px', + 'height' => '425px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => 'http://example.org', + 'src' => $this->template_image_url . '/5399283298_0d2cd66e9f_z.jpg', + 'alt' => 'Don\'t go chasing waterfalls', + 'fullWidth' => false, + 'width' => '640px', + 'height' => '425px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 3 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'button', + 'text' => 'View NZ Photo Gallery', + 'url' => 'http://example.org', + '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', + ), + ), + ), + ), + ), + ), + ), + 4 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '23px', + 'borderStyle' => 'double', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Here\'s our top recommendations in Rotarua

', + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 5 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => 'http://example.org', + 'src' => $this->template_image_url . '/glow-worms.jpg', + 'alt' => 'Glow worms, Waitomo Caves', + 'fullWidth' => true, + 'width' => '640px', + 'height' => '428px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Waitomo Glow Worm Caves

', + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => 'http://example.org', + 'src' => $this->template_image_url . '/luge.jpg', + 'alt' => 'luge', + 'fullWidth' => false, + 'width' => '375px', + 'height' => '500px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Luge!

', + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => 'http://example.org', + 'src' => $this->template_image_url . '/holiday-park.jpg', + 'alt' => 'holiday-park', + 'fullWidth' => true, + 'width' => '640px', + 'height' => '425px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Roturua Thermal Holiday Park

', + ), + ), + ), + ), + ), + 6 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '21px', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Morbi ex diam, venenatis a efficitur et, iaculis at nibh. Ut rhoncus, lacus vel fermentum aliquam, mi arcu pharetra metus, quis ullamcorper tortor ligula in diam. Fusce mi elit, finibus at lectus non, pulvinar fringilla risus. Integer porta vel quam et fringilla.

+

+

Morbi sit amet,

+

Jane & Steven

', + ), + ), + ), + ), + ), + 7 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'dotted', + 'borderWidth' => '2px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 1 => array( + 'type' => 'header', + 'text' => 'Display problems? Open this email in your web browser', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + 'text' => array( + 'fontColor' => '#222222', + 'fontFamily' => 'Courier New', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => array( + 'fontColor' => '#343434', + 'textDecoration' => 'underline', + ), + ), + ), + 2 => array( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage subscription

', + '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' => '26px', + ), + 'h2' => array( + 'fontColor' => '#180d6b', + 'fontFamily' => 'Trebuchet MS', + 'fontSize' => '22px', + ), + '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->template_image_url . '/travel-nomads.jpg'; + } + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/WorldCup.php b/lib/Config/PopulatorData/Templates/WorldCup.php new file mode 100644 index 0000000000..8c4700f68d --- /dev/null +++ b/lib/Config/PopulatorData/Templates/WorldCup.php @@ -0,0 +1,785 @@ +template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/world_cup'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("World Cup", 'mailpoet'), + 'description' => __("Always a winner. ", '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' => '#222222', + ), + ), + '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->template_image_url . '/Sports-Football-Header.png', + 'alt' => 'Sports-Football-Header', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '220px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + array( + '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' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#da6110', + ), + ), + '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' => 'text', + 'text' => '

Issue #1

', + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + array( + 'type' => 'text', + 'text' => '

View In Browser

+

Monday 1st January 2017

', + ), + ), + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => array( + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#da6110', + 'height' => '20px', + ), + ), + ), + array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Sports-Football-Header-1.png', + 'alt' => 'Sports-Football-Header', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '580px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + array( + 'type' => 'text', + 'text' => '

Welcome Back!

+

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. Etiam sed nisl nec orci pretium lacinia eget in turpis. Maecenas in posuere justo. Vestibulum et sapien vestibulum, imperdiet neque in, maximus velit.

+

+

Proin dignissim elit magna, viverra scelerisque libero vehicula sed

', + ), + array( + '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' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#efefef', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#efefef', + ), + ), + 'blocks' => array( + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + + array( + 'type' => 'text', + 'text' => '

Latest News

', + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + array( + 'type' => 'button', + 'text' => 'View All News', + 'url' => '', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#d35400', + 'borderColor' => '#d35400', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '110px', + 'lineHeight' => '36px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Tahoma', + 'fontSize' => '14px', + 'fontWeight' => 'normal', + 'textAlign' => 'right', + ), + ), + ), + ), + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#efefef', + ), + ), + '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' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#efefef', + ), + ), + 'blocks' => array( + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + array( + 'type' => 'image', + 'link' => 'http://mailpoet.info/brazils-history-making-hurricane/', + 'src' => $this->template_image_url . '/2865897_full-lnd.jpg', + 'alt' => 'Brazil’s history-making Hurricane', + 'fullWidth' => false, + 'width' => 652, + 'height' => 366, + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + array( + 'type' => 'text', + 'text' => '

Brazil’s history-making Hurricane

+

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...

+

Read More

', + ), + array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#efefef', + ), + ), + 'blocks' => array( + + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + array( + 'type' => 'image', + 'link' => 'http://mailpoet.info/icelands-dentist-coach-defying-convention-and-expectations/', + 'src' => $this->template_image_url . '/2866107_full-lnd.jpg', + 'alt' => 'Iceland’s dentist-coach defying convention and expectations', + 'fullWidth' => false, + 'width' => 652, + 'height' => 366, + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + array( + 'type' => 'text', + 'text' => '

Iceland’s dentist-coach defying convention and expectations

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat lorem at est congue, non consequat lacus iaculis. Integer euismod mauris velit...

+

Read More

', + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + array( + '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' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + array( + 'type' => 'text', + 'text' => '

Impact and legacy of 2018 FIFA World Cup Russia: facts and figures

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat lorem at est congue, non consequat lacus iaculis. Integer euismod...

+

Read More

', + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + array( + 'type' => 'image', + 'link' => 'http://mailpoet.info/linekers-life-changing-treble/', + 'src' => $this->template_image_url . '/2867790_full-lnd.jpg', + 'alt' => 'Lineker’s life-changing treble', + 'fullWidth' => false, + 'width' => 652, + 'height' => 366, + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + + array( + 'type' => 'text', + 'text' => '

Lineker’s life-changing treble

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat lorem at est congue, non consequat lacus iaculis. Integer euismod mauris velit consequat lorem at est congue...

+

Read More

', + ), + ), + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#f8f8f8', + ), + ), + 'blocks' => array( + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#efefef', + 'height' => '20px', + ), + ), + ), + array( + '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' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#222222', + ), + ), + 'blocks' => array( + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Sports-Football-Footer-1.png', + 'alt' => 'Sports-Football-Footer', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '500px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#da6110', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#da6110', + ), + ), + 'blocks' => array( + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + array( + 'type' => 'social', + 'iconSet' => 'full-symbol-grey', + 'icons' => array( + array( + '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', + ), + array( + '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', + ), + array( + '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', + ), + array( + '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', + ), + ), + ), + ), + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#b55311', + ), + ), + 'blocks' => array( + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#da6110', + 'height' => '20px', + ), + ), + ), + array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + array( + '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' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#da6110', + 'height' => '20px', + ), + ), + ), + array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + array( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + 'text' => array( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Tahoma', + 'fontSize' => '12px', + 'textAlign' => 'right', + ), + 'link' => array( + 'fontColor' => '#ffffff', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => array( + 'text' => array( + 'fontColor' => '#000000', + 'fontFamily' => 'Tahoma', + 'fontSize' => '14px', + ), + 'h1' => array( + 'fontColor' => '#111111', + 'fontFamily' => 'Tahoma', + 'fontSize' => '30px', + ), + 'h2' => array( + 'fontColor' => '#da6110', + 'fontFamily' => 'Tahoma', + 'fontSize' => '24px', + ), + 'h3' => array( + 'fontColor' => '#333333', + 'fontFamily' => 'Tahoma', + 'fontSize' => '18px', + ), + 'link' => array( + 'fontColor' => '#da6110', + 'textDecoration' => 'underline', + ), + 'wrapper' => array( + 'backgroundColor' => '#ffffff', + ), + 'body' => array( + 'backgroundColor' => '#222222', + ), + ), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/world-cup.jpg'; + } + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/YogaStudio.php b/lib/Config/PopulatorData/Templates/YogaStudio.php new file mode 100644 index 0000000000..2baae0b1ac --- /dev/null +++ b/lib/Config/PopulatorData/Templates/YogaStudio.php @@ -0,0 +1,793 @@ +template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/yoga_studio'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Yoga Studio", 'mailpoet'), + 'description' => __("Salute the sun and your subscribers.", '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( + 0 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#f8f8f8', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#1e2937', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/yoga-1.png', + 'alt' => 'yoga-1', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '740px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Here\'s your classes for this week:

', + ), + 3 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

Weekdays

+

Monday: 7am, 9am, 11am, 3pm and 5pm.

+

Tuesday: 7am, 9am, 11am, 3pm and 5pm.

+

Wednesday: 7am, 9am, 11am, 3pm and 5pm.

+

Thursday: CLOSED FOR PRIVATE CLASS.

+

Friday: 7am, 9am, 11am, and 3pm.

', + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

Weekend

+

Saturday: 7am, 9am, 11am, 3pm and 5pm.

+

Sunday: 7am, 9am, 11am, 3pm and 5pm.

+

', + ), + ), + ), + ), + ), + 3 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'padding' => '22px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#d5d5d5', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Meet the instructors

', + ), + ), + ), + ), + ), + 4 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/yoga-person-1.png', + 'alt' => 'yoga-person-1', + 'fullWidth' => false, + 'width' => '400px', + 'height' => '400px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Maria Smith

+

Nullam hendrerit feugiat feugiat. Praesent mollis ante lacus, quis tempor leo sagittis vel. Donec sagittis eros at felis venenatis ultricies.

', + ), + 3 => array( + 'type' => 'button', + 'text' => 'Find Out More', + 'url' => '', + 'styles' => array( + 'block' => array( + '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 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/yoga-person-2.png', + 'alt' => 'yoga-person-2', + 'fullWidth' => false, + 'width' => '400px', + 'height' => '400px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Fiona Davies

+

Nullam hendrerit feugiat feugiat. Praesent mollis ante lacus, quis tempor leo sagittis vel. Donec sagittis eros at felis venenatis ultricies.

', + ), + 3 => array( + 'type' => 'button', + 'text' => 'Find Out More', + 'url' => '', + 'styles' => array( + 'block' => array( + '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 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/yoga-person-3.png', + 'alt' => 'yoga-person-3', + 'fullWidth' => false, + 'width' => '400px', + 'height' => '400px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 2 => array( + 'type' => 'text', + 'text' => '

Matthew Johnson

+

Nullam hendrerit feugiat feugiat. Praesent mollis ante lacus, quis tempor leo sagittis vel. Donec sagittis eros at felis venenatis ultricies.

', + ), + 3 => array( + 'type' => 'button', + 'text' => 'Find Out More', + 'url' => '', + 'styles' => array( + 'block' => array( + '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 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + ), + ), + ), + ), + 5 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#83bd31', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Pose of the week:

+

Virabhadrasana I

+

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.

+

+

When she arrived, Sati entered into an argument with her father. Unable to withstand his insults, she spoke a vow to her father, “Since it was you who gave me this body, I no longer wish to be associated with it.”

', + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + ), + ), + 1 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/yoga-pose.png', + 'alt' => 'yoga-pose', + 'fullWidth' => false, + 'width' => '400px', + 'height' => '400px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 2 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '35px', + ), + ), + ), + ), + ), + ), + ), + 6 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => array( + 'type' => 'text', + 'text' => '

Quote of the week

', + ), + 2 => array( + 'type' => 'text', + 'text' => '

Be a lamp to yourself. Be your own confidence. Hold on to the truth within yourself as to the only truth.

+

Buddha

', + ), + 3 => array( + 'type' => 'spacer', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#ffffff', + 'height' => '20px', + ), + ), + ), + 4 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#d5d5d5', + 'padding' => '15px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#b3b3b3', + ), + ), + ), + ), + ), + ), + ), + 7 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#d5d5d5', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/yoga-logo-small.png', + 'alt' => 'yoga-logo-small', + 'fullWidth' => false, + 'width' => '50px', + 'height' => '50px', + 'styles' => array( + 'block' => array( + 'textAlign' => 'center', + ), + ), + ), + 1 => array( + 'type' => 'social', + 'iconSet' => 'full-symbol-black', + 'icons' => array( + 0 => array( + '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 => array( + '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 => array( + '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 => array( + '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 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'text', + 'text' => '

Yoga Studio

+

Address Line 1

+

Address Line 2

+

City/Town

+

Country

', + ), + ), + ), + 2 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'footer', + 'text' => '

Unsubscribe

Manage subscription

', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + 'text' => array( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '11px', + 'textAlign' => 'center', + ), + 'link' => array( + 'fontColor' => '#000000', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ), + ), + ), + 8 => array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => array( + 'block' => array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => array( + 0 => array( + 'type' => 'divider', + 'styles' => array( + 'block' => array( + 'backgroundColor' => '#d5d5d5', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => array( + 'text' => array( + 'fontColor' => '#1e2937', + 'fontFamily' => 'Arial', + 'fontSize' => '13px', + ), + 'h1' => array( + 'fontColor' => '#1e2937', + 'fontFamily' => 'Arial', + 'fontSize' => '30px', + ), + 'h2' => array( + 'fontColor' => '#1e2937', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => array( + 'fontColor' => '#1e2937', + 'fontFamily' => 'Arial', + 'fontSize' => '20px', + ), + 'link' => array( + 'fontColor' => '#83bd31', + 'textDecoration' => 'underline', + ), + 'wrapper' => array( + 'backgroundColor' => '#ffffff', + ), + 'body' => array( + 'backgroundColor' => '#1e2937', + ), + ), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/yoga-studio.jpg'; + } + +} \ No newline at end of file diff --git a/plugin_repository/assets/newsletter-templates/app_welcome/App-Signup-Header.png b/plugin_repository/assets/newsletter-templates/app_welcome/App-Signup-Header.png new file mode 100644 index 0000000000..2231e5fd49 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/app_welcome/App-Signup-Header.png differ diff --git a/plugin_repository/assets/newsletter-templates/app_welcome/App-Signup-Logo-1.png b/plugin_repository/assets/newsletter-templates/app_welcome/App-Signup-Logo-1.png new file mode 100644 index 0000000000..3d4cec6892 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/app_welcome/App-Signup-Logo-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/app_welcome/App-Signup-Logo-Footer.png b/plugin_repository/assets/newsletter-templates/app_welcome/App-Signup-Logo-Footer.png new file mode 100644 index 0000000000..e2c6e905a0 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/app_welcome/App-Signup-Logo-Footer.png differ diff --git a/plugin_repository/assets/newsletter-templates/app_welcome/App-Signup-Team.jpg b/plugin_repository/assets/newsletter-templates/app_welcome/App-Signup-Team.jpg new file mode 100644 index 0000000000..b9315c9a8c Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/app_welcome/App-Signup-Team.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/app_welcome/app-welcome-email.jpg b/plugin_repository/assets/newsletter-templates/app_welcome/app-welcome-email.jpg new file mode 100644 index 0000000000..1ef86a6356 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/app_welcome/app-welcome-email.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/burger_joint/burger-03.jpg b/plugin_repository/assets/newsletter-templates/burger_joint/burger-03.jpg new file mode 100644 index 0000000000..db300ec3ee Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/burger_joint/burger-03.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/burger_joint/burger-joint.jpg b/plugin_repository/assets/newsletter-templates/burger_joint/burger-joint.jpg new file mode 100644 index 0000000000..818bf61dbe Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/burger_joint/burger-joint.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/burger_joint/fries-01.jpg b/plugin_repository/assets/newsletter-templates/burger_joint/fries-01.jpg new file mode 100644 index 0000000000..824ce17ce4 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/burger_joint/fries-01.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/burger_joint/header.jpg b/plugin_repository/assets/newsletter-templates/burger_joint/header.jpg new file mode 100644 index 0000000000..67f81f76b4 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/burger_joint/header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/burger_joint/rolls-01.jpg b/plugin_repository/assets/newsletter-templates/burger_joint/rolls-01.jpg new file mode 100644 index 0000000000..18fe266a3e Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/burger_joint/rolls-01.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/chocolate_store/bottom-divider-1.png b/plugin_repository/assets/newsletter-templates/chocolate_store/bottom-divider-1.png new file mode 100644 index 0000000000..68bb920971 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/chocolate_store/bottom-divider-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/chocolate_store/bottom-divider_lightgrey-1.png b/plugin_repository/assets/newsletter-templates/chocolate_store/bottom-divider_lightgrey-1.png new file mode 100644 index 0000000000..86330f1ebd Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/chocolate_store/bottom-divider_lightgrey-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/chocolate_store/cafe-cocoa-logo_small.png b/plugin_repository/assets/newsletter-templates/chocolate_store/cafe-cocoa-logo_small.png new file mode 100644 index 0000000000..90f4c6a102 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/chocolate_store/cafe-cocoa-logo_small.png differ diff --git a/plugin_repository/assets/newsletter-templates/chocolate_store/cake-shop.png b/plugin_repository/assets/newsletter-templates/chocolate_store/cake-shop.png new file mode 100644 index 0000000000..518e54d86f Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/chocolate_store/cake-shop.png differ diff --git a/plugin_repository/assets/newsletter-templates/chocolate_store/chocolate-store.jpg b/plugin_repository/assets/newsletter-templates/chocolate_store/chocolate-store.jpg new file mode 100644 index 0000000000..3ce2fa5256 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/chocolate_store/chocolate-store.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/chocolate_store/cocoa-hero.jpg b/plugin_repository/assets/newsletter-templates/chocolate_store/cocoa-hero.jpg new file mode 100644 index 0000000000..0aabbc4bf2 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/chocolate_store/cocoa-hero.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/chocolate_store/cupcakes.jpg b/plugin_repository/assets/newsletter-templates/chocolate_store/cupcakes.jpg new file mode 100644 index 0000000000..5cf4687a6e Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/chocolate_store/cupcakes.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/chocolate_store/new-desserts.png b/plugin_repository/assets/newsletter-templates/chocolate_store/new-desserts.png new file mode 100644 index 0000000000..c2a8422519 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/chocolate_store/new-desserts.png differ diff --git a/plugin_repository/assets/newsletter-templates/chocolate_store/owner-1.jpg b/plugin_repository/assets/newsletter-templates/chocolate_store/owner-1.jpg new file mode 100644 index 0000000000..aca625b94f Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/chocolate_store/owner-1.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/discount/bicycle-header3.png b/plugin_repository/assets/newsletter-templates/discount/bicycle-header3.png new file mode 100644 index 0000000000..0754e3eb28 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/discount/bicycle-header3.png differ diff --git a/plugin_repository/assets/newsletter-templates/discount/discount.jpg b/plugin_repository/assets/newsletter-templates/discount/discount.jpg new file mode 100644 index 0000000000..57c6eca759 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/discount/discount.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/discount/orange-bicycle.jpg b/plugin_repository/assets/newsletter-templates/discount/orange-bicycle.jpg new file mode 100644 index 0000000000..88c9a7dd22 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/discount/orange-bicycle.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/discount/red-icycle-2.jpg b/plugin_repository/assets/newsletter-templates/discount/red-icycle-2.jpg new file mode 100644 index 0000000000..c095add3d6 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/discount/red-icycle-2.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/faith/church-header.jpg b/plugin_repository/assets/newsletter-templates/faith/church-header.jpg new file mode 100644 index 0000000000..c51bdb7780 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/faith/church-header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/faith/faith.jpg b/plugin_repository/assets/newsletter-templates/faith/faith.jpg new file mode 100644 index 0000000000..34af981477 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/faith/faith.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/faith/family.jpg b/plugin_repository/assets/newsletter-templates/faith/family.jpg new file mode 100644 index 0000000000..02a7448821 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/faith/family.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/faith/pray.jpg b/plugin_repository/assets/newsletter-templates/faith/pray.jpg new file mode 100644 index 0000000000..3a97b31a74 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/faith/pray.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/festival_event/festival-event.jpg b/plugin_repository/assets/newsletter-templates/festival_event/festival-event.jpg new file mode 100644 index 0000000000..dd0613b224 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/festival_event/festival-event.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/festival_event/festival-header.jpg b/plugin_repository/assets/newsletter-templates/festival_event/festival-header.jpg new file mode 100644 index 0000000000..3a2c320ebf Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/festival_event/festival-header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/festival_event/happy.jpeg b/plugin_repository/assets/newsletter-templates/festival_event/happy.jpeg new file mode 100644 index 0000000000..06e35e6157 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/festival_event/happy.jpeg differ diff --git a/plugin_repository/assets/newsletter-templates/festival_event/street-food.jpg b/plugin_repository/assets/newsletter-templates/festival_event/street-food.jpg new file mode 100644 index 0000000000..450d7ea7bf Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/festival_event/street-food.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/food_box/Food-Delivery-1-1.png b/plugin_repository/assets/newsletter-templates/food_box/Food-Delivery-1-1.png new file mode 100644 index 0000000000..9ce0233d63 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/food_box/Food-Delivery-1-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/food_box/Food-Delivery-2-1.png b/plugin_repository/assets/newsletter-templates/food_box/Food-Delivery-2-1.png new file mode 100644 index 0000000000..423bfb412d Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/food_box/Food-Delivery-2-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/food_box/Food-Delivery-3-1.png b/plugin_repository/assets/newsletter-templates/food_box/Food-Delivery-3-1.png new file mode 100644 index 0000000000..58b1937ab9 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/food_box/Food-Delivery-3-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/food_box/Food-Delivery-App.png b/plugin_repository/assets/newsletter-templates/food_box/Food-Delivery-App.png new file mode 100644 index 0000000000..acab060b18 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/food_box/Food-Delivery-App.png differ diff --git a/plugin_repository/assets/newsletter-templates/food_box/Food-Delivery-Focus.jpg b/plugin_repository/assets/newsletter-templates/food_box/Food-Delivery-Focus.jpg new file mode 100644 index 0000000000..0256074359 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/food_box/Food-Delivery-Focus.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/food_box/Food-Delivery-Logo.png b/plugin_repository/assets/newsletter-templates/food_box/Food-Delivery-Logo.png new file mode 100644 index 0000000000..5e4f9bab6c Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/food_box/Food-Delivery-Logo.png differ diff --git a/plugin_repository/assets/newsletter-templates/food_box/welcome-to-foodbox.jpg b/plugin_repository/assets/newsletter-templates/food_box/welcome-to-foodbox.jpg new file mode 100644 index 0000000000..900346b18e Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/food_box/welcome-to-foodbox.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/franks-roast-house/coffee-shop.jpg b/plugin_repository/assets/newsletter-templates/franks-roast-house/coffee-shop.jpg new file mode 100644 index 0000000000..31863788e1 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/franks-roast-house/coffee-shop.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/kick_off/football-header.jpg b/plugin_repository/assets/newsletter-templates/kick_off/football-header.jpg new file mode 100644 index 0000000000..86b5dce55f Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/kick_off/football-header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/kick_off/football-player-1.jpeg b/plugin_repository/assets/newsletter-templates/kick_off/football-player-1.jpeg new file mode 100644 index 0000000000..81b4f20f35 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/kick_off/football-player-1.jpeg differ diff --git a/plugin_repository/assets/newsletter-templates/kick_off/football.jpg b/plugin_repository/assets/newsletter-templates/kick_off/football.jpg new file mode 100644 index 0000000000..4693b28550 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/kick_off/football.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/kick_off/plant-pot.jpg b/plugin_repository/assets/newsletter-templates/kick_off/plant-pot.jpg new file mode 100644 index 0000000000..f7a2dc8050 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/kick_off/plant-pot.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/kick_off/shoes.jpg b/plugin_repository/assets/newsletter-templates/kick_off/shoes.jpg new file mode 100644 index 0000000000..9c426e1123 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/kick_off/shoes.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/kick_off/sports.jpg b/plugin_repository/assets/newsletter-templates/kick_off/sports.jpg new file mode 100644 index 0000000000..4219922404 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/kick_off/sports.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/news_day/News-Outlet-Title-2.jpg b/plugin_repository/assets/newsletter-templates/news_day/News-Outlet-Title-2.jpg new file mode 100644 index 0000000000..3a64177331 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/news_day/News-Outlet-Title-2.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/news_day/news-day.jpg b/plugin_repository/assets/newsletter-templates/news_day/news-day.jpg new file mode 100644 index 0000000000..15d559f5c9 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/news_day/news-day.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/news_day/plasma-stingray111-800x533.jpg b/plugin_repository/assets/newsletter-templates/news_day/plasma-stingray111-800x533.jpg new file mode 100644 index 0000000000..2f6d0934c7 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/news_day/plasma-stingray111-800x533.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/piece_of_cake/Restaurant-Bakery-Header.jpg b/plugin_repository/assets/newsletter-templates/piece_of_cake/Restaurant-Bakery-Header.jpg new file mode 100644 index 0000000000..ea58382736 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/piece_of_cake/Restaurant-Bakery-Header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/piece_of_cake/Restaurant-Bakery-Logo-1.png b/plugin_repository/assets/newsletter-templates/piece_of_cake/Restaurant-Bakery-Logo-1.png new file mode 100644 index 0000000000..9aef3c2518 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/piece_of_cake/Restaurant-Bakery-Logo-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/piece_of_cake/piece-of-cake.jpg b/plugin_repository/assets/newsletter-templates/piece_of_cake/piece-of-cake.jpg new file mode 100644 index 0000000000..f89ee67498 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/piece_of_cake/piece-of-cake.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/science_weekly/Health-Mag-End-1.png b/plugin_repository/assets/newsletter-templates/science_weekly/Health-Mag-End-1.png new file mode 100644 index 0000000000..bb4e9ad21f Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/science_weekly/Health-Mag-End-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/science_weekly/Health-Mag-Phone.png b/plugin_repository/assets/newsletter-templates/science_weekly/Health-Mag-Phone.png new file mode 100644 index 0000000000..565f638d37 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/science_weekly/Health-Mag-Phone.png differ diff --git a/plugin_repository/assets/newsletter-templates/science_weekly/Health-Mag-Promo-End.png b/plugin_repository/assets/newsletter-templates/science_weekly/Health-Mag-Promo-End.png new file mode 100644 index 0000000000..250992cbf4 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/science_weekly/Health-Mag-Promo-End.png differ diff --git a/plugin_repository/assets/newsletter-templates/science_weekly/Health-Mag-Promo-Start.png b/plugin_repository/assets/newsletter-templates/science_weekly/Health-Mag-Promo-Start.png new file mode 100644 index 0000000000..4c753e213f Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/science_weekly/Health-Mag-Promo-Start.png differ diff --git a/plugin_repository/assets/newsletter-templates/science_weekly/Health-Mag-Title-2.png b/plugin_repository/assets/newsletter-templates/science_weekly/Health-Mag-Title-2.png new file mode 100644 index 0000000000..b330c91e78 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/science_weekly/Health-Mag-Title-2.png differ diff --git a/plugin_repository/assets/newsletter-templates/science_weekly/Science-Logo.png b/plugin_repository/assets/newsletter-templates/science_weekly/Science-Logo.png new file mode 100644 index 0000000000..ab81b60e50 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/science_weekly/Science-Logo.png differ diff --git a/plugin_repository/assets/newsletter-templates/science_weekly/science-weekly.jpg b/plugin_repository/assets/newsletter-templates/science_weekly/science-weekly.jpg new file mode 100644 index 0000000000..0684273c7b Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/science_weekly/science-weekly.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/shoes/Retail-Shoes-Boxes-1.jpg b/plugin_repository/assets/newsletter-templates/shoes/Retail-Shoes-Boxes-1.jpg new file mode 100644 index 0000000000..c2d2db1ae3 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/shoes/Retail-Shoes-Boxes-1.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/shoes/Retail-Shoes-Boxes-2.jpg b/plugin_repository/assets/newsletter-templates/shoes/Retail-Shoes-Boxes-2.jpg new file mode 100644 index 0000000000..9bb0b24b9b Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/shoes/Retail-Shoes-Boxes-2.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/shoes/Retail-Shoes-Header.jpg b/plugin_repository/assets/newsletter-templates/shoes/Retail-Shoes-Header.jpg new file mode 100644 index 0000000000..9b76ac6342 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/shoes/Retail-Shoes-Header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/shoes/Retail-Shoes-Logo-Footer.png b/plugin_repository/assets/newsletter-templates/shoes/Retail-Shoes-Logo-Footer.png new file mode 100644 index 0000000000..64ea8c4a3b Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/shoes/Retail-Shoes-Logo-Footer.png differ diff --git a/plugin_repository/assets/newsletter-templates/shoes/Retail-Shoes-Logo.png b/plugin_repository/assets/newsletter-templates/shoes/Retail-Shoes-Logo.png new file mode 100644 index 0000000000..5d8023da57 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/shoes/Retail-Shoes-Logo.png differ diff --git a/plugin_repository/assets/newsletter-templates/shoes/shoes.jpg b/plugin_repository/assets/newsletter-templates/shoes/shoes.jpg new file mode 100644 index 0000000000..6496378ada Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/shoes/shoes.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/take_a_hike/boots.jpg b/plugin_repository/assets/newsletter-templates/take_a_hike/boots.jpg new file mode 100644 index 0000000000..cd1c06f2d8 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/take_a_hike/boots.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/take_a_hike/gallery1-300x225.jpg b/plugin_repository/assets/newsletter-templates/take_a_hike/gallery1-300x225.jpg new file mode 100644 index 0000000000..b780e8cb1b Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/take_a_hike/gallery1-300x225.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/take_a_hike/gallery2-1.jpg b/plugin_repository/assets/newsletter-templates/take_a_hike/gallery2-1.jpg new file mode 100644 index 0000000000..588e99cc19 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/take_a_hike/gallery2-1.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/take_a_hike/gallery3.jpg b/plugin_repository/assets/newsletter-templates/take_a_hike/gallery3.jpg new file mode 100644 index 0000000000..95dfc6c453 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/take_a_hike/gallery3.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/take_a_hike/header.jpg b/plugin_repository/assets/newsletter-templates/take_a_hike/header.jpg new file mode 100644 index 0000000000..179eb8ede0 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/take_a_hike/header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/take_a_hike/map.jpg b/plugin_repository/assets/newsletter-templates/take_a_hike/map.jpg new file mode 100644 index 0000000000..694e48c914 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/take_a_hike/map.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/take_a_hike/take-a-hike.jpg b/plugin_repository/assets/newsletter-templates/take_a_hike/take-a-hike.jpg new file mode 100644 index 0000000000..9931f80ae7 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/take_a_hike/take-a-hike.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/travel_nomads/5398660557_e5e338357e_z.jpg b/plugin_repository/assets/newsletter-templates/travel_nomads/5398660557_e5e338357e_z.jpg new file mode 100644 index 0000000000..b685f14139 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/travel_nomads/5398660557_e5e338357e_z.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/travel_nomads/5399212952_b3fea8fffb_z.jpg b/plugin_repository/assets/newsletter-templates/travel_nomads/5399212952_b3fea8fffb_z.jpg new file mode 100644 index 0000000000..129be6f831 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/travel_nomads/5399212952_b3fea8fffb_z.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/travel_nomads/5399283298_0d2cd66e9f_z.jpg b/plugin_repository/assets/newsletter-templates/travel_nomads/5399283298_0d2cd66e9f_z.jpg new file mode 100644 index 0000000000..bdd2e71d4b Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/travel_nomads/5399283298_0d2cd66e9f_z.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/travel_nomads/glow-worms.jpg b/plugin_repository/assets/newsletter-templates/travel_nomads/glow-worms.jpg new file mode 100644 index 0000000000..187b34a215 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/travel_nomads/glow-worms.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/travel_nomads/header-1.png b/plugin_repository/assets/newsletter-templates/travel_nomads/header-1.png new file mode 100644 index 0000000000..cb632dbf7e Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/travel_nomads/header-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/travel_nomads/holiday-park.jpg b/plugin_repository/assets/newsletter-templates/travel_nomads/holiday-park.jpg new file mode 100644 index 0000000000..5bc037284d Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/travel_nomads/holiday-park.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/travel_nomads/hot-thermals-1.jpg b/plugin_repository/assets/newsletter-templates/travel_nomads/hot-thermals-1.jpg new file mode 100644 index 0000000000..090cf7bfbf Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/travel_nomads/hot-thermals-1.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/travel_nomads/luge.jpg b/plugin_repository/assets/newsletter-templates/travel_nomads/luge.jpg new file mode 100644 index 0000000000..78d2d10145 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/travel_nomads/luge.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/travel_nomads/travel-nomads.jpg b/plugin_repository/assets/newsletter-templates/travel_nomads/travel-nomads.jpg new file mode 100644 index 0000000000..4773c9642a Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/travel_nomads/travel-nomads.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/world_cup/2709222_full-lnd.jpg b/plugin_repository/assets/newsletter-templates/world_cup/2709222_full-lnd.jpg new file mode 100644 index 0000000000..e119cb32c5 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/world_cup/2709222_full-lnd.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/world_cup/2865897_full-lnd.jpg b/plugin_repository/assets/newsletter-templates/world_cup/2865897_full-lnd.jpg new file mode 100644 index 0000000000..c43a2c58a0 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/world_cup/2865897_full-lnd.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/world_cup/2866107_full-lnd.jpg b/plugin_repository/assets/newsletter-templates/world_cup/2866107_full-lnd.jpg new file mode 100644 index 0000000000..3d2b42a940 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/world_cup/2866107_full-lnd.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/world_cup/2867790_full-lnd.jpg b/plugin_repository/assets/newsletter-templates/world_cup/2867790_full-lnd.jpg new file mode 100644 index 0000000000..1e6a6ece93 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/world_cup/2867790_full-lnd.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Divider-1.png b/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Divider-1.png new file mode 100644 index 0000000000..4e0d450fdd Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Divider-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Divider-2.png b/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Divider-2.png new file mode 100644 index 0000000000..aee70926b9 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Divider-2.png differ diff --git a/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Divider-3.png b/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Divider-3.png new file mode 100644 index 0000000000..7ade10ab82 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Divider-3.png differ diff --git a/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Footer-1.png b/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Footer-1.png new file mode 100644 index 0000000000..7df6707568 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Footer-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Header-1.png b/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Header-1.png new file mode 100644 index 0000000000..7f1053c898 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Header-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Header.png b/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Header.png new file mode 100644 index 0000000000..9f0f0b1b59 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Header.png differ diff --git a/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Logo-Small.png b/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Logo-Small.png new file mode 100644 index 0000000000..cd40fb2782 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/world_cup/Sports-Football-Logo-Small.png differ diff --git a/plugin_repository/assets/newsletter-templates/world_cup/world-cup.jpg b/plugin_repository/assets/newsletter-templates/world_cup/world-cup.jpg new file mode 100644 index 0000000000..404927e2d8 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/world_cup/world-cup.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-1.png b/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-1.png new file mode 100644 index 0000000000..1dace5f312 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-logo-small.png b/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-logo-small.png new file mode 100644 index 0000000000..c031fbdd37 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-logo-small.png differ diff --git a/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-person-1.png b/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-person-1.png new file mode 100644 index 0000000000..28f7c65261 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-person-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-person-2.png b/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-person-2.png new file mode 100644 index 0000000000..89b470d684 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-person-2.png differ diff --git a/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-person-3.png b/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-person-3.png new file mode 100644 index 0000000000..b0c82807c0 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-person-3.png differ diff --git a/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-pose.png b/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-pose.png new file mode 100644 index 0000000000..3591eaf534 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-pose.png differ diff --git a/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-studio.jpg b/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-studio.jpg new file mode 100644 index 0000000000..3699135021 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/yoga_studio/yoga-studio.jpg differ