Permalink
Browse files

Bring the general settings meta box up to date with the new settings …

…page.

git-svn-id: http://svn.locallylost.com/themes/hybrid/trunk@393 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information...
1 parent 772e9cc commit f4f81eff07e6d930681000ea964b08e8c79acc94 greenshady committed Oct 15, 2010
Showing with 16 additions and 16 deletions.
  1. +16 −16 functions.php
View
@@ -169,42 +169,42 @@ function hybrid_general_settings_meta_box() {
<table class="form-table">
<tr>
- <th><label for="print_style"><?php _e( 'Stylesheets:', $domain ); ?></label></th>
+ <th><label for="<?php echo hybrid_settings_field_id( 'print_style' ); ?>"><?php _e( 'Stylesheets:', $domain ); ?></label></th>
<td>
- <input id="print_style" name="print_style" type="checkbox" <?php if ( hybrid_get_setting( 'print_style' ) ) echo 'checked="checked"'; ?> value="true" />
- <label for="print_style"><?php _e( 'Select this to have the theme automatically include a print stylesheet.', $domain ); ?></label>
+ <input id="<?php echo hybrid_settings_field_id( 'print_style' ); ?>" name="<?php echo hybrid_settings_field_name( 'print_style' ); ?>" type="checkbox" <?php if ( hybrid_get_setting( 'print_style' ) ) echo 'checked="checked"'; ?> value="true" />
+ <label for="<?php echo hybrid_settings_field_id( 'print_style' ); ?>"><?php _e( 'Select this to have the theme automatically include a print stylesheet.', $domain ); ?></label>
</td>
</tr>
<tr>
- <th><label for="superfish_js"><?php _e( 'JavaScript:', $domain ); ?></label></th>
+ <th><label for="<?php echo hybrid_settings_field_id( 'superfish_js' ); ?>"><?php _e( 'JavaScript:', $domain ); ?></label></th>
<td>
- <input id="superfish_js" name="superfish_js" type="checkbox" <?php if ( hybrid_get_setting( 'superfish_js' ) ) echo 'checked="checked"'; ?> value="true" />
- <label for="superfish_js"><?php _e( 'Include the drop-down menu JavaScript.', $domain ); ?></label>
+ <input id="<?php echo hybrid_settings_field_id( 'superfish_js' ); ?>" name="<?php echo hybrid_settings_field_name( 'superfish_js' ); ?>" type="checkbox" <?php if ( hybrid_get_setting( 'superfish_js' ) ) echo 'checked="checked"'; ?> value="true" />
+ <label for="<?php echo hybrid_settings_field_id( 'superfish_js' ); ?>"><?php _e( 'Include the drop-down menu JavaScript.', $domain ); ?></label>
</td>
</tr>
<?php if ( 'hybrid' == get_template() ) { // Only show if 'hybrid' is the template ?>
<tr>
- <th><label for="use_menus"><?php _e( 'Menus:', $domain ); ?></label></th>
+ <th><label for="<?php echo hybrid_settings_field_id( 'use_menus' ); ?>"><?php _e( 'Menus:', $domain ); ?></label></th>
<td>
- <input id="use_menus" name="use_menus" type="checkbox" <?php if ( hybrid_get_setting( 'use_menus' ) ) echo 'checked="checked"'; ?> value="true" />
- <label for="use_menus"><?php _e( 'Use the WordPress 3.0+ menu system? Child themes built prior to <em>Hybrid</em> 0.8 may need to be updated to use this.', $domain ); ?></label>
+ <input id="<?php echo hybrid_settings_field_id( 'use_menus' ); ?>" name="<?php echo hybrid_settings_field_name( 'use_menus' ); ?>" type="checkbox" <?php if ( hybrid_get_setting( 'use_menus' ) ) echo 'checked="checked"'; ?> value="true" />
+ <label for="<?php echo hybrid_settings_field_id( 'use_menus' ); ?>"><?php _e( 'Use the WordPress 3.0+ menu system? Child themes built prior to <em>Hybrid</em> 0.8 may need to be updated to use this.', $domain ); ?></label>
</td>
</tr>
<?php } ?>
<tr>
- <th><label for="feed_url"><?php _e( 'Feeds:', $domain ); ?></label></th>
+ <th><label for="<?php echo hybrid_settings_field_id( 'feed_url' ); ?>"><?php _e( 'Feeds:', $domain ); ?></label></th>
<td>
- <input id="feed_url" name="feed_url" type="text" value="<?php echo hybrid_get_setting( 'feed_url' ); ?>" size="30" /><br />
+ <input id="<?php echo hybrid_settings_field_id( 'feed_url' ); ?>" name="<?php echo hybrid_settings_field_name( 'feed_url' ); ?>" type="text" value="<?php echo hybrid_get_setting( 'feed_url' ); ?>" size="30" /><br />
<?php _e( 'If you have an alternate feed address, such as one from <a href="http://feedburner.com" title="Feedburner">Feedburner</a>, you can enter it here to have the theme redirect your feed links.', $domain ); ?><br /><br />
- <input id="feeds_redirect" name="feeds_redirect" type="checkbox" <?php if ( hybrid_get_setting( 'feeds_redirect' ) ) echo 'checked="checked"'; ?> value="true" />
- <label for="feeds_redirect"><?php _e( 'Direct category, tag, search, and author feeds to your alternate feed address?', $domain ); ?></label>
+ <input id="<?php echo hybrid_settings_field_id( 'feeds_redirect' ); ?>" name="<?php echo hybrid_settings_field_name( 'feeds_redirect' ); ?>" type="checkbox" <?php if ( hybrid_get_setting( 'feeds_redirect' ) ) echo 'checked="checked"'; ?> value="true" />
+ <label for="<?php echo hybrid_settings_field_id( 'feeds_redirect' ); ?>"><?php _e( 'Direct category, tag, search, and author feeds to your alternate feed address?', $domain ); ?></label>
</td>
</tr>
<tr>
- <th><label for="seo_plugin"><acronym title="<?php _e( 'Search Engine Optimization', $domain ); ?>"><?php _e( 'SEO:', $domain ); ?></acronym></label></th>
+ <th><label for="<?php echo hybrid_settings_field_id( 'seo_plugin' ); ?>"><acronym title="<?php _e( 'Search Engine Optimization', $domain ); ?>"><?php _e( 'SEO:', $domain ); ?></acronym></label></th>
<td>
- <input id="seo_plugin" name="seo_plugin" type="checkbox" <?php if ( hybrid_get_setting( 'seo_plugin' ) ) echo 'checked="checked"'; ?> value="true" />
- <label for="seo_plugin"><?php _e( 'Are you using an <acronym title="Search Engine Optimization">SEO</acronym> plugin? Select this to disable the theme\'s meta and indexing features.', $domain ); ?></label>
+ <input id="<?php echo hybrid_settings_field_id( 'seo_plugin' ); ?>" name="<?php echo hybrid_settings_field_name( 'seo_plugin' ); ?>" type="checkbox" <?php if ( hybrid_get_setting( 'seo_plugin' ) ) echo 'checked="checked"'; ?> value="true" />
+ <label for="<?php echo hybrid_settings_field_id( 'seo_plugin' ); ?>"><?php _e( 'Are you using an <acronym title="Search Engine Optimization">SEO</acronym> plugin? Select this to disable the theme\'s meta and indexing features.', $domain ); ?></label>
</td>
</tr>

0 comments on commit f4f81ef

Please sign in to comment.