2010-07-30 16:34:54 -04:00
< ? php
/**
* Multisite administration panel .
*
* @ package WordPress
* @ subpackage Multisite
* @ since 3.0 . 0
*/
2010-11-10 09:27:15 -05:00
/** Load WordPress Administration Bootstrap */
2010-07-30 16:34:54 -04:00
require_once ( './admin.php' );
2010-10-21 06:06:17 -04:00
/** Load WordPress dashboard API */
2010-11-10 09:27:15 -05:00
require_once ( ABSPATH . 'wp-admin/includes/dashboard.php' );
2010-10-21 06:06:17 -04:00
2010-07-30 16:34:54 -04: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-18 18:02:52 -05:00
$title = __ ( 'Dashboard' );
2010-07-30 16:34:54 -04: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-07-28 13:10:00 -04: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>' .
2010-07-30 16:34:54 -04:00
'<p><strong>' . __ ( 'For more information:' ) . '</strong></p>' .
2010-12-18 13:27:12 -05:00
'<p>' . __ ( '<a href="http://codex.wordpress.org/Network_Admin" target="_blank">Documentation on the Network Admin</a>' ) . '</p>' .
2010-12-25 14:21:00 -05:00
'<p>' . __ ( '<a href="http://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>' ) . '</p>'
2010-07-30 16:34:54 -04:00
);
2010-10-21 06:06:17 -04:00
wp_dashboard_setup ();
2010-07-30 16:34:54 -04:00
2010-10-21 06:06:17 -04:00
wp_enqueue_script ( 'dashboard' );
2010-12-15 13:48:40 -05:00
wp_enqueue_script ( 'plugin-install' );
2010-10-21 06:06:17 -04:00
add_thickbox ();
2010-07-30 16:34:54 -04:00
2011-10-03 00:00:57 -04:00
$current_screen -> add_option ( 'layout_columns' , array ( 'max' => 4 , 'default' => 'auto' ) );
2010-10-21 06:06:17 -04:00
2011-10-03 00:00:57 -04:00
$current_screen -> add_option_context (
2011-10-02 02:59:36 -04:00
'<p>test</p>'
);
2010-10-21 06:06:17 -04:00
require_once ( '../admin-header.php' );
2010-07-30 16:34:54 -04:00
?>
< div class = " wrap " >
2010-10-21 06:06:17 -04: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 16:34:54 -04:00
< ? php include ( '../admin-footer.php' ); ?>