Changeset 15746 for trunk/wp-admin/network/settings.php
- Timestamp:
- 10/07/2010 07:34:18 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/settings.php
r15481 r15746 44 44 45 45 <div class="wrap"> 46 <?php screen_icon( ); ?>46 <?php screen_icon('options-general'); ?> 47 47 <h2><?php _e( 'Network Options' ) ?></h2> 48 48 <form method="post" action="edit.php?action=siteoptions"> … … 66 66 <?php printf( __( 'Registration and support emails will come from this address. An address such as <code>support@%s</code> is recommended.' ), $current_site->domain ); ?> 67 67 </td> 68 </tr>69 </table>70 <h3><?php _e( 'Dashboard Settings' ); ?></h3>71 <table class="form-table">72 <tr valign="top">73 <th scope="row"><label for="dashboard_blog"><?php _e( 'Dashboard Site' ) ?></label></th>74 <td>75 <?php76 if ( $dashboard_blog = get_site_option( 'dashboard_blog' ) ) {77 $details = get_blog_details( $dashboard_blog );78 $blogname = untrailingslashit( sanitize_user( str_replace( '.', '', str_replace( $current_site->domain . $current_site->path, '', $details->domain . $details->path ) ) ) );79 } else {80 $blogname = '';81 }?>82 <input name="dashboard_blog_orig" type="hidden" id="dashboard_blog_orig" value="<?php echo esc_attr( $blogname ); ?>" />83 <input name="dashboard_blog" type="text" id="dashboard_blog" value="<?php echo esc_attr( $blogname ); ?>" class="regular-text" />84 <br />85 <?php _e( 'Site path (“dashboard”, “control”, “manager”, etc.) or blog ID.<br />New users are added to this site as the user role defined below if they don’t have a site. Leave blank for the main site. Users with the Subscriber role on the old site will be moved to the new site if changed. The new site will be created if it does not exist.' ); ?>86 </td>87 </tr>88 <tr valign="top">89 <th scope="row"><label for="default_user_role"><?php _e( 'Dashboard User Default Role' ) ?></label></th>90 <td>91 <select name="default_user_role" id="default_user_role"><?php92 wp_dropdown_roles( get_site_option( 'default_user_role', 'subscriber' ) );93 ?>94 </select>95 <br />96 <?php _e( 'The default role for new users on the Dashboard site. “Subscriber” or “Contributor” roles are recommended.' ); ?>97 </td>98 </tr>99 <tr valign="top">100 <th scope="row"><label for="admin_notice_feed"><?php _e( 'Admin Notice Feed' ) ?></label></th>101 <td><input name="admin_notice_feed" class="large-text" type="text" id="admin_notice_feed" value="<?php echo esc_attr( get_site_option( 'admin_notice_feed' ) ) ?>" size="80" /><br />102 <?php _e( 'Display the latest post from this RSS or Atom feed on all site dashboards. Leave blank to disable.' ); ?><br />103 104 <?php if ( get_site_option( 'admin_notice_feed' ) != get_home_url( $current_site->id, 'feed/' ) )105 echo __( 'A good one to use would be the feed from your main site: ' ) . esc_url( get_home_url( $current_site->id, 'feed/' ) ) ?></td>106 68 </tr> 107 69 </table>
Note: See TracChangeset
for help on using the changeset viewer.