diff --git a/lib/Config/Populator.php b/lib/Config/Populator.php index b91266e9a0..ae96627862 100644 --- a/lib/Config/Populator.php +++ b/lib/Config/Populator.php @@ -40,6 +40,7 @@ class Populator { "FoodBox", "Discount", "KickOff", + "TakeAHike", ); } diff --git a/lib/Config/PopulatorData/Templates/TakeAHike.php b/lib/Config/PopulatorData/Templates/TakeAHike.php new file mode 100644 index 0000000000..c23661a655 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/TakeAHike.php @@ -0,0 +1,768 @@ +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' => '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' => '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' => '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' => '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() { + } + +} \ No newline at end of file