mirror of
https://github.com/kremalicious/Badged.git
synced 2024-12-27 15:17:43 +01:00
add new options in UI
This commit is contained in:
parent
5a04b33962
commit
313bdee0ac
@ -16,6 +16,21 @@
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr valign="top">
|
||||
<th scope="row" class="indent">
|
||||
<?php _e( 'Style', 'bdgd' ); ?>
|
||||
</th>
|
||||
<td>
|
||||
<fieldset>
|
||||
<input type="radio" name="ios6" id="ios6" value="ios6"<?php echo get_option('ios6') == 'yes' ? ' checked' : '';?> />
|
||||
<label for="ios6"><?php _e( 'iOS 6', 'bdgd' ); ?></label>
|
||||
<br />
|
||||
<input type="radio" name="ios7" id="ios7" value="ios7"<?php echo get_option('ios7') == 'yes' ? ' checked' : '';?> />
|
||||
<label for="ios7"><?php _e( 'iOS 7', 'bdgd' ); ?></label>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr valign="top">
|
||||
<th scope="row" class="indent">
|
||||
<?php _e( 'Style Notifications in', 'bdgd' ); ?>
|
||||
@ -29,7 +44,7 @@
|
||||
<label for="bar"><?php _e( 'Toolbar', 'bdgd' ); ?></label>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
@ -80,6 +80,8 @@ function badged_settings() {
|
||||
function badged_register_settings() {
|
||||
register_setting('badged', 'menu');
|
||||
register_setting('badged', 'bar');
|
||||
register_setting('badged', 'ios6');
|
||||
register_setting('badged', 'ios7');
|
||||
}
|
||||
|
||||
function badged_settings_page() {
|
||||
@ -95,6 +97,7 @@ function badged_activation() {
|
||||
badged_register_settings();
|
||||
update_option('menu', 'yes');
|
||||
update_option('bar', 'yes');
|
||||
update_option('ios6', 'yes');
|
||||
}
|
||||
|
||||
if ( is_admin() ) {
|
||||
|
Loading…
Reference in New Issue
Block a user