- Timestamp:
- 12/02/2011 04:31:01 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/inc/theme-options.php
r19502 r19538 49 49 50 50 // Register our settings field group 51 add_settings_section( 51 add_settings_section( 52 52 'general', // Unique identifier for the settings section 53 53 '', // Section title (we don't want one) 54 '__return_false', // Section callback (we don't want anything) 54 '__return_false', // Section callback (we don't want anything) 55 55 'theme_options' // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 56 56 ); 57 57 58 58 // Register our individual settings fields 59 add_settings_field( 59 add_settings_field( 60 60 'color_scheme', // Unique identifier for the field for this section 61 61 __( 'Color Scheme', 'twentyeleven' ), // Setting field label … … 65 65 ); 66 66 67 add_settings_field( 'link_color', __( 'Link Color', 'twentyeleven' ), 'twentyeleven_settings_field_link_color', 'theme_options', 'general' );68 add_settings_field( 'layout', __( ' Layout','twentyeleven' ), 'twentyeleven_settings_field_layout', 'theme_options', 'general' );67 add_settings_field( 'link_color', __( 'Link Color', 'twentyeleven' ), 'twentyeleven_settings_field_link_color', 'theme_options', 'general' ); 68 add_settings_field( 'layout', __( 'Default Layout', 'twentyeleven' ), 'twentyeleven_settings_field_layout', 'theme_options', 'general' ); 69 69 } 70 70 add_action( 'admin_init', 'twentyeleven_theme_options_init' ); … … 119 119 'title' => __( 'Overview', 'twentyeleven' ), 120 120 'id' => 'theme-options-help', 121 'content' => 121 'content' => 122 122 '<p>' . __( 'Some themes provide customization options that are grouped together on a Theme Options screen. If you change themes, options may change or disappear, as they are theme-specific. Your current theme, Twenty Eleven, provides the following Theme Options:', 'twentyeleven' ) . '</p>' . 123 123 '<ol>' . … … 238 238 /** 239 239 * Renders the Color Scheme setting field. 240 * 240 * 241 241 * @since Twenty Eleven 1.3 242 242 */ … … 262 262 /** 263 263 * Renders the Link Color setting field. 264 * 264 * 265 265 * @since Twenty Eleven 1.3 266 266 */ … … 279 279 /** 280 280 * Renders the Layout setting field. 281 * 281 * 282 282 * @since Twenty Eleven 1.3 283 283 */
Note: See TracChangeset
for help on using the changeset viewer.