template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/jazz-club'; $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; } public function get() { return [ 'name' => __("Jazz Club", 'mailpoet'), 'categories' => json_encode(['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 [ 'content' => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => [ 'src' => $this->template_image_url . '/Jazz-Header.jpg', 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => '#0b0821', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '30px', ], ], ], 1 => [ 'type' => 'header', 'text' => '
' . __("View this in your browser.", 'mailpoet') . '
', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], 'text' => [ 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ], 'link' => [ 'fontColor' => '#898989', 'textDecoration' => 'underline', ], ], ], 2 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '20px', ], ], ], 3 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Jazz-logo.png', 'alt' => 'Jazz-logo', 'fullWidth' => false, 'width' => '324px', 'height' => '607px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], 4 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '20px', ], ], ], ], ], ], ], 1 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'social', 'iconSet' => 'full-symbol-grey', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], 'icons' => [ 0 => [ '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 => [ '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 => [ '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 => [ '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 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '20px', ], ], ], ], ], ], ], 2 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Jazz-Images-1.jpg', 'alt' => 'Jazz-Images-1', 'fullWidth' => false, 'width' => '800px', 'height' => '875px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], ], ], 1 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '20px', ], ], ], 1 => [ 'type' => 'text', 'text' => '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 => [ 'type' => 'button', 'text' => 'Get tickets', 'url' => '[postLink]', 'styles' => [ 'block' => [ '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 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '35px', ], ], ], 1 => [ 'type' => 'text', 'text' => '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 => [ 'type' => 'button', 'text' => 'Get tickets', 'url' => '[postLink]', 'styles' => [ 'block' => [ '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 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Jazz-Images-2.jpg', 'alt' => 'Jazz-Images-2', 'fullWidth' => false, 'width' => '800px', 'height' => '875px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], ], ], ], ], 4 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Jazz-Images-3.jpg', 'alt' => 'Jazz-Images-3', 'fullWidth' => false, 'width' => '800px', 'height' => '875px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], ], ], 1 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '20px', ], ], ], 1 => [ 'type' => 'text', 'text' => '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 => [ 'type' => 'button', 'text' => 'Get tickets', 'url' => '[postLink]', 'styles' => [ 'block' => [ '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 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '20px', ], ], ], ], ], ], ], 6 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => '#ff7b0e', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '34px', ], ], ], 1 => [ 'type' => 'text', 'text' => 'J A Z Z C L U B P R E S E N T S
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 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Jazz-Social.jpg', 'alt' => 'Jazz-Social', 'fullWidth' => true, 'width' => '1200px', 'height' => '193px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], ], ], ], ], 7 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '34px', ], ], ], 1 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Jazz-logo.png', 'alt' => 'Jazz-logo', 'fullWidth' => false, 'width' => '144px', 'height' => '607px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], 2 => [ 'type' => 'footer', 'text' => '
' . __("Unsubscribe", 'mailpoet') . ' | ' . __("Manage your subscription", 'mailpoet') . '
' . __("Add your postal address here!", 'mailpoet') . '
' . __("Unsubscribe", 'mailpoet') . ' | ' . __("Manage your subscription", 'mailpoet') . '
' . __("Add your postal address here!", 'mailpoet') . '