$group, 'size' => 'tiny', )); //get the membership type $membership = $group->membership; if ($membership == ACCESS_PUBLIC) { $mem = elgg_echo("groups:open"); } else { $mem = elgg_echo("groups:closed"); } // number of members $num_members = get_group_members($group->guid, 10, 0, 0, true); $members_string = elgg_echo('groups:member'); $metadata = "
"; if (elgg_in_context('owner_block') || elgg_in_context('widgets')) { $metadata = ''; } if ($vars['full']) { echo elgg_view("groups/groupprofile",$vars); } else { // brief view $params = array( 'entity' => $group, 'metadata' => $metadata, 'subtitle' => $group->briefdescription, ); $list_body = elgg_view('layout/objects/list/body', $params); echo elgg_view_image_block($icon, $list_body); }