Make WordPress Core

Ticket #20515: 3.4_Theme_Help_Tabs-root.patch

File 3.4_Theme_Help_Tabs-root.patch, 6.7 KB (added by TomAuger, 12 years ago)

Still getting used to SVN. Here's a root-relative patch

  • wp-admin/theme-install.php

     
    3636
    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
    4748) );
    4849
     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\'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\'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\'s thumbnail image.') . '</p>';
     53
     54get_current_screen()->add_help_tab( array(
     55        'id'      => 'installing',
     56        'title'   => __('Previewing and Installing'),
     57        'content' => $help_installing
     58) );
     59
    4960get_current_screen()->set_help_sidebar(
    5061        '<p><strong>' . __('For more information:') . '</strong></p>' .
    5162        '<p>' . __('<a href="http://codex.wordpress.org/Using_Themes#Adding_New_Themes" target="_blank">Documentation on Adding New Themes</a>') . '</p>' .
  • wp-admin/themes.php

     
    3838if ( current_user_can( 'switch_themes' ) ) :
    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
    4949if ( current_user_can( 'install_themes' ) ) {
     
    5656        get_current_screen()->add_help_tab( array(
    5757                'id'      => 'adding-themes',
    5858                'title'   => __('Adding Themes'),
    59                 'content' => $help_install,
     59                'content' => $help_install
    6060        ) );
    6161}
    6262
     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
     74        ) );
     75}
     76
    6377get_current_screen()->set_help_sidebar(
    6478        '<p><strong>' . __('For more information:') . '</strong></p>' .
    6579        '<p>' . __('<a href="http://codex.wordpress.org/Using_Themes" target="_blank">Documentation on Using Themes</a>') . '</p>' .