Make WordPress Core

Changeset 19435


Ignore:
Timestamp:
11/23/2011 11:02:22 PM (13 years ago)
Author:
ryan
Message:

Help tabs. Props chexee. see #19020

Location:
trunk/wp-admin
Files:
3 edited

Legend:

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

    r19321 r19435  
    150150
    151151if ( 'post' == $post_type ) {
    152     add_contextual_help($current_screen,
    153     '<p>' . __('You can customize the display of this screen in a number of ways:') . '</p>' .
    154     '<ul>' .
    155     '<li>' . __('You can hide/display columns based on your needs and decide how many posts to list per screen using the Screen Options tab.') . '</li>' .
    156     '<li>' . __('You can filter the list of posts by post status using the text links in the upper left to show All, Published, Draft, or Trashed posts. The default view is to show all posts.') . '</li>' .
    157     '<li>' . __('You can view posts in a simple title list or with an excerpt. Choose the view you prefer by clicking on the icons at the top of the list on the right.') . '</li>' .
    158     '<li>' . __('You can refine the list to show only posts in a specific category or from a specific month by using the dropdown menus above the posts list. Click the Filter button after making your selection. You also can refine the list by clicking on the post author, category or tag in the posts list.') . '</li>' .
    159     '</ul>' .
    160     '<p>' . __('Hovering over a row in the posts list will display action links that allow you to manage your post. You can perform the following actions:') . '</p>' .
    161     '<ul>' .
    162     '<li>' . __('Edit takes you to the editing screen for that post. You can also reach that screen by clicking on the post title.') . '</li>' .
    163     '<li>' . __('Quick Edit provides inline access to the metadata of your post, allowing you to update post details without leaving this screen.') . '</li>' .
    164     '<li>' . __('Trash removes your post from this list and places it in the trash, from which you can permanently delete it.') . '</li>' .
    165     '<li>' . __('Preview will show you what your draft post will look like if you publish it. View will take you to your live site to view the post. Which link is available depends on your post&#8217;s status.') . '</li>' .
    166     '</ul>' .
    167     '<p>' . __('You can also edit multiple posts at once. Select the posts you want to edit using the checkboxes, select Edit from the Bulk Actions menu and click Apply. You will be able to change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the x next to its name in the Bulk Edit area that appears.') . '</p>'
    168     );
     152    get_current_screen()->add_help_tab( array(
     153    'id'        => 'layout',
     154    'title'     => __('Layout'),
     155    'content'   =>
     156        '<p>' . __('You can customize the display of this screen in a number of ways:') . '</p>' .
     157            '<ul>' .
     158            '<li>' . __('You can hide/display columns based on your needs and decide how many posts to list per screen using the Screen Options tab.') . '</li>' .
     159            '<li>' . __('You can filter the list of posts by post status using the text links in the upper left to show All, Published, Draft, or Trashed posts. The default view is to show all posts.') . '</li>' .
     160            '<li>' . __('You can view posts in a simple title list or with an excerpt. Choose the view you prefer by clicking on the icons at the top of the list on the right.') . '</li>' .
     161            '<li>' . __('You can refine the list to show only posts in a specific category or from a specific month by using the dropdown menus above the posts list. Click the Filter button after making your selection. You also can refine the list by clicking on the post author, category or tag in the posts list.') . '</li>' .
     162            '</ul>'
     163    ) );
     164    get_current_screen()->add_help_tab( array(
     165    'id'        => 'action-links',
     166    'title'     => __('Action Links'),
     167    'content'   => 
     168        '<p>' . __('Hovering over a row in the posts list will display action links that allow you to manage your post. You can perform the following actions:') . '</p>' .
     169        '<ul>' .
     170        '<li>' . __('<strong>Edit</strong> takes you to the editing screen for that post. You can also reach that screen by clicking on the post title.') . '</li>' .
     171        '<li>' . __('<strong>Quick Edit</strong> provides inline access to the metadata of your post, allowing you to update post details without leaving this screen.') . '</li>' .
     172        '<li>' . __('<strong>Trash</strong> removes your post from this list and places it in the trash, from which you can permanently delete it.') . '</li>' .
     173        '<li>' . __('<strong>Preview</strong> will show you what your draft post will look like if you publish it. View will take you to your live site to view the post. Which link is available depends on your post&#8217;s status.') . '</li>' .
     174        '</ul>'
     175    ) );
     176    get_current_screen()->add_help_tab( array(
     177    'id'        => 'edit-multiple-posts',
     178    'title'     => __('Edit Multiple Posts'),
     179    'content'   =>
     180        '<p>' . __('You can also edit multiple posts at once. Select the posts you want to edit using the checkboxes, select Edit from the Bulk Actions menu and click Apply. You will be able to change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the x next to its name in the Bulk Edit area that appears.') . '</p>'
     181    ) );
    169182
    170183    get_current_screen()->set_help_sidebar(
     
    174187    );
    175188} elseif ( 'page' == $post_type ) {
    176     add_contextual_help($current_screen,
    177     '<p>' . __('Pages are similar to Posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest Pages under other Pages by making one the &#8220;Parent&#8221; of the other, creating a group of Pages.') . '</p>' .
    178     '<p>' . __('Managing Pages is very similar to managing Posts, and the screens can be customized in the same way.') . '</p>' .
    179     '<p>' . __('You can also perform the same types of actions, including narrowing the list by using the filters, acting on a Page using the action links that appear when you hover over a row, or using the Bulk Actions menu to edit the metadata for multiple Pages at once.') . '</p>'
    180     );
     189    get_current_screen()->add_help_tab( array(
     190    'id'        => 'overview',
     191    'title'     => __('Overview'),
     192    'content'   => 
     193        '<p>' . __('Pages are similar to Posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest Pages under other Pages by making one the &#8220;Parent&#8221; of the other, creating a group of Pages.') . '</p>'
     194    ) );
     195    get_current_screen()->add_help_tab( array(
     196    'id'        => 'managing-pages',
     197    'title'     => __('Managing Pages'),
     198    'content'   =>     
     199        '<p>' . __('Managing Pages is very similar to managing Posts, and the screens can be customized in the same way.') . '</p>' .
     200        '<p>' . __('You can also perform the same types of actions, including narrowing the list by using the filters, acting on a Page using the action links that appear when you hover over a row, or using the Bulk Actions menu to edit the metadata for multiple Pages at once.') . '</p>'
     201    ) );
    181202
    182203    get_current_screen()->set_help_sidebar(
  • trunk/wp-admin/media-upload.php

    r19306 r19435  
    6262    $parent_file = 'upload.php';
    6363
    64     add_contextual_help( $current_screen,
    65 '<p>' . __('You can upload media files here without creating a post first. This allows you to upload files to use with posts and pages later and/or to get a web link for a particular file that you can share.') . '</p>' .
     64    get_current_screen()->add_help_tab( array(
     65    'id'        => 'adding-media',
     66    'title'     => __('Adding Media'),
     67    'content'   =>
     68        '<p>' . __('You can upload media files here without creating a post first. This allows you to upload files to use with posts and pages later and/or to get a web link for a particular file that you can share.') . '</p>'
     69    ) );
     70    get_current_screen()->add_help_tab( array(
     71    'id'        => 'editing-new-media',
     72    'title'     => __('Editing New Media'),
     73    'content'   =>
    6674        '<p>' . __('There are two options for uploading files: <em>Select Files</em> will open the Flash-based uploader (multiple file upload allowed), or you can use the <em>Browser Uploader</em>. Clicking <em>Select Files</em> opens a navigation window showing you files in your operating system. Selecting <em>Open</em> after clicking on the file you want activates a progress bar on the uploader screen. Basic image editing is available after upload is complete. Make sure you click <em>Save</em> before leaving this screen.') . '</p>'
    67     );
     75    ) );
    6876
    6977    get_current_screen()->set_help_sidebar(
  • trunk/wp-admin/upload.php

    r19119 r19435  
    146146add_screen_option( 'per_page', array('label' => _x( 'Media items', 'items per page (screen options)' )) );
    147147
    148 add_contextual_help( $current_screen,
     148get_current_screen()->add_help_tab( array(
     149'id'        => 'overview',
     150'title'     => __('Overview'),
     151'content'   => 
    149152    '<p>' . __( 'All the files you&#8217;ve uploaded are listed in the Media Library, with the most recent uploads listed first. You can use the <em>Screen Options</em> tab to customize the display of this screen.' ) . '</p>' .
    150     '<p>' . __( 'You can narrow the list by file type/status using the text link filters at the top of the screen. You also can refine the list by date using the dropdown menu above the media table.' ) . '</p>' .
    151     '<p>' . __( 'Hovering over a row reveals action links: <em>Edit</em>, <em>Delete Permanently</em>, and <em>View</em>. Clicking <em>Edit</em> or on the media file&#8217;s name displays a simple screen to edit that individual file&#8217;s metadata. Clicking <em>Delete Permanently</em> will delete the file from the media library (as well as from any posts to which it is currently attached). <em>View</em> will take you to the display page for that file.' ) . '</p>' .
     153    '<p>' . __( 'You can narrow the list by file type/status using the text link filters at the top of the screen. You also can refine the list by date using the dropdown menu above the media table.' ) . '</p>'
     154) );
     155get_current_screen()->add_help_tab( array(
     156'id'        => 'hover-actions',
     157'title'     => __('Hover Actions'),
     158'content'   =>
     159    '<p>' . __( 'Hovering over a row reveals action links: <em>Edit</em>, <em>Delete Permanently</em>, and <em>View</em>. Clicking <em>Edit</em> or on the media file&#8217;s name displays a simple screen to edit that individual file&#8217;s metadata. Clicking <em>Delete Permanently</em> will delete the file from the media library (as well as from any posts to which it is currently attached). <em>View</em> will take you to the display page for that file.' ) . '</p>'
     160) );
     161get_current_screen()->add_help_tab( array(
     162'id'        => 'attach-media-files',
     163'title'     => __('Attach Media Files'),
     164'content'   =>
    152165    '<p>' . __( 'If a media file has not been attached to any post, you will see that in the <em>Attached To</em> column, and can click on <em>Attach File</em> to launch a small popup that will allow you to search for a post and attach the file.' ) . '</p>'
    153 );
     166) );
    154167
    155168get_current_screen()->set_help_sidebar(
Note: See TracChangeset for help on using the changeset viewer.