X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/wordpress.git/blobdiff_plain/cc7b1505cd9fafd87c3672f669e13e98b0c544f7..6c8f14c09105d0afa4c1574215c59b5021040e76:/wp-admin/index.php?ds=sidebyside diff --git a/wp-admin/index.php b/wp-admin/index.php index a951efd8..dd429e7f 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -1,172 +1,138 @@ - -
' . __( 'Welcome to your WordPress Dashboard! This is the screen you will see when you log in to your site, and gives you access to all the site management features of WordPress. You can get help for any screen by clicking the Help tab in the upper corner.' ) . '
'; + +// Not using chaining here, so as to be parseable by PHP4. +$screen = get_current_screen(); + +$screen->add_help_tab( array( + 'id' => 'overview', + 'title' => __( 'Overview' ), + 'content' => $help, +) ); + +// Help tabs + +$help = '' . __('The left-hand navigation menu provides links to all of the WordPress administration screens, with submenu items displayed on hover. You can minimize this menu to a narrow icon strip by clicking on the Collapse Menu arrow at the bottom.') . '
'; +$help .= '' . __('Links in the Toolbar at the top of the screen connect your dashboard and the front end of your site, and provide access to your profile and helpful WordPress information.') . '
'; + +$screen->add_help_tab( array( + 'id' => 'help-navigation', + 'title' => __('Navigation'), + 'content' => $help, +) ); + +$help = '' . __('You can use the following controls to arrange your Dashboard screen to suit your workflow. This is true on most other administration screens as well.') . '
'; +$help .= '' . __('Screen Options - Use the Screen Options tab to choose which Dashboard boxes to show, and how many columns to display.') . '
'; +$help .= '' . __('Drag and Drop - To rearrange the boxes, drag and drop by clicking on the title bar of the selected box and releasing when you see a gray dotted-line rectangle appear in the location you want to place the box.') . '
'; +$help .= '' . __('Box Controls - Click the title bar of the box to expand or collapse it. In addition, some boxes have configurable content, and will show a “Configure” link in the title bar if you hover over it.') . '
'; + +$screen->add_help_tab( array( + 'id' => 'help-layout', + 'title' => __('Layout'), + 'content' => $help, +) ); + +$help = '' . __('The boxes on your Dashboard screen are:') . '
'; +if ( current_user_can( 'edit_posts' ) ) + $help .= '' . __('Right Now - Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.') . '
'; +if ( current_user_can( 'moderate_comments' ) ) + $help .= '' . __('Recent Comments - Shows the most recent comments on your posts (configurable, up to 30) and allows you to moderate them.') . '
'; +if ( current_user_can( 'publish_posts' ) ) + $help .= '' . __('Incoming Links - Shows links to your site found by Google Blog Search.') . '
'; +if ( current_user_can( get_post_type_object( 'post' )->cap->create_posts ) ) { + $help .= '' . __('QuickPress - Allows you to create a new post and either publish it or save it as a draft.') . '
'; + $help .= '' . __('Recent Drafts - Displays links to the 5 most recent draft posts you’ve started.') . '
'; } -} -?> -' . __('WordPress Blog - Latest news from the official WordPress project.') . '
'; +$help .= '' . __('Other WordPress News - Shows the WordPress Planet feed. You can configure it to show a different feed of your choosing.') . '
'; +if ( ! is_multisite() && current_user_can( 'install_plugins' ) ) + $help .= '' . __('Plugins - Features the most popular, newest, and recently updated plugins from the WordPress.org Plugin Directory.') . '
'; +if ( current_user_can( 'edit_theme_options' ) ) + $help .= '' . __('Welcome - Shows links for some of the most common tasks when setting up a new site.') . '
'; +$screen->add_help_tab( array( + 'id' => 'help-content', + 'title' => __('Content'), + 'content' => $help, +) ); -get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 5") ) : -?> -' . __( 'For more information:' ) . '
' . + '' . __( 'Documentation on Dashboard' ) . '
' . + '' . __( 'Support Forums' ) . '
' +); -posts and %3$s comments, contained within %5$s categories.'), $numposts, 'edit.php', $numcomms, 'edit-comments.php', $numcats, 'categories.php'); ?>
-great documentation or if that doesn't help visit the support forums."); ?>
-items) && 0 != count($rss->items) ) { -?> - -items = array_slice($rss->items, 0, 3); -foreach ($rss->items as $item ) { -?> -