WordPress.org

Make WordPress Core

Changeset 20736


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

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

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/theme-install.php

    r20419 r20736  
    3737do_action('install_themes_pre_' . $tab); //Used to override the general interface, Eg, install or theme information.
    3838
    39 $help = '<p>' . sprintf(__('You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the <a href="%s" target="_blank">WordPress.org Theme Directory</a>. These themes are designed and developed by third parties, are available free of charge, and are compatible with the license WordPress uses.'), 'http://wordpress.org/extend/themes/') . '</p>';
    40 $help .= '<p>' . __('You can Search for themes by keyword, author, or tag, or can get more specific and search by criteria listed in the feature filter. Alternately, you can browse the themes that are Featured, Newest, or Recently Updated. When you find a theme you like, you can preview it or install it.') . '</p>';
    41 $help .= '<p>' . __('You can Upload a theme manually if you have already downloaded its ZIP archive onto your computer (make sure it is from a trusted and original source). You can also do it the old-fashioned way and copy a downloaded theme&#8217;s folder via FTP into your <code>/wp-content/themes</code> directory.') . '</p>';
     39$help_overview =
     40    '<p>' . sprintf(__('You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the <a href="%s" target="_blank">WordPress.org Theme Directory</a>. These themes are designed and developed by third parties, are available free of charge, and are compatible with the license WordPress uses.'), 'http://wordpress.org/extend/themes/') . '</p>' .
     41    '<p>' . __('You can Search for themes by keyword, author, or tag, or can get more specific and search by criteria listed in the feature filter. Alternately, you can browse the themes that are Featured, Newest, or Recently Updated. When you find a theme you like, you can preview it or install it.') . '</p>' .
     42    '<p>' . __('You can Upload a theme manually if you have already downloaded its ZIP archive onto your computer (make sure it is from a trusted and original source). You can also do it the old-fashioned way and copy a downloaded theme&#8217;s folder via FTP into your <code>/wp-content/themes</code> directory.') . '</p>';
    4243
    4344get_current_screen()->add_help_tab( array(
    4445    'id'      => 'overview',
    4546    'title'   => __('Overview'),
    46     'content' => $help
     47    'content' => $help_overview
     48) );
     49
     50$help_installing =
     51    '<p>' . __('Once you have generated a list of themes, you can preview and install any of them. Click on the thumbnail of the theme you&#8217;re interested in previewing. It will open up in a full-screen Preview page to give you a better idea of how that theme will look.') . '</p>' .
     52    '<p>' . __('To install the theme so you can preview it with your site&#8217;s content and customize its theme options, click the "Install" button at the top of the left-hand pane. The theme files will be downloaded to your website automatically. When this is complete, the theme is now available for activation, which you can do by clicking the "Activate" link, or by navigating to your Installed Themes page and clicking the "Customize" link under any installed theme&#8217;s thumbnail image.') . '</p>';
     53
     54get_current_screen()->add_help_tab( array(
     55    'id'      => 'installing',
     56    'title'   => __('Previewing and Installing'),
     57    'content' => $help_installing
    4758) );
    4859
  • 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.