canEdit())) { //$area2 .= elgg_view("community/forms/invite_all", array('entity' => $group)); $all_group_members = $group->getMembers(9999); $group_creator = $group->getOwner(); foreach ($all_group_members as $g_member) { // Group owner can not be removed from members if ($g_member->getGUID() != $group_creator) { $area2 .= "
"; $area2 .= "
getURL()}\">" . elgg_view("profile/icon", array('entity' => $g_member, 'size' => 'small', 'override' => 'true')) . "
"; $area2 .= "
getURL()}\">" . $g_member->name . "
"; $area2 .= "
" . elgg_view("output/confirmlink", array( 'href' => $CONFIG->url . "action/community/leave?group_guid={$group->getGUID()}&user_guid={$g_member->getGUID()}", /*translation:Remove member*/ 'text' => elgg_echo("koolielu:groups_remove_member"), /*translation:Are you sure you want to remove this user from group members?*/ 'confirm' => elgg_echo('koolielu:groups_remove_member_confirm'), )); $area2 .= "
"; $area2 .= "
"; } } } else { $area2 .= elgg_echo("groups:noaccess"); } $body = elgg_view_layout('two_column_left_sidebar', $area1, $area2); page_draw($title, $body); ?>