');
// print friends
if (sizeof($friends) > 0) {
usort($friends, "_cmp_names");
//$output .= t('
');
$output .= t('
');
if ($friend['icon'] != "") {
$image = origo_home_get_service_dir('pictures') . $friend['name'] .'/100_'. $friend['icon'];
}
else {
$image = base_path() . drupal_get_path('module', 'origo_home') .'/img/user_m_medium.png';
}
$output .= l('
', 'users/'. $friend['name'], array('html' => TRUE));
$output .= t('
'); // end icon
$output .= t('
');
$output .= t('
');
$output .= t('Username: ');
$output .= t('');
$output .= l($friend['name'], 'users/'. $friend['name'], array('attributes' => array('rel' => 'contact')));
$output .= t('');
$output .= t('
');
if (trim($friend['real_name']) != "") {
$output .= t('
');
$output .= t('Name: ');
$output .= t('');
$output .= t($friend['real_name']);
$output .= t('');
$output .= t('
');
}
$output .= t('
'); // end name
$output .= t('
');
$output .= t('
');
$output .= l('[View Profile]', 'users/'. $friend['name'], array('rel' => 'contact'));
$output .= t('
');
$output .= t('
');
$output .= l('[View Friends]', 'friends/'. $friend['name'], array('rel' => 'contact'));
$output .= t('
');
if ($visitor->name == $user_name) {
$output .= t('
');
$output .= l('[Remove from Friends]', 'remove_friend/'. $friend['name']);
$output .= t('
');
}
if ($visitor->name != $friend['name']) {
$output .= t('
');
$output .= l('[Send Message]', 'message/'. $friend['name']);
$output .= t('
');
}
$output .= t('
'); // end operations
$output .= t('