# HG changeset patch # User Matti Hamalainen # Date 1442300363 -10800 # Node ID 7f5209a6f7e086cad18508b82e7abc139801ebf5 # Parent dca12a90da3d2e825e2adab2e8166a3b865dda1e Cosmetics. diff -r dca12a90da3d -r 7f5209a6f7e0 basic.css --- a/basic.css Mon Sep 14 16:28:39 2015 +0300 +++ b/basic.css Tue Sep 15 09:59:23 2015 +0300 @@ -151,7 +151,7 @@ padding: 0.5em; } -td div.imageCaption { +.galleryEntry div.imageCaption { text-align: center; font-size: 1em; text-shadow: 1px 1px 2px black; diff -r dca12a90da3d -r 7f5209a6f7e0 mgallery.php --- a/mgallery.php Mon Sep 14 16:28:39 2015 +0300 +++ b/mgallery.php Tue Sep 15 09:59:23 2015 +0300 @@ -157,11 +157,10 @@ if ($data["type"] == 0) { echo - "
". + "
". "\"".". - "
". - mgGetArr($data, "caption", "
%1
", "", "chentities"); + chentities($filename)."\">
\n". + mgGetArr($data, "caption", "
%1
\n", "", "chentities"); /* if ($mode == "") { @@ -182,9 +181,9 @@ { $atmp = ($galUseCoverImages && isset($data["image"])) ? $galImageURL.mgCleanPath(TRUE, $galPath, $filename, $galTNPath, $data["image"]) : $galAlbumIcon; echo - " ". + " ". "\"".chentities($data["caption"])."\"\n". - "
".chentities($data["caption"])."
\n"; + "
".chentities($data["caption"])."
\n"; } if ($galUseTables)