wip
This commit is contained in:
@@ -196,24 +196,21 @@ if ( ! empty( $messages ) ) {
|
||||
<td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ); ?>" /></td>
|
||||
</tr>
|
||||
<?php
|
||||
$site_attributes_title = __( 'Attributes' );
|
||||
|
||||
$attribute_fields = array( 'public' => _x( 'Public', 'site' ) );
|
||||
if ( ! $is_main_site ) {
|
||||
$attribute_fields['archived'] = __( 'Archived' );
|
||||
$attribute_fields['spam'] = _x( 'Spam', 'site' );
|
||||
$attribute_fields['deleted'] = __( 'Deleted' );
|
||||
$attribute_fields['deleted'] = __( 'Flagged for Deletion' );
|
||||
}
|
||||
$attribute_fields['mature'] = __( 'Mature' );
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><?php _e( 'Attributes' ); ?></th>
|
||||
<th scope="row"><?php echo $site_attributes_title; ?></th>
|
||||
<td>
|
||||
<fieldset>
|
||||
<legend class="screen-reader-text">
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. */
|
||||
_e( 'Set site attributes' );
|
||||
?>
|
||||
</legend>
|
||||
<legend class="screen-reader-text"><?php echo $site_attributes_title; ?></legend>
|
||||
<?php foreach ( $attribute_fields as $field_key => $field_label ) : ?>
|
||||
<label><input type="checkbox" name="blog[<?php echo $field_key; ?>]" value="1" <?php checked( (bool) $details->$field_key, true ); ?> <?php disabled( ! in_array( (int) $details->$field_key, array( 0, 1 ), true ) ); ?> />
|
||||
<?php echo $field_label; ?></label><br />
|
||||
|
||||
Reference in New Issue
Block a user