| @@ -1,155 +1,169 @@ | ||
| 1 | -<?php | |
| 2 | - | |
| 3 | -/** | |
| 4 | - * Address Field Class | |
| 5 | - */ | |
| 6 | -class WeForms_Form_Field_Address extends WeForms_Form_Field_Pro { | |
| 7 | - public function __construct() { | |
| 8 | - $this->name = __( 'Address Field', 'weforms' ); | |
| 9 | - $this->input_type = 'address_field'; | |
| 10 | - $this->icon = 'address-card-o'; | |
| 11 | - } | |
| 12 | -} | |
| 13 | - | |
| 14 | -/** | |
| 15 | - * Country Field Class | |
| 16 | - */ | |
| 17 | -class WeForms_Form_Field_Country extends WeForms_Form_Field_Pro { | |
| 18 | - public function __construct() { | |
| 19 | - $this->name = __( 'Country List', 'weforms' ); | |
| 20 | - $this->input_type = 'country_list_field'; | |
| 21 | - $this->icon = 'globe'; | |
| 22 | - } | |
| 23 | -} | |
| 24 | - | |
| 25 | -/** | |
| 26 | - * File Field Class | |
| 27 | - */ | |
| 28 | -class WeForms_Form_Field_File extends WeForms_Form_Field_Pro { | |
| 29 | - public function __construct() { | |
| 30 | - $this->name = __( 'File Upload', 'weforms' ); | |
| 31 | - $this->input_type = 'file_upload'; | |
| 32 | - $this->icon = 'upload'; | |
| 33 | - } | |
| 34 | -} | |
| 35 | - | |
| 36 | -/** | |
| 37 | - * Text Field Class | |
| 38 | - */ | |
| 39 | -class WeForms_Form_Field_GMap extends WeForms_Form_Field_Pro { | |
| 40 | - public function __construct() { | |
| 41 | - $this->name = __( 'Google Map', 'weforms' ); | |
| 42 | - $this->input_type = 'google_map'; | |
| 43 | - $this->icon = 'map-marker'; | |
| 44 | - } | |
| 45 | -} | |
| 46 | - | |
| 47 | -/** | |
| 48 | - * Text Field Class | |
| 49 | - */ | |
| 50 | -class WeForms_Form_Field_Hook extends WeForms_Form_Field_Pro { | |
| 51 | - public function __construct() { | |
| 52 | - $this->name = __( 'Action Hook', 'weforms' ); | |
| 53 | - $this->input_type = 'action_hook'; | |
| 54 | - $this->icon = 'anchor'; | |
| 55 | - } | |
| 56 | -} | |
| 57 | - | |
| 58 | -/** | |
| 59 | - * Numeric Field Class | |
| 60 | - */ | |
| 61 | -class WeForms_Form_Field_Numeric extends WeForms_Form_Field_Pro { | |
| 62 | - public function __construct() { | |
| 63 | - $this->name = __( 'Numeric Field', 'weforms' ); | |
| 64 | - $this->input_type = 'numeric_text_field'; | |
| 65 | - $this->icon = 'hashtag'; | |
| 66 | - } | |
| 67 | -} | |
| 68 | - | |
| 69 | -/** | |
| 70 | - * Rating Field Class | |
| 71 | - */ | |
| 72 | -class WeForms_Form_Field_Rating extends WeForms_Form_Field_Pro { | |
| 73 | - public function __construct() { | |
| 74 | - $this->name = __( 'Ratings', 'weforms' ); | |
| 75 | - $this->input_type = 'ratings'; | |
| 76 | - $this->icon = 'star-half-o'; | |
| 77 | - } | |
| 78 | -} | |
| 79 | - | |
| 80 | -/** | |
| 81 | - * Rating Field Class | |
| 82 | - */ | |
| 83 | -class WeForms_Form_Field_Linear_Scale extends WeForms_Form_Field_Pro { | |
| 84 | - public function __construct() { | |
| 85 | - $this->name = __( 'Linear Scale', 'weforms' ); | |
| 86 | - $this->input_type = 'linear_scale'; | |
| 87 | - $this->icon = 'ellipsis-h'; | |
| 88 | - } | |
| 89 | -} | |
| 90 | - | |
| 91 | -/** | |
| 92 | - * Checkbox Grids Field Class | |
| 93 | - */ | |
| 94 | -class WeForms_Form_Field_Checkbox_Grid extends WeForms_Form_Field_Pro { | |
| 95 | - public function __construct() { | |
| 96 | - $this->name = __( 'Checkbox Grid', 'weforms' ); | |
| 97 | - $this->input_type = 'checkbox_grid'; | |
| 98 | - $this->icon = 'th'; | |
| 99 | - } | |
| 100 | -} | |
| 101 | - | |
| 102 | -/** | |
| 103 | - * Multiple Choice Grids Field Class | |
| 104 | - */ | |
| 105 | -class WeForms_Form_Field_Multiple_Choice_Grid extends WeForms_Form_Field_Pro { | |
| 106 | - public function __construct() { | |
| 107 | - $this->name = __( 'Multiple Choice Grid', 'weforms' ); | |
| 108 | - $this->input_type = 'multiple_choice_grid'; | |
| 109 | - $this->icon = 'braille'; | |
| 110 | - } | |
| 111 | -} | |
| 112 | - | |
| 113 | -/** | |
| 114 | - * Repeat Field Class | |
| 115 | - */ | |
| 116 | -class WeForms_Form_Field_Repeat extends WeForms_Form_Field_Pro { | |
| 117 | - public function __construct() { | |
| 118 | - $this->name = __( 'Repeat Field', 'weforms' ); | |
| 119 | - $this->input_type = 'repeat_field'; | |
| 120 | - $this->icon = 'text-width'; | |
| 121 | - } | |
| 122 | -} | |
| 123 | - | |
| 124 | -/** | |
| 125 | - * Shortcode Field Class | |
| 126 | - */ | |
| 127 | -class WeForms_Form_Field_Shortcode extends WeForms_Form_Field_Pro { | |
| 128 | - public function __construct() { | |
| 129 | - $this->name = __( 'Shortcode', 'weforms' ); | |
| 130 | - $this->input_type = 'shortcode'; | |
| 131 | - $this->icon = 'calendar-o'; | |
| 132 | - } | |
| 133 | -} | |
| 134 | - | |
| 135 | -/** | |
| 136 | - * Step Field Class | |
| 137 | - */ | |
| 138 | -class WeForms_Form_Field_Step extends WeForms_Form_Field_Pro { | |
| 139 | - public function __construct() { | |
| 140 | - $this->name = __( 'Step Start', 'weforms' ); | |
| 141 | - $this->input_type = 'step_start'; | |
| 142 | - $this->icon = 'step-forward'; | |
| 143 | - } | |
| 144 | -} | |
| 145 | - | |
| 146 | -/** | |
| 147 | - * TOC Field Class | |
| 148 | - */ | |
| 149 | -class WeForms_Form_Field_Toc extends WeForms_Form_Field_Pro { | |
| 150 | - public function __construct() { | |
| 151 | - $this->name = __( 'Terms & Conditions', 'weforms' ); | |
| 152 | - $this->input_type = 'toc'; | |
| 153 | - $this->icon = 'file-text'; | |
| 154 | - } | |
| 155 | -} | |
| 1 | +<?php | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * Address Field Class | |
| 5 | + */ | |
| 6 | +class WeForms_Form_Field_Address extends WeForms_Form_Field_Pro { | |
| 7 | + | |
| 8 | + function __construct() { | |
| 9 | + $this->name = __( 'Address Field', 'weforms' ); | |
| 10 | + $this->input_type = 'address_field'; | |
| 11 | + $this->icon = 'address-card-o'; | |
| 12 | + } | |
| 13 | +} | |
| 14 | + | |
| 15 | +/** | |
| 16 | + * Country Field Class | |
| 17 | + */ | |
| 18 | +class WeForms_Form_Field_Country extends WeForms_Form_Field_Pro { | |
| 19 | + | |
| 20 | + function __construct() { | |
| 21 | + $this->name = __( 'Country List', 'weforms' ); | |
| 22 | + $this->input_type = 'country_list_field'; | |
| 23 | + $this->icon = 'globe'; | |
| 24 | + } | |
| 25 | +} | |
| 26 | + | |
| 27 | +/** | |
| 28 | + * File Field Class | |
| 29 | + */ | |
| 30 | +class WeForms_Form_Field_File extends WeForms_Form_Field_Pro { | |
| 31 | + | |
| 32 | + function __construct() { | |
| 33 | + $this->name = __( 'File Upload', 'weforms' ); | |
| 34 | + $this->input_type = 'file_upload'; | |
| 35 | + $this->icon = 'upload'; | |
| 36 | + } | |
| 37 | +} | |
| 38 | + | |
| 39 | +/** | |
| 40 | + * Text Field Class | |
| 41 | + */ | |
| 42 | +class WeForms_Form_Field_GMap extends WeForms_Form_Field_Pro { | |
| 43 | + | |
| 44 | + function __construct() { | |
| 45 | + $this->name = __( 'Google Map', 'weforms' ); | |
| 46 | + $this->input_type = 'google_map'; | |
| 47 | + $this->icon = 'map-marker'; | |
| 48 | + } | |
| 49 | +} | |
| 50 | + | |
| 51 | +/** | |
| 52 | + * Text Field Class | |
| 53 | + */ | |
| 54 | +class WeForms_Form_Field_Hook extends WeForms_Form_Field_Pro { | |
| 55 | + | |
| 56 | + function __construct() { | |
| 57 | + $this->name = __( 'Action Hook', 'weforms' ); | |
| 58 | + $this->input_type = 'action_hook'; | |
| 59 | + $this->icon = 'anchor'; | |
| 60 | + } | |
| 61 | +} | |
| 62 | + | |
| 63 | +/** | |
| 64 | + * Numeric Field Class | |
| 65 | + */ | |
| 66 | +class WeForms_Form_Field_Numeric extends WeForms_Form_Field_Pro { | |
| 67 | + | |
| 68 | + function __construct() { | |
| 69 | + $this->name = __( 'Numeric Field', 'weforms' ); | |
| 70 | + $this->input_type = 'numeric_text_field'; | |
| 71 | + $this->icon = 'hashtag'; | |
| 72 | + } | |
| 73 | +} | |
| 74 | + | |
| 75 | +/** | |
| 76 | + * Rating Field Class | |
| 77 | + */ | |
| 78 | +class WeForms_Form_Field_Rating extends WeForms_Form_Field_Pro { | |
| 79 | + | |
| 80 | + function __construct() { | |
| 81 | + $this->name = __( 'Ratings', 'weforms' ); | |
| 82 | + $this->input_type = 'ratings'; | |
| 83 | + $this->icon = 'star-half-o'; | |
| 84 | + } | |
| 85 | +} | |
| 86 | + | |
| 87 | +/** | |
| 88 | + * Rating Field Class | |
| 89 | + */ | |
| 90 | +class WeForms_Form_Field_Linear_Scale extends WeForms_Form_Field_Pro { | |
| 91 | + | |
| 92 | + function __construct() { | |
| 93 | + $this->name = __( 'Linear Scale', 'weforms' ); | |
| 94 | + $this->input_type = 'linear_scale'; | |
| 95 | + $this->icon = 'ellipsis-h'; | |
| 96 | + } | |
| 97 | +} | |
| 98 | + | |
| 99 | +/** | |
| 100 | + * Checkbox Grids Field Class | |
| 101 | + */ | |
| 102 | +class WeForms_Form_Field_Checkbox_Grid extends WeForms_Form_Field_Pro { | |
| 103 | + | |
| 104 | + function __construct() { | |
| 105 | + $this->name = __( 'Checkbox Grid', 'weforms' ); | |
| 106 | + $this->input_type = 'checkbox_grid'; | |
| 107 | + $this->icon = 'th'; | |
| 108 | + } | |
| 109 | +} | |
| 110 | + | |
| 111 | +/** | |
| 112 | + * Multiple Choice Grids Field Class | |
| 113 | + */ | |
| 114 | +class WeForms_Form_Field_Multiple_Choice_Grid extends WeForms_Form_Field_Pro { | |
| 115 | + | |
| 116 | + function __construct() { | |
| 117 | + $this->name = __( 'Multiple Choice Grid', 'weforms' ); | |
| 118 | + $this->input_type = 'multiple_choice_grid'; | |
| 119 | + $this->icon = 'braille'; | |
| 120 | + } | |
| 121 | +} | |
| 122 | + | |
| 123 | +/** | |
| 124 | + * Repeat Field Class | |
| 125 | + */ | |
| 126 | +class WeForms_Form_Field_Repeat extends WeForms_Form_Field_Pro { | |
| 127 | + | |
| 128 | + function __construct() { | |
| 129 | + $this->name = __( 'Repeat Field', 'weforms' ); | |
| 130 | + $this->input_type = 'repeat_field'; | |
| 131 | + $this->icon = 'text-width'; | |
| 132 | + } | |
| 133 | +} | |
| 134 | + | |
| 135 | +/** | |
| 136 | + * Shortcode Field Class | |
| 137 | + */ | |
| 138 | +class WeForms_Form_Field_Shortcode extends WeForms_Form_Field_Pro { | |
| 139 | + | |
| 140 | + function __construct() { | |
| 141 | + $this->name = __( 'Shortcode', 'weforms' ); | |
| 142 | + $this->input_type = 'shortcode'; | |
| 143 | + $this->icon = 'calendar-o'; | |
| 144 | + } | |
| 145 | +} | |
| 146 | + | |
| 147 | +/** | |
| 148 | + * Step Field Class | |
| 149 | + */ | |
| 150 | +class WeForms_Form_Field_Step extends WeForms_Form_Field_Pro { | |
| 151 | + | |
| 152 | + function __construct() { | |
| 153 | + $this->name = __( 'Step Start', 'weforms' ); | |
| 154 | + $this->input_type = 'step_start'; | |
| 155 | + $this->icon = 'step-forward'; | |
| 156 | + } | |
| 157 | +} | |
| 158 | + | |
| 159 | +/** | |
| 160 | + * TOC Field Class | |
| 161 | + */ | |
| 162 | +class WeForms_Form_Field_Toc extends WeForms_Form_Field_Pro { | |
| 163 | + | |
| 164 | + function __construct() { | |
| 165 | + $this->name = __( 'Terms & Conditions', 'weforms' ); | |
| 166 | + $this->input_type = 'toc'; | |
| 167 | + $this->icon = 'file-text'; | |
| 168 | + } | |
| 169 | +} | |