equal
deleted
inserted
replaced
48 ); |
48 ); |
49 |
49 |
50 get_current_screen()->set_help_sidebar( |
50 get_current_screen()->set_help_sidebar( |
51 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
51 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
52 '<p>' . __( '<a href="https://codex.wordpress.org/Dashboard_My_Sites_Screen">Documentation on My Sites</a>' ) . '</p>' . |
52 '<p>' . __( '<a href="https://codex.wordpress.org/Dashboard_My_Sites_Screen">Documentation on My Sites</a>' ) . '</p>' . |
53 '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
53 '<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>' |
54 ); |
54 ); |
55 |
55 |
56 require_once ABSPATH . 'wp-admin/admin-header.php'; |
56 require_once ABSPATH . 'wp-admin/admin-header.php'; |
57 |
57 |
58 if ( $updated ) { ?> |
58 if ( $updated ) { |
59 <div id="message" class="updated notice is-dismissible"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div> |
59 wp_admin_notice( |
60 <?php } ?> |
60 '<strong>' . __( 'Settings saved.' ) . '</strong>', |
|
61 array( |
|
62 'type' => 'success', |
|
63 'dismissible' => true, |
|
64 'id' => 'message', |
|
65 ) |
|
66 ); |
|
67 } |
|
68 ?> |
61 |
69 |
62 <div class="wrap"> |
70 <div class="wrap"> |
63 <h1 class="wp-heading-inline"> |
71 <h1 class="wp-heading-inline"> |
64 <?php |
72 <?php |
65 echo esc_html( $title ); |
73 echo esc_html( $title ); |
68 |
76 |
69 <?php |
77 <?php |
70 if ( in_array( get_site_option( 'registration' ), array( 'all', 'blog' ), true ) ) { |
78 if ( in_array( get_site_option( 'registration' ), array( 'all', 'blog' ), true ) ) { |
71 /** This filter is documented in wp-login.php */ |
79 /** This filter is documented in wp-login.php */ |
72 $sign_up_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) ); |
80 $sign_up_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) ); |
73 printf( ' <a href="%s" class="page-title-action">%s</a>', esc_url( $sign_up_url ), esc_html_x( 'Add New', 'site' ) ); |
81 printf( ' <a href="%s" class="page-title-action">%s</a>', esc_url( $sign_up_url ), esc_html__( 'Add New Site' ) ); |
74 } |
82 } |
75 |
83 |
76 if ( empty( $blogs ) ) : |
84 if ( empty( $blogs ) ) : |
77 echo '<p>'; |
85 wp_admin_notice( |
78 _e( 'You must be a member of at least one site to use this page.' ); |
86 '<strong>' . __( 'You must be a member of at least one site to use this page.' ) . '</strong>', |
79 echo '</p>'; |
87 array( |
|
88 'type' => 'error', |
|
89 'dismissible' => true, |
|
90 ) |
|
91 ); |
|
92 ?> |
|
93 <?php |
80 else : |
94 else : |
81 ?> |
95 ?> |
82 |
96 |
83 <hr class="wp-header-end"> |
97 <hr class="wp-header-end"> |
84 |
98 |
94 ?> |
108 ?> |
95 <br clear="all" /> |
109 <br clear="all" /> |
96 <ul class="my-sites striped"> |
110 <ul class="my-sites striped"> |
97 <?php |
111 <?php |
98 /** |
112 /** |
99 * Enable the Global Settings section on the My Sites screen. |
113 * Filters the settings HTML markup in the Global Settings section on the My Sites screen. |
100 * |
114 * |
101 * By default, the Global Settings section is hidden. Passing a non-empty |
115 * By default, the Global Settings section is hidden. Passing a non-empty |
102 * string to this filter will enable the section, and allow new settings |
116 * string to this filter will enable the section, and allow new settings |
103 * to be added, either globally or for specific sites. |
117 * to be added, either globally or for specific sites. |
104 * |
118 * |