X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/4f9d63e13cd8c6e275797c75b401b074b82937bc..ac7339a398e6df50f722bc9616291ce5447d8e5e:/wp-admin/index.php diff --git a/wp-admin/index.php b/wp-admin/index.php index 789835c9..40c7c7f2 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -1,13 +1,13 @@ ' . __('Welcome to your WordPress Dashboard! You will find helpful tips in the Help tab of each screen to assist you as you get to know the application.') . '

' . - '

' . __('The left-hand navigation menu provides links to the administration screens in your WordPress application. You can expand or collapse navigation sections by clicking on the arrow that appears on the right side of each navigation item when you hover over it. You can also minimize the navigation menu to a narrow icon strip by clicking on the separator lines between navigation sections that end in double arrowheads; when minimized, the submenu items will be displayed on hover.') . '

' . - '

' . __('You can configure your dashboard by choosing which modules to display, how many columns to display them in, and where each module should be placed. You can hide/show modules and select the number of columns in the Screen Options tab. To rearrange the modules, drag and drop by clicking on the title bar of the selected module and releasing when you see a gray dotted-line box appear in the location you want to place the module. You can also expand or collapse each module by clicking once on the the module’s title bar. In addition, some modules are configurable, and will show a “Configure” link in the title bar when you hover over it.') . '

' . - '

' . __('The modules on your Dashboard screen are:') . '

' . - '

' . __('Right Now - Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.') . '

' . - '

' . __('Recent Comments - Shows the most recent comments on your posts (configurable, up to 30) and allows you to moderate them.') . '

' . - '

' . __('Incoming Links - Shows links to your site found by Google Blog Search.') . '

' . - '

' . __('QuickPress - Allows you to create a new post and either publish it or save it as a draft.') . '

' . - '

' . __('Recent Drafts - Displays links to the 5 most recent draft posts you’ve started.') . '

' . - '

' . __('Other WordPress News - Shows the feed from WordPress Planet. You can configure it to show a different feed of your choosing.') . '

' . - '

' . __('Plugins - Features the most popular, newest, and recently updated plugins from the WordPress.org Plugin Directory.') . '

' . - '

' . __('For more information:') . '

' . - '

' . __('Dashboard Documentation') . '

' . - '

' . __('Support Forums') . '

' -); +$help = '

' . __( '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.' ) . '

'; +$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. Some boxes added by plugins may have configurable content, and will show a “Configure” link in the title bar if you hover over it.' ) . '

'; -require_once('./admin-header.php'); +$screen->add_help_tab( array( + 'id' => 'help-layout', + 'title' => __( 'Layout' ), + 'content' => $help, +) ); -$today = current_time('mysql', 1); +$help = '

' . __( 'The boxes on your Dashboard screen are:' ) . '

'; +if ( current_user_can( 'edit_posts' ) ) + $help .= '

' . __( 'At A Glance - Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.' ) . '

'; + $help .= '

' . __( 'Activity - Shows the upcoming scheduled posts, recently published posts, and the most recent comments on your posts and allows you to moderate them.' ) . '

'; +if ( is_blog_admin() && current_user_can( 'edit_posts' ) ) + $help .= '

' . __( "Quick Draft - Allows you to create a new post and save it as a draft. Also displays links to the 5 most recent draft posts you've started." ) . '

'; +if ( ! is_multisite() && current_user_can( 'install_plugins' ) ) + $help .= '

' . __( 'WordPress News - Latest news from the official WordPress project, the WordPress Planet, and popular and recent plugins.' ) . '

'; +else + $help .= '

' . __( 'WordPress News - Latest news from the official WordPress project, the WordPress Planet.' ) . '

'; +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, +) ); + +unset( $help ); + +$screen->set_help_sidebar( + '

' . __( 'For more information:' ) . '

' . + '

' . __( 'Documentation on Dashboard' ) . '

' . + '

' . __( 'Support Forums' ) . '

' +); + +include( ABSPATH . 'wp-admin/admin-header.php' ); ?>
- -

+

+ + + $option = get_user_meta( get_current_user_id(), 'show_welcome_panel', true ); + // 0 = hide, 1 = toggled to show or single site creator, 2 = multisite site owner + $hide = 0 == $option || ( 2 == $option && wp_get_current_user()->user_email != get_option( 'admin_email' ) ); + if ( $hide ) + $classes .= ' hidden'; ?> - +
+ + + +
+ -
-
+
+ +
- +