addSubMenu(new Menu('in 6 Kbyte',$BASE.'/6kbyte.php')); $about->addSubMenu(new Menu('for Vi users',$BASE.'/viusers.php')); $about->addSubMenu(new Menu('for Vim 5 users',$BASE.'/vim5users.php')); $about->addSubMenu(new Menu('for others',$BASE.'/others.php')); $community = new Menu('Community',$BASE.'/community.php'); $community->addSubMenu(new Menu('Mailing Lists',$BASE.'/maillist.php')); $community->addSubMenu(new Menu('Web Pages',$BASE.'/web.php')); $community->addSubMenu(new Menu('Credits',$BASE.'/thanks.php')); $docs = new Menu('Documentation',$BASE.'/docs.php'); $docs->addSubMenu(new Menu('help files online >>','http://vimdoc.sourceforge.net/htmldoc/usr_toc.html')); $docs->addSubMenu(new Menu('the book >>','http://iccf-holland.org/click5.html')); $docs->addSubMenu(new Menu('Vimdoc site >>','http://vimdoc.sourceforge.net/')); $docs->addSubMenu(new Menu('the FAQ >>','http://vimdoc.sourceforge.net/htmldoc/vimfaq.html')); $download = new Menu('Download',$BASE.'/download.php'); $download->addSubMenu(new Menu('List of Mirrors',$BASE.'/mirrors.php')); $download->addSubMenu(new Menu('Sources',$BASE.'/sources.php')); $download->addSubMenu(new Menu('Vim from Mercurial',$BASE.'/mercurial.php')); $download->addSubMenu(new Menu('Vim from CVS',$BASE.'/cvs.php')); $download->addSubMenu(new Menu('Vim from SVN',$BASE.'/subversion.php')); $download->addSubMenu(new Menu('Patches',$BASE.'/patches.php')); $download->addSubMenu(new Menu('Development',$BASE.'/develop.php')); $download->addSubMenu(new Menu('Runtime files',$BASE.'/runtime.php')); $download->addSubMenu(new Menu('Script links',$BASE.'/vimscriptlinks.php')); $download->addSubMenu(new Menu('Translations',$BASE.'/translations.php')); $news = new Menu('News',$BASE.'/news/news.php'); $sponsor = new Menu('Sponsoring',$BASE.'/sponsor/index.php'); $sponsor->addSubMenu(new Menu('Sponsor FAQ',$BASE.'/sponsor/faq.php')); $sponsor->addSubMenu(new Menu('Subscribe',$BASE.'/sponsor/subscribe.php')); $sponsor->addSubMenu(new Menu('Hall of honour',$BASE.'/sponsor/hall_of_honour.php')); $sponsor->addSubMenu(new Menu('My votes',$BASE.'/sponsor/vote.php')); $sponsor->addSubMenu(new Menu('Voting results',$BASE.'/sponsor/vote_results.php')); $scripts = new Menu('Scripts',$BASE.'/scripts/index.php'); $scripts->addSubMenu(new Menu('Browse all',$BASE.'/scripts/script_search_results.php')); $scripts->addSubMenu(new Menu('Add Script',$BASE.'/scripts/add_script.php')); $scripts->addSubMenu(new Menu('Karma',$BASE.'/karma.php')); $tips = new Menu('Tips',$BASE.'/tips/index.php'); $account = new Menu('My Account',$BASE.'/account/index.php'); $trivia = new Menu('Trivia',$BASE.'/trivia.php'); $trivia->addSubMenu(new Menu('Logos',$BASE.'/logos.php')); $trivia->addSubMenu(new Menu('Buttons',$BASE.'/buttons.php')); $trivia->addSubMenu(new Menu('Weird stuff',$BASE.'/weird.php')); $trivia->addSubMenu(new Menu('Posters',$BASE.'/posters.php')); $help = new Menu('Site Help',$BASE.'/huh.php'); $sep = new Menu('Sep','Sep'); $sep->setSeparator(); // construct the top level main menus $mainMenus = array( $home, $search, $sep, $about, $community, $news, $sponsor, $trivia, $docs, $download, $sep, $scripts, $tips, $account, $sep, $help ); // paint the login status and the menus ?> isSeparator()){ ?> isSelected($_SERVER['REQUEST_URI'])){ // we are in this nav main ?> isOpen($_SERVER['REQUEST_URI'])){ foreach($menu->getSubMenus() as $subMenu){ if($subMenu->isSelected($_SERVER['REQUEST_URI'])){ ?>
welcome getFirstName())?> (logout) not logged in (login)
 
getName()?>
getName()?>
    getName()?>
    getName()?>