[buddypress-trac] [BuddyPress Trac] #6384: Create Members Loop markup class function

buddypress-trac noreply at wordpress.org
Tue Apr 21 08:36:36 UTC 2015


#6384: Create Members Loop markup class function
---------------------------------+-----------------
 Reporter:  hnla                 |      Owner:
     Type:  enhancement          |     Status:  new
 Priority:  normal               |  Milestone:  2.3
Component:  Component - Members  |    Version:
 Severity:  minor                |   Keywords:
---------------------------------+-----------------
 Currently BP has a `bp_get_group_class()` function located in 'bp-groups-
 template.php' the purpose of which is to render class tokens to the groups
 loop 'li' element.

 The members loop however does not have a similar function.

 With the introduction of member_types this would be more of a relevant
 issue and useful, even without member types we ought to match major
 components and functions like for like? If groups template provides this
 for groups loop members template should also as should 'Blogs' for their
 respective loops.

 I have a need to be able target 'me' for the companion styling I'm
 tackling so the first 'class' I would be adding (and likely only one short
 term) is a logged in user, displayed user check.

 It looks to me that we could relatively simply copy over majority of the
 bp_get_group_class() to members-template and tweak to suit?

 I would be willing to make an initial clumsy first pass at this in order
 that we could get it underway & squeezed into 2.3?

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6384>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list