| @@ -9,9 +9,8 @@ | ||
| 9 | 9 | class FrmFieldRadio extends FrmFieldType { |
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * @var string |
| 13 | - * | |
| 14 | 13 | * @since 3.0 |
| 15 | 14 | */ |
| 16 | 15 | protected $type = 'radio'; |
| 17 | 16 | |
| @@ -16,9 +15,8 @@ | ||
| 16 | 15 | protected $type = 'radio'; |
| 17 | 16 | |
| 18 | 17 | /** |
| 19 | 18 | * @var bool |
| 20 | - * | |
| 21 | 19 | * @since 3.0 |
| 22 | 20 | */ |
| 23 | 21 | protected $holds_email_values = true; |
| 24 | 22 | |
| @@ -25,9 +23,8 @@ | ||
| 25 | 23 | /** |
| 26 | 24 | * Does the html for this field label need to include "for"? |
| 27 | 25 | * |
| 28 | 26 | * @var bool |
| 29 | - * | |
| 30 | 27 | * @since 3.06.01 |
| 31 | 28 | */ |
| 32 | 29 | protected $has_for_label = false; |
| 33 | 30 | |
| @@ -35,11 +32,8 @@ | ||
| 35 | 32 | * @var bool |
| 36 | 33 | */ |
| 37 | 34 | protected $array_allowed = true; |
| 38 | 35 | |
| 39 | - /** | |
| 40 | - * @return string | |
| 41 | - */ | |
| 42 | 36 | protected function input_html() { |
| 43 | 37 | return $this->multiple_input_html(); |
| 44 | 38 | } |
| 45 | 39 | |
| @@ -59,11 +53,8 @@ | ||
| 59 | 53 | /** |
| 60 | 54 | * Get the type of field being displayed. |
| 61 | 55 | * |
| 62 | 56 | * @since 4.02.01 |
| 63 | - * | |
| 64 | - * @param array|object $field | |
| 65 | - * | |
| 66 | 57 | * @return array |
| 67 | 58 | */ |
| 68 | 59 | public function displayed_field_type( $field ) { |
| 69 | 60 | return array( |
| @@ -77,9 +68,9 @@ | ||
| 77 | 68 | protected function extra_field_opts() { |
| 78 | 69 | $form_id = $this->get_field_column( 'form_id' ); |
| 79 | 70 | |
| 80 | 71 | return array( |
| 81 | - 'align' => FrmStylesController::get_style_val( 'radio_align', $form_id ? $form_id : 'default' ), | |
| 72 | + 'align' => FrmStylesController::get_style_val( 'radio_align', ( empty( $form_id ) ? 'default' : $form_id ) ), | |
| 82 | 73 | ); |
| 83 | 74 | } |
| 84 | 75 | |
| 85 | 76 | /** |
| @@ -98,10 +89,8 @@ | ||
| 98 | 89 | |
| 99 | 90 | /** |
| 100 | 91 | * @since 4.06 |
| 101 | 92 | * |
| 102 | - * @param array $args | |
| 103 | - * | |
| 104 | 93 | * @return void |
| 105 | 94 | */ |
| 106 | 95 | protected function show_priority_field_choices( $args = array() ) { |
| 107 | 96 | include FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/radio-images.php'; |
| @@ -118,19 +107,6 @@ | ||
| 118 | 107 | * @return bool |
| 119 | 108 | */ |
| 120 | 109 | protected function show_readonly_hidden() { |
| 121 | 110 | return true; |
| 122 | - } | |
| 123 | - | |
| 124 | - /** | |
| 125 | - * Unset aria-invalid for radio buttons because it's not valid for radio buttons. | |
| 126 | - * Instead aria-invalid is added to the radiogroup parent element. | |
| 127 | - * | |
| 128 | - * @since 6.25 | |
| 129 | - * | |
| 130 | - * @param array $shortcode_atts | |
| 131 | - * @param array $args | |
| 132 | - */ | |
| 133 | - public function set_aria_invalid_error( &$shortcode_atts, $args ) { | |
| 134 | - unset( $shortcode_atts['aria-invalid'] ); | |
| 135 | 111 | } |
| 136 | 112 | } |