diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-06-10 04:47:24 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-06-10 04:47:24 +0000 |
commit | 5d09d233c7efea368f8b04f915d51bd9a7ebc538 (patch) | |
tree | 258fde746cec1084b073176aa7e4d86c6685b406 /templates/menu.inc | |
parent | ab8c8b63c65f3c3aa01b7ae64900d764718ff986 (diff) | |
download | ampache-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.inc | 10 |
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"), |