PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.14
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.14
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/views/shared/toggle.php +2 -1 6.36.14 View file →
@@ -21,8 +21,9 @@
21 21 $value = isset( $args['value'] ) ? $args['value'] : $on_label;
22 22 $checked = isset( $args['checked'] ) && ( true === $args['checked'] || false !== strpos( $args['checked'], 'checked="checked"' ) );
23 23 $aria_checked = $checked ? 'true' : 'false';
24 24 $input_html = isset( $args['input_html'] ) ? $args['input_html'] : array();
25 +$aria_label = empty( $args['aria-label-attr'] ) ? '' : 'aria-label="' . $args['aria-label-attr'] . '"';
25 26
26 27 $use_container = false;
27 28
28 29 $div_params = array(
@@ -64,9 +65,9 @@
64 65 }
65 66 ?>
66 67 />
67 68
68 - <span class="frm_toggle" tabindex="0" role="switch" aria-labelledby="<?php echo esc_attr( $id ); ?>_label" aria-checked="<?php echo esc_attr( $aria_checked ); ?>">
69 + <span class="frm_toggle" tabindex="0" role="switch" <?php echo esc_attr( $aria_label ); ?> aria-labelledby="<?php echo esc_attr( $id ); ?>_label" aria-checked="<?php echo esc_attr( $aria_checked ); ?>">
69 70 <span class="frm_toggle_slider"></span>
70 71 </span>
71 72
72 73 <?php if ( $show_labels && $on_label != 1 ) { ?>