- Timestamp:
- 11/29/2010 01:31:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-ms-users-list-table.php
r16601 r16607 218 218 if ( is_array( $blogs ) ) { 219 219 foreach ( (array) $blogs as $key => $val ) { 220 $path = ( $val->path == '/' ) ? '' : $val->path; 220 if ( $current_site->id != $val->site_id ) continue; 221 222 $path = ( $val->path == '/' ) ? '' : $val->path; 221 223 echo '<a href="'. esc_url( network_admin_url( 'site-info.php?id=' . $val->userblog_id ) ) .'">' . str_replace( '.' . $current_site->domain, '', $val->domain . $path ) . '</a>'; 222 224 echo ' <small class="row-actions">'; 223 224 // Edit 225 echo '<a href="'. esc_url( network_admin_url( 'site-info.php?id=' . $val->userblog_id ) ) .'">' . __( 'Edit' ) . '</a> | '; 226 227 // View 228 echo '<a '; 225 $actions = array(); 226 $actions['edit'] = '<a href="'. esc_url( network_admin_url( 'site-info.php?id=' . $val->userblog_id ) ) .'">' . __( 'Edit' ) . '</a>'; 227 228 $class = ''; 229 229 if ( get_blog_status( $val->userblog_id, 'spam' ) == 1 ) 230 echo 'style="background-color: #faa" '; 231 echo 'href="' . esc_url( get_home_url( $val->userblog_id ) ) . '">' . __( 'View' ) . '</a>'; 232 233 echo '</small><br />'; 230 $class .= 'site-spammed '; 231 if ( get_blog_status( $val->userblog_id, 'mature' ) == 1 ) 232 $class .= 'site-mature '; 233 if ( get_blog_status( $val->userblog_id, 'deleted' ) == 1 ) 234 $class .= 'site-deleted '; 235 if ( get_blog_status( $val->userblog_id, 'archived' ) == 1 ) 236 $class .= 'site-archived '; 237 238 $actions['view'] = '<a class="' . $class . '" href="' . esc_url( get_home_url( $val->userblog_id ) ) . '">' . __( 'View' ) . '</a>'; 239 240 $actions = apply_filters('ms_user_list_site_actions', $actions, $val->userblog_id); 241 242 $i=0; 243 $action_count = count( $actions ); 244 foreach ( $actions as $action => $link ) { 245 ++$i; 246 ( $i == $action_count ) ? $sep = '' : $sep = ' | '; 247 echo "<span class='$action'>$link$sep</span>"; 248 } 249 echo '</small><br/>'; 234 250 } 235 251 }
Note: See TracChangeset
for help on using the changeset viewer.