* @copyright Curverider Ltd 2008 * @link http://elgg.com/ * * @uses $vars['entity'] The user entity. If none specified, the current user is assumed. */ ?> isBanned(); // Allow menus if not banned or admin logged in if ((!$banned) || (isadminloggedin())) { //check to see if the user is looking at their own profile if ($_SESSION['user']->guid == page_owner()){ echo "
"; //start the wrapper div echo elgg_view("profile/menu/actions",$vars);//grab action links such as make friend echo elgg_view("profile/menu/linksownpage",$vars); // an different view for user's own profile echo "
"; //close wrapper div } else { echo "
"; //start the wrapper div echo elgg_view("profile/menu/actions",$vars); //grab action links such as make friend echo elgg_view("profile/menu/links",$vars); //passive links to items such as user blog etc echo "
"; //close wrapper div } } else { // Some nice spacing echo "
"; //start the wrapper div echo "
"; //close wrapper div } ?>