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 */
2020-02-06 07:33:11 +01:00
require_once __DIR__ . '/admin.php' ;
2010-07-30 22:34:54 +02:00
2010-10-21 12:06:17 +02:00
/** Load WordPress dashboard API */
2020-02-06 07:33:11 +01:00
require_once ABSPATH . 'wp-admin/includes/dashboard.php' ;
2010-10-21 12:06:17 +02:00
2017-12-01 00:11:00 +01: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 );
2017-12-01 00:11:00 +01:00
}
2010-07-30 22:34:54 +02:00
2017-12-01 00:11:00 +01:00
$title = __ ( 'Dashboard' );
2010-07-30 22:34:54 +02:00
$parent_file = 'index.php' ;
2017-12-01 00:11:00 +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>' ;
2013-03-09 04:18:26 +01:00
$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>' ;
2017-12-01 00:11:00 +01:00
get_current_screen () -> add_help_tab (
array (
'id' => 'overview' ,
'title' => __ ( 'Overview' ),
'content' => $overview ,
)
);
2013-03-09 04:18:26 +01:00
2017-12-01 00:11:00 +01:00
$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
2017-12-01 00:11:00 +01:00
get_current_screen () -> add_help_tab (
array (
'id' => 'quick-tasks' ,
'title' => __ ( 'Quick Tasks' ),
'content' => $quick_tasks ,
)
);
2011-11-02 06:33:53 +01:00
2011-11-02 22:32:16 +01:00
get_current_screen () -> set_help_sidebar (
2017-12-01 00:11:00 +01:00
'<p><strong>' . __ ( 'For more information:' ) . '</strong></p>' .
2019-07-26 00:45:57 +02:00
'<p>' . __ ( '<a href="https://wordpress.org/support/article/network-admin/">Documentation on the Network Admin</a>' ) . '</p>' .
2017-12-01 00:11:00 +01:00
'<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' );
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
2020-02-06 07:33:11 +01: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 ();
2020-02-06 07:33:11 +01:00
require_once ABSPATH . 'wp-admin/admin-footer.php' ;