array('liadd'=>null, 'href'=>$instpath.'/', 'title'=>'Guide', 'selected'=>false, 'submenu'=>null), 'instances'=>array('liadd'=>null, 'href'=>$instpath.'/instances', 'title'=>'Instances', 'selected'=>false, 'submenu'=>null), 'about'=>array('liadd'=>null, 'href'=>$instpath.'/about', 'title'=>'About', 'selected'=>false, 'submenu'=>null), 'language'=>array('liadd'=>null, 'href'=>null, 'title'=>'Language', 'selected'=>false, 'submenu'=>array( 'inglese'=>array('liadd'=>'onclick="golang(\'en\')" onmouseover="this.style.cursor=\'pointer\'"', 'href'=>null, 'title'=>'English', 'selected'=>false, 'submenu'=>null), 'italiano'=>array('liadd'=>'onclick="golang(\'it\')" onmouseover="this.style.cursor=\'pointer\'"', 'href'=>null, 'title'=>'Italiano', 'selected'=>false, 'submenu'=>null) ) ) ); function tradmenu($lang) { global $menu; switch ($lang) { case 'it': $menu['guide']['title']='Guida'; $menu['guide']['href'].='it'; $menu['instances']['title']='Istanze'; $menu['instances']['href'].='/it'; $menu['about']['title']='Info'; $menu['about']['href'].='/it'; $menu['language']['title']='Lingua'; break; } } switch($path) { case '/': $cont=array( 'fp'=>'home_en.php', 'lang'=>'en', 'atit'=>' - Guide', 'desc'=>'A thorough introduction to Mastodon', 'js'=>array('shsum','guideanchors','scrolltrack') ); $menu['guide']['liadd']='onclick="shsum()" onmouseover="this.style.cursor=\'pointer\'; this.style.textDecoration=\'underline\'" onmouseout="this.style.textDecoration=\'none\'"'; $menu['guide']['href']=null; $menu['guide']['selected']=true; $menu['language']['submenu']['inglese']['liadd']=null; $menu['language']['submenu']['inglese']['selected']=true; break; case '/it': $cont=array( 'fp'=>'home_it.php', 'lang'=>'it', 'atit'=>' - Guida', 'desc'=>'Una approfondita introduzione a Mastodon', 'js'=>array('shsum','guideanchors','scrolltrack') ); tradmenu('it'); $menu['guide']['liadd']='onclick="shsum()" onmouseover="this.style.cursor=\'pointer\'"'; $menu['guide']['href']=null; $menu['guide']['selected']=true; $menu['language']['submenu']['italiano']['liadd']=null; $menu['language']['submenu']['italiano']['selected']=true; break; case '/instances': $cont=array( 'fp'=>'instances_en.php', 'lang'=>'en', 'atit'=>' - Instances', 'desc'=>'Recommended Mastodon Instances', 'js'=>array() ); $menu['instances']['href']=null; $menu['instances']['selected']=true; $menu['language']['submenu']['inglese']['liadd']=null; $menu['language']['submenu']['inglese']['selected']=true; break; case '/instances/it': $cont=array( 'fp'=>'instances_it.php', 'lang'=>'it', 'atit'=>' - Istanze', 'desc'=>'Istanze Mastodon consigliate', 'js'=>array() ); tradmenu('it'); $menu['instances']['href']=null; $menu['instances']['selected']=true; $menu['language']['submenu']['italiano']['liadd']=null; $menu['language']['submenu']['italiano']['selected']=true; break; case '/about': $cont=array( 'fp'=>'about_en.php', 'lang'=>'en', 'atit'=>' - About us', 'desc'=>'Infos about Mastodon Startpageās authors, contributors, license', 'js'=>array() ); $menu['about']['href']=null; $menu['about']['selected']=true; $menu['language']['submenu']['inglese']['liadd']=null; $menu['language']['submenu']['inglese']['selected']=true; break; case '/about/it': $cont=array( 'fp'=>'about_it.php', 'lang'=>'it', 'atit'=>' - Info', 'desc'=>'Informazioni sugli autori, i collaboratori e la licenza di Mastodon Startpage', 'js'=>array() ); tradmenu('it'); $menu['about']['href']=null; $menu['about']['selected']=true; $menu['language']['submenu']['italiano']['liadd']=null; $menu['language']['submenu']['italiano']['selected']=true; break; default: $cont=array( 'fp'=>'404.php', 'lang'=>'en', 'atit'=>' - 404', 'desc'=>'Page not found', 'js'=>array() ); break; } /*