Ticket #16413: 16143-network.diff
File 16143-network.diff, 36.2 KB (added by , 13 years ago) |
---|
-
wp-admin/network.php
221 221 <p><?php _e( 'Please choose whether you would like sites in your WordPress network to use sub-domains or sub-directories. <strong>You cannot change this later.</strong>' ); ?></p> 222 222 <p><?php _e( 'You will need a wildcard DNS record if you are going to use the virtual host (sub-domain) functionality.' ); ?></p> 223 223 <?php // @todo: Link to an MS readme? ?> 224 < table class="form-table">225 < tr>226 < th><label><input type='radio' name='subdomain_install' value='1'<?php checked( $subdomain_install ); ?> /> <?php _e( 'Sub-domains' ); ?></label></th>227 < td><?php printf( _x( 'like <code>site1.%1$s</code> and <code>site2.%1$s</code>', 'subdomain examples' ), $hostname ); ?></td>228 </ tr>229 < tr>230 < th><label><input type='radio' name='subdomain_install' value='0'<?php checked( ! $subdomain_install ); ?> /> <?php _e( 'Sub-directories' ); ?></label></th>231 < td><?php printf( _x( 'like <code>%1$s/site1</code> and <code>%1$s/site2</code>', 'subdirectory examples' ), $hostname ); ?></td>232 </ tr>233 </ table>224 <div class="form-fields"> 225 <div class="field-row"> 226 <div class="field-label"><label><input type='radio' name='subdomain_install' value='1'<?php checked( $subdomain_install ); ?> /> <?php _e( 'Sub-domains' ); ?></label></div> 227 <div clsas="field-input"><?php printf( _x( 'like <code>site1.%1$s</code> and <code>site2.%1$s</code>', 'subdomain examples' ), $hostname ); ?></div> 228 </div> 229 <div class="field-row"> 230 <div class="field-label"><label><input type='radio' name='subdomain_install' value='0'<?php checked( ! $subdomain_install ); ?> /> <?php _e( 'Sub-directories' ); ?></label></div> 231 <div class="field-input"><?php printf( _x( 'like <code>%1$s/site1</code> and <code>%1$s/site2</code>', 'subdirectory examples' ), $hostname ); ?></div> 232 </div> 233 </div> 234 234 235 235 <?php 236 236 endif; … … 240 240 ?> 241 241 <h3><?php esc_html_e( 'Server Address' ); ?></h3> 242 242 <p><?php printf( __( 'We recommend you change your siteurl to <code>%1$s</code> before enabling the network feature. It will still be possible to visit your site using the <code>www</code> prefix with an address like <code>%2$s</code> but any links will not have the <code>www</code> prefix.' ), substr( $hostname, 4 ), $hostname ); ?></p> 243 < table class="form-table">244 < tr>245 < th scope='row'><?php esc_html_e( 'Server Address' ); ?></th>246 < td>243 <div class="form-fields"> 244 <div class="field-row"> 245 <div class="field-label"><?php esc_html_e( 'Server Address' ); ?></div> 246 <div class="field-row"> 247 247 <?php printf( __( 'The internet address of your network will be <code>%s</code>.' ), $hostname ); ?> 248 </ td>249 </ tr>250 </ table>248 </div> 249 </div> 250 </div> 251 251 <?php endif; ?> 252 252 253 253 <h3><?php esc_html_e( 'Network Details' ); ?></h3> 254 < table class="form-table">254 <div class="form-fields"> 255 255 <?php if ( 'localhost' == $hostname ) : ?> 256 < tr>257 < th scope="row"><?php esc_html_e( 'Sub-directory Install' ); ?></th>258 < td><?php256 <div class="field-row"> 257 <div class="field-label"><?php esc_html_e( 'Sub-directory Install' ); ?></div> 258 <div class="field-input"><?php 259 259 _e( 'Because you are using <code>localhost</code>, the sites in your WordPress network must use sub-directories. Consider using <code>localhost.localdomain</code> if you wish to use sub-domains.' ); 260 260 // Uh oh: 261 261 if ( !allow_subdirectory_install() ) 262 262 echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>'; 263 ?></ td>264 </ tr>263 ?></div> 264 </div> 265 265 <?php elseif ( !allow_subdomain_install() ) : ?> 266 < tr>267 < th scope="row"><?php esc_html_e( 'Sub-directory Install' ); ?></th>268 < td><?php266 <div class="field-row"> 267 <div class="field-label"><?php esc_html_e( 'Sub-directory Install' ); ?></div> 268 <div class="field-input"><?php 269 269 _e( 'Because your install is in a directory, the sites in your WordPress network must use sub-directories.' ); 270 270 // Uh oh: 271 271 if ( !allow_subdirectory_install() ) 272 272 echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>'; 273 ?></ td>274 </ tr>273 ?></div> 274 </div> 275 275 <?php elseif ( !allow_subdirectory_install() ) : ?> 276 < tr>277 < th scope="row"><?php esc_html_e( 'Sub-domain Install' ); ?></th>278 < td><?php _e( 'Because your install is not new, the sites in your WordPress network must use sub-domains.' );276 <div class="field-row"> 277 <div class="field-label"><?php esc_html_e( 'Sub-domain Install' ); ?></div> 278 <div class="field-input"><?php _e( 'Because your install is not new, the sites in your WordPress network must use sub-domains.' ); 279 279 echo ' <strong>' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>'; 280 ?></ td>281 </ tr>280 ?></div> 281 </div> 282 282 <?php endif; ?> 283 283 <?php if ( ! $is_www ) : ?> 284 < tr>285 < th scope='row'><?php esc_html_e( 'Server Address' ); ?></th>286 < td>284 <div class="field-row"> 285 <div class="field-label"><?php esc_html_e( 'Server Address' ); ?></div> 286 <div class="field-input"> 287 287 <?php printf( __( 'The internet address of your network will be <code>%s</code>.' ), $hostname ); ?> 288 </ td>289 </ tr>288 </div> 289 </div> 290 290 <?php endif; ?> 291 < tr>292 < th scope='row'><?php esc_html_e( 'Network Title' ); ?></th>293 < td>291 <div class="field-row"> 292 <div class="field-label"><?php esc_html_e( 'Network Title' ); ?></div> 293 <div class="field-input"> 294 294 <input name='sitename' type='text' size='45' value='<?php echo esc_attr( $site_name ); ?>' /> 295 295 <br /><?php _e( 'What would you like to call your network?' ); ?> 296 296 </td> 297 297 </tr> 298 < tr>299 < th scope='row'><?php esc_html_e( 'Admin E-mail Address' ); ?></th>300 < td>298 <div class="field-row"> 299 <div class="field-label"><?php esc_html_e( 'Admin E-mail Address' ); ?></div> 300 <div class="field-input"> 301 301 <input name='email' type='text' size='45' value='<?php echo esc_attr( $admin_email ); ?>' /> 302 302 <br /><?php _e( 'Your email address.' ); ?> 303 </ td>304 </ tr>305 </ table>303 </div> 304 </div> 305 </div> 306 306 <?php submit_button( __( 'Install' ), 'primary', 'submit' ); ?> 307 307 </form> 308 308 <?php -
wp-admin/network/site-new.php
118 118 } ?> 119 119 <form method="post" action="<?php echo network_admin_url('site-new.php?action=add-site'); ?>"> 120 120 <?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ) ?> 121 < table class="form-table">122 < tr class="form-fieldform-required">123 < th scope="row"><?php _e( 'Site Address' ) ?></th>124 < td>121 <div class="form-fields"> 122 <div class="field-row form-required"> 123 <div class="field-label"><?php _e( 'Site Address' ) ?></div> 124 <div class="field-input"> 125 125 <?php if ( is_subdomain_install() ) { ?> 126 126 <input name="blog[domain]" type="text" class="regular-text" title="<?php esc_attr_e( 'Domain' ) ?>"/>.<?php echo preg_replace( '|^www\.|', '', $current_site->domain );?> 127 127 <?php } else { … … 129 129 <?php } 130 130 echo '<p>' . __( 'Only the characters a-z and 0-9 recommended.' ) . '</p>'; 131 131 ?> 132 </ td>133 </ tr>134 < tr class="form-fieldform-required">135 < th scope="row"><?php _e( 'Site Title' ) ?></th>136 < td><input name="blog[title]" type="text" class="regular-text" title="<?php esc_attr_e( 'Title' ) ?>"/></td>137 </ tr>138 < tr class="form-fieldform-required">139 < th scope="row"><?php _e( 'Admin Email' ) ?></th>140 < td><input name="blog[email]" type="text" class="regular-text" title="<?php esc_attr_e( 'Email' ) ?>"/></td>141 </ tr>142 < tr class="form-field">143 < td colspan="2"><?php _e( 'A new user will be created if the above email address is not in the database.' ) ?><br /><?php _e( 'The username and password will be mailed to this email address.' ) ?></td>144 </ tr>145 </ table>132 </div> 133 </div> 134 <div class="field-row form-required"> 135 <div class="field-label"><?php _e( 'Site Title' ) ?></div> 136 <div class="field-input"><input name="blog[title]" type="text" class="regular-text" title="<?php esc_attr_e( 'Title' ) ?>"/></div> 137 </div> 138 <div class="field-row form-required"> 139 <div class="field-label"><?php _e( 'Admin Email' ) ?></div> 140 <div class="field-input"div class="field-input"><input name="blog[email]" type="text" class="regular-text" title="<?php esc_attr_e( 'Email' ) ?>"/></div> 141 </div> 142 <div class="field-row"> 143 <div class="field-label label-full"><?php _e( 'A new user will be created if the above email address is not in the database.' ) ?><br /><?php _e( 'The username and password will be mailed to this email address.' ) ?></div> 144 </div> 145 </div> 146 146 <?php submit_button( __('Add Site'), 'primary', 'add-site' ); ?> 147 147 </form> 148 148 </div> -
wp-admin/network/site-info.php
120 120 <form method="post" action="site-info.php?action=update-site"> 121 121 <?php wp_nonce_field( 'edit-site' ); ?> 122 122 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 123 < table class="form-table">124 < tr class="form-fieldform-required">125 < th scope="row"><?php _e( 'Domain' ) ?></th>123 <div class="form-fields"> 124 <div class="field-row form-required"> 125 <div class="field-label"><?php _e( 'Domain' ) ?></div> 126 126 <?php 127 127 $protocol = is_ssl() ? 'https://' : 'http://'; 128 128 if ( $is_main_site ) { ?> 129 < td><code><?php echo $protocol; echo esc_attr( $details->domain ) ?></code></td>129 <div class="form-input"><code><?php echo $protocol; echo esc_attr( $details->domain ) ?></code></div> 130 130 <?php } else { ?> 131 < td><?php echo $protocol; ?><input name="blog[domain]" type="text" id="domain" value="<?php echo esc_attr( $details->domain ) ?>" size="33" /></td>131 <div class="form-input"><?php echo $protocol; ?><input name="blog[domain]" type="text" id="domain" value="<?php echo esc_attr( $details->domain ) ?>" size="33" /></div> 132 132 <?php } ?> 133 </ tr>134 < tr class="form-fieldform-required">135 < th scope="row"><?php _e( 'Path' ) ?></th>133 </div> 134 <div class="field-row form-required"> 135 <div class="field-label"><?php _e( 'Path' ) ?></div> 136 136 <?php if ( $is_main_site ) { ?> 137 < td><code><?php echo esc_attr( $details->path ) ?></code></td>137 <div class="form-input"><code><?php echo esc_attr( $details->path ) ?></code></div> 138 138 <?php } else { ?> 139 < td><input name="blog[path]" type="text" id="path" value="<?php echo esc_attr( $details->path ) ?>" size="40" style='margin-bottom:5px;' />140 <br /><input type="checkbox" style="width:20px;" name="update_home_url" value="update" <?php if ( get_blog_option( $id, 'siteurl' ) == untrailingslashit( get_blogaddress_by_id ($id ) ) || get_blog_option( $id, 'home' ) == untrailingslashit( get_blogaddress_by_id( $id ) ) ) echo 'checked="checked"'; ?> /> <?php _e( 'Update <code>siteurl</code> and <code>home</code> as well.' ); ?></ td>139 <div class="form-input"><input name="blog[path]" type="text" id="path" value="<?php echo esc_attr( $details->path ) ?>" size="40" style='margin-bottom:5px;' /> 140 <br /><input type="checkbox" style="width:20px;" name="update_home_url" value="update" <?php if ( get_blog_option( $id, 'siteurl' ) == untrailingslashit( get_blogaddress_by_id ($id ) ) || get_blog_option( $id, 'home' ) == untrailingslashit( get_blogaddress_by_id( $id ) ) ) echo 'checked="checked"'; ?> /> <?php _e( 'Update <code>siteurl</code> and <code>home</code> as well.' ); ?></div> 141 141 <?php } ?> 142 </ tr>143 < tr class="form-field">144 < th scope="row"><?php _ex( 'Registered', 'site' ) ?></th>145 < td><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo esc_attr( $details->registered ) ?>" size="40" /></td>146 </ tr>147 < tr class="form-field">148 < th scope="row"><?php _e( 'Last Updated' ); ?></th>149 < td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ) ?>" size="40" /></td>150 </ tr>142 </div> 143 <div class="form-row"> 144 <div class="field-label"><?php _ex( 'Registered', 'site' ) ?></div> 145 <div class="form-input"><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo esc_attr( $details->registered ) ?>" size="40" /></div> 146 </div> 147 <div class="form-row"> 148 <div class="field-label"><?php _e( 'Last Updated' ); ?></div> 149 <div class="form-input"><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ) ?>" size="40" /></div> 150 </div> 151 151 <?php 152 152 $attribute_fields = array( 'public' => __( 'Public' ) ); 153 153 if ( ! $is_main_site ) { … … 157 157 } 158 158 $attribute_fields['mature'] = __( 'Mature' ); 159 159 ?> 160 < tr>161 < th scope="row"><?php _e( 'Attributes' ); ?></th>162 < td>160 <div class="form-row"> 161 <div class="field-label"><?php _e( 'Attributes' ); ?></div> 162 <div class="form-input"> 163 163 <?php foreach ( $attribute_fields as $field_key => $field_label ) : ?> 164 164 <label><input type="checkbox" name="blog[<?php echo $field_key; ?>]" value="1" <?php checked( (bool) $details->$field_key, true ); disabled( ! in_array( $details->$field_key, array( 0, 1 ) ) ); ?> /> 165 165 <?php echo $field_label; ?></label><br/> 166 166 <?php endforeach; ?> 167 </ td>168 </ tr>169 </ table>167 </div> 168 </div> 169 </div> 170 170 <?php submit_button(); ?> 171 171 </form> 172 172 -
wp-admin/network/settings.php
119 119 <form method="post" action="settings.php"> 120 120 <?php wp_nonce_field( 'siteoptions' ); ?> 121 121 <h3><?php _e( 'Operational Settings' ); ?></h3> 122 < table class="form-table">123 < tr valign="top">124 < th scope="row"><label for="site_name"><?php _e( 'Network Name' ) ?></label></th>125 < td>122 <div class="form-fields"> 123 <div class="field-row"> 124 <div class="field-label"><label for="site_name"><?php _e( 'Network Name' ) ?></label></div> 125 <div class="field-input"> 126 126 <input name="site_name" type="text" id="site_name" class="regular-text" value="<?php echo esc_attr( $current_site->site_name ) ?>" /> 127 127 <br /> 128 128 <?php _e( 'What you would like to call this website.' ) ?> 129 </ td>130 </ tr>129 </div> 130 </div> 131 131 132 < tr valign="top">133 < th scope="row"><label for="admin_email"><?php _e( 'Network Admin Email' ) ?></label></th>134 < td>132 <div class="field-row"> 133 <div class="field-label"><label for="admin_email"><?php _e( 'Network Admin Email' ) ?></label></div> 134 <div class="field-input"> 135 135 <input name="admin_email" type="text" id="admin_email" class="regular-text" value="<?php echo esc_attr( get_site_option('admin_email') ) ?>" /> 136 136 <br /> 137 137 <?php printf( __( 'Registration and support emails will come from this address. An address such as <code>support@%s</code> is recommended.' ), $current_site->domain ); ?> 138 </ td>139 </ tr>140 </ table>138 </div> 139 </div> 140 </div> 141 141 <h3><?php _e( 'Registration Settings' ); ?></h3> 142 < table class="form-table">143 < tr valign="top">144 < th scope="row"><?php _e( 'Allow new registrations' ) ?></th>142 <div class="form-fields"> 143 <div class="field-row"> 144 <div class="field-label"><?php _e( 'Allow new registrations' ) ?></div> 145 145 <?php 146 146 if ( !get_site_option( 'registration' ) ) 147 147 update_site_option( 'registration', 'none' ); 148 148 $reg = get_site_option( 'registration' ); 149 149 ?> 150 < td>150 <div class="field-input"> 151 151 <label><input name="registration" type="radio" id="registration1" value="none"<?php checked( $reg, 'none') ?> /> <?php _e( 'Registration is disabled.' ); ?></label><br /> 152 152 <label><input name="registration" type="radio" id="registration2" value="user"<?php checked( $reg, 'user') ?> /> <?php _e( 'User accounts may be registered.' ); ?></label><br /> 153 153 <label><input name="registration" type="radio" id="registration3" value="blog"<?php checked( $reg, 'blog') ?> /> <?php _e( 'Logged in users may register new sites.' ); ?></label><br /> … … 155 155 <?php if ( is_subdomain_install() ) 156 156 _e( '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.' ); 157 157 ?> 158 </ td>159 </ tr>158 </div> 159 </div> 160 160 161 < tr valign="top">162 < th scope="row"><?php _e( 'Registration notification' ) ?></th>161 <div class="field-row"> 162 <div class="field-label"><?php _e( 'Registration notification' ) ?></div> 163 163 <?php 164 164 if ( !get_site_option( 'registrationnotification' ) ) 165 165 update_site_option( 'registrationnotification', 'yes' ); 166 166 ?> 167 < td>167 <div class="field-input"> 168 168 <label><input name="registrationnotification" type="checkbox" id="registrationnotification" value="yes"<?php checked( get_site_option( 'registrationnotification' ), 'yes' ) ?> /> <?php _e( 'Send the network admin an email notification every time someone registers a site or user account.' ) ?></label> 169 </ td>170 </ tr>169 </div> 170 </div> 171 171 172 < tr valign="top" id="addnewusers">173 < th scope="row"><?php _e( 'Add New Users' ) ?></th>174 < td>172 <div class="field-row" id="addnewusers"> 173 <div class="field-label"><?php _e( 'Add New Users' ) ?></div> 174 <div class="field-input"> 175 175 <label><input name="add_new_users" type="checkbox" id="add_new_users" value="1"<?php checked( get_site_option( 'add_new_users' ) ) ?> /> <?php _e( 'Allow site administrators to add new users to their site via the "Users → Add New" page.' ); ?></label> 176 </ td>177 </ tr>176 </div> 177 </div> 178 178 179 < tr valign="top">180 < th scope="row"><label for="illegal_names"><?php _e( 'Banned Names' ) ?></label></th>181 < td>179 <div class="field-row"> 180 <div class="field-label"><label for="illegal_names"><?php _e( 'Banned Names' ) ?></label></div> 181 <div class="field-input"> 182 182 <input name="illegal_names" type="text" id="illegal_names" class="large-text" value="<?php echo esc_attr( implode( " ", (array) get_site_option( 'illegal_names' ) ) ); ?>" size="45" /> 183 183 <br /> 184 184 <?php _e( 'Users are not allowed to register these sites. Separate names by spaces.' ) ?> 185 </ td>186 </ tr>185 </div> 186 </div> 187 187 188 < tr valign="top">189 < th scope="row"><label for="limited_email_domains"><?php _e( 'Limited Email Registrations' ) ?></label></th>190 < td>188 <div class="field-row"> 189 <div class="field-label"><label for="limited_email_domains"><?php _e( 'Limited Email Registrations' ) ?></label></div> 190 <div class="field-input"> 191 191 <?php $limited_email_domains = get_site_option( 'limited_email_domains' ); 192 192 $limited_email_domains = str_replace( ' ', "\n", $limited_email_domains ); ?> 193 193 <textarea name="limited_email_domains" id="limited_email_domains" cols="45" rows="5"> 194 194 <?php echo esc_textarea( $limited_email_domains == '' ? '' : implode( "\n", (array) $limited_email_domains ) ); ?></textarea> 195 195 <br /> 196 196 <?php _e( 'If you want to limit site registrations to certain domains. One domain per line.' ) ?> 197 </ td>198 </ tr>197 </div> 198 </div> 199 199 200 < tr valign="top">201 < th scope="row"><label for="banned_email_domains"><?php _e('Banned Email Domains') ?></label></th>202 < td>200 <div class="field-row"> 201 <div class="field-label"><label for="banned_email_domains"><?php _e('Banned Email Domains') ?></label></div> 202 <div class="field-input"> 203 203 <textarea name="banned_email_domains" id="banned_email_domains" cols="45" rows="5"> 204 204 <?php echo esc_textarea( get_site_option( 'banned_email_domains' ) == '' ? '' : implode( "\n", (array) get_site_option( 'banned_email_domains' ) ) ); ?></textarea> 205 205 <br /> 206 206 <?php _e( 'If you want to ban domains from site registrations. One domain per line.' ) ?> 207 </ td>208 </ tr>207 </div> 208 </div> 209 209 210 </ table>210 </div> 211 211 <h3><?php _e('New Site Settings'); ?></h3> 212 < table class="form-table">212 <div class="form-fields"> 213 213 214 < tr valign="top">215 < th scope="row"><label for="welcome_email"><?php _e( 'Welcome Email' ) ?></label></th>216 < td>214 <div class="field-row"> 215 <div class="field-label"><label for="welcome_email"><?php _e( 'Welcome Email' ) ?></label></div> 216 <div class="field-input"> 217 217 <textarea name="welcome_email" id="welcome_email" rows="5" cols="45" class="large-text"> 218 218 <?php echo esc_textarea( stripslashes( get_site_option( 'welcome_email' ) ) ) ?></textarea> 219 219 <br /> 220 220 <?php _e( 'The welcome email sent to new site owners.' ) ?> 221 </ td>222 </ tr>223 < tr valign="top">224 < th scope="row"><label for="welcome_user_email"><?php _e( 'Welcome User Email' ) ?></label></th>225 < td>221 </div> 222 </div> 223 <div class="field-row"> 224 <div class="field-label"><label for="welcome_user_email"><?php _e( 'Welcome User Email' ) ?></label></div> 225 <div class="field-input"> 226 226 <textarea name="welcome_user_email" id="welcome_user_email" rows="5" cols="45" class="large-text"> 227 227 <?php echo esc_textarea( stripslashes( get_site_option( 'welcome_user_email' ) ) ) ?></textarea> 228 228 <br /> 229 229 <?php _e( 'The welcome email sent to new users.' ) ?> 230 </ td>231 </ tr>232 < tr valign="top">233 < th scope="row"><label for="first_post"><?php _e( 'First Post' ) ?></label></th>234 < td>230 </div> 231 </div> 232 <div class="field-row"> 233 <div class="field-label"><label for="first_post"><?php _e( 'First Post' ) ?></label></div> 234 <div class="field-input"> 235 235 <textarea name="first_post" id="first_post" rows="5" cols="45" class="large-text"> 236 236 <?php echo esc_textarea( stripslashes( get_site_option( 'first_post' ) ) ) ?></textarea> 237 237 <br /> 238 238 <?php _e( 'The first post on a new site.' ) ?> 239 </ td>240 </ tr>241 < tr valign="top">242 < th scope="row"><label for="first_page"><?php _e( 'First Page' ) ?></label></th>243 < td>239 </div> 240 </div> 241 <div class="field-row"> 242 <div class="field-label"><label for="first_page"><?php _e( 'First Page' ) ?></label></div> 243 <div class="field-input"> 244 244 <textarea name="first_page" id="first_page" rows="5" cols="45" class="large-text"> 245 245 <?php echo esc_textarea( stripslashes( get_site_option('first_page') ) ) ?></textarea> 246 246 <br /> 247 247 <?php _e( 'The first page on a new site.' ) ?> 248 </ td>249 </ tr>250 < tr valign="top">251 < th scope="row"><label for="first_comment"><?php _e( 'First Comment' ) ?></label></th>252 < td>248 </div> 249 </div> 250 <div class="field-row"> 251 <div class="field-label"><label for="first_comment"><?php _e( 'First Comment' ) ?></label></div> 252 <div class="field-input"> 253 253 <textarea name="first_comment" id="first_comment" rows="5" cols="45" class="large-text"> 254 254 <?php echo esc_textarea( stripslashes( get_site_option('first_comment') ) ) ?></textarea> 255 255 <br /> 256 256 <?php _e( 'The first comment on a new site.' ) ?> 257 </ td>258 </ tr>259 < tr valign="top">260 < th scope="row"><label for="first_comment_author"><?php _e( 'First Comment Author' ) ?></label></th>261 < td>257 </div> 258 </div> 259 <div class="field-row"> 260 <div class="field-label"><label for="first_comment_author"><?php _e( 'First Comment Author' ) ?></label></div> 261 <div class="field-input"> 262 262 <input type="text" size="40" name="first_comment_author" id="first_comment_author" value="<?php echo get_site_option('first_comment_author') ?>" /> 263 263 <br /> 264 264 <?php _e( 'The author of the first comment on a new site.' ) ?> 265 </ td>266 </ tr>267 < tr valign="top">268 < th scope="row"><label for="first_comment_url"><?php _e( 'First Comment URL' ) ?></label></th>269 < td>265 </div> 266 </div> 267 <div class="field-row"> 268 <div class="field-label"><label for="first_comment_url"><?php _e( 'First Comment URL' ) ?></label></div> 269 <div class="field-input"> 270 270 <input type="text" size="40" name="first_comment_url" id="first_comment_url" value="<?php echo esc_attr( get_site_option( 'first_comment_url' ) ) ?>" /> 271 271 <br /> 272 272 <?php _e( 'The URL for the first comment on a new site.' ) ?> 273 </ td>274 </ tr>275 </ table>273 </div> 274 </div> 275 </div> 276 276 <h3><?php _e( 'Upload Settings' ); ?></h3> 277 < table class="form-table">278 < tr valign="top">279 < th scope="row"><?php _e( 'Site upload space' ) ?></th>280 < td>277 <div class="form-fields"> 278 <div class="field-row"> 279 <div class="field-label"><?php _e( 'Site upload space' ) ?></div> 280 <div class="field-input"> 281 281 <label><input type="checkbox" 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' ), '</label><label><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 /> 282 </ td>283 </ tr>282 </div> 283 </div> 284 284 285 < tr valign="top">286 < th scope="row"><label for="upload_filetypes"><?php _e( 'Upload file types' ) ?></label></th>287 < 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>288 </ tr>285 <div class="field-row"> 286 <div class="field-label"><label for="upload_filetypes"><?php _e( 'Upload file types' ) ?></label></div> 287 <div class="field-input"><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" /></div> 288 </div> 289 289 290 < tr valign="top">291 < th scope="row"><label for="fileupload_maxk"><?php _e( 'Max upload file size' ) ?></label></th>292 < td><?php printf( _x( '%s KB', 'File size in kilobytes' ), '<input name="fileupload_maxk" type="text" id="fileupload_maxk" value="' . esc_attr( get_site_option( 'fileupload_maxk', 300 ) ) . '" size="5" />' ); ?></td>293 </ tr>294 </ table>290 <div class="field-row"> 291 <div class="field-label"><label for="fileupload_maxk"><?php _e( 'Max upload file size' ) ?></label></div> 292 <div class="field-input"><?php printf( _x( '%s KB', 'File size in kilobytes' ), '<input name="fileupload_maxk" type="text" id="fileupload_maxk" value="' . esc_attr( get_site_option( 'fileupload_maxk', 300 ) ) . '" size="5" />' ); ?></div> 293 </div> 294 </div> 295 295 296 296 <?php 297 297 $languages = get_available_languages(); … … 299 299 $lang = get_site_option( 'WPLANG' ); 300 300 ?> 301 301 <h3><?php _e( 'Language Settings' ); ?></h3> 302 < table class="form-table">303 < tr valign="top">304 < th><label for="WPLANG"><?php _e( 'Default Language' ); ?></label></th>305 < td>302 <div class="form-fields"> 303 <div class="field-row"> 304 <div class="field-label"><label for="WPLANG"><?php _e( 'Default Language' ); ?></label></div> 305 <div class="field-input"> 306 306 <select name="WPLANG" id="WPLANG"> 307 307 <?php mu_dropdown_languages( $languages, get_site_option( 'WPLANG' ) ); ?> 308 308 </select> 309 </ td>310 </ tr>311 </ table>309 </div> 310 </div> 311 </div> 312 312 <?php 313 313 } // languages 314 314 ?> 315 315 316 316 <h3><?php _e( 'Menu Settings' ); ?></h3> 317 < table id="menu" class="form-table">318 < tr valign="top">319 < th scope="row"><?php _e( 'Enable administration menus' ); ?></th>320 < td>317 <div id="menu" class="form-fields"> 318 <div class="field-row"> 319 <div class="field-label"><?php _e( 'Enable administration menus' ); ?></div> 320 <div class="field-input"> 321 321 <?php 322 322 $menu_perms = get_site_option( 'menu_items' ); 323 323 $menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) ); … … 325 325 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/>"; 326 326 } 327 327 ?> 328 </ td>329 </ tr>330 </ table>328 </div> 329 </div> 330 </div> 331 331 332 332 <?php do_action( 'wpmu_options' ); // Add more options here ?> 333 333 -
wp-admin/network/site-settings.php
110 110 <form method="post" action="site-settings.php?action=update-site"> 111 111 <?php wp_nonce_field( 'edit-site' ); ?> 112 112 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 113 < table class="form-table">113 <div class="form-fields"> 114 114 <?php 115 115 $blog_prefix = $wpdb->get_blog_prefix( $id ); 116 116 $options = $wpdb->get_results( "SELECT * FROM {$blog_prefix}options WHERE option_name NOT LIKE '\_%' AND option_name NOT LIKE '%user_roles'" ); … … 130 130 } 131 131 if ( strpos( $option->option_value, "\n" ) !== false ) { 132 132 ?> 133 < tr class="form-field">134 < th scope="row"><?php echo ucwords( str_replace( "_", " ", $option->option_name ) ) ?></th>135 < td><textarea class="<?php echo $class; ?>" rows="5" cols="40" name="option[<?php echo esc_attr( $option->option_name ) ?>]" id="<?php echo esc_attr( $option->option_name ) ?>"<?php disabled( $disabled ) ?>><?php echo esc_textarea( $option->option_value ) ?></textarea></td>136 </ tr>133 <div class="field-row"> 134 <div class="field-label"><?php echo ucwords( str_replace( "_", " ", $option->option_name ) ) ?></div> 135 <div class="field-input"><textarea class="<?php echo $class; ?>" rows="5" cols="40" name="option[<?php echo esc_attr( $option->option_name ) ?>]" id="<?php echo esc_attr( $option->option_name ) ?>"<?php disabled( $disabled ) ?>><?php echo esc_textarea( $option->option_value ) ?></textarea></div> 136 </div> 137 137 <?php 138 138 } else { 139 139 ?> 140 < tr class="form-field">141 < th scope="row"><?php echo esc_html( ucwords( str_replace( "_", " ", $option->option_name ) ) ); ?></th>140 <div class="field-row"> 141 <div class="field-label"><?php echo esc_html( ucwords( str_replace( "_", " ", $option->option_name ) ) ); ?></div> 142 142 <?php if ( $is_main_site && in_array( $option->option_name, array( 'siteurl', 'home' ) ) ) { ?> 143 < td><code><?php echo esc_html( $option->option_value ) ?></code></td>143 <div class="field-input"><code><?php echo esc_html( $option->option_value ) ?></code></div> 144 144 <?php } else { ?> 145 < td><input class="<?php echo $class; ?>" name="option[<?php echo esc_attr( $option->option_name ) ?>]" type="text" id="<?php echo esc_attr( $option->option_name ) ?>" value="<?php echo esc_attr( $option->option_value ) ?>" size="40" <?php disabled( $disabled ) ?> /></td>145 <div class="field-input"><input class="<?php echo $class; ?>" name="option[<?php echo esc_attr( $option->option_name ) ?>]" type="text" id="<?php echo esc_attr( $option->option_name ) ?>" value="<?php echo esc_attr( $option->option_value ) ?>" size="40" <?php disabled( $disabled ) ?> /></div> 146 146 <?php } ?> 147 </ tr>147 </div> 148 148 <?php 149 149 } 150 150 } // End foreach 151 151 do_action( 'wpmueditblogaction', $id ); 152 152 ?> 153 </ table>153 </div> 154 154 <?php submit_button(); ?> 155 155 </form> 156 156 -
wp-admin/network/site-users.php
254 254 <form action="site-users.php?action=adduser" id="adduser" method="post"> 255 255 <?php wp_nonce_field( 'edit-site' ); ?> 256 256 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 257 < tableclass="form-table">258 < tr>259 < th scope="row"><?php _e( 'Username' ); ?></th>260 < td><input type="text" class="regular-text" name="newuser" id="newuser" /></td>261 </ tr>262 < tr>263 < th scope="row"><?php _e( 'Role'); ?></th>264 < td><select name="new_role" id="new_role_0">257 <div class="form-table"> 258 <div class="field-row"> 259 <div class="field-label"><?php _e( 'Username' ); ?></div> 260 <div class="field-input"><input type="text" class="regular-text" name="newuser" id="newuser" /></div> 261 </div> 262 <div class="field-row"> 263 <div class="field-label"><?php _e( 'Role'); ?></div> 264 <div class="field-input"><select name="new_role" id="new_role_0"> 265 265 <?php 266 266 reset( $editblog_roles ); 267 267 foreach ( $editblog_roles as $role => $role_assoc ){ … … 270 270 echo '<option ' . $selected . ' value="' . esc_attr( $role ) . '">' . esc_html( $name ) . '</option>'; 271 271 } 272 272 ?> 273 </select></ td>274 </ tr>275 </ table>273 </select></div> 274 </div> 275 </div> 276 276 <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?> 277 277 <?php submit_button( __('Add User'), 'primary', 'add-user', false, array( 'id' => 'submit-add-existing-user' ) ); ?> 278 278 </form> … … 283 283 <form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post"> 284 284 <?php wp_nonce_field( 'edit-site' ); ?> 285 285 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 286 < table class="form-table">287 < tr>288 < th scope="row"><?php _e( 'Username' ) ?></th>289 < td><input type="text" class="regular-text" name="user[username]" /></td>290 </ tr>291 < tr>292 < th scope="row"><?php _e( 'Email' ) ?></th>293 < td><input type="text" class="regular-text" name="user[email]" /></td>294 </ tr>295 < tr>296 < th scope="row"><?php _e( 'Role'); ?></th>297 < td><select name="new_role" id="new_role_0">286 <div class="form-fields"> 287 <div class="field-row"> 288 <div class="field-label"><?php _e( 'Username' ) ?></div> 289 <div class="field-input"><input type="text" class="regular-text" name="user[username]" /></div> 290 </div> 291 <div class="field-row"> 292 <div class="field-label"><?php _e( 'Email' ) ?></div> 293 <div class="field-input"><input type="text" class="regular-text" name="user[email]" /></div> 294 </div> 295 <div class="field-row"> 296 <div class="field-label"><?php _e( 'Role'); ?></div> 297 <div class="field-input"><select name="new_role" id="new_role_0"> 298 298 <?php 299 299 reset( $editblog_roles ); 300 300 foreach ( $editblog_roles as $role => $role_assoc ){ … … 303 303 echo '<option ' . $selected . ' value="' . esc_attr( $role ) . '">' . esc_html( $name ) . '</option>'; 304 304 } 305 305 ?> 306 </select></ td>307 </ tr>308 < tr class="form-field">309 < td colspan="2"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></td>310 </ tr>311 </ table>306 </select></div> 307 </div> 308 <div class="field-row"> 309 <div class="field-label label-full"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></div> 310 </div> 311 </div> 312 312 <?php wp_nonce_field( 'add-user', '_wpnonce_add-new-user' ) ?> 313 313 <?php submit_button( __('Add New User'), 'primary', 'add-user', false, array( 'id' => 'submit-add-user' ) ); ?> 314 314 </form> -
wp-admin/network/user-new.php
87 87 </div> 88 88 <?php } ?> 89 89 <form action="<?php echo network_admin_url('user-new.php?action=add-user'); ?>" id="adduser" method="post"> 90 < table class="form-table">91 < tr class="form-fieldform-required">92 < th scope="row"><?php _e( 'Username' ) ?></th>93 < td><input type="text" class="regular-text" name="user[username]" /></td>94 </ tr>95 < tr class="form-fieldform-required">96 < th scope="row"><?php _e( 'Email' ) ?></th>97 < td><input type="text" class="regular-text" name="user[email]" /></td>98 </ tr>99 < tr class="form-field">100 < td colspan="2"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></td>101 </ tr>102 </ table>90 <div class="form-fields"> 91 <div class="field-row form-required"> 92 <div class="field-label"><?php _e( 'Username' ) ?></div> 93 <div class="field-input"><input type="text" class="regular-text" name="user[username]" /></div> 94 </div> 95 <div class="field-row form-required"> 96 <div class="field-label"><?php _e( 'Email' ) ?></div> 97 <div><input type="text" class="regular-text" name="user[email]" /></div> 98 </div> 99 <div class="field-row"> 100 <div class="field-label label-full"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></div> 101 </div> 102 </div> 103 103 <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?> 104 104 <?php submit_button( __('Add User'), 'primary', 'add-user' ); ?> 105 105 </form>