From a122cd0f617c0df449dc5032741e0669f93a050a Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Tue, 29 Nov 2011 17:34:08 +0000 Subject: [PATCH] Update help text on themes page. props Ipstenu, see #19020. git-svn-id: https://develop.svn.wordpress.org/trunk@19473 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/themes.php | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 52c6a59d17..0fac69fd56 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -37,12 +37,28 @@ $parent_file = 'themes.php'; if ( current_user_can( 'switch_themes' ) ) : -$help = '

' . __('Aside from the default theme included with your WordPress installation, themes are designed and developed by third parties.') . '

'; -$help .= '

' . __('You can see your active theme at the top of the screen. Below are the other themes you have installed that are not currently in use. You can see what your site would look like with one of these themes by clicking the Preview link. To change themes, click the Activate link.') . '

'; -if ( current_user_can('install_themes') ) - $help .= '

' . sprintf(__('If you would like to see more themes to choose from, click on the “Install Themes” tab and you will be able to browse or search for additional themes from the WordPress.org Theme Directory. Themes in the WordPress.org Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!'), 'http://wordpress.org/extend/themes/') . '

'; +$help_manage = '

' . __('Aside from the default theme included with your WordPress installation, themes are designed and developed by third parties.') . '

' . + '

' . __('You can see your active theme at the top of the screen. Below are the other themes you have installed that are not currently in use. You can see what your site would look like with one of these themes by clicking the Preview link. To change themes, click the Activate link.') . '

'; -add_contextual_help($current_screen, $help); +get_current_screen()->add_help_tab( array( + 'id' => 'manage-themes', + 'title' => __('Manage Themes'), + 'content' => $help_manage, +) ); + +if ( current_user_can( 'install_themes' ) ) { + if ( is_multisite() ) { + $help_install = '

' . __('Installing themes on MultiSite can only be done from the Network Admin section.') . '

'; + } else { + $help_install = '

' . sprintf( __('If you would like to see more themes to choose from, click on the “Install Themes” tab and you will be able to browse or search for additional themes from the WordPress.org Theme Directory. Themes in the WordPress.org Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!'), 'http://wordpress.org/extend/themes/' ) . '

'; + } + + get_current_screen()->add_help_tab( array( + 'id' => 'install-themes', + 'title' => __('Install Themes'), + 'content' => $help_install, + ) ); +} get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' .