Mercurial > hg > mgallery
changeset 24:7f5209a6f7e0
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 15 Sep 2015 09:59:23 +0300 |
parents | dca12a90da3d |
children | c698618e6f67 |
files | basic.css mgallery.php |
diffstat | 2 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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 - "<div class=\"imageBox\"><a href=\"".mgGetURL($galPath, $filename)."\">". + " <div class=\"imageBox\"><a href=\"".mgGetURL($galPath, $filename)."\">". "<img src=\"".mgGetImageURL($galTNPath, $filename)."\" alt=\"". - chentities($filename)."\"></a>". - "</div>". - mgGetArr($data, "caption", "<div class=\"imageCaption\">%1</div>", "", "chentities"); + chentities($filename)."\"></a></div>\n". + mgGetArr($data, "caption", " <div class=\"imageCaption\">%1</div>\n", "", "chentities"); /* if ($mode == "") { @@ -182,9 +181,9 @@ { $atmp = ($galUseCoverImages && isset($data["image"])) ? $galImageURL.mgCleanPath(TRUE, $galPath, $filename, $galTNPath, $data["image"]) : $galAlbumIcon; echo - " <a href=\"".mgGetURL(mgCleanPath(TRUE, $galPath, $filename), FALSE)."\">". + " <a href=\"".mgGetURL(mgCleanPath(TRUE, $galPath, $filename), FALSE)."\">". "<img class=\"albumIcon\" src=\"".$atmp."\" alt=\"".chentities($data["caption"])."\" />\n". - "<div class=\"albumTitle\">".chentities($data["caption"])."</div></a>\n"; + " <div class=\"albumTitle\">".chentities($data["caption"])."</div></a>\n"; } if ($galUseTables)