2010-07-30 16:34:54 -04:00
< ? php
/**
* Multisite administration panel .
*
* @ package WordPress
* @ subpackage Multisite
* @ since 3.0 . 0
*/
2010-11-10 09:27:15 -05:00
/** Load WordPress Administration Bootstrap */
2013-09-24 20:18:11 -04:00
require_once ( dirname ( __FILE__ ) . '/admin.php' );
2010-07-30 16:34:54 -04:00
2010-10-21 06:06:17 -04:00
/** Load WordPress dashboard API */
2010-11-10 09:27:15 -05:00
require_once ( ABSPATH . 'wp-admin/includes/dashboard.php' );
2010-10-21 06:06:17 -04:00
2010-07-30 16:34:54 -04:00
if ( ! current_user_can ( 'manage_network' ) )
2016-06-29 11:16:29 -04:00
wp_die ( __ ( 'Sorry, you are not allowed to access this page.' ), 403 );
2010-07-30 16:34:54 -04:00
2010-11-18 18:02:52 -05:00
$title = __ ( 'Dashboard' );
2010-07-30 16:34:54 -04:00
$parent_file = 'index.php' ;
2013-03-08 22:18:26 -05: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 16:14:11 -04: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-08 22:18:26 -05:00
$quick_tasks .= '<p>' . __ ( 'To search for a user or site, use the search boxes.' ) . '</p>' ;
2013-09-16 16:14:11 -04: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-08 22:18:26 -05:00
get_current_screen () -> add_help_tab ( array (
'id' => 'quick-tasks' ,
'title' => __ ( 'Quick Tasks' ),
'content' => $quick_tasks
2011-11-30 21:22:07 -05:00
) );
2011-11-02 01:33:53 -04:00
2011-11-02 17:32:16 -04:00
get_current_screen () -> set_help_sidebar (
2010-07-30 16:34:54 -04:00
'<p><strong>' . __ ( 'For more information:' ) . '</strong></p>' .
2016-10-04 03:03:31 -04: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 16:34:54 -04:00
);
2010-10-21 06:06:17 -04:00
wp_dashboard_setup ();
2010-07-30 16:34:54 -04:00
2010-10-21 06:06:17 -04: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 16:04:42 -04:00
wp_localize_script ( 'dashboard' , 'communityEventsData' , wp_get_community_events_script_data () );
2010-12-15 13:48:40 -05:00
wp_enqueue_script ( 'plugin-install' );
2010-10-21 06:06:17 -04:00
add_thickbox ();
2010-07-30 16:34:54 -04:00
2013-09-24 20:18:11 -04:00
require_once ( ABSPATH . 'wp-admin/admin-header.php' );
2010-07-30 16:34:54 -04:00
?>
< div class = " wrap " >
2015-06-27 11:41:25 -04:00
< h1 >< ? php echo esc_html ( $title ); ?> </h1>
2010-10-21 06:06:17 -04:00
< div id = " dashboard-widgets-wrap " >
< ? php wp_dashboard (); ?>
< div class = " clear " ></ div >
</ div ><!-- dashboard - widgets - wrap -->
</ div ><!-- wrap -->
2010-07-30 16:34:54 -04: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 16:04:42 -04:00
< ? php
wp_print_community_events_templates ();
include ( ABSPATH . 'wp-admin/admin-footer.php' );