forked from science-ation/science-ation
- Remove "Home >>" from the top nav bar, and simplify the logic
This commit is contained in:
parent
68f52562e5
commit
071ded90b0
@ -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>';
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user