';
// name and username
$name_link = elgg_view('output/url', array(
'href' => $user->getURL(),
'text' => "$user->name@$user->username",
));
echo "
$name_link";
// actions
if (isloggedin() && $actions) {
echo '';
foreach ($actions as $menu_item) {
echo elgg_view('navigation/menu/elements/item', array('item' => $menu_item));
}
echo '
';
}
// main
if ($main) {
echo '';
foreach ($main as $menu_item) {
echo elgg_view('navigation/menu/elements/item', array('item' => $menu_item));
}
echo '
';
}
// admin
if (isadminloggedin() && $admin) {
echo '';
foreach ($admin as $menu_item) {
echo elgg_view('navigation/menu/elements/item', array('item' => $menu_item));
}
echo '
';
}
echo '';