← All changes
|
classes/views/frm-fields/front-end/checkbox-field.php
+7
-0
6.31
→
trunk
View file →
| @@ -7,8 +7,14 @@ | ||
| 7 | 7 | * Show the checkbox field on the front-end. |
| 8 | 8 | * Extra line breaks show as space on the front-end when |
| 9 | 9 | * the form is double filtered and not minimized. |
| 10 | 10 | * |
| 11 | + * @var array $field | |
| 12 | + * @var string $field_name | |
| 13 | + * @var bool $read_only | |
| 14 | + * @var string $html_id | |
| 15 | + * @var array|null $args | |
| 16 | + * | |
| 11 | 17 | * @phpcs:disable Generic.WhiteSpace.ScopeIndent |
| 12 | 18 | * |
| 13 | 19 | * @since 6.30 Added `$hide_label`. |
| 14 | 20 | * |
| @@ -81,8 +87,9 @@ | ||
| 81 | 87 | |
| 82 | 88 | ?><input type="checkbox" name="<?php echo esc_attr( $field_name ); ?>[<?php echo esc_attr( $other_opt ? $opt_key : '' ); ?>]" id="<?php echo esc_attr( $html_id ); ?>-<?php echo esc_attr( $opt_key ); ?>" value="<?php echo esc_attr( $field_val ); ?>"<?php |
| 83 | 89 | |
| 84 | 90 | echo $checked . ' '; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 91 | + | |
| 85 | 92 | do_action( 'frm_field_input_html', $field ); |
| 86 | 93 | |
| 87 | 94 | if ( $should_echo_disabled_att ) { |
| 88 | 95 | echo 'disabled="disabled" data-max-reached="1" '; |