Mercurial > hg > mgallery
diff mgallery.php @ 20:12916fcdb8b8
Improve the non-tabled mode.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 14 Sep 2015 12:59:54 +0300 |
parents | 59075f5e7a62 |
children | 7f5209a6f7e0 |
line wrap: on
line diff
--- a/mgallery.php Mon Sep 14 12:49:56 2015 +0300 +++ b/mgallery.php Mon Sep 14 12:59:54 2015 +0300 @@ -138,7 +138,9 @@ $n = 0; if ($galUseTables) - echo "<table class=\"".$class."\">\n"; + echo "<table class=\"galleryTable ".$class."\">\n"; + else + echo "<div class=\"galleryTable ".$class."\">\n"; for ($index = $start; $index < $end; $index++) { @@ -148,9 +150,9 @@ if ($galUseTables && $n == 0) echo " <tr>\n"; if ($galUseTables) - echo " <td id=\"cd".$data["base"]."\">\n"; + echo " <td class=\"galleryEntry\" id=\"cd".$data["base"]."\">\n"; else - echo " <div class=\"albumEntry\">\n"; + echo " <div class=\"galleryEntry\">\n"; if ($data["type"] == 0) { @@ -208,6 +210,9 @@ } echo "</table>\n"; } + else + echo "</div>\n"; + return $index; }