1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?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( 'antispam' => '1', 'confirmation_message_scroll' => '1', 'submit_text_processing' => esc_html__( 'Sending...', 'wpforms-lite' ), ), 'meta' => array( 'template' => $this->slug, ), ); } }
new WPForms_Template_Blank;
|