template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/jazz-club'; $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; } function get() { return array( 'name' => __("Jazz Club", 'mailpoet'), 'categories' => json_encode(array('standard', 'all')), 'readonly' => 1, 'thumbnail' => $this->getThumbnail(), 'body' => json_encode($this->getBody()), ); } private function getThumbnail() { return $this->template_image_url . '/thumbnail.20190411-1500.jpg'; } private function getBody() { return array ( 'content' => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => array ( 'src' => $this->template_image_url . '/Jazz-Header.jpg', 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => '#0b0821', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '30px', ), ), ), 1 => array ( 'type' => 'header', 'text' => '

View email in browser >

', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), 'link' => array ( 'fontColor' => '#898989', 'textDecoration' => 'underline', ), ), ), 2 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), 3 => array ( 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Jazz-logo.png', 'alt' => 'Jazz-logo', 'fullWidth' => false, 'width' => '324px', 'height' => '607px', 'styles' => array ( 'block' => array ( 'textAlign' => 'center', ), ), ), 4 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), ), ), ), ), 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'social', 'iconSet' => 'full-symbol-grey', 'styles' => array ( 'block' => array ( 'textAlign' => 'center', ), ), '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', ), 3 => 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', ), ), ), 1 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), ), ), ), ), 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Jazz-Images-1.jpg', 'alt' => 'Jazz-Images-1', 'fullWidth' => false, 'width' => '800px', 'height' => '875px', 'styles' => array ( 'block' => array ( 'textAlign' => 'center', ), ), ), ), ), 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), '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' => '

29th March 2019

James Patterson

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ut fringilla velit, id malesuada nisi. Nam ac rutrum diam. Nunc diam leo, bibendum eget aliquam eget, commodo vitae lectus.

', ), 2 => array ( 'type' => 'button', 'text' => 'Get tickets', 'url' => '[postLink]', 'styles' => array ( 'block' => array ( 'backgroundColor' => '#e30095', 'borderColor' => '#0074a2', 'borderWidth' => '0px', 'borderRadius' => '5px', 'borderStyle' => 'solid', 'width' => '90px', 'lineHeight' => '36px', 'fontColor' => '#ffffff', 'fontFamily' => 'Roboto', 'fontSize' => '14px', 'fontWeight' => 'normal', 'textAlign' => 'left', ), ), ), ), ), ), ), 3 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '35px', ), ), ), 1 => array ( 'type' => 'text', 'text' => '

14th April 2019

Samantha Morris

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ut fringilla velit, id malesuada nisi. Nam ac rutrum diam. Nunc diam leo, bibendum eget aliquam eget, commodo vitae lectus.

', ), 2 => array ( 'type' => 'button', 'text' => 'Get tickets', 'url' => '[postLink]', 'styles' => array ( 'block' => array ( 'backgroundColor' => '#e30095', 'borderColor' => '#0074a2', 'borderWidth' => '0px', 'borderRadius' => '5px', 'borderStyle' => 'solid', 'width' => '90px', 'lineHeight' => '36px', 'fontColor' => '#ffffff', 'fontFamily' => 'Roboto', 'fontSize' => '14px', 'fontWeight' => 'normal', 'textAlign' => 'right', ), ), ), ), ), 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Jazz-Images-2.jpg', 'alt' => 'Jazz-Images-2', 'fullWidth' => false, 'width' => '800px', 'height' => '875px', 'styles' => array ( 'block' => array ( 'textAlign' => 'center', ), ), ), ), ), ), ), 4 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Jazz-Images-3.jpg', 'alt' => 'Jazz-Images-3', 'fullWidth' => false, 'width' => '800px', 'height' => '875px', 'styles' => array ( 'block' => array ( 'textAlign' => 'center', ), ), ), ), ), 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), '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' => '

3rd May 2019

Buster Smith

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ut fringilla velit, id malesuada nisi. Nam ac rutrum diam. Nunc diam leo, bibendum eget aliquam eget, commodo vitae lectus.

