diff options
author | spocky <spocky@ampache> | 2007-08-15 23:11:49 +0000 |
---|---|---|
committer | spocky <spocky@ampache> | 2007-08-15 23:11:49 +0000 |
commit | 376d632160618bba772d88e57d95405317cf8920 (patch) | |
tree | 235a3dfbaa6d24a4995d0ba17460e460d0fdeee9 /templates/show_random_albums.inc.php | |
parent | c8bfff18ef4f70b0abf9f3d7e2eaf0079bab29f8 (diff) | |
download | ampache-376d632160618bba772d88e57d95405317cf8920.tar.gz ampache-376d632160618bba772d88e57d95405317cf8920.tar.bz2 ampache-376d632160618bba772d88e57d95405317cf8920.zip |
updated css (sidebar, random albums, global classes)
cleaned up html
corrected a typo in show_objects
Diffstat (limited to 'templates/show_random_albums.inc.php')
-rw-r--r-- | templates/show_random_albums.inc.php | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/templates/show_random_albums.inc.php b/templates/show_random_albums.inc.php index a3fcd98e..e8e4749d 100644 --- a/templates/show_random_albums.inc.php +++ b/templates/show_random_albums.inc.php @@ -21,30 +21,31 @@ $web_path = Config::get('web_path'); ?> <?php show_box_top(_('Albums of the Moment')); ?> -<table class="tabledata"> -<tr> + <?php foreach ($albums as $album_id) { $album = new Album($album_id); $album->format(); $name = scrub_out('[' . $album->artist . '] ' . $album->name); ?> - <td> + <div class="random_album"> <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 /> + </a> <?php if(Config::get('ratings')){ - echo "<div style=\"float:left; display:inline;\" id=\"rating_" . $album->id . "_album\">"; - show_rating_static($album->id, 'album');} - echo "</div>"; + //echo "<div style=\"float:left; display:inline;\" id=\"rating_" . $album->id . "_album\">"; + show_rating_static($album->id, 'album'); + //echo "</div>"; + } ?> - </td> + <span class="play_album"><?php echo Ajax::button('?action=basket&type=album&id=' . $album->id,'add',_('Play Album'),'play_full_' . $album->id); ?></span> + </div> + <?php } ?> -</tr> -</table> + <?php show_box_bottom(); ?> |