- Remove "Home >>" from the top nav bar, and simplify the logic

This commit is contained in:
dave 2007-11-23 20:55:29 +00:00
parent 68f52562e5
commit 071ded90b0

View File

@ -571,15 +571,11 @@ if(count($config['languages'])>1)
<?
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 "<a href=\"{$config['SFIABDIRECTORY']}/$l\">".i18n($t).'</a> >> ';
}
echo " >> $title";
echo $title;
echo '</div>';
}
?>