', ), 2 => array ( 'type' => 'button', 'text' => 'Get tickets', 'url' => '[postLink]', 'styles' => array ( 'block' => array ( 'backgroundColor' => '#e30095', 'borderColor' => '#0074a2', 'borderWidth' => '0px', 'borderRadius' => '5px', 'borderStyle' => 'solid', 'width' => '90px', 'lineHeight' => '36px', 'fontColor' => '#ffffff', 'fontFamily' => 'Roboto', 'fontSize' => '14px', 'fontWeight' => 'normal', 'textAlign' => 'left', ), ), ), ), ), ), ), 5 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), ), ), ), ), 6 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => '#ff7b0e', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '34px', ), ), ), 1 => array ( 'type' => 'text', 'text' => '

J A Z Z  C L U B  P R E S E N T S

24th Jazz Festival

5 - 14 August 2018

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ut fringilla velit, id malesuada nisi. Nam ac rutrum diam. Nunc diam leo, bibendum eget aliquam eget, commodo vitae lectus.

', ), 2 => array ( 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Jazz-Social.jpg', 'alt' => 'Jazz-Social', 'fullWidth' => true, 'width' => '1200px', 'height' => '193px', 'styles' => array ( 'block' => array ( 'textAlign' => 'center', ), ), ), ), ), ), ), 7 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '34px', ), ), ), 1 => array ( 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Jazz-logo.png', 'alt' => 'Jazz-logo', 'fullWidth' => false, 'width' => '144px', 'height' => '607px', 'styles' => array ( 'block' => array ( 'textAlign' => 'center', ), ), ), 2 => array ( 'type' => 'footer', 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), 'text' => array ( 'fontColor' => '#ffffff', 'fontFamily' => 'Roboto', 'fontSize' => '12px', 'textAlign' => 'center', ), 'link' => array ( 'fontColor' => '#e30095', 'textDecoration' => 'none', ), ), ), ), ), ), ), ), ), 'globalStyles' => array ( 'text' => array ( 'fontColor' => '#848486', 'fontFamily' => 'Roboto', 'fontSize' => '14px', ), 'h1' => array ( 'fontColor' => '#ffffff', 'fontFamily' => 'Arvo', 'fontSize' => '26px', ), 'h2' => array ( 'fontColor' => '#e30095', 'fontFamily' => 'Arvo', 'fontSize' => '20px', ), 'h3' => array ( 'fontColor' => '#e30095', 'fontFamily' => 'Arvo', 'fontSize' => '22px', ), 'link' => array ( 'fontColor' => '#e30095', 'textDecoration' => 'underline', ), 'wrapper' => array ( 'backgroundColor' => '#0b0821', ), 'body' => array ( 'backgroundColor' => '#0b0821', ), ), 'blockDefaults' => array ( 'automatedLatestContent' => array ( 'amount' => '5', 'withLayout' => false, 'contentType' => 'post', 'inclusionType' => 'include', 'displayType' => 'excerpt', 'titleFormat' => 'h1', 'titleAlignment' => 'left', 'titleIsLink' => false, 'imageFullWidth' => false, 'featuredImagePosition' => 'belowTitle', 'showAuthor' => 'no', 'authorPrecededBy' => 'Author:', 'showCategories' => 'no', 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'automatedLatestContent.readMoreButton', 'styles' => array ( 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', 'borderWidth' => '1px', 'borderRadius' => '5px', 'borderStyle' => 'solid', 'width' => '180px', 'lineHeight' => '40px', 'fontColor' => '#ffffff', 'fontFamily' => 'Verdana', 'fontSize' => '18px', 'fontWeight' => 'normal', 'textAlign' => 'center', ), ), ), 'sortBy' => 'newest', 'showDivider' => true, 'divider' => array ( 'context' => 'automatedLatestContent.divider', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', 'borderStyle' => 'solid', 'borderWidth' => '3px', 'borderColor' => '#aaaaaa', ), ), ), 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), 'automatedLatestContentLayout' => array ( 'amount' => '3', 'withLayout' => true, 'contentType' => 'post', 'inclusionType' => 'include', 'displayType' => 'excerpt', 'titleFormat' => 'h3', 'titleAlignment' => 'left', 'titleIsLink' => false, 'imageFullWidth' => false, 'featuredImagePosition' => 'alternate', 'showAuthor' => 'no', 'authorPrecededBy' => 'Author:', 'showCategories' => 'no', 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', 'readMoreButton' => array ( 'text' => 'Read the post', 'url' => '[postLink]', 'context' => 'automatedLatestContentLayout.readMoreButton', 'styles' => array ( 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', 'borderWidth' => '1px', 'borderRadius' => '5px', 'borderStyle' => 'solid', 'width' => '160px', 'lineHeight' => '30px', 'fontColor' => '#ffffff', 'fontFamily' => 'Verdana', 'fontSize' => '16px', 'fontWeight' => 'normal', 'textAlign' => 'center', ), ), 'type' => 'button', ), 'sortBy' => 'newest', 'showDivider' => true, 'divider' => array ( 'context' => 'automatedLatestContentLayout.divider', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', 'borderStyle' => 'solid', 'borderWidth' => '3px', 'borderColor' => '#aaaaaa', ), ), 'type' => 'divider', ), 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', 'type' => 'automatedLatestContentLayout', 'terms' => array ( ), ), 'button' => array ( 'text' => 'Get tickets', 'url' => '[postLink]', 'styles' => array ( 'block' => array ( 'backgroundColor' => '#e30095', 'borderColor' => '#0074a2', 'borderWidth' => '0px', 'borderRadius' => '5px', 'borderStyle' => 'solid', 'width' => '90px', 'lineHeight' => '36px', 'fontColor' => '#ffffff', 'fontFamily' => 'Roboto', 'fontSize' => '14px', 'fontWeight' => 'normal', 'textAlign' => 'left', ), ), 'type' => 'button', ), 'divider' => array ( 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', 'borderStyle' => 'solid', 'borderWidth' => '3px', 'borderColor' => '#aaaaaa', ), ), 'type' => 'divider', ), 'footer' => array ( 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), 'text' => array ( 'fontColor' => '#ffffff', 'fontFamily' => 'Roboto', 'fontSize' => '12px', 'textAlign' => 'center', ), 'link' => array ( 'fontColor' => '#e30095', 'textDecoration' => 'none', ), ), 'type' => 'footer', ), 'posts' => array ( 'amount' => '10', 'withLayout' => true, 'contentType' => 'post', 'postStatus' => 'publish', 'inclusionType' => 'include', 'displayType' => 'excerpt', 'titleFormat' => 'h1', 'titleAlignment' => 'left', 'titleIsLink' => false, 'imageFullWidth' => false, 'featuredImagePosition' => 'left', 'showAuthor' => 'no', 'authorPrecededBy' => 'Author:', 'showCategories' => 'no', 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'link', 'readMoreText' => 'Read more', 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'posts.readMoreButton', 'styles' => array ( 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', 'borderWidth' => '1px', 'borderRadius' => '5px', 'borderStyle' => 'solid', 'width' => '180px', 'lineHeight' => '40px', 'fontColor' => '#ffffff', 'fontFamily' => 'Verdana', 'fontSize' => '18px', 'fontWeight' => 'normal', 'textAlign' => 'center', ), ), 'type' => 'button', ), 'sortBy' => 'newest', 'showDivider' => true, 'divider' => array ( 'context' => 'posts.divider', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', 'borderStyle' => 'solid', 'borderWidth' => '3px', 'borderColor' => '#aaaaaa', ), ), 'type' => 'divider', ), 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', 'type' => 'posts', 'offset' => 10, 'terms' => array ( ), 'search' => '', ), 'social' => array ( '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', ), 3 => 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', ), ), 'type' => 'social', ), 'spacer' => array ( 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '34px', ), ), 'type' => 'spacer', ), 'header' => array ( 'text' => 'Display problems? Open this email in your web browser.', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), 'link' => array ( 'fontColor' => '#898989', 'textDecoration' => 'underline', ), ), 'type' => 'header', ), ), ); } }