WordPress.org

Make WordPress Core

Changeset 12949


Ignore:
Timestamp:
02/04/2010 07:03:08 PM (10 years ago)
Author:
wpmuguru
Message:

move ms css to ms.css, fixes #11790

Location:
trunk/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/ms.css

    r12631 r12949  
    1 #all-my-blogs-tab a.current{position:relative;padding-bottom:10px;}#all-my-blogs{position:absolute;top:30px;left:0;right:0;_width:100%;margin:4px 7px;padding:6px 10px;font-size:12px;}#all-my-blogs *{margin:0;}form#all-my-blogs p,form#all-my-blogs p *{vertical-align:middle;}#all-my-blogs a{font-size:10px;text-decoration:underline;margin:0 14px;}#all-my-blogs a:hover,#all-my-blogs a:active{text-decoration:none;}form#wpmu-search{position:absolute;right:0;top:0;}#adminmenu #menu-site div.wp-menu-image{background:transparent url("../images/site-admin.png") no-repeat scroll 0 -33px;}#adminmenu #menu-site:hover div.wp-menu-image{background:transparent url("../images/site-admin.png") no-repeat scroll 0 -1px;}#dashboard_right_now p.musub{margin-top:12px;border-top:1px solid #ececec;}#dashboard_right_now td.b a.musublink{font-size:16px;}
     1#all-my-blogs-tab a.current{position:relative;padding-bottom:10px;}#all-my-blogs{position:absolute;top:30px;left:0;right:0;_width:100%;margin:4px 7px;padding:6px 10px;font-size:12px;}#all-my-blogs *{margin:0;}form#all-my-blogs p,form#all-my-blogs p *{vertical-align:middle;}#all-my-blogs a{font-size:10px;text-decoration:underline;margin:0 14px;}#all-my-blogs a:hover,#all-my-blogs a:active{text-decoration:none;}form#wpmu-search{position:absolute;right:0;top:0;}#adminmenu #menu-site div.wp-menu-image{background:transparent url("../images/site-admin.png") no-repeat scroll 0 -33px;}#adminmenu #menu-site:hover div.wp-menu-image{background:transparent url("../images/site-admin.png") no-repeat scroll 0 -1px;}#dashboard_right_now p.musub{margin-top:12px;border-top:1px solid #ececec;}#dashboard_right_now td.b a.musublink{font-size:16px;}tr.site-deleted{background:#f55;}tr.site-spammed{background:#faa;}tr.site-archived{background:#fee;}
  • trunk/wp-admin/ms-sites.php

    r12934 r12949  
    446446            <?php
    447447            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') ) );
    450449                foreach ( $blog_list as $blog ) {
    451450                    $class = ('alternate' == $class) ? '' : 'alternate';
    452451                    reset( $status_list );
    453452
    454                     $bgcolour = '';
    455453                    $blog_states = array();
    456454                    foreach ( $status_list as $status => $col ) {
    457455                        if ( get_blog_status( $blog['blog_id'], $status ) == 1 ) {
    458                             $bgcolour = "style='background: {$col[0]}'";
     456                            $class = $col[0];
    459457                            $blog_states[] = $col[1];
    460458                        }
     
    471469                        }
    472470                    }
    473                     echo "<tr $bgcolour class='$class'>";
     471                    echo "<tr class='$class'>";
    474472
    475473                    $blogname = ( is_subdomain_install() ) ? str_replace('.'.$current_site->domain, '', $blog['domain']) : $blog['path'];
  • trunk/wp-admin/ms-users.php

    r12801 r12949  
    157157            <tbody id="users" class="list:user user-list">
    158158            <?php if ($user_list) {
    159                 $bgcolor = '';
    160159                $class = '';
    161160                foreach ( (array) $user_list as $user) {
    162161                    $class = ('alternate' == $class) ? '' : 'alternate';
    163162
    164                     $status_list = array( "spam" => "#faa", "deleted" => "#f55" );
    165 
    166                     $bgcolour = "";
     163                    $status_list = array( "spam" => "site-spammed", "deleted" => "site-deleted" );
     164
    167165                    foreach ( $status_list as $status => $col ) {
    168                         if ( $user[$status] ) {
    169                             $bgcolour = "style='background: $col'";
    170                         }
     166                        if ( $user[$status] )
     167                            $class = $col;
    171168                    }
    172169
    173170                    ?>
    174171
    175                     <tr <?php echo $bgcolour; ?> class="<?php echo $class; ?>">
     172                    <tr class="<?php echo $class; ?>">
    176173                    <?php
    177174                    foreach( (array) $posts_columns as $column_name=>$column_display_name) :
Note: See TracChangeset for help on using the changeset viewer.