| [ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Multisite administration panel. 4 * 5 * @package WordPress 6 * @subpackage Multisite 7 * @since 3.0.0 8 */ 9 10 /** Load WordPress Administration Bootstrap */ 11 require_once ( './admin.php' ); 12 13 /** Load WordPress dashboard API */ 14 require_once ( ABSPATH . 'wp-admin/includes/dashboard.php' ); 15 16 if ( !is_multisite() ) 17 wp_die( __( 'Multisite support is not enabled.' ) ); 18 19 if ( ! current_user_can( 'manage_network' ) ) 20 wp_die( __( 'You do not have permission to access this page.' ) ); 21 22 $title = __( 'Dashboard' ); 23 $parent_file = 'index.php'; 24 25 get_current_screen()->add_help_tab( array( 26 'id' => 'overview', 27 'title' => __('Overview'), 28 'content' => 29 '<p>' . __('Until WordPress 3.0, running multiple sites required using WordPress MU instead of regular WordPress. In version 3.0, these applications have merged. If you are a former MU user, you should be aware of the following changes:') . '</p>' . 30 '<ul><li>' . __('Site Admin is now Super Admin (we highly encourage you to get yourself a cape!).') . '</li>' . 31 '<li>' . __('Blogs are now called Sites; Site is now called Network.') . '</li></ul>' . 32 '<p>' . __('The Right Now box provides the network administrator with links to the screens to either create a new site or user, or to search existing users and sites. Screens for Sites and Users are also accessible through the left-hand navigation in the Network Admin section.') . '</p>' 33 ) ); 34 35 get_current_screen()->set_help_sidebar( 36 '<p><strong>' . __('For more information:') . '</strong></p>' . 37 '<p>' . __('<a href="http://codex.wordpress.org/Network_Admin" target="_blank">Documentation on the Network Admin</a>') . '</p>' . 38 '<p>' . __('<a href="http://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>' 39 ); 40 41 wp_dashboard_setup(); 42 43 wp_enqueue_script( 'dashboard' ); 44 wp_enqueue_script( 'plugin-install' ); 45 add_thickbox(); 46 47 add_screen_option('layout_columns', array('max' => 4, 'default' => 2) ); 48 49 require_once ( '../admin-header.php' ); 50 51 ?> 52 53 <div class="wrap"> 54 <?php screen_icon(); ?> 55 <h2><?php echo esc_html( $title ); ?></h2> 56 57 <div id="dashboard-widgets-wrap"> 58 59 <?php wp_dashboard(); ?> 60 61 <div class="clear"></div> 62 </div><!-- dashboard-widgets-wrap --> 63 64 </div><!-- wrap --> 65 66 <?php include ( '../admin-footer.php' ); ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Fri May 25 03:56:23 2012 | Hosted by follow the white rabbit. |