Changeset 13795 for trunk/wp-admin/ms-options.php
- Timestamp:
- 03/22/2010 04:19:10 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/ms-options.php (modified) (20 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/ms-options.php
r13794 r13795 30 30 <th scope="row"><?php _e('Network Name') ?></th> 31 31 <td> 32 <input name="site_name" type="text" id="site_name" style="width: 95%" value="<?php echo esc_attr($current_site->site_name) ?>" size="45" />32 <input name="site_name" type="text" id="site_name" class="regular-text" value="<?php echo esc_attr($current_site->site_name) ?>" /> 33 33 <br /> 34 34 <?php _e('What you would like to call this website.') ?> … … 39 39 <th scope="row"><?php _e('Network Admin Email') ?></th> 40 40 <td> 41 <input name="admin_email" type="text" id="admin_email" style="width: 95%" value="<?php echo esc_attr( get_site_option('admin_email') ) ?>" size="45" />41 <input name="admin_email" type="text" id="admin_email" class="regular-text" value="<?php echo esc_attr( get_site_option('admin_email') ) ?>" /> 42 42 <br /> 43 43 <?php printf( __( 'Registration and support emails will come from this address. An address such as "support@%s" is recommended.' ), $current_site->domain ); ?> … … 48 48 <th scope="row"><?php _e('Global Terms') ?></th> 49 49 <td> 50 <label><input type='radio' id="global_terms_enabled" name="global_terms_enabled" value='1' <?php checked( get_site_option( 'global_terms_enabled' ), 1 ) ?>/> <?php _e( 'Enabled' ); ?></label><br />51 <label><input type='radio' id="global_terms_enabled" name="global_terms_enabled" value='0' <?php checked( get_site_option( 'global_terms_enabled' ), 0 ) ?>/> <?php _e( 'Disabled' ); ?></label><br />50 <label><input type='radio' id="global_terms_enabled" name="global_terms_enabled" value='1'<?php checked( get_site_option( 'global_terms_enabled' ), 1 ) ?>/> <?php _e( 'Enabled' ); ?></label><br /> 51 <label><input type='radio' id="global_terms_enabled" name="global_terms_enabled" value='0'<?php checked( get_site_option( 'global_terms_enabled' ), 0 ) ?>/> <?php _e( 'Disabled' ); ?></label><br /> 52 52 <?php _e( 'Maintain a global list of terms from all sites across the network.' ); ?></td> 53 53 </tr> … … 66 66 }?> 67 67 <input name="dashboard_blog_orig" type="hidden" id="dashboard_blog_orig" value="<?php echo esc_attr($blogname); ?>" /> 68 <input name="dashboard_blog" type="text" id="dashboard_blog" value="<?php echo esc_attr($blogname); ?>" size="30" />69 <br /> 70 <?php _e( " Blogname ('dashboard', 'control', 'manager', etc) or blog id.<br />New users are added to this site as subscribers (or the user role defined below) if they don't have a site. Leave blank for the main site. 'Subscriber' userson old site will be moved to the new site if changed. The new site will be created if it does not exist." ); ?>68 <input name="dashboard_blog" type="text" id="dashboard_blog" value="<?php echo esc_attr($blogname); ?>" class="regular-text" /> 69 <br /> 70 <?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 old site will be moved to the new site if changed. The new site will be created if it does not exist." ); ?> 71 71 </td> 72 72 </tr> … … 84 84 <tr valign="top"> 85 85 <th scope="row"><?php _e('Admin Notice Feed') ?></th> 86 <td><input name="admin_notice_feed" style="width: 95%" type="text" id="admin_notice_feed" value="<?php echo esc_attr( get_site_option( 'admin_notice_feed' ) ) ?>" size="80" /><br />86 <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 /> 87 87 <?php _e( 'Display the latest post from this RSS or Atom feed on all site dashboards. Leave blank to disable.' ); ?><br /> 88 88 <?php if ( get_site_option( 'admin_notice_feed' ) != 'http://' . $current_site->domain . $current_site->path . 'feed/' ) … … 99 99 ?> 100 100 <td> 101 <label><input name="registration" type="radio" id="registration1" value='none' <?php checked( get_site_option('registration'), 'none') ?> /> <?php _e('Registration is disabled.'); ?></label><br />102 <label><input name="registration" type="radio" id="registration2" value='user' <?php checked( get_site_option('registration'), 'user') ?> /> <?php _e('User accounts may be registered.'); ?></label><br />103 <label><input name="registration" type="radio" id="registration3" value='blog' <?php checked( get_site_option('registration'), 'blog') ?> /> <?php _e('Logged in users may register new sites.'); ?></label><br />104 <label><input name="registration" type="radio" id="registration4" value='all' <?phpchecked( get_site_option('registration'), 'all') ?> /> <?php _e('Both sites and user accounts can be registered.'); ?></label><br />105 <p><?php _e('Disable or enable registration and who or what can be registered. (Default = disabled)'); ?></p>101 <label><input name="registration" type="radio" id="registration1" value='none'<?php checked( get_site_option('registration'), 'none') ?> /> <?php _e('Registration is disabled.'); ?></label><br /> 102 <label><input name="registration" type="radio" id="registration2" value='user'<?php checked( get_site_option('registration'), 'user') ?> /> <?php _e('User accounts may be registered.'); ?></label><br /> 103 <label><input name="registration" type="radio" id="registration3" value='blog'<?php checked( get_site_option('registration'), 'blog') ?> /> <?php _e('Logged in users may register new sites.'); ?></label><br /> 104 <label><input name="registration" type="radio" id="registration4" value='all'<?php checked( get_site_option('registration'), 'all') ?> /> <?php _e('Both sites and user accounts can be registered.'); ?></label><br /> 105 <p><?php _e('Disable or enable registration and who or what can be registered. (Default is disabled.)'); ?></p> 106 106 <?php if ( is_subdomain_install() ) { 107 echo '<p>' . __('If registration is disabled, please set "NOBLOGREDIRECT" in wp-config.phpto a url you will redirect visitors to if they visit a non-existent site.') . '</p>';107 echo '<p>' . __('If registration is disabled, please set <code>NOBLOGREDIRECT</code> in <code>wp-config.php</code> to a url you will redirect visitors to if they visit a non-existent site.') . '</p>'; 108 108 } ?> 109 109 </td> … … 117 117 ?> 118 118 <td> 119 <input name="registrationnotification" type="radio" id="registrationnotification1" value='yes' <?php checked( get_site_option('registrationnotification'), 'yes') ?> /> <?php _e('Yes'); ?><br />120 <input name="registrationnotification" type="radio" id="registrationnotification2" value='no' <?php checked( get_site_option('registrationnotification'), 'no') ?> /> <?php _e('No'); ?><br />119 <input name="registrationnotification" type="radio" id="registrationnotification1" value='yes'<?php checked( get_site_option('registrationnotification'), 'yes') ?> /> <?php _e('Yes'); ?><br /> 120 <input name="registrationnotification" type="radio" id="registrationnotification2" value='no'<?php checked( get_site_option('registrationnotification'), 'no') ?> /> <?php _e('No'); ?><br /> 121 121 <?php _e('Send the network admin an email notification every time someone registers a site or user account.') ?> 122 122 </td> … … 127 127 <td> 128 128 <a name='addnewusers'></a> 129 <input name="add_new_users" type="radio" id="add_new_users1" value='1' <?php checked( get_site_option('add_new_users'), 1 ) ?> /> <?php _e('Yes'); ?><br />130 <input name="add_new_users" type="radio" id="add_new_users2" value='0' <?php checked( get_site_option('add_new_users'), 0 ) ?> /> <?php _e('No'); ?><br />129 <input name="add_new_users" type="radio" id="add_new_users1" value='1'<?php checked( get_site_option('add_new_users'), 1 ) ?> /> <?php _e('Yes'); ?><br /> 130 <input name="add_new_users" type="radio" id="add_new_users2" value='0'<?php checked( get_site_option('add_new_users'), 0 ) ?> /> <?php _e('No'); ?><br /> 131 131 <?php _e('Allow site administrators to add new users to their site via the "Users->Add New" page.') ?> 132 132 </td> … … 136 136 <th scope="row"><?php _e('Banned Names') ?></th> 137 137 <td> 138 <input name="illegal_names" type="text" id="illegal_names" style="width: 95%" value="<?php echo esc_attr( implode( " ", get_site_option('illegal_names') ) ); ?>" size="45" />138 <input name="illegal_names" type="text" id="illegal_names" class="large-text" value="<?php echo esc_attr( implode( " ", get_site_option('illegal_names') ) ); ?>" size="45" /> 139 139 <br /> 140 140 <?php _e('Users are not allowed to register these sites. Separate names by spaces.') ?> … … 147 147 <?php $limited_email_domains = get_site_option('limited_email_domains'); 148 148 $limited_email_domains = str_replace( ' ', "\n", $limited_email_domains ); ?> 149 <textarea name="limited_email_domains" id="limited_email_domains" cols='4 0' rows='5'><?php echo $limited_email_domains == '' ? '' : @implode( "\n", $limited_email_domains); ?></textarea>149 <textarea name="limited_email_domains" id="limited_email_domains" cols='45' rows='5'><?php echo wp_htmledit_pre( $limited_email_domains == '' ? '' : implode( "\n", (array) $limited_email_domains ) ); ?></textarea> 150 150 <br /> 151 151 <?php _e('If you want to limit site registrations to certain domains. Enter one domain per line.') ?> … … 156 156 <th scope="row"><?php _e('Banned Email Domains') ?></th> 157 157 <td> 158 <textarea name="banned_email_domains" id="banned_email_domains" cols='4 0' rows='5'><?php echo get_site_option('banned_email_domains') == '' ? '' : @implode( "\n", get_site_option('banned_email_domains') ); ?></textarea>158 <textarea name="banned_email_domains" id="banned_email_domains" cols='45' rows='5'><?php echo wp_htmledit_pre( get_site_option('banned_email_domains') == '' ? '' : implode( "\n", (array) get_site_option('banned_email_domains') ) ); ?></textarea> 159 159 <br /> 160 160 <?php _e('If you want to ban domains from site registrations. Enter one domain per line.') ?> … … 169 169 <th scope="row"><?php _e('Welcome Email') ?></th> 170 170 <td> 171 <textarea name="welcome_email" id="welcome_email" rows='5' cols='45' style="width: 95%"><?php echo stripslashes( get_site_option('welcome_email') ) ?></textarea>171 <textarea name="welcome_email" id="welcome_email" rows='5' cols='45' class="large-text"><?php echo stripslashes( get_site_option('welcome_email') ) ?></textarea> 172 172 <br /> 173 173 <?php _e('The welcome email sent to new site owners.') ?> … … 177 177 <th scope="row"><?php _e('Welcome User Email') ?></th> 178 178 <td> 179 <textarea name="welcome_user_email" id="welcome_user_email" rows='5' cols='45' style="width: 95%"><?php echo stripslashes( get_site_option('welcome_user_email') ) ?></textarea>179 <textarea name="welcome_user_email" id="welcome_user_email" rows='5' cols='45' class="large-text"><?php echo stripslashes( get_site_option('welcome_user_email') ) ?></textarea> 180 180 <br /> 181 181 <?php _e('The welcome email sent to new users.') ?> … … 185 185 <th scope="row"><?php _e('First Post') ?></th> 186 186 <td> 187 <textarea name="first_post" id="first_post" rows='5' cols='45' style="width: 95%"><?php echo stripslashes( get_site_option('first_post') ) ?></textarea>187 <textarea name="first_post" id="first_post" rows='5' cols='45' class="large-text"><?php echo stripslashes( get_site_option('first_post') ) ?></textarea> 188 188 <br /> 189 189 <?php _e('The first post on a new site.') ?> … … 193 193 <th scope="row"><?php _e('First Page') ?></th> 194 194 <td> 195 <textarea name="first_page" id="first_page" rows='5' cols='45' style="width: 95%"><?php echo stripslashes( get_site_option('first_page') ) ?></textarea>195 <textarea name="first_page" id="first_page" rows='5' cols='45' class="large-text"><?php echo stripslashes( get_site_option('first_page') ) ?></textarea> 196 196 <br /> 197 197 <?php _e('The first page on a new site.') ?> … … 201 201 <th scope="row"><?php _e('First Comment') ?></th> 202 202 <td> 203 <textarea name="first_comment" id="first_comment" rows='5' cols='45' style="width: 95%"><?php echo stripslashes( get_site_option('first_comment') ) ?></textarea>203 <textarea name="first_comment" id="first_comment" rows='5' cols='45' class="large-text"><?php echo stripslashes( get_site_option('first_comment') ) ?></textarea> 204 204 <br /> 205 205 <?php _e('The first comment on a new site.') ?> … … 228 228 <th scope="row"><?php _e('Upload media button') ?></th> 229 229 <?php $mu_media_buttons = get_site_option( 'mu_media_buttons', array() ); ?> 230 <td><label><input type='checkbox' id="mu_media_buttons_image" name="mu_media_buttons[image]" value='1' <?php checked( !empty($mu_media_buttons[ 'image' ]) ) ?>/> <?php _e( 'Images' ); ?></label><br />231 <label><input type='checkbox' id="mu_media_buttons_video" name="mu_media_buttons[video]" value='1' <?php checked( !empty($mu_media_buttons[ 'video' ]) ) ?>/> <?php _e( 'Videos' ); ?></label><br />232 <label><input type='checkbox' id="mu_media_buttons_audio" name="mu_media_buttons[audio]" value='1' <?php checked( !empty($mu_media_buttons[ 'audio' ]) ) ?>/> <?php _e( 'Music' ); ?></label><br />233 <?php _e( 'The media upload buttons to display on the "Write Post" page. Make sure you update the "Upload File Types"below as well.' ); ?></td>230 <td><label><input type='checkbox' id="mu_media_buttons_image" name="mu_media_buttons[image]" value='1'<?php checked( !empty($mu_media_buttons[ 'image' ]) ) ?>/> <?php _e( 'Images' ); ?></label><br /> 231 <label><input type='checkbox' id="mu_media_buttons_video" name="mu_media_buttons[video]" value='1'<?php checked( !empty($mu_media_buttons[ 'video' ]) ) ?>/> <?php _e( 'Videos' ); ?></label><br /> 232 <label><input type='checkbox' id="mu_media_buttons_audio" name="mu_media_buttons[audio]" value='1'<?php checked( !empty($mu_media_buttons[ 'audio' ]) ) ?>/> <?php _e( 'Music' ); ?></label><br /> 233 <?php _e( 'The media upload buttons to display on the "Write Post" page. Make sure you update the allowed upload file types below as well.' ); ?></td> 234 234 </tr> 235 235 … … 237 237 <th scope="row"><?php _e('Site upload space') ?></th> 238 238 <td> 239 <label><input type='radio' id="upload_space_check_disabled" name="upload_space_check_disabled" value='0' <?php checked( get_site_option( 'upload_space_check_disabled' ), 0 ) ?>/> <?php printf( __( 'Limit total size of files uploaded to %s MB' ), '<input name="blog_upload_space" type="text" id="blog_upload_space" value="' . esc_attr( get_site_option('blog_upload_space', 10) ) . '" size="3" />' ); ?></label><br />240 <label><input type='radio' id="upload_space_check_disabled" name="upload_space_check_disabled" value='1' <?php checked( get_site_option( 'upload_space_check_disabled' ) ) ?>/> <?php _e( 'Disabled' ); ?></label><br /></td>241 </tr> 242 243 <tr valign="top"> 244 <th scope="row"><?php _e('Upload File Types') ?></th>239 <label><input type='radio' id="upload_space_check_disabled" name="upload_space_check_disabled" value='0'<?php checked( get_site_option( 'upload_space_check_disabled' ), 0 ) ?>/> <?php printf( __( 'Limit total size of files uploaded to %s MB' ), '<input name="blog_upload_space" type="text" id="blog_upload_space" value="' . esc_attr( get_site_option('blog_upload_space', 10) ) . '" size="3" />' ); ?></label><br /> 240 <label><input type='radio' id="upload_space_check_disabled" name="upload_space_check_disabled" value='1'<?php checked( get_site_option( 'upload_space_check_disabled' ) ) ?>/> <?php _e( 'Disabled' ); ?></label><br /></td> 241 </tr> 242 243 <tr valign="top"> 244 <th scope="row"><?php _e('Upload file types') ?></th> 245 245 <td><input name="upload_filetypes" type="text" id="upload_filetypes" class="large-text" value="<?php echo esc_attr( get_site_option('upload_filetypes', 'jpg jpeg png gif') ) ?>" size="45" /></td> 246 246 </tr> … … 254 254 <?php 255 255 $languages = get_available_languages(); 256 $lang = get_site_option('WPLANG');257 256 if ( ! empty( $languages ) ) { 257 $lang = get_site_option('WPLANG'); 258 258 ?> 259 259 <h3><?php _e('Network Wide Settings'); ?></h3> … … 293 293 <?php do_action( 'wpmu_options' ); // Add more options here ?> 294 294 295 <p class="submit"> 296 <input type="submit" name="Submit" value="<?php esc_attr_e('Update Options') ?>" /></p> 295 <p class="submit"><input type="submit" class="button-primary" name="Submit" value="<?php esc_attr_e('Save Changes') ?>" /></p> 297 296 </form> 298 297 </div>
Note: See TracChangeset
for help on using the changeset viewer.