author | ymh <ymh.work@gmail.com> |
Mon, 14 Oct 2019 17:39:30 +0200 | |
changeset 7 | cf61fcea0001 |
parent 5 | 5e2f62d02dcd |
child 9 | 177826044cd9 |
permissions | -rw-r--r-- |
0 | 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 ( ! current_user_can( 'manage_network' ) ) |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
17 |
wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); |
0 | 18 |
|
19 |
$title = __( 'Dashboard' ); |
|
20 |
$parent_file = 'index.php'; |
|
21 |
||
22 |
$overview = '<p>' . __( 'Welcome to your Network Admin. This area of the Administration Screens is used for managing all aspects of your Multisite Network.' ) . '</p>'; |
|
23 |
$overview .= '<p>' . __( 'From here you can:' ) . '</p>'; |
|
24 |
$overview .= '<ul><li>' . __( 'Add and manage sites or users' ) . '</li>'; |
|
25 |
$overview .= '<li>' . __( 'Install and activate themes or plugins' ) . '</li>'; |
|
26 |
$overview .= '<li>' . __( 'Update your network' ) . '</li>'; |
|
27 |
$overview .= '<li>' . __( 'Modify global network settings' ) . '</li></ul>'; |
|
28 |
||
29 |
get_current_screen()->add_help_tab( array( |
|
30 |
'id' => 'overview', |
|
31 |
'title' => __( 'Overview' ), |
|
32 |
'content' => $overview |
|
33 |
) ); |
|
34 |
||
35 |
$quick_tasks = '<p>' . __( 'The Right Now widget on this screen provides current user and site counts on your network.' ) . '</p>'; |
|
36 |
$quick_tasks .= '<ul><li>' . __( 'To add a new user, <strong>click Create a New User</strong>.' ) . '</li>'; |
|
37 |
$quick_tasks .= '<li>' . __( 'To add a new site, <strong>click Create a New Site</strong>.' ) . '</li></ul>'; |
|
38 |
$quick_tasks .= '<p>' . __( 'To search for a user or site, use the search boxes.' ) . '</p>'; |
|
39 |
$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>'; |
|
40 |
$quick_tasks .= '<li>' . __( 'To search for a site, <strong>enter the path or domain</strong>.' ) . '</li></ul>'; |
|
41 |
||
42 |
get_current_screen()->add_help_tab( array( |
|
43 |
'id' => 'quick-tasks', |
|
44 |
'title' => __( 'Quick Tasks' ), |
|
45 |
'content' => $quick_tasks |
|
46 |
) ); |
|
47 |
||
48 |
get_current_screen()->set_help_sidebar( |
|
49 |
'<p><strong>' . __('For more information:') . '</strong></p>' . |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
50 |
'<p>' . __('<a href="https://codex.wordpress.org/Network_Admin">Documentation on the Network Admin</a>') . '</p>' . |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
51 |
'<p>' . __('<a href="https://wordpress.org/support/forum/multisite/">Support Forums</a>') . '</p>' |
0 | 52 |
); |
53 |
||
54 |
wp_dashboard_setup(); |
|
55 |
||
56 |
wp_enqueue_script( 'dashboard' ); |
|
57 |
wp_enqueue_script( 'plugin-install' ); |
|
58 |
add_thickbox(); |
|
59 |
||
60 |
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
|
61 |
||
62 |
?> |
|
63 |
||
64 |
<div class="wrap"> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
65 |
<h1><?php echo esc_html( $title ); ?></h1> |
0 | 66 |
|
67 |
<div id="dashboard-widgets-wrap"> |
|
68 |
||
69 |
<?php wp_dashboard(); ?> |
|
70 |
||
71 |
<div class="clear"></div> |
|
72 |
</div><!-- dashboard-widgets-wrap --> |
|
73 |
||
74 |
</div><!-- wrap --> |
|
75 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
76 |
<?php |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
77 |
wp_print_community_events_templates(); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
78 |
include( ABSPATH . 'wp-admin/admin-footer.php' ); |