assets_url = $assets_url; $this->external_template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/confirm-interest-or-unsubscribe'; $this->template_image_url = $this->assets_url . '/img/blank_templates'; } public function get(): array { return [ 'name' => __('Confirm your interest or unsubscribe', 'mailpoet'), 'categories' => json_encode(['re_engagement', 'all']), 'readonly' => 1, 'thumbnail' => $this->getThumbnail(), 'body' => json_encode($this->getBody()), ]; } private function getBody(): array { return [ 'content' => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => '#ffffff', ], ], 'blocks' => [ [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '30px', ], ], ], [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/fake-logo.png', 'alt' => __('Fake logo', 'mailpoet'), 'fullWidth' => false, 'width' => '598px', 'height' => '71px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], [ 'type' => 'text', 'text' => __('
Hi [subscriber:firstname | default:there],
It\'s been a while since you opened our emails. If you have changed your mind since you subscribed and are no longer interested, we get it! We won\'t make it hard for you, so feel free to unsubscribe right away.
(When you unsubscribe, you\'ll stop receiving all future emails from us.)
On the other hand, if you like our emails and want to keep receiving them, please reconfirm your subscription by clicking the big button below.
', 'mailpoet'), ], [ 'type' => 'button', 'text' => __('Yes, keep me subscribed!', 'mailpoet'), 'url' => '[link:subscription_re_engage_url]', 'styles' => [ 'block' => [ 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', 'borderWidth' => '1px', 'borderRadius' => '5px', 'borderStyle' => 'solid', 'width' => '288px', 'lineHeight' => '40px', 'fontColor' => '#ffffff', 'fontFamily' => 'Verdana', 'fontSize' => '16px', 'fontWeight' => 'normal', 'textAlign' => 'center', ], ], ], ], ], ], ], [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => '#ffffff', ], ], 'blocks' => [ [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ [ 'type' => 'text', 'text' => '' . __('The MailPoet Team', 'mailpoet') . '
', ], [ 'type' => 'footer', 'text' => '' . __('Unsubscribe', 'mailpoet') . ' | ' . __('Manage your subscription', 'mailpoet') . '
' . __('Add your postal address here!', 'mailpoet') . '