template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/yoga_studio'; $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; } public function get() { return [ 'name' => __("Yoga Studio", 'mailpoet'), 'categories' => json_encode(['standard', 'all']), 'readonly' => 1, 'thumbnail' => $this->getThumbnail(), 'body' => json_encode($this->getBody()), ]; } private function getBody() { return [ 'content' => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'orientation' => 'horizontal', 'styles' => [ 'block' => [ 'backgroundColor' => '#f8f8f8', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => '#1e2937', 'height' => '20px', ], ], ], ], ], ], ], 1 => [ 'type' => 'container', 'orientation' => 'horizontal', 'styles' => [ 'block' => [ 'backgroundColor' => '#ffffff', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/yoga-1.png', 'alt' => 'yoga-1', 'fullWidth' => true, 'width' => '1280px', 'height' => '740px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], 1 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '30px', ], ], ], 2 => [ 'type' => 'text', 'text' => '
Monday: 7am, 9am, 11am, 3pm and 5pm.
Tuesday: 7am, 9am, 11am, 3pm and 5pm.
Wednesday: 7am, 9am, 11am, 3pm and 5pm.
Thursday: CLOSED FOR PRIVATE CLASS.
Friday: 7am, 9am, 11am, and 3pm.
', ], ], ], 1 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'text', 'text' => 'Saturday: 7am, 9am, 11am, 3pm and 5pm.
Sunday: 7am, 9am, 11am, 3pm and 5pm.
', ], ], ], ], ], 3 => [ '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' => '20px', ], ], ], 1 => [ 'type' => 'divider', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'padding' => '22px', 'borderStyle' => 'solid', 'borderWidth' => '1px', 'borderColor' => '#d5d5d5', ], ], ], 2 => [ 'type' => 'text', 'text' => 'Nullam hendrerit feugiat feugiat. Praesent mollis ante lacus, quis tempor leo sagittis vel. Donec sagittis eros at felis venenatis ultricies.
', ], 3 => [ 'type' => 'button', 'text' => 'Find Out More', 'url' => '', 'styles' => [ 'block' => [ 'backgroundColor' => '#83bd31', 'borderColor' => '#83bd31', 'borderWidth' => '1px', 'borderRadius' => '40px', 'borderStyle' => 'solid', 'width' => '180px', 'lineHeight' => '30px', 'fontColor' => '#ffffff', 'fontFamily' => 'Arial', 'fontSize' => '14px', 'fontWeight' => 'normal', 'textAlign' => 'center', ], ], ], 4 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '30px', ], ], ], ], ], 1 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '20px', ], ], ], 1 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/yoga-person-2.png', 'alt' => 'yoga-person-2', 'fullWidth' => false, 'width' => '400px', 'height' => '400px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], 2 => [ 'type' => 'text', 'text' => 'Nullam hendrerit feugiat feugiat. Praesent mollis ante lacus, quis tempor leo sagittis vel. Donec sagittis eros at felis venenatis ultricies.
', ], 3 => [ 'type' => 'button', 'text' => 'Find Out More', 'url' => '', 'styles' => [ 'block' => [ 'backgroundColor' => '#83bd31', 'borderColor' => '#83bd31', 'borderWidth' => '1px', 'borderRadius' => '40px', 'borderStyle' => 'solid', 'width' => '180px', 'lineHeight' => '30px', 'fontColor' => '#ffffff', 'fontFamily' => 'Arial', 'fontSize' => '14px', 'fontWeight' => 'normal', 'textAlign' => 'center', ], ], ], 4 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '30px', ], ], ], ], ], 2 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '20px', ], ], ], 1 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/yoga-person-3.png', 'alt' => 'yoga-person-3', 'fullWidth' => false, 'width' => '400px', 'height' => '400px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], 2 => [ 'type' => 'text', 'text' => 'Nullam hendrerit feugiat feugiat. Praesent mollis ante lacus, quis tempor leo sagittis vel. Donec sagittis eros at felis venenatis ultricies.
', ], 3 => [ 'type' => 'button', 'text' => 'Find Out More', 'url' => '', 'styles' => [ 'block' => [ 'backgroundColor' => '#83bd31', 'borderColor' => '#83bd31', 'borderWidth' => '1px', 'borderRadius' => '40px', 'borderStyle' => 'solid', 'width' => '180px', 'lineHeight' => '31px', 'fontColor' => '#ffffff', 'fontFamily' => 'Arial', 'fontSize' => '14px', 'fontWeight' => 'normal', 'textAlign' => 'center', ], ], ], 4 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '30px', ], ], ], ], ], ], ], 5 => [ 'type' => 'container', 'orientation' => 'horizontal', 'styles' => [ 'block' => [ 'backgroundColor' => '#83bd31', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '40px', ], ], ], 1 => [ 'type' => 'text', 'text' => 'Pose of the week:
The myth is that the powerful priest Daksha made a great yagna (ritual sacrifice) but did not invite his youngest daughter Sati and her husband Shiva, the supreme ruler of the universe. Sati found out and decided to go alone to the yagna.
When she arrived, Sati entered into an argument with her father. Unable to withstand his insults, she spoke a vow to her father, “Since it was you who gave me this body, I no longer wish to be associated with it.”
', ], 2 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '40px', ], ], ], ], ], 1 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '40px', ], ], ], 1 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/yoga-pose.png', 'alt' => 'yoga-pose', 'fullWidth' => false, 'width' => '400px', 'height' => '400px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], 2 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '35px', ], ], ], ], ], ], ], 6 => [ 'type' => 'container', 'orientation' => 'horizontal', 'styles' => [ 'block' => [ 'backgroundColor' => '#ffffff', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '40px', ], ], ], 1 => [ 'type' => 'text', 'text' => 'Buddha
', ], 3 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => '#ffffff', 'height' => '20px', ], ], ], 4 => [ 'type' => 'divider', 'styles' => [ 'block' => [ 'backgroundColor' => '#d5d5d5', 'padding' => '15px', 'borderStyle' => 'solid', 'borderWidth' => '1px', 'borderColor' => '#b3b3b3', ], ], ], ], ], ], ], 7 => [ 'type' => 'container', 'orientation' => 'horizontal', 'styles' => [ 'block' => [ 'backgroundColor' => '#d5d5d5', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/yoga-logo-small.png', 'alt' => 'yoga-logo-small', 'fullWidth' => false, 'width' => '50px', 'height' => '50px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], 1 => [ 'type' => 'social', 'iconSet' => 'full-symbol-black', 'icons' => [ 0 => [ 'type' => 'socialIcon', 'iconType' => 'facebook', 'link' => 'http://www.facebook.com', 'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png', 'height' => '32px', 'width' => '32px', 'text' => 'Facebook', ], 1 => [ 'type' => 'socialIcon', 'iconType' => 'twitter', 'link' => 'http://www.twitter.com', 'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png', 'height' => '32px', 'width' => '32px', 'text' => 'Twitter', ], 2 => [ 'type' => 'socialIcon', 'iconType' => 'instagram', 'link' => 'http://instagram.com', 'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png', 'height' => '32px', 'width' => '32px', 'text' => 'Instagram', ], 3 => [ 'type' => 'socialIcon', 'iconType' => 'youtube', 'link' => 'http://www.youtube.com', 'image' => $this->social_icon_url . '/07-full-symbol-black/Youtube.png', 'height' => '32px', 'width' => '32px', 'text' => 'Youtube', ], ], ], ], ], 1 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'text', 'text' => 'Yoga Studio
Address Line 1
Address Line 2
City/Town
Country
', ], ], ], 2 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'footer', 'text' => '', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], 'text' => [ 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '11px', 'textAlign' => 'center', ], 'link' => [ 'fontColor' => '#000000', 'textDecoration' => 'underline', ], ], ], ], ], ], ], 8 => [ 'type' => 'container', 'orientation' => 'horizontal', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'divider', 'styles' => [ 'block' => [ 'backgroundColor' => '#d5d5d5', 'padding' => '13px', 'borderStyle' => 'solid', 'borderWidth' => '1px', 'borderColor' => '#aaaaaa', ], ], ], ], ], ], ], ], ], 'globalStyles' => [ 'text' => [ 'fontColor' => '#1e2937', 'fontFamily' => 'Arial', 'fontSize' => '13px', ], 'h1' => [ 'fontColor' => '#1e2937', 'fontFamily' => 'Arial', 'fontSize' => '30px', ], 'h2' => [ 'fontColor' => '#1e2937', 'fontFamily' => 'Arial', 'fontSize' => '24px', ], 'h3' => [ 'fontColor' => '#1e2937', 'fontFamily' => 'Arial', 'fontSize' => '20px', ], 'link' => [ 'fontColor' => '#83bd31', 'textDecoration' => 'underline', ], 'wrapper' => [ 'backgroundColor' => '#ffffff', ], 'body' => [ 'backgroundColor' => '#1e2937', ], ], ]; } private function getThumbnail() { return $this->template_image_url . '/thumbnail.20190411-1500.jpg'; } }