$vars['entity'], 'size' => 'small', ) ); //get the membership type $membership = $vars['entity']->membership; if($membership == 2) $mem = elgg_echo("groups:open"); else $mem = elgg_echo("groups:closed"); //for admins display the feature or unfeature option if($vars['entity']->featured_group == "yes"){ $url = $vars['url'] . "action/groups/featured?group_guid=" . $vars['entity']->guid . "&action=unfeature"; $wording = elgg_echo("groups:makeunfeatured"); }else{ $url = $vars['url'] . "action/groups/featured?group_guid=" . $vars['entity']->guid . "&action=feature"; $wording = elgg_echo("groups:makefeatured"); } $info .= "
" . $mem . " / " . get_group_members($vars['entity']->guid, 10, 0, 0, true) ." " . elgg_echo("groups:member") . "
"; //if admin, show make featured option //if(isadminloggedin()) // $info .= ""; $info .= "