* @copyright Curverider Ltd 2008 * @link http://elgg.com/ * * @uses $vars['entity'] The user entity */ $info = ""; //grab the users status message with metadata 'state' set to current if it exists if($get_status = get_entities_from_metadata("state", "current", "object", "status", $vars['entity']->guid)){ foreach($get_status as $s) { $info = elgg_view("status/friends_view", array('entity' => $s)); } } $icon = elgg_view( "profile/icon", array( 'entity' => $vars['entity'], 'size' => 'small', ) ); $banned = $vars['entity']->isBanned(); // Simple XFN $rel = ""; if (page_owner() == $vars['entity']->guid) $rel = 'me'; else if (check_entity_relationship(page_owner(), 'friend', $vars['entity']->guid)) $rel = 'friend'; if (!$banned) { $info .= "

getUrl() . "\" rel=\"$rel\">" . $vars['entity']->name . "

"; $location = $vars['entity']->location; if (!empty($location)) { $info .= "

" . elgg_echo("profile:location") . ": " . elgg_view("output/tags",array('value' => $vars['entity']->location)) . "

"; } } else { $info .= "

"; if (isadminloggedin()) $info .= "getUrl() . "\">"; $info .= $vars['entity']->name; if (isadminloggedin()) $info .= ""; $info .= "

"; $info .= "

" . elgg_echo('profile:banned') . "

"; } echo elgg_view_listing($icon, $info); ?>