PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.23
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.23
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/fields/FrmFieldCheckbox.php +3 -25 6.326.23 View file →
@@ -9,9 +9,8 @@
9 9 class FrmFieldCheckbox extends FrmFieldType {
10 10
11 11 /**
12 12 * @var string
13 - *
14 13 * @since 3.0
15 14 */
16 15 protected $type = 'checkbox';
17 16
@@ -16,9 +15,8 @@
16 15 protected $type = 'checkbox';
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,16 +23,12 @@
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
34 - /**
35 - * @return string
36 - */
37 31 protected function input_html() {
38 32 return $this->multiple_input_html();
39 33 }
40 34
@@ -68,11 +62,8 @@
68 62 /**
69 63 * Get the type of field being displayed.
70 64 *
71 65 * @since 4.02.01
72 - *
73 - * @param array|object $field
74 - *
75 66 * @return array
76 67 */
77 68 public function displayed_field_type( $field ) {
78 69 return array(
@@ -83,10 +74,12 @@
83 74 /**
84 75 * @return array
85 76 */
86 77 protected function extra_field_opts() {
78 + $form_id = $this->get_field_column( 'form_id' );
79 +
87 80 return array(
88 - 'align' => '',
81 + 'align' => FrmStylesController::get_style_val( 'check_align', ( empty( $form_id ) ? 'default' : $form_id ) ),
89 82 );
90 83 }
91 84
92 85 /**
@@ -91,10 +84,8 @@
91 84
92 85 /**
93 86 * @since 4.06
94 87 *
95 - * @param array $args
96 - *
97 88 * @return void
98 89 */
99 90 protected function show_priority_field_choices( $args = array() ) {
100 91 include FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/radio-images.php';
@@ -115,19 +106,6 @@
115 106 }
116 107
117 108 protected function prepare_import_value( $value, $atts ) {
118 109 return $this->get_multi_opts_for_import( $value );
119 - }
120 -
121 - /**
122 - * Unset aria-invalid for checkboxes because it's not valid for checkboxes.
123 - * Instead aria-invalid is added to the checkbox group parent element.
124 - *
125 - * @since 6.25
126 - *
127 - * @param array $shortcode_atts
128 - * @param array $args
129 - */
130 - public function set_aria_invalid_error( &$shortcode_atts, $args ) {
131 - unset( $shortcode_atts['aria-invalid'] );
132 110 }
133 111 }