2010-07-30 22:34:54 +02:00
< ? php
/**
* Multisite administration panel .
*
* @ package WordPress
* @ subpackage Multisite
* @ since 3.0 . 0
*/
2010-11-10 15:27:15 +01:00
/** Load WordPress Administration Bootstrap */
2010-07-30 22:34:54 +02:00
require_once ( './admin.php' );
2010-10-21 12:06:17 +02:00
/** Load WordPress dashboard API */
2010-11-10 15:27:15 +01:00
require_once ( ABSPATH . 'wp-admin/includes/dashboard.php' );
2010-10-21 12:06:17 +02:00
2010-07-30 22:34:54 +02:00
if ( ! is_multisite () )
wp_die ( __ ( 'Multisite support is not enabled.' ) );
if ( ! current_user_can ( 'manage_network' ) )
wp_die ( __ ( 'You do not have permission to access this page.' ) );
2010-11-19 00:02:52 +01:00
$title = __ ( 'Dashboard' );
2010-07-30 22:34:54 +02:00
$parent_file = 'index.php' ;
add_contextual_help ( $current_screen ,
'<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>' .
'<ul><li>' . __ ( 'Site Admin is now Super Admin (we highly encourage you to get yourself a cape!).' ) . '</li>' .
'<li>' . __ ( 'Blogs are now called Sites; Site is now called Network.' ) . '</li></ul>' .
2011-11-02 06:33:53 +01:00
'<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>'
);
2011-11-02 22:32:16 +01:00
get_current_screen () -> set_help_sidebar (
2010-07-30 22:34:54 +02:00
'<p><strong>' . __ ( 'For more information:' ) . '</strong></p>' .
2010-12-18 19:27:12 +01:00
'<p>' . __ ( '<a href="http://codex.wordpress.org/Network_Admin" target="_blank">Documentation on the Network Admin</a>' ) . '</p>' .
2010-12-25 20:21:00 +01:00
'<p>' . __ ( '<a href="http://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>' ) . '</p>'
2010-07-30 22:34:54 +02:00
);
2010-10-21 12:06:17 +02:00
wp_dashboard_setup ();
2010-07-30 22:34:54 +02:00
2010-10-21 12:06:17 +02:00
wp_enqueue_script ( 'dashboard' );
2010-12-15 19:48:40 +01:00
wp_enqueue_script ( 'plugin-install' );
2010-10-21 12:06:17 +02:00
add_thickbox ();
2010-07-30 22:34:54 +02:00
2011-10-07 06:57:12 +02:00
add_screen_option ( 'layout_columns' , array ( 'max' => 4 , 'default' => 2 ) );
2011-10-02 08:59:36 +02:00
2010-10-21 12:06:17 +02:00
require_once ( '../admin-header.php' );
2010-07-30 22:34:54 +02:00
?>
< div class = " wrap " >
2010-10-21 12:06:17 +02:00
< ? php screen_icon (); ?>
< h2 >< ? php echo esc_html ( $title ); ?> </h2>
< div id = " dashboard-widgets-wrap " >
< ? php wp_dashboard (); ?>
< div class = " clear " ></ div >
</ div ><!-- dashboard - widgets - wrap -->
</ div ><!-- wrap -->
2010-07-30 22:34:54 +02:00
< ? php include ( '../admin-footer.php' ); ?>