PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.24
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.24
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 +6 -7 6.266.24 View file →
@@ -13,17 +13,17 @@
13 13 die( 'You are not allowed to call this page directly.' );
14 14 }
15 15 ?>
16 16 <?php
17 -$div_class = $args['div_class'] ?? false;
18 -$show_labels = $args['show_labels'] ?? false;
19 -$off_label = $args['off_label'] ?? '';
20 -$on_label = $args['on_label'] ?? 1;
21 -$value = $args['value'] ?? $on_label;
17 +$div_class = isset( $args['div_class'] ) ? $args['div_class'] : false;
18 +$show_labels = isset( $args['show_labels'] ) ? $args['show_labels'] : false;
19 +$off_label = isset( $args['off_label'] ) ? $args['off_label'] : '';
20 +$on_label = isset( $args['on_label'] ) ? $args['on_label'] : 1;
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 $disabled = ! empty( $args['disabled'] );
24 24 $aria_checked = $checked ? 'true' : 'false';
25 -$input_html = $args['input_html'] ?? array();
25 +$input_html = isset( $args['input_html'] ) ? $args['input_html'] : array();
26 26
27 27 $use_container = false;
28 28
29 29 $div_params = array(
@@ -30,9 +30,8 @@
30 30 // This is important when the default style is !important as Pro styling may cause conflicts.
31 31 // It uses --toggle-on-color so just set the variable.
32 32 'style' => '--toggle-on-color:var(--primary-color);',
33 33 );
34 -
35 34 if ( $div_class ) {
36 35 $use_container = true;
37 36 $div_params['class'] = $div_class;
38 37 }