diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-07-09 11:57:48 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-07-09 11:57:48 +0000 |
commit | 7d63859ce355870942a3f648cff6be57e43451ea (patch) | |
tree | a97ef5585aa2395b6a1d7d14270f915674951b9a /templates/show_song.inc.php | |
parent | abc051ec758b38a709ccde8d9ce7dd9a988fbec7 (diff) | |
download | ampache-7d63859ce355870942a3f648cff6be57e43451ea.tar.gz ampache-7d63859ce355870942a3f648cff6be57e43451ea.tar.bz2 ampache-7d63859ce355870942a3f648cff6be57e43451ea.zip |
add rating to single song view, and include caching fix
Diffstat (limited to 'templates/show_song.inc.php')
-rw-r--r-- | templates/show_song.inc.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/show_song.inc.php b/templates/show_song.inc.php index a809dd0e..ae106236 100644 --- a/templates/show_song.inc.php +++ b/templates/show_song.inc.php @@ -18,14 +18,17 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -$rowparity = flip_class(); $icon = $song->enabled ? 'disable' : 'enable'; $button_flip_state_id = 'button_flip_state_' . $song->id; ?> <?php show_box_top($song->title . ' ' . _('Details')); ?> <dl class="song_details"> +<?php if (Config::get('ratings')) { ?> +<dt class="<?php echo flip_class(); ?>"><?php echo _('Rating'); ?></dt> +<dd><div id="rating_<?php echo $song->id; ?>_song"><?php Rating::show($song->id,'song'); ?></div></dd> +<?php } ?> <dt class="<?php echo $rowparity; ?>"><?php echo _('Action'); ?></dt> - <dd class"<?php echo $rowparity; ?>"> + <dd class="<?php echo flip_class(); ?>"> <?php echo Ajax::button('?action=basket&type=song&id=' . $song->id,'add',_('Add'),'add_song_' . $song->id); ?> <?php if (Access::check_function('download')) { ?> <a href="<?php echo Song::play_url($song->id); ?>"><?php echo get_user_icon('link',_('Link')); ?></a> |