Skip to:
Content

BuddyPress.org

Changeset 7378


Ignore:
Timestamp:
09/16/2013 07:55:20 PM (11 years ago)
Author:
boonebgorges
Message:

Wrap row classes in a filter on the group admin screen

See #5173

Props imath

File:
1 edited

Legend:

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

    r7375 r7378  
    11941194        static $even = false;
    11951195
     1196        $row_classes = array();
     1197
    11961198        if ( $even ) {
    1197             $row_class = ' class="even"';
     1199            $row_classes = array( 'even' );
    11981200        } else {
    1199             $row_class = ' class="alternate odd"';
    1200         }
     1201            $row_classes = array( 'alternate', 'odd' );
     1202        }
     1203
     1204        $row_classes = apply_filters( 'bp_groups_admin_row_class', $row_classes, $item['id'] );
     1205        $row_class = ' class="' . implode( ' ', $row_classes ) . '"';
    12011206
    12021207        echo '<tr' . $row_class . ' id="group-' . esc_attr( $item['id'] ) . '" data-parent_id="' . esc_attr( $item['id'] ) . '" data-root_id="' . esc_attr( $item['id'] ) . '">';
Note: See TracChangeset for help on using the changeset viewer.