aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/groups/views/default/widgets/a_users_groups/view.php26
1 files changed, 24 insertions, 2 deletions
diff --git a/mod/groups/views/default/widgets/a_users_groups/view.php b/mod/groups/views/default/widgets/a_users_groups/view.php
index ad9a29593..13ff27139 100644
--- a/mod/groups/views/default/widgets/a_users_groups/view.php
+++ b/mod/groups/views/default/widgets/a_users_groups/view.php
@@ -13,8 +13,30 @@
$owner = $vars['entity']->owner_guid;
//$groups = get_users_membership($owner);
- $groups = list_entities_from_relationship('member',$owner,false,'group','',0,$number,false,false,false);
+ //$groups = list_entities_from_relationship('member',$owner,false,'group','',0,$number,false,false,false);
+ $groups = get_entities_from_relationship('member', $owner, false, "group", "", 0, "", $number, 0, false, 0);
- echo $groups;
+
+ if($groups){
+
+ echo "<div class=\"sidebarBox featuredgroups\">";
+
+ foreach($groups as $group){
+ $icon = elgg_view(
+ "groups/icon", array(
+ 'entity' => $group,
+ 'size' => 'small',
+ )
+ );
+
+ echo "<div class=\"contentWrapper\">" . $icon . " <p><span>" . $group->name . "</span><br />";
+ echo $group->briefdescription . "</p><div class=\"clearfloat\"></div></div>";
+
+ }
+ echo "</div>";
+ }
+
+
+ // echo $groups;
?> \ No newline at end of file