mirror of
https://github.com/WordPress/WordPress.git
synced 2024-08-23 14:23:09 +02:00
git-svn-id: http://svn.automattic.com/wordpress/trunk@19514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
67 lines
2.2 KiB
PHP
67 lines
2.2 KiB
PHP
<?php
|
|
/**
|
|
* Multisite administration panel.
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Multisite
|
|
* @since 3.0.0
|
|
*/
|
|
|
|
/** Load WordPress Administration Bootstrap */
|
|
require_once( './admin.php' );
|
|
|
|
/** Load WordPress dashboard API */
|
|
require_once( ABSPATH . 'wp-admin/includes/dashboard.php' );
|
|
|
|
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.' ) );
|
|
|
|
$title = __( 'Dashboard' );
|
|
$parent_file = 'index.php';
|
|
|
|
get_current_screen()->add_help_tab( array(
|
|
'id' => 'overview',
|
|
'title' => __('Overview'),
|
|
'content' =>
|
|
'<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>' .
|
|
'<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>'
|
|
) );
|
|
|
|
get_current_screen()->set_help_sidebar(
|
|
'<p><strong>' . __('For more information:') . '</strong></p>' .
|
|
'<p>' . __('<a href="http://codex.wordpress.org/Network_Admin" target="_blank">Documentation on the Network Admin</a>') . '</p>' .
|
|
'<p>' . __('<a href="http://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>'
|
|
);
|
|
|
|
wp_dashboard_setup();
|
|
|
|
wp_enqueue_script( 'dashboard' );
|
|
wp_enqueue_script( 'plugin-install' );
|
|
add_thickbox();
|
|
|
|
add_screen_option('layout_columns', array('max' => 4, 'default' => 2) );
|
|
|
|
require_once( '../admin-header.php' );
|
|
|
|
?>
|
|
|
|
<div class="wrap">
|
|
<?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 -->
|
|
|
|
<?php include( '../admin-footer.php' ); ?>
|