From e43eb703a5f068277b06fa05a578605a508d4f47 Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 16 Nov 2007 06:47:53 +0000 Subject: [PATCH] - And the code for the nav bar thingy --- common.inc.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/common.inc.php b/common.inc.php index 61db981..d04a59c 100644 --- a/common.inc.php +++ b/common.inc.php @@ -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) + 'index.php'), $nav); + echo "
You are here: "; + foreach($nav as $t=>$l) { + if($first_item == false) echo " >> "; + echo "".i18n($t).''; + $first_item = false; + } + echo " >> $title"; + echo '
'; +} +?> +