Make WordPress Core


Ignore:
Timestamp:
05/07/2012 05:26:16 PM (12 years ago)
Author:
ryan
Message:

Contextual help updates for themes.php and theme-install.php. Props TomAuger. fixes #20515

File:
1 edited

Legend:

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

    r20716 r20736  
    3939
    4040$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 Preview link. To change themes, click the Activate link.') . '</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 Customize link (see "Previewing and Customizing", below). To change themes, click the Activate link.') . '</p>';
    4242
    4343get_current_screen()->add_help_tab( array(
    4444    'id'      => 'overview',
    4545    'title'   => __('Overview'),
    46     'content' => $help_manage,
     46    'content' => $help_manage
    4747) );
    4848
     
    5757        'id'      => 'adding-themes',
    5858        'title'   => __('Adding Themes'),
    59         'content' => $help_install,
     59        'content' => $help_install
     60    ) );
     61}
     62
     63if ( current_user_can( 'edit_theme_options' ) ) {
     64    $help_customize =
     65        '<p>' . __('Click on the "Customize" 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>'.
     66        '<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>' .
     67        '<p>' . __('In the left-hand pane of the Theme Customizer 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 and Activate" button at the bottom of the left-hand sidebar.') . '</p>' .
     68        '<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>';
     69       
     70    get_current_screen()->add_help_tab( array(
     71        'id'        => 'customize-preview-themes',
     72        'title'     => __('Previewing and Customizing'),
     73        'content'   => $help_customize
    6074    ) );
    6175}
Note: See TracChangeset for help on using the changeset viewer.