[ XREF Home ] [ Index ]

PHP Cross Reference of WordPress Trunk

Provided by Yoast

title

Body

[close]

/wp-admin/network/ -> index.php (source)

   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  add_contextual_help($current_screen,
  26      '<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>' .
  27      '<ul><li>' . __('Site Admin is now Super Admin (we highly encourage you to get yourself a cape!).') . '</li>' .
  28      '<li>' . __('Blogs are now called Sites; Site is now called Network.') . '</li></ul>' .
  29      '<p>' . __('This screen provides the network administrator with links to the screens for Sites and Users to either create a new site or user, or to search existing users and sites, as well as Dashboard widgets. Those screens are also accessible through the left-hand navigation in the Network Admin section.') . '</p>' .
  30      '<p><strong>' . __('For more information:') . '</strong></p>' .
  31      '<p>' . __('<a href="http://codex.wordpress.org/Network_Admin" target="_blank">Documentation on the Network Admin</a>') . '</p>' .
  32      '<p>' . __('<a href="http://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>'
  33  );
  34  
  35  wp_dashboard_setup();
  36  
  37  wp_enqueue_script( 'dashboard' );
  38  wp_enqueue_script( 'plugin-install' );
  39  wp_admin_css( 'dashboard' );
  40  wp_admin_css( 'plugin-install' );
  41  add_thickbox();
  42  
  43  add_screen_option('layout_columns', array('max' => 4, 'default' => 2) );
  44  
  45  require_once ( '../admin-header.php' );
  46  
  47  ?>
  48  
  49  <div class="wrap">
  50  <?php screen_icon(); ?>
  51  <h2><?php echo esc_html( $title ); ?></h2>
  52  
  53  <div id="dashboard-widgets-wrap">
  54  
  55  <?php wp_dashboard(); ?>
  56  
  57  <div class="clear"></div>
  58  </div><!-- dashboard-widgets-wrap -->
  59  
  60  </div><!-- wrap -->
  61  
  62  <?php include ( '../admin-footer.php' ); ?>


Generated: Wed Jun 1 08:30:02 2011 Cross-referenced by PHPXref 0.7
Provided by Yoast and awesome WordPress Hosting