Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/09/2013 01:21:53 PM (13 years ago)
Author:
boonebgorges
Message:

Fix even/odd/alternate row classes in Groups and Activity admin

Fixes #5163

Props imath

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-admin.php

    r7360 r7375  
    11921192         */
    11931193        function single_row( $item = array() ) {
    1194                 static $row_class = '';
    1195 
    1196                 if ( empty( $row_class ) ) {
     1194                static $even = false;
     1195
     1196                if ( $even ) {
     1197                        $row_class = ' class="even"';
     1198                } else {
    11971199                        $row_class = ' class="alternate odd"';
    1198                 } else {
    1199                         $row_class = ' class="even"';
    12001200                }
    12011201
     
    12031203                echo $this->single_row_columns( $item );
    12041204                echo '</tr>';
     1205
     1206                $even = ! $even;
    12051207        }
    12061208
Note: See TracChangeset for help on using the changeset viewer.