Skip to:
Content

BuddyPress.org

Ticket #5173: 5173.diff

File 5173.diff, 2.8 KB (added by imath, 11 years ago)
  • bp-themes/bp-default/groups/groups-loop.php

     
    3737
    3838        <?php while ( bp_groups() ) : bp_the_group(); ?>
    3939
    40                 <li>
     40                <li <?php bp_group_class();?>>
    4141                        <div class="item-avatar">
    4242                                <a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ); ?></a>
    4343                        </div>
  • bp-templates/bp-legacy/buddypress/groups/groups-loop.php

     
    3737
    3838        <?php while ( bp_groups() ) : bp_the_group(); ?>
    3939
    40                 <li>
     40                <li <?php bp_group_class();?>>
    4141                        <div class="item-avatar">
    4242                                <a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ); ?></a>
    4343                        </div>
  • bp-groups/bp-groups-admin.php

     
    11921192         */
    11931193        function single_row( $item = array() ) {
    11941194                static $even = false;
     1195                $row_classes = array();
    11951196
    11961197                if ( $even ) {
    1197                         $row_class = ' class="even"';
     1198                        $row_classes = array( 'even' );
    11981199                } else {
    1199                         $row_class = ' class="alternate odd"';
     1200                        $row_classes = array( 'alternate', 'odd' );
    12001201                }
    12011202
     1203                $row_classes = apply_filters( 'bp_groups_admin_row_class', $row_classes, $item['id'] );
     1204                $row_class = ' class="' .implode( ' ', $row_classes ) .'"';
     1205
    12021206                echo '<tr' . $row_class . ' id="group-' . esc_attr( $item['id'] ) . '" data-parent_id="' . esc_attr( $item['id'] ) . '" data-root_id="' . esc_attr( $item['id'] ) . '">';
    12031207                echo $this->single_row_columns( $item );
    12041208                echo '</tr>';
  • bp-groups/bp-groups-widgets.php

     
    6969
    7070                        <ul id="groups-list" class="item-list">
    7171                                <?php while ( bp_groups() ) : bp_the_group(); ?>
    72                                         <li>
     72                                        <li <?php bp_group_class();?>>
    7373                                                <div class="item-avatar">
    7474                                                        <a href="<?php bp_group_permalink() ?>" title="<?php bp_group_name() ?>"><?php bp_group_avatar_thumb() ?></a>
    7575                                                </div>
     
    172172        if ( bp_has_groups( 'type=' . $type . '&per_page=' . $_POST['max_groups'] . '&max=' . $_POST['max_groups'] ) ) : ?>
    173173                <?php echo "0[[SPLIT]]"; ?>
    174174                <?php while ( bp_groups() ) : bp_the_group(); ?>
    175                         <li>
     175                        <li <?php bp_group_class();?>>
    176176                                <div class="item-avatar">
    177177                                        <a href="<?php bp_group_permalink() ?>"><?php bp_group_avatar_thumb() ?></a>
    178178                                </div>