template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/sunglasses'; $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; } public function get() { return [ 'name' => __("Sunglasses", 'mailpoet'), 'categories' => json_encode(['welcome', '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', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'orientation' => 'horizontal', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '30px', ], ], ], 1 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Glasses-Logo.jpg', 'alt' => 'Glasses-Logo', 'fullWidth' => false, 'width' => '250px', 'height' => '66px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], 2 => [ 'type' => 'divider', 'styles' => [ 'block' => [ 'backgroundColor' => '#ffffff', 'padding' => '17px', 'borderStyle' => 'solid', 'borderWidth' => '2px', 'borderColor' => '#f8b849', ], ], ], 3 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '30px', ], ], ], 4 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Glasses-Header-2.jpg', 'alt' => 'Glasses-Header-2', 'fullWidth' => true, 'width' => '1280px', 'height' => '116px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], 5 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '30px', ], ], ], ], ], ], ], 1 => [ 'type' => 'container', 'orientation' => 'horizontal', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'text', 'text' => '
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra.
', ], 2 => [ 'type' => 'button', 'text' => 'Choose These Frames', 'url' => '', 'styles' => [ 'block' => [ 'backgroundColor' => '#f8b849', 'borderColor' => '#0074a2', 'borderWidth' => '0px', 'borderRadius' => '0px', 'borderStyle' => 'solid', 'width' => '195px', 'lineHeight' => '40px', 'fontColor' => '#ffffff', 'fontFamily' => 'Arial', 'fontSize' => '16px', 'fontWeight' => 'normal', 'textAlign' => 'center', ], ], ], 3 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Glasses-Images-2.jpg', 'alt' => 'Glasses-Images-2', 'fullWidth' => true, 'width' => '1280px', 'height' => '650px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], 4 => [ 'type' => 'text', 'text' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra.
', ], 5 => [ 'type' => 'button', 'text' => 'Choose These Frames', 'url' => '', 'styles' => [ 'block' => [ 'backgroundColor' => '#f8b849', 'borderColor' => '#0074a2', 'borderWidth' => '0px', 'borderRadius' => '0px', 'borderStyle' => 'solid', 'width' => '195px', 'lineHeight' => '40px', 'fontColor' => '#ffffff', 'fontFamily' => 'Arial', 'fontSize' => '16px', 'fontWeight' => 'normal', 'textAlign' => 'center', ], ], ], 6 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Glasses-Images-3.jpg', 'alt' => 'Glasses-Images-3', 'fullWidth' => true, 'width' => '1280px', 'height' => '650px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], 7 => [ 'type' => 'text', 'text' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra.
', ], 8 => [ 'type' => 'button', 'text' => 'Choose These Frames', 'url' => '', 'styles' => [ 'block' => [ 'backgroundColor' => '#f8b849', 'borderColor' => '#0074a2', 'borderWidth' => '0px', 'borderRadius' => '0px', 'borderStyle' => 'solid', 'width' => '195px', 'lineHeight' => '40px', 'fontColor' => '#ffffff', 'fontFamily' => 'Arial', 'fontSize' => '16px', 'fontWeight' => 'normal', 'textAlign' => 'center', ], ], ], 9 => [ 'type' => 'divider', 'styles' => [ 'block' => [ 'backgroundColor' => '#ffffff', 'padding' => '34.5px', 'borderStyle' => 'solid', 'borderWidth' => '2px', 'borderColor' => '#f8b849', ], ], ], ], ], ], ], 3 => [ 'type' => 'container', 'orientation' => 'horizontal', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Glasses-Header.jpg', 'alt' => 'Glasses-Header', 'fullWidth' => true, 'width' => '640px', 'height' => '920px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], ], ], 1 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '60px', ], ], ], 1 => [ 'type' => 'text', 'text' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra. Pellentesque in interdum eros, a venenatis velit.
Fusce finibus convallis augue, ut viverra felis placerat in. Curabitur et commodo ipsum. Mauris tellus metus, tristique vel sollicitudin ut, malesuada in augue.
', ], 2 => [ 'type' => 'button', 'text' => 'Find Out More', 'url' => '', 'styles' => [ 'block' => [ 'backgroundColor' => '#f8b849', 'borderColor' => '#0074a2', 'borderWidth' => '0px', 'borderRadius' => '0px', 'borderStyle' => 'solid', 'width' => '137px', 'lineHeight' => '40px', 'fontColor' => '#ffffff', 'fontFamily' => 'Arial', 'fontSize' => '16px', 'fontWeight' => 'normal', 'textAlign' => 'left', ], ], ], ], ], ], ], 4 => [ 'type' => 'container', 'orientation' => 'horizontal', 'styles' => [ 'block' => [ 'backgroundColor' => '#ffffff', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'divider', 'styles' => [ 'block' => [ 'backgroundColor' => '#ffffff', 'padding' => '34.5px', 'borderStyle' => 'solid', 'borderWidth' => '2px', 'borderColor' => '#f8b849', ], ], ], ], ], ], ], 5 => [ 'type' => 'container', 'orientation' => 'horizontal', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'text', 'text' => 'We\'re just a click or a phone call away.
' . __("Unsubscribe", 'mailpoet') . ' | ' . __("Manage your subscription", 'mailpoet') . '
' . __("Add your postal address here!", 'mailpoet') . '