diff options
author | neoraider <devnull@localhost> | 2006-01-13 00:49:05 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-01-13 00:49:05 +0100 |
commit | 8b89c8c8a9001c5f5b38465ceb58306fc6f0659e (patch) | |
tree | a5b57b8809365c8e3184ae81bd193986367e31b8 /code/nav.inc.php | |
parent | ecb8233cd7e9fbacd7614028115161565e841d87 (diff) | |
download | neon-8b89c8c8a9001c5f5b38465ceb58306fc6f0659e.tar neon-8b89c8c8a9001c5f5b38465ceb58306fc6f0659e.zip |
Navigationsleiste verbessert (ungenutzte Eintr?ge werden ausgeblendet); einige kleinere ?nderungen + Bugs gefixt
Diffstat (limited to 'code/nav.inc.php')
-rw-r--r-- | code/nav.inc.php | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/code/nav.inc.php b/code/nav.inc.php index f6f0782..245e208 100644 --- a/code/nav.inc.php +++ b/code/nav.inc.php @@ -65,6 +65,7 @@ } function Parse() { + $ccount = 0; $ret = '<li>'; $link = $GLOBALS['links']->ParseNavLink($this->link); @@ -77,12 +78,22 @@ if(count($this->children) > 0) { $ret .= '<ul>'; - foreach($this->children as $child) - $ret .= $child->Parse(); + foreach($this->children as $child) { + $cret = $child->Parse(); + + if($cret) { + $ret .= $cret; + + $ccount++; + } + } $ret .= '</ul>'; } + if(!$ccount && !$link) + return ''; + return $ret . '</li>'; } } |