summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
415e75c)
Adds in a default Alt tag if it's missing
git-archimport-id: arch@sommitrealweird.co.uk--2005-desktop/bpgallery--mainline--1.0--patch-10
declare -rf bpgallery_default_description
function bpgallery_default_thumbsline() {
declare -rf bpgallery_default_description
function bpgallery_default_thumbsline() {
+if [[ -z $caption ]]; then
+ caption_alt=Unknown
+else
+ caption_alt=$caption
+fi
-<div class="thumbnail"><a href="$filename"><img src="icons/$filename" /></a><div class="caption">$caption</div></div>
+<div class="thumbnail"><a href="$filename"><img src="icons/$filename" alt="$caption_alt" /></a><div class="caption">$caption</div></div>