summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--templates/show_album.inc.php14
-rw-r--r--templates/show_album_row.inc.php7
-rw-r--r--themes/classic/templates/default.css2
-rw-r--r--themes/greysme/templates/default.css2
4 files changed, 15 insertions, 10 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">
diff --git a/templates/show_album_row.inc.php b/templates/show_album_row.inc.php
index 338ebf01..8a2b7be7 100644
--- a/templates/show_album_row.inc.php
+++ b/templates/show_album_row.inc.php
@@ -23,10 +23,13 @@
<?php echo Ajax::button('?action=basket&type=album&id=' . $album->id,'add',_('Add'),'add_album_' . $album->id); ?>
<?php echo Ajax::button('?action=basket&type=album_random&id=' . $album->id,'random',_('Random'),'random_album_' . $album->id); ?>
</td>
-<?php if (Browse::get_filter('show_art')) { ?>
+<?php
+ if (Browse::get_filter('show_art')) {
+ $name = '[' . $album->f_artist . '] ' . scrub_out($album->full_name);
+?>
<td class="cel_cover">
<a href="<?php echo Config::get('web_path'); ?>/albums.php?action=show&amp;album=<?php echo $album->id; ?>">
- <img height="75" width="75" src="<?php echo Config::get('web_path'); ?>/image.php?id=<?php echo $album->id; ?>&amp;thumb=1" />
+ <img height="75" width="75" alt="<?php echo($name) ?>" title="<?php echo($name) ?>" src="<?php echo Config::get('web_path'); ?>/image.php?id=<?php echo $album->id; ?>&amp;thumb=1" />
</a>
</td>
<?php } ?>
diff --git a/themes/classic/templates/default.css b/themes/classic/templates/default.css
index 9c2313eb..84808960 100644
--- a/themes/classic/templates/default.css
+++ b/themes/classic/templates/default.css
@@ -533,7 +533,7 @@ a.button{padding:1px 3px;}
.tabledata input, .tabledata select{ margin:2px 0;}
/* specific cells */
-.cel_cover{padding:6px;}
+td.cel_cover{padding:6px;}
.cel_select, .cel_action, .cel_date, .cel_applytoall, .cel_level {text-align:center;}
/* specific cells : users login state */
.user_online{background:#0f0;}
diff --git a/themes/greysme/templates/default.css b/themes/greysme/templates/default.css
index 1da42f33..2a695830 100644
--- a/themes/greysme/templates/default.css
+++ b/themes/greysme/templates/default.css
@@ -578,7 +578,7 @@ input[type=checkbox] { border:0;background:none; }
.discnb { font-style: italic; font-size:0.8em; }
/* specific cells */
-.cel_cover{padding:6px;}
+td.cel_cover{padding:6px;}
.cel_select, .cel_action, .cel_date, .cel_applytoall, .cel_level {text-align:center;}
td.cel_track {text-align:right;}
/* specific cells : users login state */