From 19286968e6c08321e037e2271047ca74aeef1a49 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 13 Mar 2011 16:58:12 +0000 Subject: Fixes #3072 using elgg_list_entities*() in group members sidebar view git-svn-id: http://code.elgg.org/elgg/trunk@8684 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/groups/sidebar/members.php | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'mod/groups/views/default') diff --git a/mod/groups/views/default/groups/sidebar/members.php b/mod/groups/views/default/groups/sidebar/members.php index c18366c1b..28111554f 100644 --- a/mod/groups/views/default/groups/sidebar/members.php +++ b/mod/groups/views/default/groups/sidebar/members.php @@ -2,22 +2,28 @@ /** * Group members sidebar * - * @todo clean up html - * * @package ElggGroups + * + * @uses $vars['entity'] Group entity + * @uses $vars['limit'] The number of members to display */ +$limit = elgg_extract('limit', $vars, 10); + $all_link = elgg_view('output/url', array( 'href' => 'groups/members/' . $vars['entity']->guid, 'text' => elgg_echo('groups:members:more'), )); -$body = ''; +$body = elgg_list_entities_from_relationship(array( + 'relationship' => 'member', + 'relationship_guid' => $vars['entity']->guid, + 'inverse_relationship' => true, + 'types' => 'user', + 'limit' => $limit, + 'gallery' => true, +)); + $body .= "
$all_link
"; echo elgg_view_module('aside', elgg_echo('groups:members'), $body); -- cgit v1.2.3