diff --git a/lib/Config/Populator.php b/lib/Config/Populator.php index a6cf17955d..8c134a5b02 100644 --- a/lib/Config/Populator.php +++ b/lib/Config/Populator.php @@ -43,6 +43,7 @@ class Populator { "TakeAHike", "FestivalEvent", "PieceOfCake", + "Shoes", ); } diff --git a/lib/Config/PopulatorData/Templates/Shoes.php b/lib/Config/PopulatorData/Templates/Shoes.php new file mode 100644 index 0000000000..7b9286be7d --- /dev/null +++ b/lib/Config/PopulatorData/Templates/Shoes.php @@ -0,0 +1,578 @@ +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() { + } + +} \ No newline at end of file