PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.6.1
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.6.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 / templates / class-template-job-application.php

class-template-job-application.php in weForms – Easy Drag & Drop Contact Form Builder For WordPress 1.6.1, at includes/templates/class-template-job-application.php

86 lines 3.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Job Appplication Form Template
5 */
6 class WeForms_Template_Job_Application extends WeForms_Form_Template {
7
8 public function __construct() {
9 parent::__construct();
10
11 $this->enabled = class_exists( 'WeForms_Pro' );
12 $this->title = __( 'Job Application Form', 'weforms' );
13 $this->description = __( 'This simple template is the easy and fastest way to apply online. Gather information and upload resume using the form.', 'weforms' );
14 $this->category = 'application';
15 $this->image = WEFORMS_ASSET_URI . '/images/form-template/job-application.png';
16 $this->category = 'employment';
17 }
18
19 /**
20 * Get the form fields
21 *
22 * @return array
23 */
24 public function get_form_fields() {
25 $all_fields = $this->get_available_fields();
26
27 $form_fields = [
28 array_merge( $all_fields['name_field']->get_field_props(), [
29 'required' => 'yes',
30 'label' => 'Full Name',
31 'name' => 'full_name',
32 ] ),
33 array_merge( $all_fields['address_field']->get_field_props(), [
34 'required' => 'yes',
35 'label' => 'Current Address',
36 'name' => 'current_address',
37 ] ),
38 array_merge( $all_fields['email_address']->get_field_props(), [
39 'required' => 'yes',
40 'label' => 'Email Address',
41 'name' => 'email_address',
42 ] ),
43 array_merge( $all_fields['numeric_text_field']->get_field_props(), [
44 'label' => 'Phone Number',
45 'name' => 'phone_number',
46 ] ),
47 array_merge( $all_fields['dropdown_field']->get_field_props(), [
48 'required' => 'yes',
49 'label' => 'Applying For Position',
50 'name' => 'applying_for_position',
51 'options' => [
52 'work_1' => __( 'Work 1', 'weforms' ),
53 'work_2' => __( 'Work 2', 'weforms' ),
54 'work_3' => __( 'Work 3', 'weforms' ),
55 'any_position' => __( 'Any Position', 'weforms' ),
56 ],
57 ] ),
58 array_merge( $all_fields['date_field']->get_field_props(), [
59 'label' => 'Start Date',
60 'name' => 'start_date',
61 ] ),
62 array_merge( $all_fields['file_upload']->get_field_props(), [
63 'required' => 'yes',
64 'label' => 'Upload Resume',
65 'name' => 'upload_resume',
66 ] ),
67 ];
68
69 return $form_fields;
70 }
71
72 /**
73 * Get the form settings
74 *
75 * @return array
76 */
77 public function get_form_settings() {
78 $defaults = $this->get_default_settings();
79
80 return array_merge( $defaults, [
81 'message' => __( 'Thanks for applying! We will get in touch with you shortly.', 'weforms' ),
82 'submit_text' => __( 'Apply', 'weforms' ),
83 ] );
84 }
85 }
86