Add Test 11 based templates
[MAILPOET-3190]
@ -16,6 +16,11 @@ use MailPoet\Form\Templates\Templates\Template10FixedBar;
|
|||||||
use MailPoet\Form\Templates\Templates\Template10Popup;
|
use MailPoet\Form\Templates\Templates\Template10Popup;
|
||||||
use MailPoet\Form\Templates\Templates\Template10SlideIn;
|
use MailPoet\Form\Templates\Templates\Template10SlideIn;
|
||||||
use MailPoet\Form\Templates\Templates\Template10Widget;
|
use MailPoet\Form\Templates\Templates\Template10Widget;
|
||||||
|
use MailPoet\Form\Templates\Templates\Template11BelowPages;
|
||||||
|
use MailPoet\Form\Templates\Templates\Template11FixedBar;
|
||||||
|
use MailPoet\Form\Templates\Templates\Template11Popup;
|
||||||
|
use MailPoet\Form\Templates\Templates\Template11SlideIn;
|
||||||
|
use MailPoet\Form\Templates\Templates\Template11Widget;
|
||||||
use MailPoet\Form\Templates\Templates\Template1BelowPages;
|
use MailPoet\Form\Templates\Templates\Template1BelowPages;
|
||||||
use MailPoet\Form\Templates\Templates\Template1FixedBar;
|
use MailPoet\Form\Templates\Templates\Template1FixedBar;
|
||||||
use MailPoet\Form\Templates\Templates\Template1Popup;
|
use MailPoet\Form\Templates\Templates\Template1Popup;
|
||||||
@ -86,6 +91,7 @@ class FormEditor {
|
|||||||
Template6Popup::ID,
|
Template6Popup::ID,
|
||||||
Template7Popup::ID,
|
Template7Popup::ID,
|
||||||
Template10Popup::ID,
|
Template10Popup::ID,
|
||||||
|
Template11Popup::ID,
|
||||||
],
|
],
|
||||||
FormEntity::DISPLAY_TYPE_SLIDE_IN => [
|
FormEntity::DISPLAY_TYPE_SLIDE_IN => [
|
||||||
Template1SlideIn::ID,
|
Template1SlideIn::ID,
|
||||||
@ -94,6 +100,7 @@ class FormEditor {
|
|||||||
Template6SlideIn::ID,
|
Template6SlideIn::ID,
|
||||||
Template7SlideIn::ID,
|
Template7SlideIn::ID,
|
||||||
Template10SlideIn::ID,
|
Template10SlideIn::ID,
|
||||||
|
Template11SlideIn::ID,
|
||||||
],
|
],
|
||||||
FormEntity::DISPLAY_TYPE_FIXED_BAR => [
|
FormEntity::DISPLAY_TYPE_FIXED_BAR => [
|
||||||
Template1FixedBar::ID,
|
Template1FixedBar::ID,
|
||||||
@ -102,6 +109,7 @@ class FormEditor {
|
|||||||
Template6FixedBar::ID,
|
Template6FixedBar::ID,
|
||||||
Template7FixedBar::ID,
|
Template7FixedBar::ID,
|
||||||
Template10FixedBar::ID,
|
Template10FixedBar::ID,
|
||||||
|
Template11FixedBar::ID,
|
||||||
],
|
],
|
||||||
FormEntity::DISPLAY_TYPE_BELOW_POST => [
|
FormEntity::DISPLAY_TYPE_BELOW_POST => [
|
||||||
Template1BelowPages::ID,
|
Template1BelowPages::ID,
|
||||||
@ -110,6 +118,7 @@ class FormEditor {
|
|||||||
Template6BelowPages::ID,
|
Template6BelowPages::ID,
|
||||||
Template7BelowPages::ID,
|
Template7BelowPages::ID,
|
||||||
Template10BelowPages::ID,
|
Template10BelowPages::ID,
|
||||||
|
Template11BelowPages::ID,
|
||||||
],
|
],
|
||||||
FormEntity::DISPLAY_TYPE_OTHERS => [
|
FormEntity::DISPLAY_TYPE_OTHERS => [
|
||||||
Template1Widget::ID,
|
Template1Widget::ID,
|
||||||
@ -118,6 +127,7 @@ class FormEditor {
|
|||||||
Template6Widget::ID,
|
Template6Widget::ID,
|
||||||
Template7Widget::ID,
|
Template7Widget::ID,
|
||||||
Template10Widget::ID,
|
Template10Widget::ID,
|
||||||
|
Template11Widget::ID,
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -9,6 +9,11 @@ use MailPoet\Form\Templates\Templates\Template10FixedBar;
|
|||||||
use MailPoet\Form\Templates\Templates\Template10Popup;
|
use MailPoet\Form\Templates\Templates\Template10Popup;
|
||||||
use MailPoet\Form\Templates\Templates\Template10SlideIn;
|
use MailPoet\Form\Templates\Templates\Template10SlideIn;
|
||||||
use MailPoet\Form\Templates\Templates\Template10Widget;
|
use MailPoet\Form\Templates\Templates\Template10Widget;
|
||||||
|
use MailPoet\Form\Templates\Templates\Template11BelowPages;
|
||||||
|
use MailPoet\Form\Templates\Templates\Template11FixedBar;
|
||||||
|
use MailPoet\Form\Templates\Templates\Template11Popup;
|
||||||
|
use MailPoet\Form\Templates\Templates\Template11SlideIn;
|
||||||
|
use MailPoet\Form\Templates\Templates\Template11Widget;
|
||||||
use MailPoet\Form\Templates\Templates\Template1BelowPages;
|
use MailPoet\Form\Templates\Templates\Template1BelowPages;
|
||||||
use MailPoet\Form\Templates\Templates\Template1FixedBar;
|
use MailPoet\Form\Templates\Templates\Template1FixedBar;
|
||||||
use MailPoet\Form\Templates\Templates\Template1Popup;
|
use MailPoet\Form\Templates\Templates\Template1Popup;
|
||||||
@ -81,6 +86,11 @@ class TemplateRepository {
|
|||||||
Template10Popup::ID => Template10Popup::class,
|
Template10Popup::ID => Template10Popup::class,
|
||||||
Template10SlideIn::ID => Template10SlideIn::class,
|
Template10SlideIn::ID => Template10SlideIn::class,
|
||||||
Template10Widget::ID => Template10Widget::class,
|
Template10Widget::ID => Template10Widget::class,
|
||||||
|
Template11BelowPages::ID => Template11BelowPages::class,
|
||||||
|
Template11FixedBar::ID => Template11FixedBar::class,
|
||||||
|
Template11Popup::ID => Template11Popup::class,
|
||||||
|
Template11SlideIn::ID => Template11SlideIn::class,
|
||||||
|
Template11Widget::ID => Template11Widget::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
public function __construct(CdnAssetUrl $cdnAssetUrl, WPFunctions $wp) {
|
public function __construct(CdnAssetUrl $cdnAssetUrl, WPFunctions $wp) {
|
||||||
|
373
lib/Form/Templates/Templates/Template11BelowPages.php
Normal file
@ -0,0 +1,373 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace MailPoet\Form\Templates\Templates;
|
||||||
|
|
||||||
|
use MailPoet\Form\Templates\FormTemplate;
|
||||||
|
|
||||||
|
class Template11BelowPages extends FormTemplate {
|
||||||
|
const ID = 'template_11_below_pages';
|
||||||
|
|
||||||
|
/** @var string */
|
||||||
|
protected $assetsDirectory = 'template-11';
|
||||||
|
|
||||||
|
public function getName(): string {
|
||||||
|
return _x('Don’t Miss a Beat', 'Form template name', 'mailpoet');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getThumbnailUrl(): string {
|
||||||
|
return $this->getAssetUrl('belowpage.png');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getBody(): array {
|
||||||
|
return [
|
||||||
|
[
|
||||||
|
'type' => 'columns',
|
||||||
|
'body' => [
|
||||||
|
[
|
||||||
|
'type' => 'column',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'vertical_alignment' => '',
|
||||||
|
'width' => '60',
|
||||||
|
],
|
||||||
|
'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' => 'columns',
|
||||||
|
'body' => [
|
||||||
|
[
|
||||||
|
'type' => 'column',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'vertical_alignment' => 'center',
|
||||||
|
'width' => '30',
|
||||||
|
],
|
||||||
|
'body' => [
|
||||||
|
[
|
||||||
|
'type' => 'image',
|
||||||
|
'id' => 'image',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'align' => 'left',
|
||||||
|
'url' => $this->getAssetUrl('soundicon.png'),
|
||||||
|
'alt' => '',
|
||||||
|
'title' => '',
|
||||||
|
'caption' => '',
|
||||||
|
'link_destination' => 'none',
|
||||||
|
'link' => '',
|
||||||
|
'href' => '',
|
||||||
|
'link_class' => '',
|
||||||
|
'rel' => '',
|
||||||
|
'link_target' => '',
|
||||||
|
'id' => '299',
|
||||||
|
'size_slug' => 'large',
|
||||||
|
'width' => '68',
|
||||||
|
'height' => '69',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'column',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'vertical_alignment' => 'center',
|
||||||
|
'width' => '70',
|
||||||
|
],
|
||||||
|
'body' => [
|
||||||
|
[
|
||||||
|
'type' => 'heading',
|
||||||
|
'id' => 'heading',
|
||||||
|
'params' => [
|
||||||
|
'content' => '<span style="font-family: Fira Sans" data-font="Fira Sans" class="mailpoet-has-font"><strong>' . _x('DON’T MISS A BEAT', 'Text in a web form.', 'mailpoet') . '</strong></span>',
|
||||||
|
'level' => '2',
|
||||||
|
'align' => 'left',
|
||||||
|
'font_size' => '25',
|
||||||
|
'text_color' => '#ffffff',
|
||||||
|
'background_color' => '',
|
||||||
|
'anchor' => '',
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'paragraph',
|
||||||
|
'id' => 'paragraph',
|
||||||
|
'params' => [
|
||||||
|
'content' => '<span style="font-family: Fira Sans" data-font="Fira Sans" class="mailpoet-has-font">' . _x('Be the first to know when our album is released on <strong>iTunes</strong> and <strong><span style="color:#01d386" class="has-inline-color">Spotify</span></strong>', 'Text in a web form. Keep HTML tags!', 'mailpoet') . '</span>',
|
||||||
|
'drop_cap' => '0',
|
||||||
|
'align' => 'left',
|
||||||
|
'font_size' => '15',
|
||||||
|
'text_color' => '#ffffff',
|
||||||
|
'background_color' => '',
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'params' => [
|
||||||
|
'vertical_alignment' => 'center',
|
||||||
|
'class_name' => '',
|
||||||
|
'text_color' => '',
|
||||||
|
'background_color' => '',
|
||||||
|
'gradient' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'divider',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'height' => '1',
|
||||||
|
'type' => 'spacer',
|
||||||
|
'style' => 'solid',
|
||||||
|
'divider_height' => '1',
|
||||||
|
'divider_width' => '100',
|
||||||
|
'color' => 'black',
|
||||||
|
],
|
||||||
|
'id' => 'divider',
|
||||||
|
'name' => 'Divider',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'text',
|
||||||
|
'params' => [
|
||||||
|
'label' => _x('Enter your email', 'Form label', 'mailpoet'),
|
||||||
|
'class_name' => '',
|
||||||
|
'required' => '1',
|
||||||
|
'label_within' => '1',
|
||||||
|
],
|
||||||
|
'id' => 'email',
|
||||||
|
'name' => 'Email',
|
||||||
|
'styles' => [
|
||||||
|
'full_width' => '1',
|
||||||
|
'bold' => '0',
|
||||||
|
'background_color' => '#ffffff',
|
||||||
|
'font_color' => '#4c537e',
|
||||||
|
'border_size' => '0',
|
||||||
|
'border_radius' => '2',
|
||||||
|
'border_color' => '#313131',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'submit',
|
||||||
|
'params' => [
|
||||||
|
'label' => _x('JOIN THE LIST', 'Form label', 'mailpoet'),
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
'id' => 'submit',
|
||||||
|
'name' => 'Submit',
|
||||||
|
'styles' => [
|
||||||
|
'full_width' => '1',
|
||||||
|
'bold' => '0',
|
||||||
|
'background_color' => '#4c537e',
|
||||||
|
'font_size' => '15',
|
||||||
|
'font_color' => '#ffffff',
|
||||||
|
'border_size' => '0',
|
||||||
|
'border_radius' => '2',
|
||||||
|
'border_color' => '#313131',
|
||||||
|
'padding' => '15',
|
||||||
|
'font_family' => 'Fira Sans',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'paragraph',
|
||||||
|
'id' => 'paragraph',
|
||||||
|
'params' => [
|
||||||
|
'content' => '<span style="font-family: Fira Sans" data-font="Fira Sans" class="mailpoet-has-font">' . $this->replaceLinkTags(_x('We don’t spam! Read our [link]privacy policy[/link] for more info.', 'Text in a web form.', 'mailpoet'), '#') . '</span>',
|
||||||
|
'drop_cap' => '0',
|
||||||
|
'align' => 'center',
|
||||||
|
'font_size' => '15',
|
||||||
|
'text_color' => '#ffffff',
|
||||||
|
'background_color' => '',
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'column',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'vertical_alignment' => '',
|
||||||
|
'width' => '40',
|
||||||
|
],
|
||||||
|
'body' => [
|
||||||
|
[
|
||||||
|
'type' => 'image',
|
||||||
|
'id' => 'image',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'align' => '',
|
||||||
|
'url' => $this->getAssetUrl('Guitarist-787x1024.jpg'),
|
||||||
|
'alt' => '',
|
||||||
|
'title' => '',
|
||||||
|
'caption' => '',
|
||||||
|
'link_destination' => 'none',
|
||||||
|
'link' => 'http://mailpoet.info/guitarist/',
|
||||||
|
'href' => '',
|
||||||
|
'link_class' => '',
|
||||||
|
'rel' => '',
|
||||||
|
'link_target' => '',
|
||||||
|
'id' => '293',
|
||||||
|
'size_slug' => 'large',
|
||||||
|
'width' => '',
|
||||||
|
'height' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'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',
|
||||||
|
'backgroundColor' => '#27282e',
|
||||||
|
'form_placement' => [
|
||||||
|
'popup' => ['enabled' => ''],
|
||||||
|
'fixed_bar' => ['enabled' => ''],
|
||||||
|
'below_posts' => [
|
||||||
|
'enabled' => '1',
|
||||||
|
'styles' => [
|
||||||
|
'width' => [
|
||||||
|
'value' => '100',
|
||||||
|
'unit' => 'percent',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'posts' => [
|
||||||
|
'all' => '1',
|
||||||
|
],
|
||||||
|
'pages' => [
|
||||||
|
'all' => '1',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'slide_in' => ['enabled' => ''],
|
||||||
|
'others' => [],
|
||||||
|
],
|
||||||
|
'border_radius' => '3',
|
||||||
|
'border_size' => '0',
|
||||||
|
'form_padding' => '0',
|
||||||
|
'input_padding' => '15',
|
||||||
|
'font_family' => 'Fira Sans',
|
||||||
|
'close_button' => 'classic_white',
|
||||||
|
'success_validation_color' => '#00d084',
|
||||||
|
'error_validation_color' => '#cf2e2e',
|
||||||
|
'fontSize' => '15',
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getStyles(): string {
|
||||||
|
return <<<EOL
|
||||||
|
/* form */
|
||||||
|
.mailpoet_form {
|
||||||
|
}
|
||||||
|
|
||||||
|
form {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* columns */
|
||||||
|
.mailpoet_column_with_background {
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-column:first-child,
|
||||||
|
.mailpoet_form_column:first-child {
|
||||||
|
padding: 0 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* space between columns */
|
||||||
|
.mailpoet_form_column:not(:first-child) {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2.mailpoet-heading {
|
||||||
|
margin: 0 0 15px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* input wrapper (label + input) */
|
||||||
|
.mailpoet_paragraph {
|
||||||
|
line-height:20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* labels */
|
||||||
|
.mailpoet_segment_label,
|
||||||
|
.mailpoet_text_label,
|
||||||
|
.mailpoet_textarea_label,
|
||||||
|
.mailpoet_select_label,
|
||||||
|
.mailpoet_radio_label,
|
||||||
|
.mailpoet_checkbox_label,
|
||||||
|
.mailpoet_list_label,
|
||||||
|
.mailpoet_date_label {
|
||||||
|
display:block;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* inputs */
|
||||||
|
.mailpoet_text,
|
||||||
|
.mailpoet_textarea,
|
||||||
|
.mailpoet_select,
|
||||||
|
.mailpoet_date_month,
|
||||||
|
.mailpoet_date_day,
|
||||||
|
.mailpoet_date_year,
|
||||||
|
.mailpoet_date {
|
||||||
|
display:block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_text,
|
||||||
|
.mailpoet_textarea {
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_checkbox {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_submit {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_divider {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_message {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_form_loading {
|
||||||
|
width: 30px;
|
||||||
|
text-align: center;
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_form_loading > span {
|
||||||
|
width: 5px;
|
||||||
|
height: 5px;
|
||||||
|
background-color: #5b5b5b;
|
||||||
|
}
|
||||||
|
EOL;
|
||||||
|
}
|
||||||
|
}
|
323
lib/Form/Templates/Templates/Template11FixedBar.php
Normal file
@ -0,0 +1,323 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace MailPoet\Form\Templates\Templates;
|
||||||
|
|
||||||
|
use MailPoet\Form\Templates\FormTemplate;
|
||||||
|
|
||||||
|
class Template11FixedBar extends FormTemplate {
|
||||||
|
const ID = 'template_11_fixed_bar';
|
||||||
|
|
||||||
|
/** @var string */
|
||||||
|
protected $assetsDirectory = 'template-11';
|
||||||
|
|
||||||
|
public function getName(): string {
|
||||||
|
return _x('Don’t Miss a Beat', 'Form template name', 'mailpoet');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getThumbnailUrl(): string {
|
||||||
|
return $this->getAssetUrl('fixedbar.png');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getBody(): array {
|
||||||
|
return [
|
||||||
|
[
|
||||||
|
'type' => 'divider',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'height' => '1',
|
||||||
|
'type' => 'spacer',
|
||||||
|
'style' => 'solid',
|
||||||
|
'divider_height' => '1',
|
||||||
|
'divider_width' => '100',
|
||||||
|
'color' => 'black',
|
||||||
|
],
|
||||||
|
'id' => 'divider',
|
||||||
|
'name' => 'Divider',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'columns',
|
||||||
|
'body' => [
|
||||||
|
[
|
||||||
|
'type' => 'column',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'vertical_alignment' => 'top',
|
||||||
|
'width' => '7',
|
||||||
|
],
|
||||||
|
'body' => [
|
||||||
|
[
|
||||||
|
'type' => 'image',
|
||||||
|
'id' => 'image',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'align' => '',
|
||||||
|
'url' => $this->getAssetUrl('soundicon.png'),
|
||||||
|
'alt' => '',
|
||||||
|
'title' => '',
|
||||||
|
'caption' => '',
|
||||||
|
'link_destination' => 'none',
|
||||||
|
'link' => 'http://mailpoet.info/soundicon/',
|
||||||
|
'href' => '',
|
||||||
|
'link_class' => '',
|
||||||
|
'rel' => '',
|
||||||
|
'link_target' => '',
|
||||||
|
'id' => '299',
|
||||||
|
'size_slug' => 'large',
|
||||||
|
'width' => '68',
|
||||||
|
'height' => '69',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'column',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'vertical_alignment' => '',
|
||||||
|
'width' => '31',
|
||||||
|
],
|
||||||
|
'body' => [
|
||||||
|
[
|
||||||
|
'type' => 'heading',
|
||||||
|
'id' => 'heading',
|
||||||
|
'params' => [
|
||||||
|
'content' => '<span style="font-family: Fira Sans" data-font="Fira Sans" class="mailpoet-has-font"><strong>' . _x('DON’T MISS A BEAT', 'Text in a web form.', 'mailpoet') . '</strong></span>',
|
||||||
|
'level' => '2',
|
||||||
|
'align' => 'left',
|
||||||
|
'font_size' => '25',
|
||||||
|
'text_color' => '#ffffff',
|
||||||
|
'background_color' => '',
|
||||||
|
'anchor' => '',
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'paragraph',
|
||||||
|
'id' => 'paragraph',
|
||||||
|
'params' => [
|
||||||
|
'content' => '<span style="font-family: Fira Sans" data-font="Fira Sans" class="mailpoet-has-font">' . _x('Be the first to know when our album is released on <strong>iTunes</strong> and <strong><span style="color:#01d386" class="has-inline-color">Spotify</span></strong>', 'Text in a web form. Keep HTML tags!', 'mailpoet') . '</span>',
|
||||||
|
'drop_cap' => '0',
|
||||||
|
'align' => 'left',
|
||||||
|
'font_size' => '15',
|
||||||
|
'text_color' => '#ffffff',
|
||||||
|
'background_color' => '',
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'column',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'vertical_alignment' => '',
|
||||||
|
'width' => '31',
|
||||||
|
],
|
||||||
|
'body' => [
|
||||||
|
[
|
||||||
|
'type' => 'text',
|
||||||
|
'params' => [
|
||||||
|
'label' => _x('Enter your email', 'Form label', 'mailpoet'),
|
||||||
|
'class_name' => '',
|
||||||
|
'required' => '1',
|
||||||
|
'label_within' => '1',
|
||||||
|
],
|
||||||
|
'id' => 'email',
|
||||||
|
'name' => 'Email',
|
||||||
|
'styles' => [
|
||||||
|
'full_width' => '1',
|
||||||
|
'bold' => '0',
|
||||||
|
'background_color' => '#ffffff',
|
||||||
|
'font_color' => '#4c537e',
|
||||||
|
'border_size' => '0',
|
||||||
|
'border_radius' => '2',
|
||||||
|
'border_color' => '#313131',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'paragraph',
|
||||||
|
'id' => 'paragraph',
|
||||||
|
'params' => [
|
||||||
|
'content' => '<span style="font-family: Fira Sans" data-font="Fira Sans" class="mailpoet-has-font">' . $this->replaceLinkTags(_x('We don’t spam! Read our [link]privacy policy[/link] for more info.', 'Text in a web form.', 'mailpoet'), '#') . '</span>',
|
||||||
|
'drop_cap' => '0',
|
||||||
|
'align' => 'left',
|
||||||
|
'font_size' => '13',
|
||||||
|
'text_color' => '#ffffff',
|
||||||
|
'background_color' => '',
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'column',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'vertical_alignment' => '',
|
||||||
|
'width' => '31',
|
||||||
|
],
|
||||||
|
'body' => [
|
||||||
|
[
|
||||||
|
'type' => 'submit',
|
||||||
|
'params' => [
|
||||||
|
'label' => _x('JOIN THE LIST', 'Form label', 'mailpoet'),
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
'id' => 'submit',
|
||||||
|
'name' => 'Submit',
|
||||||
|
'styles' => [
|
||||||
|
'full_width' => '1',
|
||||||
|
'bold' => '0',
|
||||||
|
'background_color' => '#4c537e',
|
||||||
|
'font_size' => '15',
|
||||||
|
'font_color' => '#ffffff',
|
||||||
|
'border_size' => '0',
|
||||||
|
'border_radius' => '2',
|
||||||
|
'border_color' => '#313131',
|
||||||
|
'padding' => '10',
|
||||||
|
'font_family' => 'Fira Sans',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'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',
|
||||||
|
'backgroundColor' => '#27282e',
|
||||||
|
'form_placement' => [
|
||||||
|
'popup' => ['enabled' => ''],
|
||||||
|
'fixed_bar' => [
|
||||||
|
'enabled' => '1',
|
||||||
|
'styles' => [
|
||||||
|
'width' => [
|
||||||
|
'unit' => 'pixel',
|
||||||
|
'value' => '1100',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'position' => 'top',
|
||||||
|
'animation' => 'slideup',
|
||||||
|
'posts' => [
|
||||||
|
'all' => '',
|
||||||
|
],
|
||||||
|
'pages' => [
|
||||||
|
'all' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'below_posts' => ['enabled' => ''],
|
||||||
|
'slide_in' => ['enabled' => '',],
|
||||||
|
'others' => [],
|
||||||
|
],
|
||||||
|
'border_radius' => '0',
|
||||||
|
'border_size' => '0',
|
||||||
|
'form_padding' => '10',
|
||||||
|
'input_padding' => '10',
|
||||||
|
'font_family' => 'Fira Sans',
|
||||||
|
'close_button' => 'classic_white',
|
||||||
|
'success_validation_color' => '#00d084',
|
||||||
|
'error_validation_color' => '#cf2e2e',
|
||||||
|
'fontSize' => '15',
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getStyles(): string {
|
||||||
|
return <<<EOL
|
||||||
|
/* form */
|
||||||
|
.mailpoet_form {
|
||||||
|
}
|
||||||
|
|
||||||
|
form {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2.mailpoet-heading {
|
||||||
|
margin-bottom: 6px;
|
||||||
|
margin-top: -3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* columns */
|
||||||
|
.mailpoet_column_with_background {
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* space between columns */
|
||||||
|
.mailpoet_form_column:not(:first-child) {
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* input wrapper (label + input) */
|
||||||
|
.mailpoet_paragraph {
|
||||||
|
line-height:20px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* labels */
|
||||||
|
.mailpoet_segment_label,
|
||||||
|
.mailpoet_text_label,
|
||||||
|
.mailpoet_textarea_label,
|
||||||
|
.mailpoet_select_label,
|
||||||
|
.mailpoet_radio_label,
|
||||||
|
.mailpoet_checkbox_label,
|
||||||
|
.mailpoet_list_label,
|
||||||
|
.mailpoet_date_label {
|
||||||
|
display:block;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* inputs */
|
||||||
|
.mailpoet_text,
|
||||||
|
.mailpoet_textarea,
|
||||||
|
.mailpoet_select,
|
||||||
|
.mailpoet_date_month,
|
||||||
|
.mailpoet_date_day,
|
||||||
|
.mailpoet_date_year,
|
||||||
|
.mailpoet_date {
|
||||||
|
display:block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_text,
|
||||||
|
.mailpoet_textarea {
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_checkbox {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_submit {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_divider {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_message {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_form_loading {
|
||||||
|
width: 30px;
|
||||||
|
text-align: center;
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_form_loading > span {
|
||||||
|
width: 5px;
|
||||||
|
height: 5px;
|
||||||
|
background-color: #5b5b5b;
|
||||||
|
}
|
||||||
|
EOL;
|
||||||
|
}
|
||||||
|
}
|
399
lib/Form/Templates/Templates/Template11Popup.php
Normal file
@ -0,0 +1,399 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace MailPoet\Form\Templates\Templates;
|
||||||
|
|
||||||
|
use MailPoet\Form\Templates\FormTemplate;
|
||||||
|
|
||||||
|
class Template11Popup extends FormTemplate {
|
||||||
|
const ID = 'template_11_popup';
|
||||||
|
|
||||||
|
/** @var string */
|
||||||
|
protected $assetsDirectory = 'template-11';
|
||||||
|
|
||||||
|
public function getName(): string {
|
||||||
|
return _x('Don’t Miss a Beat', 'Form template name', 'mailpoet');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getThumbnailUrl(): string {
|
||||||
|
return $this->getAssetUrl('popup.png');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getBody(): array {
|
||||||
|
return [
|
||||||
|
[
|
||||||
|
'type' => 'columns',
|
||||||
|
'body' => [
|
||||||
|
[
|
||||||
|
'type' => 'column',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'vertical_alignment' => '',
|
||||||
|
'width' => '50',
|
||||||
|
],
|
||||||
|
'body' => [
|
||||||
|
[
|
||||||
|
'type' => 'divider',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'height' => '10',
|
||||||
|
'type' => 'spacer',
|
||||||
|
'style' => 'solid',
|
||||||
|
'divider_height' => '1',
|
||||||
|
'divider_width' => '100',
|
||||||
|
'color' => 'black',
|
||||||
|
],
|
||||||
|
'id' => 'divider',
|
||||||
|
'name' => 'Divider',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'image',
|
||||||
|
'id' => 'image',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'align' => 'center',
|
||||||
|
'url' => $this->getAssetUrl('soundicon.png'),
|
||||||
|
'alt' => '',
|
||||||
|
'title' => '',
|
||||||
|
'caption' => '',
|
||||||
|
'link_destination' => 'none',
|
||||||
|
'link' => '',
|
||||||
|
'href' => '',
|
||||||
|
'link_class' => '',
|
||||||
|
'rel' => '',
|
||||||
|
'link_target' => '',
|
||||||
|
'id' => '299',
|
||||||
|
'size_slug' => 'large',
|
||||||
|
'width' => '68',
|
||||||
|
'height' => '69',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'divider',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'height' => '1',
|
||||||
|
'type' => 'spacer',
|
||||||
|
'style' => 'solid',
|
||||||
|
'divider_height' => '1',
|
||||||
|
'divider_width' => '100',
|
||||||
|
'color' => 'black',
|
||||||
|
],
|
||||||
|
'id' => 'divider',
|
||||||
|
'name' => 'Divider',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'heading',
|
||||||
|
'id' => 'heading',
|
||||||
|
'params' => [
|
||||||
|
'content' => '<span style="font-family: Fira Sans" data-font="Fira Sans" class="mailpoet-has-font"><strong>' . _x('DON’T MISS A BEAT', 'Text in a web form.', 'mailpoet') . '</strong></span>',
|
||||||
|
'level' => '2',
|
||||||
|
'align' => 'center',
|
||||||
|
'font_size' => '22',
|
||||||
|
'text_color' => '#ffffff',
|
||||||
|
'background_color' => '',
|
||||||
|
'anchor' => '',
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'paragraph',
|
||||||
|
'id' => 'paragraph',
|
||||||
|
'params' => [
|
||||||
|
'content' => '<span style="font-family: Fira Sans" data-font="Fira Sans" class="mailpoet-has-font">' . _x('Be the first to know when our album is released on <strong>iTunes</strong> and <strong><span style="color:#01d386" class="has-inline-color">Spotify</span></strong>', 'Text in a web form. Keep HTML tags!', 'mailpoet') . '</span>',
|
||||||
|
'drop_cap' => '0',
|
||||||
|
'align' => 'center',
|
||||||
|
'font_size' => '15',
|
||||||
|
'text_color' => '#ffffff',
|
||||||
|
'background_color' => '',
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'text',
|
||||||
|
'params' => [
|
||||||
|
'label' => _x('Enter your email', 'Form label', 'mailpoet'),
|
||||||
|
'class_name' => '',
|
||||||
|
'required' => '1',
|
||||||
|
'label_within' => '1',
|
||||||
|
],
|
||||||
|
'id' => 'email',
|
||||||
|
'name' => 'Email',
|
||||||
|
'styles' => [
|
||||||
|
'full_width' => '1',
|
||||||
|
'bold' => '0',
|
||||||
|
'background_color' => '#ffffff',
|
||||||
|
'font_color' => '#4c537e',
|
||||||
|
'border_size' => '0',
|
||||||
|
'border_radius' => '2',
|
||||||
|
'border_color' => '#313131',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'submit',
|
||||||
|
'params' => [
|
||||||
|
'label' => _x('JOIN THE LIST', 'Form label', 'mailpoet'),
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
'id' => 'submit',
|
||||||
|
'name' => 'Submit',
|
||||||
|
'styles' => [
|
||||||
|
'full_width' => '1',
|
||||||
|
'bold' => '0',
|
||||||
|
'background_color' => '#4c537e',
|
||||||
|
'font_size' => '15',
|
||||||
|
'font_color' => '#ffffff',
|
||||||
|
'border_size' => '0',
|
||||||
|
'border_radius' => '2',
|
||||||
|
'border_color' => '#313131',
|
||||||
|
'padding' => '10',
|
||||||
|
'font_family' => 'Fira Sans',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'paragraph',
|
||||||
|
'id' => 'paragraph',
|
||||||
|
'params' => [
|
||||||
|
'content' => '<span style="font-family: Fira Sans" data-font="Fira Sans" class="mailpoet-has-font">' . $this->replaceLinkTags(_x('We don’t spam! Read our [link]privacy policy[/link] for more info.', 'Text in a web form.', 'mailpoet'), '#') . '</span>',
|
||||||
|
'drop_cap' => '0',
|
||||||
|
'align' => 'center',
|
||||||
|
'font_size' => '13',
|
||||||
|
'text_color' => '#ffffff',
|
||||||
|
'background_color' => '',
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'column',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'vertical_alignment' => '',
|
||||||
|
'width' => '50',
|
||||||
|
],
|
||||||
|
'body' => [
|
||||||
|
[
|
||||||
|
'type' => 'image',
|
||||||
|
'id' => 'image',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'align' => '',
|
||||||
|
'url' => $this->getAssetUrl('Guitarist-787x1024.jpg'),
|
||||||
|
'alt' => '',
|
||||||
|
'title' => '',
|
||||||
|
'caption' => '',
|
||||||
|
'link_destination' => 'none',
|
||||||
|
'link' => 'http://mailpoet.info/guitarist/',
|
||||||
|
'href' => '',
|
||||||
|
'link_class' => '',
|
||||||
|
'rel' => '',
|
||||||
|
'link_target' => '',
|
||||||
|
'id' => '293',
|
||||||
|
'size_slug' => 'large',
|
||||||
|
'width' => '',
|
||||||
|
'height' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'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',
|
||||||
|
'backgroundColor' => '#27282e',
|
||||||
|
'form_placement' => [
|
||||||
|
'popup' => [
|
||||||
|
'enabled' => '1',
|
||||||
|
'exit_intent_enabled' => '',
|
||||||
|
'styles' => [
|
||||||
|
'width' => [
|
||||||
|
'unit' => 'pixel',
|
||||||
|
'value' => '600',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'animation' => 'slideup',
|
||||||
|
'posts' => [
|
||||||
|
'all' => '1',
|
||||||
|
],
|
||||||
|
'pages' => [
|
||||||
|
'all' => '1',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'fixed_bar' => [
|
||||||
|
'enabled' => '',
|
||||||
|
'delay' => '15',
|
||||||
|
'styles' => [
|
||||||
|
'width' => [
|
||||||
|
'unit' => 'percent',
|
||||||
|
'value' => '100',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'position' => 'top',
|
||||||
|
'animation' => 'slideup',
|
||||||
|
'posts' => [
|
||||||
|
'all' => '',
|
||||||
|
],
|
||||||
|
'pages' => [
|
||||||
|
'all' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'below_posts' => [
|
||||||
|
'enabled' => '',
|
||||||
|
'styles' => [
|
||||||
|
'width' => [
|
||||||
|
'unit' => 'percent',
|
||||||
|
'value' => '100',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'posts' => [
|
||||||
|
'all' => '',
|
||||||
|
],
|
||||||
|
'pages' => [
|
||||||
|
'all' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'slide_in' => [
|
||||||
|
'enabled' => '',
|
||||||
|
'delay' => '15',
|
||||||
|
'position' => 'right',
|
||||||
|
'animation' => 'right',
|
||||||
|
'styles' => [
|
||||||
|
'width' => [
|
||||||
|
'unit' => 'pixel',
|
||||||
|
'value' => '560',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'posts' => [
|
||||||
|
'all' => '',
|
||||||
|
],
|
||||||
|
'pages' => [
|
||||||
|
'all' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'others' => [
|
||||||
|
'styles' => [
|
||||||
|
'width' => [
|
||||||
|
'unit' => 'percent',
|
||||||
|
'value' => '100',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'border_radius' => '3',
|
||||||
|
'border_size' => '0',
|
||||||
|
'form_padding' => '0',
|
||||||
|
'input_padding' => '10',
|
||||||
|
'font_family' => 'Fira Sans',
|
||||||
|
'close_button' => 'classic_white',
|
||||||
|
'success_validation_color' => '#00d084',
|
||||||
|
'error_validation_color' => '#cf2e2e',
|
||||||
|
'fontSize' => '15',
|
||||||
|
'fontColor' => '#ffffff',
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getStyles(): string {
|
||||||
|
return <<<EOL
|
||||||
|
/* form */
|
||||||
|
.mailpoet_form {
|
||||||
|
}
|
||||||
|
|
||||||
|
form {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* columns */
|
||||||
|
.mailpoet_column_with_background {
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-column:first-child,
|
||||||
|
.mailpoet_form_column:first-child {
|
||||||
|
padding: 0 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* space between columns */
|
||||||
|
.mailpoet_form_column:not(:first-child) {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2.mailpoet-heading {
|
||||||
|
margin: 0 0 12px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* input wrapper (label + input) */
|
||||||
|
.mailpoet_paragraph {
|
||||||
|
line-height:20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* labels */
|
||||||
|
.mailpoet_segment_label,
|
||||||
|
.mailpoet_text_label,
|
||||||
|
.mailpoet_textarea_label,
|
||||||
|
.mailpoet_select_label,
|
||||||
|
.mailpoet_radio_label,
|
||||||
|
.mailpoet_checkbox_label,
|
||||||
|
.mailpoet_list_label,
|
||||||
|
.mailpoet_date_label {
|
||||||
|
display:block;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* inputs */
|
||||||
|
.mailpoet_text,
|
||||||
|
.mailpoet_textarea,
|
||||||
|
.mailpoet_select,
|
||||||
|
.mailpoet_date_month,
|
||||||
|
.mailpoet_date_day,
|
||||||
|
.mailpoet_date_year,
|
||||||
|
.mailpoet_date {
|
||||||
|
display:block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_text,
|
||||||
|
.mailpoet_textarea {
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_checkbox {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_submit {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_divider {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_message {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_form_loading {
|
||||||
|
width: 30px;
|
||||||
|
text-align: center;
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_form_loading > span {
|
||||||
|
width: 5px;
|
||||||
|
height: 5px;
|
||||||
|
background-color: #5b5b5b;
|
||||||
|
}
|
||||||
|
EOL;
|
||||||
|
}
|
||||||
|
}
|
343
lib/Form/Templates/Templates/Template11SlideIn.php
Normal file
@ -0,0 +1,343 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace MailPoet\Form\Templates\Templates;
|
||||||
|
|
||||||
|
use MailPoet\Form\Templates\FormTemplate;
|
||||||
|
|
||||||
|
class Template11SlideIn extends FormTemplate {
|
||||||
|
const ID = 'template_11_slide_in';
|
||||||
|
|
||||||
|
/** @var string */
|
||||||
|
protected $assetsDirectory = 'template-11';
|
||||||
|
|
||||||
|
public function getName(): string {
|
||||||
|
return _x('Don’t Miss a Beat', 'Form template name', 'mailpoet');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getThumbnailUrl(): string {
|
||||||
|
return $this->getAssetUrl('slidein.png');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getBody(): array {
|
||||||
|
return [
|
||||||
|
[
|
||||||
|
'type' => 'columns',
|
||||||
|
'body' => [
|
||||||
|
[
|
||||||
|
'type' => 'column',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'vertical_alignment' => '',
|
||||||
|
'width' => '50',
|
||||||
|
],
|
||||||
|
'body' => [
|
||||||
|
[
|
||||||
|
'type' => 'divider',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'height' => '10',
|
||||||
|
'type' => 'spacer',
|
||||||
|
'style' => 'solid',
|
||||||
|
'divider_height' => '1',
|
||||||
|
'divider_width' => '100',
|
||||||
|
'color' => 'black',
|
||||||
|
],
|
||||||
|
'id' => 'divider',
|
||||||
|
'name' => 'Divider',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'image',
|
||||||
|
'id' => 'image',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'align' => 'center',
|
||||||
|
'url' => $this->getAssetUrl('soundicon.png'),
|
||||||
|
'alt' => '',
|
||||||
|
'title' => '',
|
||||||
|
'caption' => '',
|
||||||
|
'link_destination' => 'none',
|
||||||
|
'link' => '',
|
||||||
|
'href' => '',
|
||||||
|
'link_class' => '',
|
||||||
|
'rel' => '',
|
||||||
|
'link_target' => '',
|
||||||
|
'id' => '299',
|
||||||
|
'size_slug' => 'large',
|
||||||
|
'width' => '68',
|
||||||
|
'height' => '69',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'divider',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'height' => '1',
|
||||||
|
'type' => 'spacer',
|
||||||
|
'style' => 'solid',
|
||||||
|
'divider_height' => '1',
|
||||||
|
'divider_width' => '100',
|
||||||
|
'color' => 'black',
|
||||||
|
],
|
||||||
|
'id' => 'divider',
|
||||||
|
'name' => 'Divider',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'heading',
|
||||||
|
'id' => 'heading',
|
||||||
|
'params' => [
|
||||||
|
'content' => '<span style="font-family: Fira Sans" data-font="Fira Sans" class="mailpoet-has-font"><strong>' . _x('DON’T MISS A BEAT', 'Text in a web form.', 'mailpoet') . '</strong></span>',
|
||||||
|
'level' => '2',
|
||||||
|
'align' => 'center',
|
||||||
|
'font_size' => '22',
|
||||||
|
'text_color' => '#ffffff',
|
||||||
|
'background_color' => '',
|
||||||
|
'anchor' => '',
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'paragraph',
|
||||||
|
'id' => 'paragraph',
|
||||||
|
'params' => [
|
||||||
|
'content' => '<span style="font-family: Fira Sans" data-font="Fira Sans" class="mailpoet-has-font">' . _x('Be the first to know when our album is released on <strong>iTunes</strong> and <strong><span style="color:#01d386" class="has-inline-color">Spotify</span></strong>', 'Text in a web form. Keep HTML tags!', 'mailpoet') . '</span>',
|
||||||
|
'drop_cap' => '0',
|
||||||
|
'align' => 'center',
|
||||||
|
'font_size' => '15',
|
||||||
|
'text_color' => '#ffffff',
|
||||||
|
'background_color' => '',
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'text',
|
||||||
|
'params' => [
|
||||||
|
'label' => _x('Enter your email', 'Form label', 'mailpoet'),
|
||||||
|
'class_name' => '',
|
||||||
|
'required' => '1',
|
||||||
|
'label_within' => '1',
|
||||||
|
],
|
||||||
|
'id' => 'email',
|
||||||
|
'name' => 'Email',
|
||||||
|
'styles' => [
|
||||||
|
'full_width' => '1',
|
||||||
|
'bold' => '0',
|
||||||
|
'background_color' => '#ffffff',
|
||||||
|
'font_color' => '#4c537e',
|
||||||
|
'border_size' => '0',
|
||||||
|
'border_radius' => '2',
|
||||||
|
'border_color' => '#313131',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'submit',
|
||||||
|
'params' => [
|
||||||
|
'label' => _x('JOIN THE LIST', 'Form label', 'mailpoet'),
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
'id' => 'submit',
|
||||||
|
'name' => 'Submit',
|
||||||
|
'styles' => [
|
||||||
|
'full_width' => '1',
|
||||||
|
'bold' => '0',
|
||||||
|
'background_color' => '#4c537e',
|
||||||
|
'font_size' => '15',
|
||||||
|
'font_color' => '#ffffff',
|
||||||
|
'border_size' => '0',
|
||||||
|
'border_radius' => '2',
|
||||||
|
'border_color' => '#313131',
|
||||||
|
'padding' => '10',
|
||||||
|
'font_family' => 'Fira Sans',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'paragraph',
|
||||||
|
'id' => 'paragraph',
|
||||||
|
'params' => [
|
||||||
|
'content' => '<span style="font-family: Fira Sans" data-font="Fira Sans" class="mailpoet-has-font">' . $this->replaceLinkTags(_x('We don’t spam! Read our [link]privacy policy[/link] for more info.', 'Text in a web form.', 'mailpoet'), '#') . '</span>',
|
||||||
|
'drop_cap' => '0',
|
||||||
|
'align' => 'center',
|
||||||
|
'font_size' => '13',
|
||||||
|
'text_color' => '#ffffff',
|
||||||
|
'background_color' => '',
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'column',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'vertical_alignment' => '',
|
||||||
|
'width' => '50',
|
||||||
|
],
|
||||||
|
'body' => [
|
||||||
|
[
|
||||||
|
'type' => 'image',
|
||||||
|
'id' => 'image',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'align' => '',
|
||||||
|
'url' => $this->getAssetUrl('Guitarist-787x1024.jpg'),
|
||||||
|
'alt' => '',
|
||||||
|
'title' => '',
|
||||||
|
'caption' => '',
|
||||||
|
'link_destination' => 'none',
|
||||||
|
'link' => 'http://mailpoet.info/guitarist/',
|
||||||
|
'href' => '',
|
||||||
|
'link_class' => '',
|
||||||
|
'rel' => '',
|
||||||
|
'link_target' => '',
|
||||||
|
'id' => '293',
|
||||||
|
'size_slug' => 'large',
|
||||||
|
'width' => '',
|
||||||
|
'height' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'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',
|
||||||
|
'backgroundColor' => '#27282e',
|
||||||
|
'form_placement' => [
|
||||||
|
'popup' => ['enabled' => ''],
|
||||||
|
'fixed_bar' => ['enabled' => ''],
|
||||||
|
'below_posts' => ['enabled' => ''],
|
||||||
|
'slide_in' => [
|
||||||
|
'enabled' => '1',
|
||||||
|
'position' => 'right',
|
||||||
|
'animation' => 'right',
|
||||||
|
'styles' => [
|
||||||
|
'width' => [
|
||||||
|
'unit' => 'pixel',
|
||||||
|
'value' => '600',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'posts' => [
|
||||||
|
'all' => '',
|
||||||
|
],
|
||||||
|
'pages' => [
|
||||||
|
'all' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'others' => [],
|
||||||
|
],
|
||||||
|
'border_radius' => '3',
|
||||||
|
'border_size' => '0',
|
||||||
|
'form_padding' => '0',
|
||||||
|
'input_padding' => '10',
|
||||||
|
'font_family' => 'Fira Sans',
|
||||||
|
'close_button' => 'classic_white',
|
||||||
|
'success_validation_color' => '#00d084',
|
||||||
|
'error_validation_color' => '#cf2e2e',
|
||||||
|
'fontSize' => '15',
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getStyles(): string {
|
||||||
|
return <<<EOL
|
||||||
|
/* form */
|
||||||
|
.mailpoet_form {
|
||||||
|
}
|
||||||
|
|
||||||
|
form {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* columns */
|
||||||
|
.mailpoet_column_with_background {
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-column:first-child,
|
||||||
|
.mailpoet_form_column:first-child {
|
||||||
|
padding: 0 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* space between columns */
|
||||||
|
.mailpoet_form_column:not(:first-child) {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2.mailpoet-heading {
|
||||||
|
margin: 0 0 12px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* input wrapper (label + input) */
|
||||||
|
.mailpoet_paragraph {
|
||||||
|
line-height:20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* labels */
|
||||||
|
.mailpoet_segment_label,
|
||||||
|
.mailpoet_text_label,
|
||||||
|
.mailpoet_textarea_label,
|
||||||
|
.mailpoet_select_label,
|
||||||
|
.mailpoet_radio_label,
|
||||||
|
.mailpoet_checkbox_label,
|
||||||
|
.mailpoet_list_label,
|
||||||
|
.mailpoet_date_label {
|
||||||
|
display:block;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* inputs */
|
||||||
|
.mailpoet_text,
|
||||||
|
.mailpoet_textarea,
|
||||||
|
.mailpoet_select,
|
||||||
|
.mailpoet_date_month,
|
||||||
|
.mailpoet_date_day,
|
||||||
|
.mailpoet_date_year,
|
||||||
|
.mailpoet_date {
|
||||||
|
display:block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_text,
|
||||||
|
.mailpoet_textarea {
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_checkbox {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_submit {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_divider {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_message {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_form_loading {
|
||||||
|
width: 30px;
|
||||||
|
text-align: center;
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_form_loading > span {
|
||||||
|
width: 5px;
|
||||||
|
height: 5px;
|
||||||
|
background-color: #5b5b5b;
|
||||||
|
}
|
||||||
|
EOL;
|
||||||
|
}
|
||||||
|
}
|
275
lib/Form/Templates/Templates/Template11Widget.php
Normal file
@ -0,0 +1,275 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace MailPoet\Form\Templates\Templates;
|
||||||
|
|
||||||
|
use MailPoet\Form\Templates\FormTemplate;
|
||||||
|
|
||||||
|
class Template11Widget extends FormTemplate {
|
||||||
|
const ID = 'template_11_widget';
|
||||||
|
|
||||||
|
/** @var string */
|
||||||
|
protected $assetsDirectory = 'template-11';
|
||||||
|
|
||||||
|
public function getName(): string {
|
||||||
|
return _x('Don’t Miss a Beat', 'Form template name', 'mailpoet');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getThumbnailUrl(): string {
|
||||||
|
return $this->getAssetUrl('widget.png');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getBody(): array {
|
||||||
|
return [
|
||||||
|
[
|
||||||
|
'type' => 'divider',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'height' => '1',
|
||||||
|
'type' => 'spacer',
|
||||||
|
'style' => 'solid',
|
||||||
|
'divider_height' => '1',
|
||||||
|
'divider_width' => '100',
|
||||||
|
'color' => 'black',
|
||||||
|
],
|
||||||
|
'id' => 'divider',
|
||||||
|
'name' => 'Divider',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'image',
|
||||||
|
'id' => 'image',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'align' => 'center',
|
||||||
|
'url' => $this->getAssetUrl('soundicon.png'),
|
||||||
|
'alt' => '',
|
||||||
|
'title' => '',
|
||||||
|
'caption' => '',
|
||||||
|
'link_destination' => 'none',
|
||||||
|
'link' => '',
|
||||||
|
'href' => '',
|
||||||
|
'link_class' => '',
|
||||||
|
'rel' => '',
|
||||||
|
'link_target' => '',
|
||||||
|
'id' => '299',
|
||||||
|
'size_slug' => 'large',
|
||||||
|
'width' => '68',
|
||||||
|
'height' => '69',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'divider',
|
||||||
|
'params' => [
|
||||||
|
'class_name' => '',
|
||||||
|
'height' => '1',
|
||||||
|
'type' => 'spacer',
|
||||||
|
'style' => 'solid',
|
||||||
|
'divider_height' => '1',
|
||||||
|
'divider_width' => '100',
|
||||||
|
'color' => 'black',
|
||||||
|
],
|
||||||
|
'id' => 'divider',
|
||||||
|
'name' => 'Divider',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'heading',
|
||||||
|
'id' => 'heading',
|
||||||
|
'params' => [
|
||||||
|
'content' => '<span style="font-family: Fira Sans" data-font="Fira Sans" class="mailpoet-has-font"><strong>' . _x('DON’T MISS A BEAT', 'Text in a web form.', 'mailpoet') . '</strong></span>',
|
||||||
|
'level' => '2',
|
||||||
|
'align' => 'center',
|
||||||
|
'font_size' => '20',
|
||||||
|
'text_color' => '#ffffff',
|
||||||
|
'background_color' => '',
|
||||||
|
'anchor' => '',
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'paragraph',
|
||||||
|
'id' => 'paragraph',
|
||||||
|
'params' => [
|
||||||
|
'content' => '<span style="font-family: Fira Sans" data-font="Fira Sans" class="mailpoet-has-font">' . _x('Be the first to know when our album is released on <strong>iTunes</strong> and <strong><span style="color:#01d386" class="has-inline-color">Spotify</span></strong>', 'Text in a web form. Keep HTML tags!', 'mailpoet') . '</span>',
|
||||||
|
'drop_cap' => '0',
|
||||||
|
'align' => 'center',
|
||||||
|
'font_size' => '13',
|
||||||
|
'text_color' => '#ffffff',
|
||||||
|
'background_color' => '',
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'text',
|
||||||
|
'params' => [
|
||||||
|
'label' => _x('Enter your email', 'Form label', 'mailpoet'),
|
||||||
|
'class_name' => '',
|
||||||
|
'required' => '1',
|
||||||
|
'label_within' => '1',
|
||||||
|
],
|
||||||
|
'id' => 'email',
|
||||||
|
'name' => 'Email',
|
||||||
|
'styles' => [
|
||||||
|
'full_width' => '1',
|
||||||
|
'bold' => '0',
|
||||||
|
'background_color' => '#ffffff',
|
||||||
|
'font_color' => '#4c537e',
|
||||||
|
'border_size' => '0',
|
||||||
|
'border_radius' => '2',
|
||||||
|
'border_color' => '#313131',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'submit',
|
||||||
|
'params' => [
|
||||||
|
'label' => _x('JOIN THE LIST', 'Form label', 'mailpoet'),
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
'id' => 'submit',
|
||||||
|
'name' => 'Submit',
|
||||||
|
'styles' => [
|
||||||
|
'full_width' => '1',
|
||||||
|
'bold' => '0',
|
||||||
|
'background_color' => '#4c537e',
|
||||||
|
'font_size' => '15',
|
||||||
|
'font_color' => '#ffffff',
|
||||||
|
'border_size' => '0',
|
||||||
|
'border_radius' => '2',
|
||||||
|
'border_color' => '#313131',
|
||||||
|
'padding' => '10',
|
||||||
|
'font_family' => 'Fira Sans',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'type' => 'paragraph',
|
||||||
|
'id' => 'paragraph',
|
||||||
|
'params' => [
|
||||||
|
'content' => '<span style="font-family: Fira Sans" data-font="Fira Sans" class="mailpoet-has-font">' . $this->replaceLinkTags(_x('We don’t spam! Read our [link]privacy policy[/link] for more info.', 'Text in a web form.', 'mailpoet'), '#') . '</span>',
|
||||||
|
'drop_cap' => '0',
|
||||||
|
'align' => 'center',
|
||||||
|
'font_size' => '13',
|
||||||
|
'text_color' => '#ffffff',
|
||||||
|
'background_color' => '',
|
||||||
|
'class_name' => '',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getSettings(): array {
|
||||||
|
return [
|
||||||
|
'on_success' => 'message',
|
||||||
|
'success_message' => '',
|
||||||
|
'segments' => [],
|
||||||
|
'segments_selected_by' => 'admin',
|
||||||
|
'alignment' => 'left',
|
||||||
|
'backgroundColor' => '#27282e',
|
||||||
|
'form_placement' => [
|
||||||
|
'popup' => ['enabled' => ''],
|
||||||
|
'fixed_bar' => ['enabled' => ''],
|
||||||
|
'below_posts' => ['enabled' => '',],
|
||||||
|
'slide_in' => ['enabled' => '',],
|
||||||
|
'others' => [
|
||||||
|
'styles' => [
|
||||||
|
'width' => [
|
||||||
|
'unit' => 'percent',
|
||||||
|
'value' => '100',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'border_radius' => '3',
|
||||||
|
'border_size' => '0',
|
||||||
|
'form_padding' => '15',
|
||||||
|
'input_padding' => '10',
|
||||||
|
'font_family' => 'Fira Sans',
|
||||||
|
'close_button' => 'classic_white',
|
||||||
|
'success_validation_color' => '#00d084',
|
||||||
|
'error_validation_color' => '#cf2e2e',
|
||||||
|
'fontSize' => '15',
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getStyles(): string {
|
||||||
|
return <<<EOL
|
||||||
|
/* form */
|
||||||
|
.mailpoet_form {
|
||||||
|
}
|
||||||
|
|
||||||
|
form {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* columns */
|
||||||
|
.mailpoet_column_with_background {
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* space between columns */
|
||||||
|
.mailpoet_form_column:not(:first-child) {
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2.mailpoet-heading {
|
||||||
|
margin: 0 0 12px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* input wrapper (label + input) */
|
||||||
|
.mailpoet_paragraph {
|
||||||
|
line-height:20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* labels */
|
||||||
|
.mailpoet_segment_label,
|
||||||
|
.mailpoet_text_label,
|
||||||
|
.mailpoet_textarea_label,
|
||||||
|
.mailpoet_select_label,
|
||||||
|
.mailpoet_radio_label,
|
||||||
|
.mailpoet_checkbox_label,
|
||||||
|
.mailpoet_list_label,
|
||||||
|
.mailpoet_date_label {
|
||||||
|
display:block;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* inputs */
|
||||||
|
.mailpoet_text,
|
||||||
|
.mailpoet_textarea,
|
||||||
|
.mailpoet_select,
|
||||||
|
.mailpoet_date_month,
|
||||||
|
.mailpoet_date_day,
|
||||||
|
.mailpoet_date_year,
|
||||||
|
.mailpoet_date {
|
||||||
|
display:block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_text,
|
||||||
|
.mailpoet_textarea {
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_checkbox {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_submit {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_divider {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_message {
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_form_loading {
|
||||||
|
width: 30px;
|
||||||
|
text-align: center;
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mailpoet_form_loading > span {
|
||||||
|
width: 5px;
|
||||||
|
height: 5px;
|
||||||
|
background-color: #5b5b5b;
|
||||||
|
}
|
||||||
|
EOL;
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 77 KiB |
After Width: | Height: | Size: 56 KiB |
BIN
plugin_repository/assets/form-templates/template-11/fixedbar.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
plugin_repository/assets/form-templates/template-11/popup.png
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
plugin_repository/assets/form-templates/template-11/slidein.png
Normal file
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 2.4 KiB |
BIN
plugin_repository/assets/form-templates/template-11/widget.png
Normal file
After Width: | Height: | Size: 24 KiB |