summaryrefslogtreecommitdiffstats
path: root/templates/menu.inc
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-06-10 04:47:24 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-06-10 04:47:24 +0000
commit5d09d233c7efea368f8b04f915d51bd9a7ebc538 (patch)
tree258fde746cec1084b073176aa7e4d86c6685b406 /templates/menu.inc
parentab8c8b63c65f3c3aa01b7ae64900d764718ff986 (diff)
downloadampache-5d09d233c7efea368f8b04f915d51bd9a7ebc538.tar.gz
ampache-5d09d233c7efea368f8b04f915d51bd9a7ebc538.tar.bz2
ampache-5d09d233c7efea368f8b04f915d51bd9a7ebc538.zip
localplay_menu patch from nedko
Diffstat (limited to 'templates/menu.inc')
-rw-r--r--templates/menu.inc10
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/menu.inc b/templates/menu.inc
index c98658dd..5ca40c9e 100644
--- a/templates/menu.inc
+++ b/templates/menu.inc
@@ -26,9 +26,13 @@
*/
-$items = array(
- _("Home") => htmlspecialchars(conf('web_path') . "/index.php"),
- _("Albums") => htmlspecialchars(conf('web_path') . "/albums.php"),
+$items = array(_("Home") => htmlspecialchars(conf('web_path') . "/index.php"));
+
+if ($GLOBALS['user']->prefs['play_type'] == 'mpd' && conf('localplay_menu')) {
+ $items += array(_("Local Play") => htmlspecialchars(conf('web_path') . "/mpd.php"));
+}
+
+$items += array(_("Albums") => htmlspecialchars(conf('web_path') . "/albums.php"),
_("Artists") => htmlspecialchars(conf('web_path') . "/artists.php"),
_("Playlists") => htmlspecialchars(conf('web_path') . "/playlist.php"),
_("Search") => htmlspecialchars(conf('web_path') . "/search.php"),