IFDB includes cover art descriptions as part of alt text in a few places. Alt text allows people
+who are blind or who have low vision to read about an image using a screen reader. Alt text is also
+displayed instead of a picture when images are turned off in the browser.
+Apart from alt text, IFDB also displays the descriptions directly on pages that show full-sized
+cover art.
+
+
-
 ?>)
+
 ?>)
";
}
- echo "
";
+ echo "";
+ }
+
+ if ($cover_art_description) {
+ echo "
"
- ."

";
+ ."

";
}
// ----------------------------------------------------------------------------
diff --git a/www/viewgame b/www/viewgame
index 48b5fc5e..4b22616d 100644
--- a/www/viewgame
+++ b/www/viewgame
@@ -207,7 +207,7 @@ function sendCoverArt()
if (isset($_REQUEST['ldesc']))
sendImageLdesc("Cover Art for $title"
. ($targVsn ? " (version $targVsn)" : ""),
- $imgname);
+ $imgname, $cover_art_description, $title, $id);
// retrieve the image data
list($imgdata, $fmt) = fetch_image($imgname, true);
@@ -375,7 +375,8 @@ if (!$errMsg) {
list($ifids, $title, $author, $authorExt,
$pubYear, $pubFull, $license,
$system, $desc, $rawDesc,
- $hasart, $genre, $seriesname, $seriesnum,
+ $hasart, $cover_art_description,
+ $genre, $seriesname, $seriesnum,
$forgiveness, $bafsid, $version,
$language, $languageNameOnly,
$website, $links,
@@ -929,14 +930,31 @@ echo helpWinLink("help-ifid", "IFID");
-
-
+ ";
+ // If we're logged in and this game doesn't have a cover art description,
+ // show a link to add one.
+ if ($curuser && !$cover_art_description) {
+ global $nonce;
+ echo "";
+ echo "
";
+ } ?>
+