mirror of
https://github.com/kremalicious/Badged.git
synced 2024-11-23 02:10:00 +01:00
add new options in UI
This commit is contained in:
parent
5a04b33962
commit
313bdee0ac
@ -16,6 +16,21 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</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">
|
<tr valign="top">
|
||||||
<th scope="row" class="indent">
|
<th scope="row" class="indent">
|
||||||
<?php _e( 'Style Notifications in', 'bdgd' ); ?>
|
<?php _e( 'Style Notifications in', 'bdgd' ); ?>
|
||||||
|
@ -80,6 +80,8 @@ function badged_settings() {
|
|||||||
function badged_register_settings() {
|
function badged_register_settings() {
|
||||||
register_setting('badged', 'menu');
|
register_setting('badged', 'menu');
|
||||||
register_setting('badged', 'bar');
|
register_setting('badged', 'bar');
|
||||||
|
register_setting('badged', 'ios6');
|
||||||
|
register_setting('badged', 'ios7');
|
||||||
}
|
}
|
||||||
|
|
||||||
function badged_settings_page() {
|
function badged_settings_page() {
|
||||||
@ -95,6 +97,7 @@ function badged_activation() {
|
|||||||
badged_register_settings();
|
badged_register_settings();
|
||||||
update_option('menu', 'yes');
|
update_option('menu', 'yes');
|
||||||
update_option('bar', 'yes');
|
update_option('bar', 'yes');
|
||||||
|
update_option('ios6', 'yes');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( is_admin() ) {
|
if ( is_admin() ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user