Make WordPress Core

Ticket #26285: 26285.1.diff

File 26285.1.diff, 5.2 KB (added by designsimply, 11 years ago)
  • wp-admin/themes.php

     
    3535$title = __('Manage Themes');
    3636$parent_file = 'themes.php';
    3737
    38 if ( current_user_can( 'switch_themes' ) ) :
     38// Help tab: Overview
     39if ( current_user_can( 'switch_themes' ) ) {
     40        $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>' .
     41                '<p>' . __( 'From this screen you can:' ) . '</p>' .
     42                '<ul><li>' . __( 'Hover or tap to see Activate and Preview buttons' ) . '</li>' .
     43                '<ul><li>' . __( 'Click on the theme to see the theme name, version, author, description, tags, and the Delete link' ) . '</li>' .
     44                '<ul><li>' . __( 'Click Customize for the current theme or Preview for any other theme to see a live preview' ) . '</li></ul>' .
     45                '<p>' . __( 'The current theme is the first listed.' ) . '</p>';
    3946
    40 $help_manage = '<p>' . __('Aside from the default theme included with your WordPress installation, themes are designed and developed by third parties.') . '</p>' .
    41         '<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>';
     47        get_current_screen()->add_help_tab( array(
     48                'id'      => 'overview',
     49                'title'   => __( 'Overview' ),
     50                'content' => $help_overview
     51        ) );
     52} // switch_themes
    4253
    43 get_current_screen()->add_help_tab( array(
    44         'id'      => 'overview',
    45         'title'   => __('Overview'),
    46         'content' => $help_manage
    47 ) );
    48 
     54// Help tab: Adding Themes
    4955if ( current_user_can( 'install_themes' ) ) {
    5056        if ( is_multisite() ) {
    5157                $help_install = '<p>' . __('Installing themes on Multisite can only be done from the Network Admin section.') . '</p>';
     
    5864                'title'   => __('Adding Themes'),
    5965                'content' => $help_install
    6066        ) );
    61 }
     67} // install_themes
    6268
    63 endif; // switch_themes
    64 
     69// Help tab: Previewing and Customizing
    6570if ( current_user_can( 'edit_theme_options' ) ) {
    6671        $help_customize =
    67                 '<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>'.
    68                 '<p>' . __('The theme being previewed is fully interactive &mdash; navigate to different pages to see how the theme handles posts, archives, and other page templates.') . '</p>' .
    69                 '<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 &amp; Activate" button at the top of the left-hand pane.') . '</p>' .
    70                 '<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>';
     72                '<p>' . __( 'Tap or hover on any theme then click the 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 preview button at the bottom of the theme details screen. Any installed theme can be previewed and customized in this way.' ) . '</p>'.
     73                '<p>' . __( 'The theme being previewed is fully interactive &mdash; 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 &amp; Activate button above the menu.' ) . '</p>' .
     74                '<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>';
    7175
    7276        get_current_screen()->add_help_tab( array(
    7377                'id'            => 'customize-preview-themes',
    74                 'title'         => __('Previewing and Customizing'),
     78                'title'         => __( 'Previewing and Customizing' ),
    7579                'content'       => $help_customize
    7680        ) );
    77 }
     81} // edit_theme_options
    7882
    7983get_current_screen()->set_help_sidebar(
    80         '<p><strong>' . __('For more information:') . '</strong></p>' .
    81         '<p>' . __('<a href="http://codex.wordpress.org/Using_Themes" target="_blank">Documentation on Using Themes</a>') . '</p>' .
    82         '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     84        '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
     85        '<p>' . __( '<a href="http://codex.wordpress.org/Using_Themes" target="_blank">Documentation on Using Themes</a>' ) . '</p>' .
     86        '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
    8387);
    8488
    8589if ( current_user_can( 'switch_themes' ) ) {