getAssetUrl('popup.png');
}
public function getBody(): array {
return [
[
'type' => 'columns',
'body' => [
[
'type' => 'column',
'params' => [
'class_name' => '',
'vertical_alignment' => '',
'width' => '10',
],
],
[
'type' => 'column',
'params' => [
'class_name' => '',
'vertical_alignment' => '',
'width' => '80',
],
'body' => [
[
'type' => 'divider',
'params' => [
'class_name' => '',
'height' => '20',
'type' => 'spacer',
'style' => 'solid',
'divider_height' => '1',
'divider_width' => '100',
'color' => 'black',
],
'id' => 'divider',
'name' => 'Divider',
],
[
'type' => 'paragraph',
'id' => 'paragraph',
'params' => [
'content' => '' . _x('IT’S HERE! DON’T MISS OUT!', 'Text in a web form', 'mailpoet') . '',
'drop_cap' => '0',
'align' => 'center',
'font_size' => '20',
'text_color' => '',
'background_color' => '',
'class_name' => '',
],
],
[
'type' => 'divider',
'params' => [
'class_name' => '',
'height' => '10',
'type' => 'divider',
'style' => 'solid',
'divider_height' => '10',
'divider_width' => '100',
'color' => '#ffffff',
],
'id' => 'divider',
'name' => 'Divider',
],
[
'type' => 'heading',
'id' => 'heading',
'params' => [
'content' => '' . _x('B L A C K', 'Text in a web form (Black Friday).', 'mailpoet') . '
' . _x('F R I D A Y', 'Text in a web form (Black Friday).', 'mailpoet') . '',
'level' => '1',
'align' => 'center',
'font_size' => '68',
'text_color' => '#ffffff',
'background_color' => '',
'anchor' => 'block-heading_0.8430326562811867-1602517711078',
'class_name' => '',
],
],
[
'type' => 'divider',
'params' => [
'class_name' => '',
'height' => '10',
'type' => 'divider',
'style' => 'solid',
'divider_height' => '10',
'divider_width' => '100',
'color' => '#ffffff',
],
'id' => 'divider',
'name' => 'Divider',
],
[
'type' => 'paragraph',
'id' => 'paragraph',
'params' => [
'content' => '' . _x('ENJOY 50% OFF ON ALL PRODUCTS', 'Text in a web form', 'mailpoet') . '
' . _x('PLUS FREE SHIPPING = ORDERS OVER $100', 'Text in a web form', 'mailpoet') . '',
'drop_cap' => '0',
'align' => 'center',
'font_size' => '15',
'line_height' => '1.5',
'text_color' => '',
'background_color' => '',
'class_name' => '',
],
],
[
'type' => 'text',
'params' => [
'label' => _x('Email Address', 'Form label', 'mailpoet'),
'class_name' => '',
'required' => '1',
'label_within' => '1',
],
'id' => 'email',
'name' => 'Email',
'styles' => [
'full_width' => '1',
'bold' => '1',
'background_color' => '#ffffff',
'font_color' => '#5b5e60',
'border_size' => '0',
'border_radius' => '2',
],
],
[
'type' => 'submit',
'params' => [
'label' => _x('GET YOUR COUPON', 'Form label', 'mailpoet'),
'class_name' => '',
],
'id' => 'submit',
'name' => 'Submit',
'styles' => [
'full_width' => '1',
'bold' => '1',
'background_color' => '#cf2e2e',
'font_size' => '15',
'font_color' => '#ffffff',
'border_size' => '0',
'border_radius' => '2',
'padding' => '10',
'font_family' => 'Heebo',
],
],
[
'type' => 'paragraph',
'id' => 'paragraph',
'params' => [
'content' => '' . $this->replacePrivacyLinkTags(_x('We don’t spam! Read our [link]privacy policy[/link] for more info.', 'Text in a web form.', 'mailpoet'), '#') . '',
'drop_cap' => '0',
'align' => 'center',
'font_size' => '13',
'line_height' => '1.5',
'text_color' => '#ffffff',
'background_color' => '',
'class_name' => '',
],
],
[
'type' => 'divider',
'params' => [
'class_name' => '',
'height' => '10',
'type' => 'spacer',
'style' => 'solid',
'divider_height' => '1',
'divider_width' => '100',
'color' => '#185f70',
],
'id' => 'divider',
'name' => 'Divider',
],
],
],
[
'type' => 'column',
'params' => [
'class_name' => '',
'vertical_alignment' => '',
'width' => '10',
],
],
],
'params' => [
'vertical_alignment' => '',
'class_name' => '',
'text_color' => '',
'background_color' => '',
'gradient' => '',
],
],
];
}
public function getSettings(): array {
return [
'on_success' => 'message',
'success_message' => '',
'segments' => [],
'segments_selected_by' => 'admin',
'alignment' => 'left',
'border_radius' => '4',
'border_size' => '5',
'form_padding' => '0',
'input_padding' => '10',
'success_validation_color' => '#00d084',
'error_validation_color' => '#cf2e2e',
'close_button' => 'classic_white',
'font_family' => 'Heebo',
'fontSize' => '15',
'form_placement' => [
'popup' => [
'enabled' => '1',
'styles' => [
'width' => [
'unit' => 'pixel',
'value' => '430',
],
],
'animation' => 'slideup',
],
'fixed_bar' => [
'enabled' => '',
],
'below_posts' => [
'enabled' => '',
],
'slide_in' => [
'enabled' => '',
],
'others' => [],
],
'backgroundColor' => '#000000',
'background_image_url' => $this->getAssetUrl('blackfriday-5.png'),
'background_image_display' => 'scale',
'fontColor' => '#ffffff',
'border_color' => '#ffffff',
];
}
public function getStyles(): string {
return <<