Changeset 12949 for trunk/wp-admin/ms-sites.php
- Timestamp:
- 02/04/2010 07:03:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/ms-sites.php
r12934 r12949 446 446 <?php 447 447 if ( $blog_list ) { 448 $bgcolor = $class = ''; 449 $status_list = array( 'archived' => array( '#fee', __('Archived') ), 'spam' => array( '#faa', __('Spam') ), 'deleted' => array( '#f55', __('Deleted') ) ); 448 $status_list = array( 'archived' => array( 'site-archived', __('Archived') ), 'spam' => array( 'site-spammed', __('Spam') ), 'deleted' => array( 'site-deleted', __('Deleted') ) ); 450 449 foreach ( $blog_list as $blog ) { 451 450 $class = ('alternate' == $class) ? '' : 'alternate'; 452 451 reset( $status_list ); 453 452 454 $bgcolour = '';455 453 $blog_states = array(); 456 454 foreach ( $status_list as $status => $col ) { 457 455 if ( get_blog_status( $blog['blog_id'], $status ) == 1 ) { 458 $ bgcolour = "style='background: {$col[0]}'";456 $class = $col[0]; 459 457 $blog_states[] = $col[1]; 460 458 } … … 471 469 } 472 470 } 473 echo "<tr $bgcolourclass='$class'>";471 echo "<tr class='$class'>"; 474 472 475 473 $blogname = ( is_subdomain_install() ) ? str_replace('.'.$current_site->domain, '', $blog['domain']) : $blog['path'];
Note: See TracChangeset
for help on using the changeset viewer.