[buddypress-trac] [BuddyPress] #3271: groups admin manage members buttons hardcoded to core awkward for theme devs
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Sat Jun 11 15:35:53 UTC 2011
#3271: groups admin manage members buttons hardcoded to core awkward for theme
devs
--------------------------+-----------------------
Reporter: hnla | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 1.3
Component: Core | Version: 1.3
Resolution: | Keywords: has-patch
--------------------------+-----------------------
Comment (by hnla):
For my purposes I am doing this to get an array count and last li item
(ignore the 'echo' for testing)
{{{
<?php if ( bp_has_members( '&include='.
bp_group_admin_ids() ) ) : ?>
<?php $i = 0; echo $count_admins = count(
bp_group_admin_ids('', 'array') ) ; ?>
<ul id="admins-list" class="item-list">
This gives me a token I can style on to remove the border-bottom, perhaps
for bp-default this ought to be used but run on the ul (difficult as it's
outside the while loop) and changed to read 'single-line' to try and
preserve whatever may be expected by themes?
<?php while ( bp_members() ) : bp_the_member(); ?>
<?php $i++ ?>
<li <?php if($i === $count_admins): ?>class="list-
last" <?php endif; ?>>
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3271#comment:17>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list