diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-08-13 04:30:26 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-08-13 04:30:26 +0000 |
commit | e7fea90327419214531371543662056c1398470d (patch) | |
tree | 8b7642b5cac62994ff55f80e733dedbff22105bf /index.php | |
parent | 3836a33d1c210a806c13f9bb172724394fb3fd80 (diff) | |
download | ampache-e7fea90327419214531371543662056c1398470d.tar.gz ampache-e7fea90327419214531371543662056c1398470d.tar.bz2 ampache-e7fea90327419214531371543662056c1398470d.zip |
new mpd mojo from rosensama and rperkins
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 31 |
1 files changed, 16 insertions, 15 deletions
@@ -63,11 +63,15 @@ $action = scrub_in($_REQUEST['action']); <?php show_local_catalog_info(); ?> </td> <td valign="top" align="left"> - <?php + <?php + if ($user->prefs['play_type'] == 'mpd' && !conf('localplay_menu')) { + show_mpd_control(); + } else { if ( $items = get_global_popular('album') ) { show_info_box(_("Most Popular Albums"), 'album',$items); } - ?> + } + ?> </td> </tr> <tr><td colspan="2"> </td></tr> @@ -77,16 +81,16 @@ $action = scrub_in($_REQUEST['action']); </td> </tr> <tr><td colspan="2"> </td></tr> - <tr> - <?php - if ($user->prefs['play_type'] == 'mpd') { - show_mpd_pl(); - } else { - echo "<td> </td>"; - } - ?> - </tr> - <tr><td colspan="2"> </td></tr> + <tr> + <?php + if ($user->prefs['play_type'] == 'mpd' && !conf('localplay_menu')) { + show_mpd_pl(); + } else { + echo "<td> </td>"; + } + ?> + </tr> + <tr><td colspan="2"> </td></tr> <tr> <td valign="top" align="right"> <?php @@ -137,9 +141,6 @@ $action = scrub_in($_REQUEST['action']); if($user->prefs['play_type'] == 'local_play') { show_local_control(); echo "<br />"; - } elseif ($user->prefs['play_type'] == 'mpd' && !conf('localplay_menu')) { - show_mpd_control(); - echo "<br />"; } else { echo " "; } |