In ms-sites.php blog, display 'mature' option for root blog. Also, small styling cleanups.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-04-06 23:13:44 +00:00
parent e1d6d0bc7b
commit 7278f682f2
1 changed files with 8 additions and 6 deletions

View File

@ -120,6 +120,9 @@ switch ( $action ) {
<th scope="row"><?php _e('Last Updated') ?></th>
<td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ) ?>" size="40" /></td>
</tr>
<tr>
<th scope="row"><?php _e( 'Site Settings' ); ?></th>
<td>
<?php
if ( $is_main_site )
$checked_fields = array( 'public' => __( 'Public' ) );
@ -129,16 +132,15 @@ switch ( $action ) {
'archived' => __('Archived'),
'spam' => __('Spam'),
'deleted' => __('Deleted'),
'mature' => __('Mature'),
);
$checked_fields['mature'] = __( 'Mature' );
foreach ( $checked_fields as $field_key => $field_label ) {
?>
<tr class="form-field">
<th scope="row"><label for="blog_<?php echo $field_key; ?>"><?php echo $field_label; ?></label></th>
<td><input type="checkbox" name="blog[<?php echo $field_key; ?>]" id="blog_<?php echo $field_key; ?>" value="<?php echo $details->$field_key; ?>"<?php checked( $details->$field_key ); ?> /></td>
</tr>
<input type="checkbox" name="blog[<?php echo $field_key; ?>]" id="blog_<?php echo $field_key; ?>" value="<?php echo $details->$field_key; ?>"<?php checked( $details->$field_key ); ?> />
<label for="blog_<?php echo $field_key; ?>"><?php echo $field_label; ?></label><br/>
<?php } ?>
</td>
</tr>
</table>
<p class="submit" style="text-align:center;"><input type="submit" name="Submit" value="<?php esc_attr_e( 'Update Options' ) ?>" /></p>
</div>