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