Skip to:
Content

BuddyPress.org

Changeset 7379


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

Use row classes in group templates

bp_group_class() provides valuable CSS classes for use in groups loops
(such as 'odd' and 'even'), and also provides a way for plugins to
style rows in various ways using the included filters.

Fixes #5173

Props imath

Location:
trunk
Files:
3 edited

Legend:

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

    r7290 r7379  
    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>
     
    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>
  • trunk/bp-templates/bp-legacy/buddypress/groups/groups-loop.php

    r6284 r7379  
    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>
  • trunk/bp-themes/bp-default/groups/groups-loop.php

    r4678 r7379  
    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>
Note: See TracChangeset for help on using the changeset viewer.