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 */
2013-09-25 02:18:11 +02:00
require_once ( dirname ( __FILE__ ) . '/admin.php' );
2010-07-30 22:34:54 +02:00
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 ( ! current_user_can ( 'manage_network' ) )
2016-06-29 17:16:29 +02:00
wp_die ( __ ( 'Sorry, you are not allowed to access this page.' ), 403 );
2010-07-30 22:34:54 +02:00
2010-11-19 00:02:52 +01:00
$title = __ ( 'Dashboard' );
2010-07-30 22:34:54 +02:00
$parent_file = 'index.php' ;
2013-03-09 04:18:26 +01:00
$overview = '<p>' . __ ( 'Welcome to your Network Admin. This area of the Administration Screens is used for managing all aspects of your Multisite Network.' ) . '</p>' ;
$overview .= '<p>' . __ ( 'From here you can:' ) . '</p>' ;
$overview .= '<ul><li>' . __ ( 'Add and manage sites or users' ) . '</li>' ;
$overview .= '<li>' . __ ( 'Install and activate themes or plugins' ) . '</li>' ;
$overview .= '<li>' . __ ( 'Update your network' ) . '</li>' ;
$overview .= '<li>' . __ ( 'Modify global network settings' ) . '</li></ul>' ;
get_current_screen () -> add_help_tab ( array (
'id' => 'overview' ,
'title' => __ ( 'Overview' ),
'content' => $overview
) );
$quick_tasks = '<p>' . __ ( 'The Right Now widget on this screen provides current user and site counts on your network.' ) . '</p>' ;
2013-09-16 22:14:11 +02:00
$quick_tasks .= '<ul><li>' . __ ( 'To add a new user, <strong>click Create a New User</strong>.' ) . '</li>' ;
$quick_tasks .= '<li>' . __ ( 'To add a new site, <strong>click Create a New Site</strong>.' ) . '</li></ul>' ;
2013-03-09 04:18:26 +01:00
$quick_tasks .= '<p>' . __ ( 'To search for a user or site, use the search boxes.' ) . '</p>' ;
2013-09-16 22:14:11 +02:00
$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*.' ) . '</li>' ;
$quick_tasks .= '<li>' . __ ( 'To search for a site, <strong>enter the path or domain</strong>.' ) . '</li></ul>' ;
2013-03-09 04:18:26 +01:00
get_current_screen () -> add_help_tab ( array (
'id' => 'quick-tasks' ,
'title' => __ ( 'Quick Tasks' ),
'content' => $quick_tasks
2011-12-01 03:22:07 +01:00
) );
2011-11-02 06:33:53 +01:00
2011-11-02 22:32:16 +01:00
get_current_screen () -> set_help_sidebar (
2010-07-30 22:34:54 +02:00
'<p><strong>' . __ ( 'For more information:' ) . '</strong></p>' .
2016-10-04 09:03:31 +02:00
'<p>' . __ ( '<a href="https://codex.wordpress.org/Network_Admin">Documentation on the Network Admin</a>' ) . '</p>' .
'<p>' . __ ( '<a href="https://wordpress.org/support/forum/multisite/">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' );
Dashboard: Update the existing WordPress News dashboard widget to also include upcoming meetup events and WordCamps near the current user’s location.
Props @afercia, @andreamiddleton, @azaozz, @camikaos, @coreymckrill, @chanthaboune, @courtneypk, @dd32, @iandunn, @iseulde, @mapk, @mayukojpn, @melchoyce, @nao, @obenland, @pento, @samuelsidler, @stephdau, @tellyworth.
See #40702.
Built from https://develop.svn.wordpress.org/trunk@40607
git-svn-id: http://core.svn.wordpress.org/trunk@40477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-10 22:04:42 +02:00
wp_localize_script ( 'dashboard' , 'communityEventsData' , wp_get_community_events_script_data () );
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
2013-09-25 02:18:11 +02:00
require_once ( ABSPATH . 'wp-admin/admin-header.php' );
2010-07-30 22:34:54 +02:00
?>
< div class = " wrap " >
2015-06-27 17:41:25 +02:00
< h1 >< ? php echo esc_html ( $title ); ?> </h1>
2010-10-21 12:06:17 +02:00
< 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
Dashboard: Update the existing WordPress News dashboard widget to also include upcoming meetup events and WordCamps near the current user’s location.
Props @afercia, @andreamiddleton, @azaozz, @camikaos, @coreymckrill, @chanthaboune, @courtneypk, @dd32, @iandunn, @iseulde, @mapk, @mayukojpn, @melchoyce, @nao, @obenland, @pento, @samuelsidler, @stephdau, @tellyworth.
See #40702.
Built from https://develop.svn.wordpress.org/trunk@40607
git-svn-id: http://core.svn.wordpress.org/trunk@40477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-10 22:04:42 +02:00
< ? php
wp_print_community_events_templates ();
include ( ABSPATH . 'wp-admin/admin-footer.php' );