- And the code for the nav bar thingy

This commit is contained in:
dave 2007-11-16 06:47:53 +00:00
parent 8b38cbdefc
commit e43eb703a5

View File

@ -344,7 +344,7 @@ function happy($str,$type="normal")
}
$HEADER_SENT=false;
function send_header($title="")
function send_header($title="", $nav=null)
{
global $HEADER_SENT;
global $config;
@ -561,6 +561,22 @@ if(count($config['languages'])>1)
</div>
</td><td>
<?
if(is_array($nav)) {
$first_item = true;
$nav = array_merge(array('Home' => 'index.php'), $nav);
echo "<div id=\"mainwhere\">You are here: ";
foreach($nav as $t=>$l) {
if($first_item == false) echo " >> ";
echo "<a href=\"{$config['SFIABDIRECTORY']}/$l\">".i18n($t).'</a>';
$first_item = false;
}
echo " >> $title";
echo '</div>';
}
?>
<div id="main">
<?