diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-12-31 23:16:58 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-12-31 23:16:58 +0000 |
commit | 3ac90131cee1432d8278cdeff47961a50d8c7125 (patch) | |
tree | f9854f3bd5e4f174704ab1b804c0b26e4910368b /templates/subnavbar.inc.php | |
parent | a145e33a37948eda1d83e0272ee46faf6148d0e7 (diff) | |
download | ampache-3ac90131cee1432d8278cdeff47961a50d8c7125.tar.gz ampache-3ac90131cee1432d8278cdeff47961a50d8c7125.tar.bz2 ampache-3ac90131cee1432d8278cdeff47961a50d8c7125.zip |
* Updated CSS to improve compatibiliy and make appearance more consistant (Thx Spocky)
* Fixed some issues with the Amazon Album art gathering created when I re-wrote it
Diffstat (limited to 'templates/subnavbar.inc.php')
-rw-r--r-- | templates/subnavbar.inc.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/subnavbar.inc.php b/templates/subnavbar.inc.php index 552f17c2..d1ef38f1 100644 --- a/templates/subnavbar.inc.php +++ b/templates/subnavbar.inc.php @@ -22,7 +22,7 @@ /** * This file expect an array of 'items' which have ['0']['url'] ['0']['title'] - * and a ['0']['active'] == true/false this is called from show_submenu($items); + * ['0']['active'] == true/false and ['0']['cssclass'] this is called from show_submenu($items); */ ?> @@ -30,8 +30,10 @@ <?php foreach ($items as $item) { if ($item['url'] == $item['active']) { - $li_id = "id=\"activesubmenu\""; - } ?> - <li <?php echo $li_id; ?>><a href="<?php echo conf('web_path') . "/" . $item['url']; ?>"><?php echo $item['title']; ?></a></li> + $li_class = "class=\"activesubmenu\""; + } + $li_id = "id=\"" . $item['cssclass'] . "\""; + ?> + <li <?php echo $li_class; echo $li_id; ?>><a href="<?php echo conf('web_path') . "/" . $item['url']; ?>"><?php echo $item['title']; ?></a></li> <?php unset($li_id); } // END foreach ($items as $item) ?> </ul> |