| 1 |
<h2><?php _e( 'Assistant', 'assistant' ); ?></h2> |
| 2 |
<table class="form-table" role="presentation"> |
| 3 |
<tbody> |
| 4 |
<tr class="user-fl-asst-hidden-ui-wrap"> |
| 5 |
<th> |
| 6 |
<label for="fl_asst_hidden_ui"><?php _e( 'Toggle Button', 'assistant' ); ?></label> |
| 7 |
</th> |
| 8 |
<td> |
| 9 |
<select name="fl_asst_hidden_ui" id="fl_asst_hidden_ui"> |
| 10 |
<?php |
| 11 |
foreach ( $hidden_appearances as $value => $label ) { |
| 12 |
$selected = $hidden_appearance === $value ? 'selected' : ''; |
| 13 |
?> |
| 14 |
<option value="<?php echo $value; ?>" <?php echo $selected; ?> ><?php echo $label; ?></option> |
| 15 |
<?php |
| 16 |
} |
| 17 |
?> |
| 18 |
</select> |
| 19 |
</td> |
| 20 |
</tr> |
| 21 |
<tr class="user-show-assistant-in-admin-wrap"> |
| 22 |
<th scope="row"><?php _e( 'Show in Admin', 'assistant' ); ?></th> |
| 23 |
<td> |
| 24 |
<label for="show_assistant_in_admin"> |
| 25 |
<input type="checkbox" id="show_assistant_in_admin" name="show_assistant_in_admin" <?php echo $show_in_admin ? 'checked' : null; ?> > |
| 26 |
<?php _e( 'Show Assistant UI in the WordPress Admin', 'assistant' ); ?> |
| 27 |
</label> |
| 28 |
</td> |
| 29 |
</tr> |
| 30 |
</tbody> |
| 31 |
</table> |
| 32 |
|