Skip to content

Commit c94be96

Browse files
accessibility: remove invalid for attributes
1 parent 4eb9f3c commit c94be96

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/admin/views/metaboxes/box-option-controls.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
<td><button type="button" class="button boxzilla-add-rule"><?php esc_html_e('Add another rule', 'boxzilla'); ?></button></td>
9494
</tr>
9595
<tr valign="top">
96-
<th><label for="boxzilla_position"><?php esc_html_e('Box Position', 'boxzilla'); ?></label></th>
96+
<th><label><?php esc_html_e('Box Position', 'boxzilla'); ?></label></th>
9797
<td>
9898
<table class="window-positions">
9999
<tr>
@@ -153,7 +153,7 @@
153153
</td>
154154
</tr>
155155
<tr valign="top">
156-
<th><label for="boxzilla_trigger"><?php esc_html_e('Auto-show box?', 'boxzilla'); ?></label></th>
156+
<th><label><?php esc_html_e('Auto-show box?', 'boxzilla'); ?></label></th>
157157
<td>
158158
<label><input type="radio" class="boxzilla-auto-show-trigger" name="boxzilla_box[trigger]" value="" <?php checked($opts['trigger'], ''); ?> /> <?php esc_html_e('Never', 'boxzilla'); ?></label><br />
159159
<label><input type="radio" class="boxzilla-auto-show-trigger" name="boxzilla_box[trigger]" value="time_on_page" <?php checked($opts['trigger'], 'time_on_page'); ?> /> <?php printf(esc_html__('Yes, after %s seconds on the page.', 'boxzilla'), '<input type="number" name="boxzilla_box[trigger_time_on_page]" min="0" value="' . esc_attr($opts['trigger_time_on_page']) . '" />'); ?></label><br />
@@ -164,7 +164,7 @@
164164
</tr>
165165
<tbody class="boxzilla-trigger-options" style="display: <?php echo ( $opts['trigger'] === '' ) ? 'none' : 'table-row-group'; ?>;">
166166
<tr valign="top">
167-
<th><label for="boxzilla_cookie"><?php esc_html_e('Cookie expiration', 'boxzilla'); ?></label></th>
167+
<th><label><?php esc_html_e('Cookie expiration', 'boxzilla'); ?></label></th>
168168
<td>
169169
<div style="display: inline-block; margin-right: 20px;">
170170
<label for="boxzilla_cookie_triggered" style="font-weight: bold; display: block;"><?php esc_html_e('Triggered', 'boxzilla'); ?></label>
@@ -196,7 +196,7 @@
196196
</tr>
197197
<?php if (in_array($opts['trigger'], [ 'element', 'percentage' ])) { ?>
198198
<tr valign="top">
199-
<th><label for="boxzilla_auto_hide"><?php esc_html_e('Auto-hide?', 'boxzilla'); ?></label></th>
199+
<th><label><?php esc_html_e('Auto-hide?', 'boxzilla'); ?></label></th>
200200
<td>
201201
<label><input type="radio" name="boxzilla_box[auto_hide]" value="1" <?php checked($opts['auto_hide'], 1); ?> /> <?php esc_html_e('Yes', 'boxzilla'); ?></label> &nbsp;
202202
<label><input type="radio" name="boxzilla_box[auto_hide]" value="0" <?php checked($opts['auto_hide'], 0); ?> /> <?php esc_html_e('No', 'boxzilla'); ?></label> &nbsp;
@@ -207,7 +207,7 @@
207207
</tbody>
208208
<tbody>
209209
<tr valign="top">
210-
<th><label for="boxzilla_closable"><?php esc_html_e('Show close icon?', 'boxzilla'); ?></label></th>
210+
<th><label><?php esc_html_e('Show close icon?', 'boxzilla'); ?></label></th>
211211
<td>
212212
<label><input type="radio" id="boxzilla_closable_1" name="boxzilla_box[show_close_icon]" value="1" <?php checked($opts['show_close_icon'], 1); ?> /> <?php esc_html_e('Yes', 'boxzilla'); ?></label> &nbsp;
213213
<label><input type="radio" id="boxzilla_closable_0" name="boxzilla_box[show_close_icon]" value="0" <?php checked($opts['show_close_icon'], 0); ?> /> <?php esc_html_e('No', 'boxzilla'); ?></label> &nbsp;
@@ -218,7 +218,7 @@
218218
</td>
219219
</tr>
220220
<tr valign="top">
221-
<th><label for="boxzilla_test_mode"><?php esc_html_e('Enable test mode?', 'boxzilla'); ?></label></th>
221+
<th><label><?php esc_html_e('Enable test mode?', 'boxzilla'); ?></label></th>
222222
<td>
223223
<label><input type="radio" id="boxzilla_test_mode_1" name="boxzilla_global_settings[test_mode]" value="1" <?php checked($global_opts['test_mode'], 1); ?> /> <?php esc_html_e('Yes', 'boxzilla'); ?></label> &nbsp;
224224
<label><input type="radio" id="boxzilla_test_mode_0" name="boxzilla_global_settings[test_mode]" value="0" <?php checked($global_opts['test_mode'], 0); ?> /> <?php esc_html_e('No', 'boxzilla'); ?></label> &nbsp;

0 commit comments

Comments
 (0)