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-07-28 19:10:00 +02: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 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-05 20:46:21 +02:00
$current_screen -> add_option ( 'layout_columns' , array ( 'max' => 4 , 'default' => 2 ) );
2010-10-21 12:06:17 +02:00
2011-10-03 06:00:57 +02:00
$current_screen -> add_option_context (
2011-10-02 08:59:36 +02:00
'<p>test</p>'
);
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' ); ?>