40 lines
926 B
PHP
40 lines
926 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Blank form template.
|
||
|
|
*
|
||
|
|
* @since 1.0.0
|
||
|
|
*/
|
||
|
|
class WPForms_Template_Blank extends WPForms_Template {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Primary class constructor.
|
||
|
|
*
|
||
|
|
* @since 1.0.0
|
||
|
|
*/
|
||
|
|
public function init() {
|
||
|
|
|
||
|
|
$this->name = esc_html__( 'Blank Form', 'wpforms-lite' );
|
||
|
|
$this->slug = 'blank';
|
||
|
|
$this->description = esc_html__( 'The blank form allows you to create any type of form using our drag & drop builder.', 'wpforms-lite' );
|
||
|
|
$this->includes = '';
|
||
|
|
$this->icon = '';
|
||
|
|
$this->modal = '';
|
||
|
|
$this->core = true;
|
||
|
|
$this->data = array(
|
||
|
|
'field_id' => '1',
|
||
|
|
'fields' => array(),
|
||
|
|
'settings' => array(
|
||
|
|
'honeypot' => '1',
|
||
|
|
'confirmation_message_scroll' => '1',
|
||
|
|
'submit_text_processing' => esc_html__( 'Sending...', 'wpforms-lite' ),
|
||
|
|
),
|
||
|
|
'meta' => array(
|
||
|
|
'template' => $this->slug,
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
new WPForms_Template_Blank;
|