'; foreach ($vars['requests'] as $user) { $icon = elgg_view_entity_icon($user, 'tiny', array('use_hover' => 'true')); $user_title = elgg_view('output/url', array( 'href' => $user->getURL(), 'text' => $user->name, 'is_trusted' => true, )); $url = "action/friends/add?friend={$user->guid}"; $accept_button = elgg_view('output/url', array( 'href' => $url, 'text' => elgg_echo('accept'), 'class' => 'elgg-button elgg-button-submit', 'is_action' => true, 'is_trusted' => true, )); $url = "action/friendrequest/decline?guid={$user->guid}"; $delete_button = elgg_view('output/confirmlink', array( 'href' => $url, 'confirm' => elgg_echo('friendrequest:remove:check'), 'text' => elgg_echo('delete'), 'class' => 'elgg-button elgg-button-delete mlm', )); $body = "
' . elgg_echo('friendrequest:none') . "
"; }