diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-30 06:21:50 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-30 06:21:50 +0000 |
commit | 8e9678729653489a0839c14bc23d743e1509c319 (patch) | |
tree | b9108bc20a1665aff56ee891a2873bfa463b2aa7 /templates/sidebar_home.inc.php | |
parent | ff218616983683ccbe6623d0e66c248e94c0ea99 (diff) | |
download | ampache-8e9678729653489a0839c14bc23d743e1509c319.tar.gz ampache-8e9678729653489a0839c14bc23d743e1509c319.tar.bz2 ampache-8e9678729653489a0839c14bc23d743e1509c319.zip |
added your playlists with play link to the leftbar, no way to edit them yet
Diffstat (limited to 'templates/sidebar_home.inc.php')
-rw-r--r-- | templates/sidebar_home.inc.php | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/templates/sidebar_home.inc.php b/templates/sidebar_home.inc.php index 0e546595..336dc3c5 100644 --- a/templates/sidebar_home.inc.php +++ b/templates/sidebar_home.inc.php @@ -46,5 +46,18 @@ <hr /> --> <h4><?php echo _('Playlists'); ?></h4> -<br /> - +<span><a href="<?php echo $web_path; ?>/playlist.php?action=show_all"><?php echo _('View All'); ?></a></span> +<hr /> +<div style="left-padding:5px;"> +<?php + $playlists = Playlist::get_users($GLOBALS['user']->id); + foreach ($playlists as $playlist_id) { + $playlist = new Playlist($playlist_id); + $playlist->format(); +?> +<span> + <?php echo Ajax::button('?action=basket&type=playlist&id=' . $playlist_id,'all',_('Play This Playlist'),'leftbar_playlist_' . $playlist_id); ?> + <?php echo $playlist->f_link; ?> +</span> +<?php } // end foreach playlist ?> +</div> |