| @@ -1,155 +1,155 @@ | ||
| 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 | + 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 | +} | |