| @@ -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 | */ |
| @@ -20,24 +17,17 @@ | ||
| 20 | 17 | */ |
| 21 | 18 | protected $holds_email_values = true; |
| 22 | 19 | |
| 23 | 20 | protected function include_form_builder_file() { |
| 24 | - return $this->include_front_form_file(); | |
| 21 | + return FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/dropdown-field.php'; | |
| 25 | 22 | } |
| 26 | 23 | |
| 27 | - /** | |
| 28 | - * @return bool[] | |
| 29 | - */ | |
| 30 | 24 | protected function field_settings_for_type() { |
| 31 | 25 | return array( |
| 32 | - 'clear_on_focus' => true, | |
| 33 | - 'size' => true, | |
| 26 | + 'size' => true, | |
| 34 | 27 | ); |
| 35 | 28 | } |
| 36 | 29 | |
| 37 | - /** | |
| 38 | - * @return string[] | |
| 39 | - */ | |
| 40 | 30 | protected function new_field_settings() { |
| 41 | 31 | return array( |
| 42 | 32 | 'options' => serialize( |
| 43 | 33 | array( |
| @@ -47,41 +37,12 @@ | ||
| 47 | 37 | ), |
| 48 | 38 | ); |
| 49 | 39 | } |
| 50 | 40 | |
| 51 | - /** | |
| 52 | - * Get the type of field being displayed. | |
| 53 | - * | |
| 54 | - * @since 4.02.01 | |
| 55 | - * @return array | |
| 56 | - */ | |
| 57 | - public function displayed_field_type( $field ) { | |
| 58 | - return array( | |
| 59 | - $this->type => true, | |
| 60 | - ); | |
| 61 | - } | |
| 62 | - | |
| 63 | - /** | |
| 64 | - * @since 4.0 | |
| 65 | - * | |
| 66 | - * @param array $args - Includes 'field', 'display', and 'values' | |
| 67 | - * | |
| 68 | - * @return void | |
| 69 | - */ | |
| 70 | - public function show_extra_field_choices( $args ) { | |
| 71 | - $this->auto_width_setting( $args ); | |
| 72 | - } | |
| 73 | - | |
| 74 | - /** | |
| 75 | - * @return string | |
| 76 | - */ | |
| 77 | 41 | protected function include_front_form_file() { |
| 78 | 42 | return FrmAppHelper::plugin_path() . '/classes/views/frm-fields/front-end/dropdown-field.php'; |
| 79 | 43 | } |
| 80 | 44 | |
| 81 | - /** | |
| 82 | - * @return bool | |
| 83 | - */ | |
| 84 | 45 | protected function show_readonly_hidden() { |
| 85 | 46 | return true; |
| 86 | 47 | } |
| 87 | 48 | |
| @@ -88,8 +49,7 @@ | ||
| 88 | 49 | protected function prepare_import_value( $value, $atts ) { |
| 89 | 50 | if ( FrmField::is_option_true( $this->field, 'multiple' ) ) { |
| 90 | 51 | $value = $this->get_multi_opts_for_import( $value ); |
| 91 | 52 | } |
| 92 | - | |
| 93 | 53 | return $value; |
| 94 | 54 | } |
| 95 | 55 | } |