diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-01 10:31:15 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-01 10:31:15 +0000 |
commit | 8b81ef709679d69ce47440fd48c76a0e3f6f903b (patch) | |
tree | 868a85571ff308b230f254d67b684b23533359a2 /templates/show_album_art.inc.php | |
parent | c7532033e56da3c007dba6144ca6c8884fac2781 (diff) | |
download | ampache-8b81ef709679d69ce47440fd48c76a0e3f6f903b.tar.gz ampache-8b81ef709679d69ce47440fd48c76a0e3f6f903b.tar.bz2 ampache-8b81ef709679d69ce47440fd48c76a0e3f6f903b.zip |
I am pretty sure the find art should work correctly now, it doesnt do id3tags yet due to some... complications.. it does however now read the folder images which is a new feature.
Diffstat (limited to 'templates/show_album_art.inc.php')
-rw-r--r-- | templates/show_album_art.inc.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/templates/show_album_art.inc.php b/templates/show_album_art.inc.php index 102a2698..a13f15e1 100644 --- a/templates/show_album_art.inc.php +++ b/templates/show_album_art.inc.php @@ -21,23 +21,24 @@ // Gotta do some math here! $total_images = count($images); -$rows = floor($total_images/3); +$rows = floor($total_images/4); $i = 0; ?> <?php show_box_top(); ?> -<table> +<table class="table-data"> <tr> <?php while ($i <= $rows) { $j=0; - while ($j < 3) { - $key = $i*3+$j; + while ($j < 4) { + $key = $i*4+$j; + $image_url = conf('web_path') . '/image.php?type=session&image_index=' . $key; if (!isset($images[$key])) { echo "<td> </td>\n"; } else { ?> <td align="center"> - <a href="<?php echo $images[$key]['url']; ?>" target="_blank"> - <img src="<?php echo scrub_out($images[$key]['url']); ?>" border="0" height="175" width="175" /><br /> + <a href="<?php echo $image_url; ?>" target="_blank"> + <img src="<?php echo $image_url; ?>" border="0" height="175" width="175" /><br /> </a> <p align="center"> [<a href="<?php echo conf('web_path'); ?>/albums.php?action=select_art&image=<?php echo $key; ?>&album_id=<?php echo urlencode($_REQUEST['album_id']); ?>">Select</a>] |