guid) { $rel = 'rel="me"'; } elseif (check_entity_relationship(elgg_get_logged_in_user_guid(), 'friend', $user->guid)) { $rel = 'rel="friend"'; } $title = "getUrl() . "\" $rel>" . $user->name . ""; $metadata = "
"; if (elgg_in_context('owner_block') || elgg_in_context('widgets')) { $metadata = ''; } if (elgg_get_context() == 'gallery') { echo $icon; } else { if ($user->isBanned()) { $params = array( 'entity' => $user, 'title' => $title, 'metadata' => ' ', ); } else { $params = array( 'entity' => $user, 'title' => $title, 'metadata' => $metadata, 'subtitle' => $user->briefdescription, 'content' => elgg_view('user/status', array('entity' => $user)), ); } $list_body = elgg_view('page/components/list/body', $params); echo elgg_view_image_block($icon, $list_body); }