Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
languages
/
wp-content-20241001222009
/
plugins
/
mailpoet
/
lib
/
Form
/
Templates
/
Templates
:
InitialForm.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace MailPoet\Form\Templates\Templates; if (!defined('ABSPATH')) exit; use MailPoet\Form\Templates\FormTemplate; class InitialForm extends FormTemplate { const ID = 'initial_form'; public function getName(): string { return ''; } public function getThumbnailUrl(): string { return ''; } public function getBody(): array { return [ [ 'id' => 'email', 'name' => __('Email', 'mailpoet'), 'type' => 'text', 'params' => [ 'label' => __('Email Address', 'mailpoet'), 'required' => true, 'label_within' => true, ], 'styles' => [ 'full_width' => true, ], ], [ 'id' => 'submit', 'name' => __('Submit', 'mailpoet'), 'type' => 'submit', 'params' => [ 'label' => __('Subscribe!', 'mailpoet'), ], 'styles' => [ 'full_width' => true, ], ], ]; } }