template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/motor'; $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; } public function get() { return [ 'name' => __("Motor", 'mailpoet'), 'categories' => json_encode(['woocommerce', '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' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => '#e3e3e3', ], ], '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', ], ], ], ], ], ], ], 1 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => '#e3e3e3', ], ], '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' => '24px', ], ], ], 1 => [ 'type' => 'social', 'iconSet' => 'full-symbol-color', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], 'icons' => [ 0 => [ 'type' => 'socialIcon', 'iconType' => 'facebook', 'link' => 'http://www.facebook.com', 'image' => $this->social_icon_url . '/06-full-symbol-color/Facebook.png', 'height' => '32px', 'width' => '32px', 'text' => 'Facebook', ], 1 => [ 'type' => 'socialIcon', 'iconType' => 'twitter', 'link' => 'http://www.twitter.com', 'image' => $this->social_icon_url . '/06-full-symbol-color/Twitter.png', 'height' => '32px', 'width' => '32px', 'text' => 'Twitter', ], 2 => [ 'type' => 'socialIcon', 'iconType' => 'youtube', 'link' => 'http://www.youtube.com', 'image' => $this->social_icon_url . '/06-full-symbol-color/Youtube.png', 'height' => '32px', 'width' => '32px', 'text' => 'Youtube', ], ], ], ], ], 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' => '
Welcome to Vector Motors
' . __("View this in your browser.", 'mailpoet') . '
', ], ], ], 2 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '24px', ], ], ], 1 => [ 'type' => 'social', 'iconSet' => 'full-symbol-color', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], 'icons' => [ 0 => [ 'type' => 'socialIcon', 'iconType' => 'instagram', 'link' => 'http://instagram.com', 'image' => $this->social_icon_url . '/06-full-symbol-color/Instagram.png', 'height' => '32px', 'width' => '32px', 'text' => 'Instagram', ], 1 => [ 'type' => 'socialIcon', 'iconType' => 'email', 'link' => '', 'image' => $this->social_icon_url . '/06-full-symbol-color/Email.png', 'height' => '32px', 'width' => '32px', 'text' => 'Email', ], 2 => [ 'type' => 'socialIcon', 'iconType' => 'website', 'link' => '', 'image' => $this->social_icon_url . '/06-full-symbol-color/Website.png', 'height' => '32px', 'width' => '32px', 'text' => 'Website', ], ], ], ], ], ], ], 2 => [ 'type' => 'container', 'columnLayout' => '2_1', 'orientation' => 'horizontal', 'image' => [ 'src' => $this->template_image_url . '/Car-Header-2.jpg', 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => '#d52a2a', ], ], '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 . '/Car-Header-logo-1.png', 'alt' => 'Car-Header-logo-1', 'fullWidth' => false, 'width' => '167.5px', 'height' => '349px', 'styles' => [ 'block' => [ 'textAlign' => 'left', ], ], ], 1 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '118px', ], ], ], 2 => [ 'type' => 'text', 'text' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam a elementum ex. Aliquam mollis metus ac nisl luctus pulvinar. Donec tincidunt pharetra sem, nec eleifend augue. Morbi id nunc commodo, tempor erat et, pretium neque.
Vivamus ante sapien, consequat vitae ante quis, facilisis pellentesque mi. Praesent at scelerisque leo. Donec elementum mi consequat, ultrices lorem nec, vestibulum arcu. Aenean id libero vitae felis consequat maximus.
', ], 2 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => '#e3e3e3', 'height' => '40px', ], ], ], ], ], ], ], 4 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => '#e3e3e3', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'text', 'text' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam a elementum ex. Aliquam mollis metus ac nisl luctus pulvinar. Donec tincidunt pharetra sem, nec eleifend augue. Morbi id nunc commodo, tempor erat et, pretium neque.
', ], 1 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => '#e3e3e3', 'height' => '113px', ], ], ], 2 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => '#ffffff', 'height' => '42px', ], ], ], ], ], 1 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'button', 'text' => 'Servicing Plans', 'url' => '', 'styles' => [ 'block' => [ 'backgroundColor' => '#d52a2a', 'borderColor' => '#0074a2', 'borderWidth' => '0px', 'borderRadius' => '0px', 'borderStyle' => 'solid', 'width' => '176px', 'lineHeight' => '50px', 'fontColor' => '#ffffff', 'fontFamily' => 'Merriweather Sans', 'fontSize' => '18px', 'fontWeight' => 'bold', 'textAlign' => 'center', ], ], ], 1 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => '#e3e3e3', 'height' => '30px', ], ], ], 2 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Car-Wheel.jpg', 'alt' => 'Car-Wheel', 'fullWidth' => true, 'width' => '600px', 'height' => '560px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], ], ], ], ], 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' => '#ffffff', 'height' => '20px', ], ], ], 1 => [ 'type' => 'text', 'text' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam a elementum ex. Aliquam mollis metus ac nisl luctus pulvinar. Donec tincidunt pharetra sem, nec eleifend augue. Morbi id nunc commodo, tempor erat et, pretium neque.
', ], 2 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => '#ffffff', 'height' => '35px', ], ], ], ], ], ], ], 6 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => '#e3e3e3', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => '#e3e3e3', 'height' => '20px', ], ], ], 1 => [ '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') . '