diff options
author | spocky <spocky@ampache> | 2008-01-17 09:56:52 +0000 |
---|---|---|
committer | spocky <spocky@ampache> | 2008-01-17 09:56:52 +0000 |
commit | b77c0bedcb144e4f8af7e4860f05d673986e79a4 (patch) | |
tree | 15535d65346f17a25ba1d9c57a90a9e24a9fef34 /templates/show_album.inc.php | |
parent | 86263d7c1be8aa4f083f47e5f1bcee9ab01f64c8 (diff) | |
download | ampache-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.php | 14 |
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) . ' (' . $album->year . ') -- ' <?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 . "&type=popup&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 . "&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 . "&type=popup&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 . "&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"> |