Better theme page help. Fixes #9745 based on patch from demetris.

git-svn-id: http://svn.automattic.com/wordpress/trunk@11270 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-05-11 18:59:09 +00:00
parent 5b8b047b79
commit 94c4f7ce02

View File

@ -28,6 +28,12 @@ if ( isset($_GET['action']) ) {
$title = __('Manage Themes');
$parent_file = 'themes.php';
$help = '<p>' . __('Themes give your WordPress style. Once a theme is installed, you may preview it, activate it or deactivate it here.') . '</p>';
$help .= '<p>' . sprintf(__('You can find additional themes for your site by using the new <a href="%1$s">Theme Browser/Installer</a> functionality or by browsing the <a href="http://wordpress.org/extend/themes/">WordPress Theme Directory</a> directly and installing manually. To install a theme <em>manually</em>, <a href="%2$s">upload its ZIP archive with the new uploader</a> or copy its folder via FTP into your <code>wp-content/themes</code> directory.'), 'theme-install.php', 'theme-install.php?tab=upload' ) . '</p>';
$help .= '<p>' . __('Once a theme is uploaded, you should see it on this page.') . '</p>' ;
add_contextual_help('themes', $help);
add_thickbox();
wp_enqueue_script( 'theme-preview' );
@ -277,10 +283,6 @@ if ( count($broken_themes) ) {
<?php
}
?>
<h3><?php _e('Get More Themes'); ?></h3>
<p><?php _e('You can find additional themes for your site in the <a href="http://wordpress.org/extend/themes/">WordPress theme directory</a>. To install a theme you generally just need to upload the theme folder into your <code>wp-content/themes</code> directory. Once a theme is uploaded, you should see it on this page.'); ?></p>
</div>
<?php require('admin-footer.php'); ?>