wp/wp-admin/network/sites.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
    26 get_current_screen()->add_help_tab(
    26 get_current_screen()->add_help_tab(
    27 	array(
    27 	array(
    28 		'id'      => 'overview',
    28 		'id'      => 'overview',
    29 		'title'   => __( 'Overview' ),
    29 		'title'   => __( 'Overview' ),
    30 		'content' =>
    30 		'content' =>
    31 		'<p>' . __( 'Add New Site takes you to the screen for adding a new site to the network. You can search for a site by Name, ID number, or IP address. Screen Options allows you to choose how many sites to display on one page.' ) . '</p>' .
    31 		'<p>' . __( 'Add Site takes you to the screen for adding a new site to the network. You can search for a site by Name, ID number, or IP address. Screen Options allows you to choose how many sites to display on one page.' ) . '</p>' .
    32 		'<p>' . __( 'This is the main table of all sites on this network. Switch between list and excerpt views by using the icons above the right side of the table.' ) . '</p>' .
    32 		'<p>' . __( 'This is the main table of all sites on this network. Switch between list and excerpt views by using the icons above the right side of the table.' ) . '</p>' .
    33 			'<p>' . __( 'Hovering over each site reveals seven options (three for the primary site):' ) . '</p>' .
    33 			'<p>' . __( 'Hovering over each site reveals seven options (three for the primary site):' ) . '</p>' .
    34 			'<ul><li>' . __( 'An Edit link to a separate Edit Site screen.' ) . '</li>' .
    34 			'<ul><li>' . __( 'An Edit link to a separate Edit Site screen.' ) . '</li>' .
    35 			'<li>' . __( 'Dashboard leads to the Dashboard for that site.' ) . '</li>' .
    35 			'<li>' . __( 'Dashboard leads to the Dashboard for that site.' ) . '</li>' .
    36 			'<li>' . __( 'Deactivate, Archive, and Spam which lead to confirmation screens. These actions can be reversed later.' ) . '</li>' .
    36 			'<li>' . __( 'Deactivate, Archive, and Spam which lead to confirmation screens. These actions can be reversed later.' ) . '</li>' .
   386 
   386 
   387 <div class="wrap">
   387 <div class="wrap">
   388 <h1 class="wp-heading-inline"><?php _e( 'Sites' ); ?></h1>
   388 <h1 class="wp-heading-inline"><?php _e( 'Sites' ); ?></h1>
   389 
   389 
   390 <?php if ( current_user_can( 'create_sites' ) ) : ?>
   390 <?php if ( current_user_can( 'create_sites' ) ) : ?>
   391 	<a href="<?php echo esc_url( network_admin_url( 'site-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New Site' ); ?></a>
   391 	<a href="<?php echo esc_url( network_admin_url( 'site-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add Site' ); ?></a>
   392 <?php endif; ?>
   392 <?php endif; ?>
   393 
   393 
   394 <?php
   394 <?php
   395 if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
   395 if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
   396 	echo '<span class="subtitle">';
   396 	echo '<span class="subtitle">';