forked from mirror/_s
_s: WordPress coding standards. Cleanup whitespace. props @corvannoorloos
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9648 d957f892-c61d-0410-b221-f235e6eecf30
This commit is contained in:
parent
c4a02323c6
commit
6a0c5d2d78
|
@ -19,7 +19,7 @@
|
||||||
*/
|
*/
|
||||||
function _s_theme_options_init() {
|
function _s_theme_options_init() {
|
||||||
register_setting(
|
register_setting(
|
||||||
'_s_options', // Options group, see settings_fields() call in _s_theme_options_render_page()
|
'_s_options', // Options group, see settings_fields() call in _s_theme_options_render_page()
|
||||||
'_s_theme_options', // Database option, see _s_get_theme_options()
|
'_s_theme_options', // Database option, see _s_get_theme_options()
|
||||||
'_s_theme_options_validate' // The sanitization callback, see _s_theme_options_validate()
|
'_s_theme_options_validate' // The sanitization callback, see _s_theme_options_validate()
|
||||||
);
|
);
|
||||||
|
@ -73,8 +73,8 @@ function _s_theme_options_add_page() {
|
||||||
$theme_page = add_theme_page(
|
$theme_page = add_theme_page(
|
||||||
__( 'Theme Options', '_s' ), // Name of page
|
__( 'Theme Options', '_s' ), // Name of page
|
||||||
__( 'Theme Options', '_s' ), // Label in menu
|
__( 'Theme Options', '_s' ), // Label in menu
|
||||||
'edit_theme_options', // Capability required
|
'edit_theme_options', // Capability required
|
||||||
'theme_options', // Menu slug, used to uniquely identify the page
|
'theme_options', // Menu slug, used to uniquely identify the page
|
||||||
'_s_theme_options_render_page' // Function that renders the options page
|
'_s_theme_options_render_page' // Function that renders the options page
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -171,7 +171,7 @@ function _s_settings_field_sample_checkbox() {
|
||||||
?>
|
?>
|
||||||
<label for"sample-checkbox">
|
<label for"sample-checkbox">
|
||||||
<input type="checkbox" name="_s_theme_options[sample_checkbox]" id="sample-checkbox" <?php checked( 'on', $options['sample_checkbox'] ); ?> />
|
<input type="checkbox" name="_s_theme_options[sample_checkbox]" id="sample-checkbox" <?php checked( 'on', $options['sample_checkbox'] ); ?> />
|
||||||
<?php _e( 'A sample checkbox.', '_s' ); ?>
|
<?php _e( 'A sample checkbox.', '_s' ); ?>
|
||||||
</label>
|
</label>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue