Themes: Add a updated Help text. Props designsimply & hanni. See #26285
git-svn-id: https://develop.svn.wordpress.org/trunk@26517 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
eb2767a578
commit
0ef7e951d6
|
@ -35,17 +35,23 @@ if ( current_user_can( 'switch_themes' ) && isset($_GET['action'] ) ) {
|
|||
$title = __('Manage Themes');
|
||||
$parent_file = 'themes.php';
|
||||
|
||||
if ( current_user_can( 'switch_themes' ) ) :
|
||||
|
||||
$help_manage = '<p>' . __('Aside from the default theme included with your WordPress installation, themes are designed and developed by third parties.') . '</p>' .
|
||||
'<p>' . __('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 Live Preview link (see "Previewing and Customizing" help tab). To change themes, click the Activate link.') . '</p>';
|
||||
// Help tab: Overview
|
||||
if ( current_user_can( 'switch_themes' ) ) {
|
||||
$help_overview = '<p>' . __( 'This screen is used for managing your installed themes. Aside from the default theme(s) included with your WordPress installation, themes are designed and developed by third parties.' ) . '</p>' .
|
||||
'<p>' . __( 'From this screen you can:' ) . '</p>' .
|
||||
'<ul><li>' . __( 'Hover or tap to see Activate and Live Preview buttons' ) . '</li>' .
|
||||
'<li>' . __( 'Click on the theme to see the theme name, version, author, description, tags, and the Delete link' ) . '</li>' .
|
||||
'<li>' . __( 'Click Customize for the current theme or Live Preview for any other theme to see a live preview' ) . '</li></ul>' .
|
||||
'<p>' . __( 'The current theme is displayed highlighted as the first theme.' ) . '</p>';
|
||||
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'overview',
|
||||
'title' => __( 'Overview' ),
|
||||
'content' => $help_manage
|
||||
'content' => $help_overview
|
||||
) );
|
||||
} // switch_themes
|
||||
|
||||
// Help tab: Adding Themes
|
||||
if ( current_user_can( 'install_themes' ) ) {
|
||||
if ( is_multisite() ) {
|
||||
$help_install = '<p>' . __('Installing themes on Multisite can only be done from the Network Admin section.') . '</p>';
|
||||
|
@ -58,23 +64,21 @@ if ( current_user_can( 'install_themes' ) ) {
|
|||
'title' => __('Adding Themes'),
|
||||
'content' => $help_install
|
||||
) );
|
||||
}
|
||||
|
||||
endif; // switch_themes
|
||||
} // install_themes
|
||||
|
||||
// Help tab: Previewing and Customizing
|
||||
if ( current_user_can( 'edit_theme_options' ) ) {
|
||||
$help_customize =
|
||||
'<p>' . __('Click on the "Live Preview" link under any theme to preview that theme and change theme options in a separate, full-screen view. Any installed theme can be previewed and customized in this way.') . '</p>'.
|
||||
'<p>' . __('The theme being previewed is fully interactive — navigate to different pages to see how the theme handles posts, archives, and other page templates.') . '</p>' .
|
||||
'<p>' . __('In the left-hand pane you can edit the theme settings. The settings will differ, depending on what theme features the theme being previewed supports. To accept the new settings and activate the theme all in one step, click the "Save & Activate" button at the top of the left-hand pane.') . '</p>' .
|
||||
'<p>' . __('When previewing on smaller monitors, you can use the "Collapse" icon at the bottom of the left-hand pane. This will hide the pane, giving you more room to preview your site in the new theme. To bring the pane back, click on the Collapse icon again.') . '</p>';
|
||||
'<p>' . __( 'Tap or hover on any theme then click the Live Preview button to see a live preview of that theme and change theme options in a separate, full-screen view. You can also find a Live Preview button at the bottom of the theme details screen. Any installed theme can be previewed and customized in this way.' ) . '</p>'.
|
||||
'<p>' . __( 'The theme being previewed is fully interactive — navigate to different pages to see how the theme handles posts, archives, and other page templates. The settings may differ depending on what theme features the theme being previewed supports. To accept the new settings and activate the theme all in one step, click the Save & Activate button above the menu.' ) . '</p>' .
|
||||
'<p>' . __( 'When previewing on smaller monitors, you can use the collapse icon at the bottom of the left-hand pane. This will hide the pane, giving you more room to preview your site in the new theme. To bring the pane back, click on the collapse icon again.' ) . '</p>';
|
||||
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'customize-preview-themes',
|
||||
'title' => __( 'Previewing and Customizing' ),
|
||||
'content' => $help_customize
|
||||
) );
|
||||
}
|
||||
} // edit_theme_options
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
|
|
Loading…
Reference in New Issue