| @@ -9,9 +9,8 @@ | ||
| 9 | 9 | class FrmFieldTextarea extends FrmFieldType { |
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * @var string |
| 13 | - * | |
| 14 | 13 | * @since 3.0 |
| 15 | 14 | */ |
| 16 | 15 | protected $type = 'textarea'; |
| 17 | 16 | |
| @@ -61,9 +60,8 @@ | ||
| 61 | 60 | if ( $size ) { |
| 62 | 61 | if ( is_numeric( $size ) ) { |
| 63 | 62 | $size .= 'px'; |
| 64 | 63 | } |
| 65 | - | |
| 66 | 64 | $style = 'width:' . $size . ';'; |
| 67 | 65 | echo ' style="' . esc_attr( $style ) . '"'; |
| 68 | 66 | } |
| 69 | 67 | |
| @@ -73,8 +71,9 @@ | ||
| 73 | 71 | } |
| 74 | 72 | |
| 75 | 73 | protected function prepare_display_value( $value, $atts ) { |
| 76 | 74 | FrmFieldsHelper::run_wpautop( $atts, $value ); |
| 75 | + | |
| 77 | 76 | return $value; |
| 78 | 77 | } |
| 79 | 78 | |
| 80 | 79 | /** |
| @@ -97,14 +96,13 @@ | ||
| 97 | 96 | * @return string |
| 98 | 97 | */ |
| 99 | 98 | public function front_field_input( $args, $shortcode_atts ) { |
| 100 | 99 | $input_html = $this->get_field_input_html_hook( $this->field ); |
| 101 | - $rows = $this->field['max'] ? 'rows="' . esc_attr( $this->field['max'] ) . '" ' : ''; | |
| 100 | + $this->add_aria_description( $args, $input_html ); | |
| 101 | + $rows = $this->field['max'] ? 'rows="' . esc_attr( $this->field['max'] ) . '" ' : ''; | |
| 102 | 102 | |
| 103 | - // phpcs:disable Generic.WhiteSpace.ScopeIndent | |
| 104 | 103 | return '<textarea name="' . esc_attr( $args['field_name'] ) . '" id="' . esc_attr( $args['html_id'] ) . '" ' . |
| 105 | 104 | $rows . $input_html . '>' . |
| 106 | 105 | FrmAppHelper::esc_textarea( $this->field['value'] ) . |
| 107 | 106 | '</textarea>'; |
| 108 | - // phpcs:enable Generic.WhiteSpace.ScopeIndent | |
| 109 | 107 | } |
| 110 | 108 | } |