diff --git a/wp-content/themes/twentyeleven/inc/theme-options.php b/wp-content/themes/twentyeleven/inc/theme-options.php index 8e8e491277..213841e1a8 100644 --- a/wp-content/themes/twentyeleven/inc/theme-options.php +++ b/wp-content/themes/twentyeleven/inc/theme-options.php @@ -74,20 +74,32 @@ function twentyeleven_option_page_capability( $capability ) { add_filter( 'option_page_capability_twentyeleven_options', 'twentyeleven_option_page_capability' ); /** - * Add our theme options page to the admin menu. + * Add our theme options page to the admin menu, including some help documentation. * * This function is attached to the admin_menu action hook. * * @since Twenty Eleven 1.0 */ function twentyeleven_theme_options_add_page() { - add_theme_page( + $theme_page = add_theme_page( __( 'Theme Options', 'twentyeleven' ), // Name of page __( 'Theme Options', 'twentyeleven' ), // Label in menu 'edit_theme_options', // Capability required 'theme_options', // Menu slug, used to uniquely identify the page 'theme_options_render_page' // Function that renders the options page ); + $help = '
' . __( '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:' ) . '
' . + '' . __( 'Remember to click "Save Changes" to save any changes you have made to the theme options.' ) . '
' . + '' . __('For more information:') . '
' . + '' . __( 'Documentation on Theme Options' ) . '
' . + '' . __( 'Support Forums' ) . '
'; + + add_contextual_help( $theme_page, $help ); } add_action( 'admin_menu', 'twentyeleven_theme_options_add_page' ); @@ -132,7 +144,7 @@ function twentyeleven_layouts() { ), 'content' => array( 'value' => 'content', - 'label' => __( 'One-column, no Sidebar', 'twentyeleven' ), + 'label' => __( 'One-column, no sidebar', 'twentyeleven' ), 'thumbnail' => get_template_directory_uri() . '/inc/images/content.png', ), ); @@ -220,7 +232,7 @@ function theme_options_render_page() { -