forked from science-ation/science-ation
- And the code for the nav bar thingy
This commit is contained in:
parent
8b38cbdefc
commit
e43eb703a5
@ -344,7 +344,7 @@ function happy($str,$type="normal")
|
|||||||
}
|
}
|
||||||
|
|
||||||
$HEADER_SENT=false;
|
$HEADER_SENT=false;
|
||||||
function send_header($title="")
|
function send_header($title="", $nav=null)
|
||||||
{
|
{
|
||||||
global $HEADER_SENT;
|
global $HEADER_SENT;
|
||||||
global $config;
|
global $config;
|
||||||
@ -561,6 +561,22 @@ if(count($config['languages'])>1)
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</td><td>
|
</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">
|
<div id="main">
|
||||||
<?
|
<?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user