diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-03 09:21:29 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-03 09:21:29 +0000 |
commit | dfbe65e1bf0a4d7cff1e2d31a2ade18de6756196 (patch) | |
tree | 1036034cfcb8653f37b2e690f8b83068f98fe509 /lib/ui.lib.php | |
parent | a2cf31f96cd9ba28b1f5e7090208312a9e5b7ca9 (diff) | |
download | ampache-dfbe65e1bf0a4d7cff1e2d31a2ade18de6756196.tar.gz ampache-dfbe65e1bf0a4d7cff1e2d31a2ade18de6756196.tar.bz2 ampache-dfbe65e1bf0a4d7cff1e2d31a2ade18de6756196.zip |
whole new playlists files new coolness supported but not implmented, playback works but playlist edit functions are still untested...
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r-- | lib/ui.lib.php | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php index 6862ce57..2cf05a46 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -442,20 +442,20 @@ function show_edit_profile($username) { } // show_edit_profile /** - * show_playlist - * this shows the current playlist + * show_playlist + * This function takes a playlist object and calls show_songs after + * runing get_items() */ -function show_playlist($playlist_id) { +function show_playlist($playlist) { /* Create the Playlist */ - $playlist = new Playlist($playlist_id); - $song_ids = $playlist->get_songs(); + $song_ids = $playlist->get_items(); if (count($song_ids) > 0) { show_songs($song_ids, $playlist->id); } else { - echo "<p>" . _("No songs in this playlist.") . "</p>\n"; + echo "<div class=\"text-box\">" . _("No songs in this playlist.") . "</div>\n"; } } // show_playlist @@ -1213,4 +1213,15 @@ function show_registration_agreement() { } // show_registration_agreement + +/** + * show_playlist_import + * This shows the playlist import templates + */ +function show_playlist_import() { + + require (conf('prefix') . '/templates/show_import_playlist.inc.php'); + +} // show_playlist_import + ?> |