';
echo "
{$user->name}
";
echo elgg_view("profile/status", array("entity" => $user));
$even_odd = null;
if (is_array($profile_fields) && sizeof($profile_fields) > 0) {
foreach ($profile_fields as $shortname => $valtype) {
if ($shortname == "description") {
// skip about me and put at bottom
continue;
}
$value = $user->$shortname;
if (!empty($value)) {
// fix profile URLs populated by https://github.com/Elgg/Elgg/issues/5232
// @todo Replace with upgrade script, only need to alter users with last_update after 1.8.13
if ($valtype == 'url' && $value == 'http://') {
$user->$shortname = '';
continue;
}
// validate urls
if ($valtype == 'url' && !preg_match('~^https?\://~i', $value)) {
$value = "http://$value";
}
// this controls the alternating class
$even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even';
?>
:
$value));
?>
isBanned()) {
echo "";
echo elgg_echo('banned');
echo "
";
} else {
if ($user->description) {
echo "" . elgg_echo("profile:aboutme") . "
";
echo "";
echo elgg_view('output/longtext', array('value' => $user->description, 'class' => 'mtn'));
echo "
";
}
}
}
echo '';