From 0575de32a738391bc8cb41e4c379b783e75c5227 Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@19473 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 52c6a59d1..0fac69fd5 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:') . '

' .