| @@ -1,46 +1,46 @@ | ||
| 1 | -<?php | |
| 2 | - | |
| 3 | -/** | |
| 4 | - * Pro fields wrapper class | |
| 5 | - */ | |
| 6 | -class WeForms_Form_Field_Pro extends WeForms_Field_Contract { | |
| 7 | - | |
| 8 | - /** | |
| 9 | - * Render the text field | |
| 10 | - * | |
| 11 | - * @param array $field_settings | |
| 12 | - * @param int $form_id | |
| 13 | - * | |
| 14 | - * @return void | |
| 15 | - */ | |
| 16 | - public function render( $field_settings, $form_id ) { | |
| 17 | - echo esc_html_e( 'This is a premium field. You need to upgrade.', 'weforms' ); | |
| 18 | - } | |
| 19 | - | |
| 20 | - /** | |
| 21 | - * Check if it's a pro feature | |
| 22 | - * | |
| 23 | - * @return bool | |
| 24 | - */ | |
| 25 | - public function is_pro() { | |
| 26 | - return true; | |
| 27 | - } | |
| 28 | - | |
| 29 | - /** | |
| 30 | - * Get field options setting | |
| 31 | - * | |
| 32 | - * @return array | |
| 33 | - */ | |
| 34 | - public function get_options_settings() { | |
| 35 | - return __return_empty_array(); | |
| 36 | - } | |
| 37 | - | |
| 38 | - /** | |
| 39 | - * Get the field props | |
| 40 | - * | |
| 41 | - * @return array | |
| 42 | - */ | |
| 43 | - public function get_field_props() { | |
| 44 | - return __return_empty_array(); | |
| 45 | - } | |
| 46 | -} | |
| 1 | +<?php | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * Pro fields wrapper class | |
| 5 | + */ | |
| 6 | +class WeForms_Form_Field_Pro extends WeForms_Field_Contract { | |
| 7 | + | |
| 8 | + /** | |
| 9 | + * Render the text field | |
| 10 | + * | |
| 11 | + * @param array $field_settings | |
| 12 | + * @param integer $form_id | |
| 13 | + * | |
| 14 | + * @return void | |
| 15 | + */ | |
| 16 | + public function render( $field_settings, $form_id ) { | |
| 17 | + echo __( 'This is a premium field. You need to upgrade.', 'weforms' ); | |
| 18 | + } | |
| 19 | + | |
| 20 | + /** | |
| 21 | + * Check if it's a pro feature | |
| 22 | + * | |
| 23 | + * @return boolean | |
| 24 | + */ | |
| 25 | + public function is_pro() { | |
| 26 | + return true; | |
| 27 | + } | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * Get field options setting | |
| 31 | + * | |
| 32 | + * @return array | |
| 33 | + */ | |
| 34 | + public function get_options_settings() { | |
| 35 | + return __return_empty_array(); | |
| 36 | + } | |
| 37 | + | |
| 38 | + /** | |
| 39 | + * Get the field props | |
| 40 | + * | |
| 41 | + * @return array | |
| 42 | + */ | |
| 43 | + public function get_field_props() { | |
| 44 | + return __return_empty_array(); | |
| 45 | + } | |
| 46 | +} | |