diff options
author | nf <nf@ampache> | 2007-07-14 13:27:37 +0000 |
---|---|---|
committer | nf <nf@ampache> | 2007-07-14 13:27:37 +0000 |
commit | b2e4291a45048e00c659b7526ec3ad322890aec7 (patch) | |
tree | 91e4d2b04fcff5ecb577e53f3892f5481df04db1 /templates/show_random_albums.inc.php | |
parent | b01cd6b1dc22d6c1a0b50acdf38d94a38d458b9a (diff) | |
download | ampache-b2e4291a45048e00c659b7526ec3ad322890aec7.tar.gz ampache-b2e4291a45048e00c659b7526ec3ad322890aec7.tar.bz2 ampache-b2e4291a45048e00c659b7526ec3ad322890aec7.zip |
Added passive ratings to show_random_albums.inc
Diffstat (limited to 'templates/show_random_albums.inc.php')
-rw-r--r-- | templates/show_random_albums.inc.php | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/templates/show_random_albums.inc.php b/templates/show_random_albums.inc.php index a64e203b..2b2454d6 100644 --- a/templates/show_random_albums.inc.php +++ b/templates/show_random_albums.inc.php @@ -28,17 +28,23 @@ $web_path = Config::get('web_path'); $album = new Album($album_id); $album->format(); $name = scrub_out('[' . $album->artist . '] ' . $album->name); - ?> - <td> - <a href="<?php echo $web_path; ?>/albums.php?action=show&album=<?php echo $album_id; ?>"> - <?php if (Config::get('show_album_art')) { ?> - <img src="<?php echo $web_path; ?>/image.php?thumb=3&id=<?php echo $album_id; ?>" width="80" height="80" border="0" alt="<?php echo $name; ?>" title="<?php echo $name; ?>" /> - <?php } else { ?> - <?php echo '[' . $album->f_artist . '] ' . $album->f_name; ?> - <?php } ?> - </a> - </td> - <?php } ?> + ?> + <td> + <a href="<?php echo $web_path; ?>/albums.php?action=show&album=<?php echo $album_id; ?>"> + <?php if (Config::get('show_album_art')) { ?> + <img src="<?php echo $web_path; ?>/image.php?thumb=3&id=<?php echo $album_id; ?>" width="80" height="80" border="0" alt="<?php echo $name; ?>" title="<?php echo $name; ?>" /> + <?php } else { ?> + <?php echo '[' . $album->f_artist . '] ' . $album->f_name; ?> + <?php } ?> + </a><br> + <?php + if(conf('ratings')){ + echo "<div style=\"float:left; display:inline;\" id=\"rating_" . $album->id . "_album\">"; + show_rating_static($album->id, 'album');} + echo "</div>"; + ?> + </td> + <?php } ?> </tr> </table> <?php show_box_bottom(); ?> |