Make WordPress Core

Changeset 26517


Ignore:
Timestamp:
12/02/2013 03:22:03 AM (11 years ago)
Author:
dd32
Message:

Themes: Add a updated Help text. Props designsimply & hanni. See #26285

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/themes.php

    r26508 r26517  
    3636$parent_file = 'themes.php';
    3737
    38 if ( current_user_can( 'switch_themes' ) ) :
    39 
    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>';
    42 
    43 get_current_screen()->add_help_tab( array(
    44     'id'      => 'overview',
    45     'title'   => __('Overview'),
    46     'content' => $help_manage
    47 ) );
    48 
     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 Live Preview buttons' ) . '</li>' .
     43        '<li>' . __( 'Click on the theme to see the theme name, version, author, description, tags, and the Delete link' ) . '</li>' .
     44        '<li>' . __( 'Click Customize for the current theme or Live Preview for any other theme to see a live preview' ) . '</li></ul>' .
     45        '<p>' . __( 'The current theme is displayed highlighted as the first theme.' ) . '</p>';
     46
     47    get_current_screen()->add_help_tab( array(
     48        'id'      => 'overview',
     49        'title'   => __( 'Overview' ),
     50        'content' => $help_overview
     51    ) );
     52} // switch_themes
     53
     54// Help tab: Adding Themes
    4955if ( current_user_can( 'install_themes' ) ) {
    5056    if ( is_multisite() ) {
     
    5965        'content' => $help_install
    6066    ) );
    61 }
    62 
    63 endif; // switch_themes
    64 
     67} // install_themes
     68
     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 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>'.
     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
Note: See TracChangeset for help on using the changeset viewer.