-
+
@@ -241,7 +239,7 @@ switch ( $action ) {
?>
$role_assoc ){
+ foreach ( $editblog_roles as $role => $role_assoc ){
$name = translate_with_context($role_assoc['name']);
$selected = ( $role == $existing_role ) ? 'selected="selected"' : '';
echo "{$name} ";
@@ -250,10 +248,10 @@ switch ( $action ) {
-
+
';
+ echo '
';
} else {
echo "
" . __ ('N/A') . " " . __ ('N/A') . " " . __('N/A') . " ";
}
@@ -448,22 +446,35 @@ switch ( $action ) {
"#fee", "spam" => "#faa", "deleted" => "#f55" );
+ $status_list = array( 'archived' => array( '#fee', __('Archived') ), 'spam' => array( '#faa', __('Spam') ), 'deleted' => array( '#f55', __('Deleted') ) );
foreach ( $blog_list as $blog ) {
$class = ('alternate' == $class) ? '' : 'alternate';
reset( $status_list );
- $bgcolour = "";
+ $bgcolour = '';
+ $blog_states = array();
foreach ( $status_list as $status => $col ) {
if ( get_blog_status( $blog['blog_id'], $status ) == 1 ) {
- $bgcolour = "style='background: $col'";
+ $bgcolour = "style='background: {$col[0]}'";
+ $blog_states[] = $col[1];
+ }
+ }
+ $blog_state = '';
+ if ( ! empty($blog_states) ) {
+ $state_count = count($blog_states);
+ $i = 0;
+ $blog_state .= ' - ';
+ foreach ( $blog_states as $state ) {
+ ++$i;
+ ( $i == $state_count ) ? $sep = '' : $sep = ', ';
+ $blog_state .= "
$state$sep ";
}
}
echo "
";
$blogname = ( is_subdomain_install() ) ? str_replace('.'.$current_site->domain, '', $blog['domain']) : $blog['path'];
foreach ( $posts_columns as $column_name=>$column_display_name ) {
- switch($column_name) {
+ switch ( $column_name ) {
case 'id': ?>
' name='allblogs[]' value='' />
@@ -476,36 +487,36 @@ switch ( $action ) {
case 'blogname': ?>
-
+
' . __('Edit') . '';
- $controlActions[] = "" . __('Backend') . ' ';
+ $actions = array();
+ $actions[] = '' . __('Edit') . ' ';
+ $actions[] = "" . __('Backend') . ' ';
if ( get_blog_status( $blog['blog_id'], "deleted" ) == '1' )
- $controlActions[] = '' . __('Activate') . ' ';
+ $actions[] = '' . __('Activate') . ' ';
else
- $controlActions[] = '' . __('Deactivate') . ' ';
+ $actions[] = '' . __('Deactivate') . ' ';
if ( get_blog_status( $blog['blog_id'], "archived" ) == '1' )
- $controlActions[] = '' . __('Unarchive') . ' ';
+ $actions[] = '' . __('Unarchive') . ' ';
else
- $controlActions[] = '' . __('Archive') . ' ';
+ $actions[] = '' . __('Archive') . ' ';
if ( get_blog_status( $blog['blog_id'], "spam" ) == '1' )
- $controlActions[] = '' . __('Not Spam') . ' ';
+ $actions[] = '' . __('Not Spam') . ' ';
else
- $controlActions[] = '' . __("Spam") . ' ';
+ $actions[] = '' . __("Spam") . ' ';
- $controlActions[] = '' . __("Delete") . ' ';
+ $actions[] = '' . __("Delete") . ' ';
- $controlActions[] = "" . __('Visit') . ' ';
+ $actions[] = "" . __('Visit') . ' ';
?>
-
+
-
+
@@ -535,12 +546,10 @@ switch ( $action ) {
$blogusers = array_slice( $blogusers, 0, 5 );
$blogusers_warning = __( 'Only showing first 5 users.' ) . ' ' . __( 'More' ) . ' ';
}
- foreach ( $blogusers as $key => $val ) {
+ foreach ( $blogusers as $key => $val )
echo '' . $val->user_login . ' ('.$val->user_email.') ';
- }
- if ( $blogusers_warning != '' ) {
+ if ( $blogusers_warning != '' )
echo '' . $blogusers_warning . ' ';
- }
}
?>