| @@ -1,8 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 3 | - die( 'You are not allowed to call this page directly.' ); | |
| 4 | -} | |
| 5 | 2 | |
| 6 | 3 | /** |
| 7 | 4 | * @since 3.0 |
| 8 | 5 | */ |
| @@ -12,12 +9,8 @@ | ||
| 12 | 9 | * @var string |
| 13 | 10 | * @since 3.0 |
| 14 | 11 | */ |
| 15 | 12 | protected $type = 'phone'; |
| 16 | - | |
| 17 | - /** | |
| 18 | - * @var string | |
| 19 | - */ | |
| 20 | 13 | protected $display_type = 'text'; |
| 21 | 14 | |
| 22 | 15 | /** |
| 23 | 16 | * @var bool |
| @@ -24,16 +17,8 @@ | ||
| 24 | 17 | * @since 3.0 |
| 25 | 18 | */ |
| 26 | 19 | protected $holds_email_values = true; |
| 27 | 20 | |
| 28 | - /** | |
| 29 | - * @var bool | |
| 30 | - */ | |
| 31 | - protected $array_allowed = false; | |
| 32 | - | |
| 33 | - /** | |
| 34 | - * @return bool[] | |
| 35 | - */ | |
| 36 | 21 | protected function field_settings_for_type() { |
| 37 | 22 | return array( |
| 38 | 23 | 'size' => true, |
| 39 | 24 | 'clear_on_focus' => true, |
| @@ -41,22 +26,9 @@ | ||
| 41 | 26 | 'format' => true, |
| 42 | 27 | ); |
| 43 | 28 | } |
| 44 | 29 | |
| 45 | - /** | |
| 46 | - * @return string | |
| 47 | - */ | |
| 48 | 30 | protected function html5_input_type() { |
| 49 | 31 | $frm_settings = FrmAppHelper::get_settings(); |
| 50 | - | |
| 51 | 32 | return $frm_settings->use_html ? 'tel' : 'text'; |
| 52 | - } | |
| 53 | - | |
| 54 | - /** | |
| 55 | - * @since 4.0.04 | |
| 56 | - * | |
| 57 | - * @return void | |
| 58 | - */ | |
| 59 | - public function sanitize_value( &$value ) { | |
| 60 | - FrmAppHelper::sanitize_value( 'sanitize_text_field', $value ); | |
| 61 | 33 | } |
| 62 | 34 | } |