Changeset 13639
- Timestamp:
- 03/09/2010 11:40:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/ms-options.php
r13419 r13639 25 25 <form method="post" action="ms-edit.php?action=siteoptions"> 26 26 <?php wp_nonce_field( "siteoptions" ); ?> 27 <h3><?php _e('Operational Settings <em>(These settings cannot be modified by site owners)</em>')?></h3>27 <h3><?php _e('Operational Settings'); ?></h3> 28 28 <table class="form-table"> 29 29 <tr valign="top"> … … 62 62 </td> 63 63 </tr> 64 65 <tr valign="top"> 66 <th scope="row"><?php _e('Registration notification') ?></th> 67 <?php 68 if ( !get_site_option('registrationnotification') ) 69 update_site_option( 'registrationnotification', 'yes' ); 70 ?> 71 <td> 72 <input name="registrationnotification" type="radio" id="registrationnotification1" value='yes' <?php checked( get_site_option('registrationnotification'), 'yes') ?> /> <?php _e('Yes'); ?><br /> 73 <input name="registrationnotification" type="radio" id="registrationnotification2" value='no' <?php checked( get_site_option('registrationnotification'), 'no') ?> /> <?php _e('No'); ?><br /> 74 <?php _e('Send the network admin an email notification every time someone registers a site or user account.') ?> 75 </td> 76 </tr> 77 78 <tr valign="top"> 79 <th scope="row"><?php _e('Add New Users') ?></th> 80 <td> 81 <a name='addnewusers'></a> 82 <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 /> 83 <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 /> 84 <?php _e('Allow site administrators to add new users to their site via the Users->Add New page.') ?> 85 </td> 86 </tr> 87 64 </table> 65 <h3><?php _e('Dashboard Settings'); ?></h3> 66 <table class="form-table"> 88 67 <tr valign="top"> 89 68 <th scope="row"><?php _e('Dashboard Site') ?></th> … … 113 92 </td> 114 93 </tr> 94 <tr valign="top"> 95 <th scope="row"><?php _e('Admin Notice Feed') ?></th> 96 <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 /> 97 <?php _e( 'Display the latest post from this RSS or Atom feed on all site dashboards. Leave blank to disable.' ); ?><br /> 98 <?php if ( get_site_option( 'admin_notice_feed' ) != 'http://' . $current_site->domain . $current_site->path . 'feed/' ) 99 echo __( "A good one to use would be the feed from your main site: " ) . 'http://' . $current_site->domain . $current_site->path . 'feed/'; ?></td> 100 </tr> 101 </table> 102 <h3><?php _e('Registration Settings'); ?></h3> 103 <table class="form-table"> 104 <tr valign="top"> 105 <th scope="row"><?php _e('Registration notification') ?></th> 106 <?php 107 if ( !get_site_option('registrationnotification') ) 108 update_site_option( 'registrationnotification', 'yes' ); 109 ?> 110 <td> 111 <input name="registrationnotification" type="radio" id="registrationnotification1" value='yes' <?php checked( get_site_option('registrationnotification'), 'yes') ?> /> <?php _e('Yes'); ?><br /> 112 <input name="registrationnotification" type="radio" id="registrationnotification2" value='no' <?php checked( get_site_option('registrationnotification'), 'no') ?> /> <?php _e('No'); ?><br /> 113 <?php _e('Send the network admin an email notification every time someone registers a site or user account.') ?> 114 </td> 115 </tr> 116 117 <tr valign="top"> 118 <th scope="row"><?php _e('Add New Users') ?></th> 119 <td> 120 <a name='addnewusers'></a> 121 <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 /> 122 <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 /> 123 <?php _e('Allow site administrators to add new users to their site via the Users->Add New page.') ?> 124 </td> 125 </tr> 115 126 116 127 <tr valign="top"> … … 143 154 </tr> 144 155 156 </table> 157 <h3><?php _e('New Site Settings'); ?></h3> 158 <table class="form-table"> 159 145 160 <tr valign="top"> 146 161 <th scope="row"><?php _e('Welcome Email') ?></th> … … 199 214 </td> 200 215 </tr> 201 216 </table> 217 <h3><?php _e('Upload Settings'); ?></h3> 218 <table class="form-table"> 202 219 <tr valign="top"> 203 220 <th scope="row"><?php _e('Upload media button') ?></th> … … 222 239 <tr valign="top"> 223 240 <th scope="row"><?php _e('Upload File Types') ?></th> 224 <td><input name="upload_filetypes" type="text" id="upload_filetypes" value="<?php echo esc_attr( get_site_option('upload_filetypes', 'jpg jpeg png gif') ) ?>" size="45" /></td>241 <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> 225 242 </tr> 226 243 … … 229 246 <td><input name="fileupload_maxk" type="text" id="fileupload_maxk" value="<?php echo esc_attr( get_site_option('fileupload_maxk', 300) ) ?>" size="5" /> KB</td> 230 247 </tr> 231 <tr valign="top"> 232 <th scope="row"><?php _e('Admin Notice Feed') ?></th> 233 <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 /> 234 <?php _e( 'Display the latest post from this RSS or Atom feed on all site dashboards. Leave blank to disable.' ); ?><br /> 235 <?php if ( get_site_option( 'admin_notice_feed' ) != 'http://' . $current_site->domain . $current_site->path . 'feed/' ) 236 echo __( "A good one to use would be the feed from your main site: " ) . 'http://' . $current_site->domain . $current_site->path . 'feed/'; ?></td> 237 </tr> 238 </table> 239 240 <h3><?php _e('Network Wide Settings <em>(These settings may be overridden by site owners)</em>') ?></h3> 248 </table> 249 250 <?php 251 $languages = get_available_languages(); 252 $lang = get_site_option('WPLANG'); 253 if ( ! empty( $languages ) ) { 254 ?> 255 <h3><?php _e('Network Wide Settings'); ?></h3> 256 <div class="updated inline"><p><strong><?php _e( 'Notice:' ); ?></strong> <?php _e( 'These settings may be overridden by site owners.' ); ?></p></div> 241 257 <table class="form-table"> 242 258 <?php 243 $languages = get_available_languages();244 $lang = get_site_option('WPLANG');245 if ( !empty($languages) ) {246 259 ?> 247 260 <tr valign="top"> 248 <th width="33%"><?php _e('Default Language') ?></th>261 <th><?php _e('Default Language') ?></th> 249 262 <td> 250 263 <select name="WPLANG" id="WPLANG"> … … 253 266 </td> 254 267 </tr> 255 <?php 256 } // languages 257 ?> 258 </table> 259 260 <h3><?php _e('Menus <em>(Enable or disable WordPress Backend Menus)</em>') ?></h3> 261 <table class="form-table"> 262 <tr> 263 <th scope="row"><?php _e("Menu"); ?></th> 264 <th scope="row"><?php _e("Enabled"); ?></th> 265 </tr> 266 <a name='menu'></a> 268 </table> 269 <?php 270 } // languages 271 ?> 272 273 <h3><?php _e('Menu Settings'); ?></h3> 274 <table id="menu" class="form-table"> 275 <tr valign="top"> 276 <th scope="row"><?php _e( 'Enable administration menus' ); ?></th> 277 <td> 267 278 <?php 268 279 $menu_perms = get_site_option( 'menu_items' ); 269 $menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __('Plugins')) );280 $menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) ); 270 281 foreach ( (array) $menu_items as $key => $val ) { 271 echo "< tr><th scope='row'>" . esc_html($val) . "</th><td><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[ $key ] ) ? checked( $menu_perms[ $key ], '1', false ) : '' ) . " /></td></tr>";282 echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[ $key ] ) ? checked( $menu_perms[ $key ], '1', false ) : '' ) . " /> " . esc_html( $val ) . "</label><br/>"; 272 283 } 273 284 ?> 285 </td> 286 </tr> 274 287 </table> 275 288
Note: See TracChangeset
for help on using the changeset viewer.