|
93 | 93 | <td><button type="button" class="button boxzilla-add-rule"><?php esc_html_e('Add another rule', 'boxzilla'); ?></button></td> |
94 | 94 | </tr> |
95 | 95 | <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> |
97 | 97 | <td> |
98 | 98 | <table class="window-positions"> |
99 | 99 | <tr> |
|
153 | 153 | </td> |
154 | 154 | </tr> |
155 | 155 | <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> |
157 | 157 | <td> |
158 | 158 | <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 /> |
159 | 159 | <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 | 164 | </tr> |
165 | 165 | <tbody class="boxzilla-trigger-options" style="display: <?php echo ( $opts['trigger'] === '' ) ? 'none' : 'table-row-group'; ?>;"> |
166 | 166 | <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> |
168 | 168 | <td> |
169 | 169 | <div style="display: inline-block; margin-right: 20px;"> |
170 | 170 | <label for="boxzilla_cookie_triggered" style="font-weight: bold; display: block;"><?php esc_html_e('Triggered', 'boxzilla'); ?></label> |
|
196 | 196 | </tr> |
197 | 197 | <?php if (in_array($opts['trigger'], [ 'element', 'percentage' ])) { ?> |
198 | 198 | <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> |
200 | 200 | <td> |
201 | 201 | <label><input type="radio" name="boxzilla_box[auto_hide]" value="1" <?php checked($opts['auto_hide'], 1); ?> /> <?php esc_html_e('Yes', 'boxzilla'); ?></label> |
202 | 202 | <label><input type="radio" name="boxzilla_box[auto_hide]" value="0" <?php checked($opts['auto_hide'], 0); ?> /> <?php esc_html_e('No', 'boxzilla'); ?></label> |
|
207 | 207 | </tbody> |
208 | 208 | <tbody> |
209 | 209 | <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> |
211 | 211 | <td> |
212 | 212 | <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> |
213 | 213 | <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> |
|
218 | 218 | </td> |
219 | 219 | </tr> |
220 | 220 | <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> |
222 | 222 | <td> |
223 | 223 | <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> |
224 | 224 | <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> |
|
0 commit comments