array("/", "Home"), "home" => array("/", "Home"), "download" => array("/download/", "Download"), "planet" => array("http://planet.go-oo.org/", "Planet"), "developers" => array("/developers/", "Developers"), "users" => array("/users/", "Users"), "mgp" => array("/users/mgp", "Magicpoint"), "mailarchive" => array("/developers/mailarchive", "Mail archive", "developers"), "about" => array("/about/", "About") ); // tabs state. the all have the "container" value // and the current one MUST have the "selected" value // this is all dependent on ths CSS used. $tabs = array ( "summary" => "container", "download" => "container", "planet" => "container", "developers" => "container", "about" => "container" ); $id = "summary"; foreach ($context as $c) { if (array_key_exists ($c, $tabs)) { $id = $c; break; } } // the current tab is selected $tabs[$id] = "selected"; ?> <?php print $heading; ?>
0) { echo "\n"; } ?>