PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.0.1
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.0.1
1.6.7 1.6.8 1.6.9 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.3 1.6.4 1.6.5 1.6.6 All 74 releases
weforms / includes / admin / form-templates / support-form.php

support-form.php in weForms – Easy Drag & Drop Contact Form Builder For WordPress 1.0.1, at includes/admin/form-templates/support-form.php

143 lines 6.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class WPUF_Contact_Form_Template_Support extends WPUF_Post_Form_Template {
4
5 public function __construct() {
6 parent::__construct();
7
8 $this->enabled = true;
9 $this->title = __( 'Support Form', 'weforms' );
10 $this->description = __( 'Enable your users for asking support questions.', 'weforms' );
11
12 $this->form_fields = array(
13 array(
14 'input_type' => 'name',
15 'template' => 'name_field',
16 'required' => 'yes',
17 'label' => __( 'Name', 'weforms' ),
18 'name' => 'name',
19 'is_meta' => 'yes',
20 'format' => 'first-last',
21 'first_name' => array(
22 'placeholder' => '',
23 'default' => '',
24 'sub' => __( 'First', 'weforms' ),
25 ),
26 'middle_name' => array(
27 'placeholder' => '',
28 'default' => '',
29 'sub' => __( 'Middle', 'weforms' ),
30 ),
31 'last_name' => array(
32 'placeholder' => '',
33 'default' => '',
34 'sub' => __( 'Last', 'weforms' ),
35 ),
36 'hide_subs' => '',
37 'help' => '',
38 'css' => '',
39 'wpuf_cond' => $this->conditionals
40 ),
41 array(
42 'input_type' => 'text',
43 'template' => 'email_address',
44 'required' => 'yes',
45 'label' => __( 'Email', 'weforms' ),
46 'name' => 'email',
47 'is_meta' => 'yes',
48 'help' => __( 'Please provide a valid email address so we can get back to you', 'weforms' ),
49 'css' => '',
50 'placeholder' => '',
51 'default' => '',
52 'size' => 40,
53 'wpuf_cond' => $this->conditionals
54 ),
55 array(
56 'input_type' => 'radio',
57 'template' => 'radio_field',
58 'required' => 'yes',
59 'label' => __( 'Department', 'weforms' ),
60 'name' => 'department',
61 'is_meta' => 'yes',
62 'help' => '',
63 'css' => '',
64 'selected' => '',
65 'inline' => 'no',
66 'options' => array(
67 'sales' => __( 'Sales', 'weforms' ),
68 'support' => __( 'Customer Support', 'weforms' ),
69 'product_development' => __( 'Product Development', 'weforms' ),
70 'other' => __( 'Other', 'weforms' ),
71 ),
72 'wpuf_cond' => $this->conditionals
73 ),
74 array(
75 'input_type' => 'text',
76 'template' => 'text_field',
77 'required' => 'yes',
78 'label' => __( 'Subject', 'weforms' ),
79 'name' => 'subject',
80 'is_meta' => 'yes',
81 'help' => '',
82 'css' => '',
83 'placeholder' => '',
84 'default' => '',
85 'size' => 40,
86 'word_restriction' => '',
87 'wpuf_cond' => $this->conditionals
88 ),
89 array(
90 'input_type' => 'textarea',
91 'template' => 'textarea_field',
92 'required' => 'yes',
93 'label' => __( 'Message', 'weforms' ),
94 'name' => 'message',
95 'is_meta' => 'yes',
96 'help' => __( 'How may we help you? Please be brief as much as possible.', 'weforms' ),
97 'css' => '',
98 'rows' => 5,
99 'cols' => 25,
100 'placeholder' => '',
101 'default' => '',
102 'rich' => 'no',
103 'word_restriction' => '',
104 'wpuf_cond' => $this->conditionals
105 ),
106 );
107
108 $this->form_settings = array(
109 'redirect_to' => 'same',
110 'message' => __( 'Thanks for contacting us! We will get in touch with you shortly.', 'weforms' ),
111 'page_id' => '',
112 'url' => '',
113 'submit_text' => __( 'Submit Query', 'weforms' ),
114 'schedule_form' => 'false',
115 'schedule_start' => '',
116 'schedule_end' => '',
117 'sc_pending_message' => __( 'Form submission hasn\'t been started yet', 'weforms' ),
118 'sc_expired_message' => __( 'Form submission is now closed.', 'weforms' ),
119 'require_login' => 'false',
120 'req_login_message' => __( 'You need to login to submit a query.', 'weforms' ),
121 'limit_entries' => 'false',
122 'limit_number' => '100',
123 'limit_message' => __( 'Sorry, we have reached the maximum number of submissions.', 'weforms' ),
124 'label_position' => 'above',
125 );
126
127 $this->form_notifications = array(
128 array(
129 'active' => 'true',
130 'name' => 'Admin Notification',
131 'subject' => '[{form_name}] ' . __( 'New Form Submission', 'weforms' ) . ' #{entry_id}',
132 'to' => '{admin_email}',
133 'replyTo' => '{field:email}',
134 'message' => '{all_fields}',
135 'fromName' => '{site_name}',
136 'fromAddress' => '{admin_email}',
137 'cc' => '',
138 'bcc' => '',
139 ),
140 );
141 }
142 }
143