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:
parent
e1d6d0bc7b
commit
7278f682f2
|
@ -120,6 +120,9 @@ switch ( $action ) {
|
||||||
<th scope="row"><?php _e('Last Updated') ?></th>
|
<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>
|
<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>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><?php _e( 'Site Settings' ); ?></th>
|
||||||
|
<td>
|
||||||
<?php
|
<?php
|
||||||
if ( $is_main_site )
|
if ( $is_main_site )
|
||||||
$checked_fields = array( 'public' => __( 'Public' ) );
|
$checked_fields = array( 'public' => __( 'Public' ) );
|
||||||
|
@ -129,16 +132,15 @@ switch ( $action ) {
|
||||||
'archived' => __('Archived'),
|
'archived' => __('Archived'),
|
||||||
'spam' => __('Spam'),
|
'spam' => __('Spam'),
|
||||||
'deleted' => __('Deleted'),
|
'deleted' => __('Deleted'),
|
||||||
'mature' => __('Mature'),
|
|
||||||
);
|
);
|
||||||
|
$checked_fields['mature'] = __( 'Mature' );
|
||||||
foreach ( $checked_fields as $field_key => $field_label ) {
|
foreach ( $checked_fields as $field_key => $field_label ) {
|
||||||
?>
|
?>
|
||||||
<tr class="form-field">
|
<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 ); ?> />
|
||||||
<th scope="row"><label for="blog_<?php echo $field_key; ?>"><?php echo $field_label; ?></label></th>
|
<label for="blog_<?php echo $field_key; ?>"><?php echo $field_label; ?></label><br/>
|
||||||
<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>
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<p class="submit" style="text-align:center;"><input type="submit" name="Submit" value="<?php esc_attr_e( 'Update Options' ) ?>" /></p>
|
<p class="submit" style="text-align:center;"><input type="submit" name="Submit" value="<?php esc_attr_e( 'Update Options' ) ?>" /></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue