summaryrefslogtreecommitdiffstats
path: root/templates/show_album.inc.php
diff options
context:
space:
mode:
authorspocky <spocky@ampache>2008-01-17 09:56:52 +0000
committerspocky <spocky@ampache>2008-01-17 09:56:52 +0000
commitb77c0bedcb144e4f8af7e4860f05d673986e79a4 (patch)
tree15535d65346f17a25ba1d9c57a90a9e24a9fef34 /templates/show_album.inc.php
parent86263d7c1be8aa4f083f47e5f1bcee9ab01f64c8 (diff)
downloadampache-b77c0bedcb144e4f8af7e4860f05d673986e79a4.tar.gz
ampache-b77c0bedcb144e4f8af7e4860f05d673986e79a4.tar.bz2
ampache-b77c0bedcb144e4f8af7e4860f05d673986e79a4.zip
Added alt/titles on album pictures
Fixed a display bug in templates
Diffstat (limited to 'templates/show_album.inc.php')
-rw-r--r--templates/show_album.inc.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/templates/show_album.inc.php b/templates/show_album.inc.php
index 4b81c4ff..adc175a5 100644
--- a/templates/show_album.inc.php
+++ b/templates/show_album.inc.php
@@ -28,12 +28,14 @@ $title = scrub_out($album->name) . '&nbsp;(' . $album->year . ')&nbsp;--&nbsp;'
<?php show_box_top($title,'info-box'); ?>
<div class="album_art">
<?php
- if ($album_name != _('Unknown (Orphaned)')) {
- $aa_url = $web_path . "/image.php?id=" . $album->id . "&amp;type=popup&amp;sid=" . session_id();
- echo "<a target=\"_blank\" href=\"$aa_url\" onclick=\"popup_art('$aa_url'); return false;\">";
- echo "<img src=\"" . $web_path . "/image.php?id=" . $album->id . "&amp;thumb=2\" alt=\"Album Art\" height=\"128\" width=\"128\" />";
- echo "</a>\n";
- }
+ if ($album_name != _('Unknown (Orphaned)')) {
+ $name = '[' . $album->f_artist . '] ' . scrub_out($album->full_name);
+
+ $aa_url = $web_path . "/image.php?id=" . $album->id . "&amp;type=popup&amp;sid=" . session_id();
+ echo "<a target=\"_blank\" href=\"$aa_url\" onclick=\"popup_art('$aa_url'); return false;\">";
+ echo "<img src=\"" . $web_path . "/image.php?id=" . $album->id . "&amp;thumb=2\" alt=\"".$name."\" title=\"".$name."\" height=\"128\" width=\"128\" />";
+ echo "</a>\n";
+ }
?>
</div>
<div style="display:table-cell;" id="rating_<?php echo $album->id; ?>_album">