[ Index ]

WordPress Cross Reference

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( dirname( __FILE__ ) . '/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  $overview = '<p>' . __( 'Welcome to your Network Admin. This area of the Administration Screens is used for managing all aspects of your Multisite Network.' ) . '</p>';
  26  $overview .= '<p>' . __( 'From here you can:' ) . '</p>';
  27  $overview .= '<ul><li>' . __( 'Add and manage sites or users' ) . '</li>';
  28  $overview .= '<li>' . __( 'Install and activate themes or plugins' ) . '</li>';
  29  $overview .= '<li>' . __( 'Update your network' ) . '</li>';
  30  $overview .= '<li>' . __( 'Modify global network settings' ) . '</li></ul>';
  31  
  32  get_current_screen()->add_help_tab( array(
  33      'id'      => 'overview',
  34      'title'   => __( 'Overview' ),
  35      'content' => $overview
  36  ) );
  37  
  38  $quick_tasks = '<p>' . __( 'The Right Now widget on this screen provides current user and site counts on your network.' ) . '</p>';
  39  $quick_tasks .= '<ul><li>' . __( 'To add a new user, <strong>click Create a New User</strong>.' ) . '</li>';
  40  $quick_tasks .= '<li>' . __( 'To add a new site, <strong>click Create a New Site</strong>.' ) . '</li></ul>';
  41  $quick_tasks .= '<p>' . __( 'To search for a user or site, use the search boxes.' ) . '</p>';
  42  $quick_tasks .= '<ul><li>' . __( 'To search for a user, <strong>enter an email address or username</strong>. Use a wildcard to search for a partial username, such as user&#42;.' ) . '</li>';
  43  $quick_tasks .= '<li>' . __( 'To search for a site, <strong>enter the path or domain</strong>.' ) . '</li></ul>';
  44  
  45  get_current_screen()->add_help_tab( array(
  46      'id'      => 'quick-tasks',
  47      'title'   => __( 'Quick Tasks' ),
  48      'content' => $quick_tasks
  49  ) );
  50  
  51  get_current_screen()->set_help_sidebar(
  52      '<p><strong>' . __('For more information:') . '</strong></p>' .
  53      '<p>' . __('<a href="http://codex.wordpress.org/Network_Admin" target="_blank">Documentation on the Network Admin</a>') . '</p>' .
  54      '<p>' . __('<a href="http://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>'
  55  );
  56  
  57  wp_dashboard_setup();
  58  
  59  wp_enqueue_script( 'dashboard' );
  60  wp_enqueue_script( 'plugin-install' );
  61  add_thickbox();
  62  
  63  require_once ( ABSPATH . 'wp-admin/admin-header.php' );
  64  
  65  ?>
  66  
  67  <div class="wrap">
  68  <h2><?php echo esc_html( $title ); ?></h2>
  69  
  70  <div id="dashboard-widgets-wrap">
  71  
  72  <?php wp_dashboard(); ?>
  73  
  74  <div class="clear"></div>
  75  </div><!-- dashboard-widgets-wrap -->
  76  
  77  </div><!-- wrap -->
  78  
  79  <?php include ( ABSPATH . 'wp-admin/admin-footer.php' ); ?>


Generated: Tue Mar 25 01:41:18 2014 WordPress honlapkészítés: online1.hu