diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-23 06:08:14 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-23 06:08:14 +0000 |
commit | 216e691dfa53a28af8beca7aad2bf0ffb71dba2c (patch) | |
tree | 8b371e856d8107832a724f1ee0ad42f270435d0a /templates/rightbar.inc.php | |
parent | 84eca6a3d59fc591a7e28b3d7e0c11746dc837fc (diff) | |
download | ampache-216e691dfa53a28af8beca7aad2bf0ffb71dba2c.tar.gz ampache-216e691dfa53a28af8beca7aad2bf0ffb71dba2c.tar.bz2 ampache-216e691dfa53a28af8beca7aad2bf0ffb71dba2c.zip |
- Added Live Stream (Internet Radio) support
- New Database Update corrects some issues and makes internet radio possible
- Fixed ratings
- Added new Transcode preference, doesn't do anything yet
- New "Radio Stations" browse type
Diffstat (limited to 'templates/rightbar.inc.php')
-rw-r--r-- | templates/rightbar.inc.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/templates/rightbar.inc.php b/templates/rightbar.inc.php index 444db2ed..ad5ef726 100644 --- a/templates/rightbar.inc.php +++ b/templates/rightbar.inc.php @@ -37,18 +37,16 @@ <table cellpadding="0" cellspacing="0"> <?php $objects = $GLOBALS['user']->playlist->get_items(); - foreach ($objects as $song_id) { - $song = new Song($song_id); - $song->format(); + foreach ($objects as $uid=>$object_data) { + $object = new $object_data['1']($object_data['0']); + $object->format(); ?> <tr class="<?php echo flip_class(); ?>"> <td> - <?php echo $song->f_link; ?> + <?php echo $object->f_link; ?> </td> <td> - <span onclick="ajaxPut('<?php echo Config::get('ajax_url'); ?>?action=current_playlist&type=delete&id=<?php echo $song_id; ?>');return true;"> - <?php echo get_user_icon('delete','',_('Delete')); ?> - </span> + <?php echo Ajax::button('?action=current_playlist&type=delete&id=' . $uid,'delete',_('Delete'),'rightbar_delete_' . $uid); ?> </td> </tr> <?php } if (!count($objects)) { ?> |