summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-18 07:25:56 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-18 07:25:56 +0000
commit5d66022a37df7e568aa9e60750465236e35fc212 (patch)
tree36464ca5108f9be45fe1e3a0c840c29ce795e6a7 /templates
parentfde4a6a705f7d21085ca3474c03e75d575a9fd91 (diff)
downloadampache-5d66022a37df7e568aa9e60750465236e35fc212.tar.gz
ampache-5d66022a37df7e568aa9e60750465236e35fc212.tar.bz2
ampache-5d66022a37df7e568aa9e60750465236e35fc212.zip
new ACTIVE menu mojo from pb1dft
Diffstat (limited to 'templates')
-rw-r--r--templates/show_mpdplay.inc2
-rw-r--r--templates/sidebar.inc.php52
2 files changed, 44 insertions, 10 deletions
diff --git a/templates/show_mpdplay.inc b/templates/show_mpdplay.inc
index 2975204a..b5c08c46 100644
--- a/templates/show_mpdplay.inc
+++ b/templates/show_mpdplay.inc
@@ -30,7 +30,7 @@ function fmt_time($seconds) {return sprintf ("%d:%02d", $seconds/60, $seconds %
global $condPL;
?>
-<div align="center">
+<div align="center"><!-- Is this div neccesary??? -->
<table border="0" cellpadding="3" cellspacing="0" class="tabledata"><!-- MPD Control table -->
<tr class="table-header">
<td colspan="2"><?php echo _("MPD Play Control"); ?></td>
diff --git a/templates/sidebar.inc.php b/templates/sidebar.inc.php
index 423c5133..ed2111bc 100644
--- a/templates/sidebar.inc.php
+++ b/templates/sidebar.inc.php
@@ -42,11 +42,22 @@ $web_path = conf('web_path');
?>
<!-- <div id="navcontainer"> --> <!--sigger: appears this div is not neccesary and duplicates #sidebar -->
<ul id="navlist">
- <li id="active">
+ <li<?php
+ if ($location['page'] == "index.php"){
+ echo " id=\"activetopmenu\" ";
+ }?>>
<a href="<?php echo $web_path; ?>/index.php" id="current"><?php echo _("Home"); ?></a>
</li>
<?php if ($GLOBALS['user']->has_access(100)) { ?>
- <li>
+ <li<?php
+ if ($location['page'] == "admin/index.php" ||
+ $location['page'] == "admin/users.php" ||
+ $location['page'] == "admin/mail.php" ||
+ $location['page'] == "admin/catalog.php" ||
+ $location['page'] == "admin/preferences.php" ||
+ $location['page'] == "admin/access.php" ){
+ echo " id=\"activetopmenu\" ";
+ }?>>
<a href="<?php echo $web_path; ?>/admin/index.php"><?php echo _("Admin"); ?></a>
<?php
if ($GLOBALS['theme']['submenu'] != 'simple') {
@@ -62,10 +73,18 @@ $web_path = conf('web_path');
} // end if access
?>
- <li>
+ <li<?php
+ if ($location['page'] == "preferences.php" ){
+ echo " id=\"activetopmenu\" ";
+ }?>>
<a href="<?php echo $web_path; ?>/preferences.php"><?php echo _("Preferences"); ?></a>
</li>
- <li>
+ <li<?php
+ if ($location['page'] == "browse.php" ||
+ $location['page'] == "artists.php" ||
+ $location['page'] == "albums.php" ){
+ echo " id=\"activetopmenu\" ";
+ }?>>
<a href="<?php echo $web_path; ?>/browse.php"><?php echo _("Browse"); ?></a>
<?php
if ($GLOBALS['theme']['submenu'] != 'simple') {
@@ -81,19 +100,31 @@ $web_path = conf('web_path');
?>
<?php if ($GLOBALS['user']->prefs['upload']) { ?>
- <li>
+ <li<?php
+ if ($location['page'] == "upload.php"){
+ echo " id=\"activetopmenu\" ";
+ }?>>
<a href="<?php echo $web_path; ?>/upload.php"><?php echo _("Upload"); ?></a>
</li>
<?php } // end if ($GLOBALS['user']->prefs['upload']) ?>
- <li>
+ <li<?php
+ if ($location['page'] == "playlist.php"){
+ echo " id=\"activetopmenu\" ";
+ }?>>
<a href="<?php echo $web_path; ?>/playlist.php"><?php echo _("Playlists"); ?></a>
</li>
<?php if ($GLOBALS['user']->prefs['play_type'] == 'mpd') { ?>
- <li>
+ <li<?php
+ if ($location['page'] == "mpd.php"){
+ echo " id=\"activetopmenu\" ";
+ }?>>
<a href="<?php echo $web_path; ?>/mpd.php"><?php echo _("Local Play"); ?></a>
</li>
<?php } // end if ($GLOBALS['user']->prefs['play_type'] == 'mpd') ?>
- <li>
+ <li<?php
+ if ($location['page'] == "search.php"){
+ echo " id=\"activetopmenu\" ";
+ }?>>
<a href="<?php echo $web_path; ?>/search.php"><?php echo _("Search"); ?></a>
</li>
<?php if ($GLOBALS['theme']['orientation'] != 'horizontal') { ?>
@@ -108,7 +139,10 @@ $web_path = conf('web_path');
</form>
</li>
<?php } // end if ($GLOBALS['theme']['orientation'] != 'horizontal')?>
- <li>
+ <li<?php
+ if ($location['page'] == "randomplay.php"){
+ echo " id=\"activetopmenu\" ";
+ }?>>
<a href="<?php echo $web_path; ?>/randomplay.php"><?php echo _('Random'); ?></a>
</li>
<?php if ($GLOBALS['theme']['orientation'] != 'horizontal') { ?>