comparison mgallery.php @ 24:7f5209a6f7e0

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 15 Sep 2015 09:59:23 +0300
parents 12916fcdb8b8
children b8f8e03f943b
comparison
equal deleted inserted replaced
23:dca12a90da3d 24:7f5209a6f7e0
155 echo " <div class=\"galleryEntry\">\n"; 155 echo " <div class=\"galleryEntry\">\n";
156 156
157 if ($data["type"] == 0) 157 if ($data["type"] == 0)
158 { 158 {
159 echo 159 echo
160 "<div class=\"imageBox\"><a href=\"".mgGetURL($galPath, $filename)."\">". 160 " <div class=\"imageBox\"><a href=\"".mgGetURL($galPath, $filename)."\">".
161 "<img src=\"".mgGetImageURL($galTNPath, $filename)."\" alt=\"". 161 "<img src=\"".mgGetImageURL($galTNPath, $filename)."\" alt=\"".
162 chentities($filename)."\"></a>". 162 chentities($filename)."\"></a></div>\n".
163 "</div>". 163 mgGetArr($data, "caption", " <div class=\"imageCaption\">%1</div>\n", "", "chentities");
164 mgGetArr($data, "caption", "<div class=\"imageCaption\">%1</div>", "", "chentities");
165 /* 164 /*
166 if ($mode == "") 165 if ($mode == "")
167 { 166 {
168 echo 167 echo
169 " <select class=\"dropdown\" id=\"dd".$data["base"]."\" name=\"dd".$data["base"]. 168 " <select class=\"dropdown\" id=\"dd".$data["base"]."\" name=\"dd".$data["base"].
180 } 179 }
181 else 180 else
182 { 181 {
183 $atmp = ($galUseCoverImages && isset($data["image"])) ? $galImageURL.mgCleanPath(TRUE, $galPath, $filename, $galTNPath, $data["image"]) : $galAlbumIcon; 182 $atmp = ($galUseCoverImages && isset($data["image"])) ? $galImageURL.mgCleanPath(TRUE, $galPath, $filename, $galTNPath, $data["image"]) : $galAlbumIcon;
184 echo 183 echo
185 " <a href=\"".mgGetURL(mgCleanPath(TRUE, $galPath, $filename), FALSE)."\">". 184 " <a href=\"".mgGetURL(mgCleanPath(TRUE, $galPath, $filename), FALSE)."\">".
186 "<img class=\"albumIcon\" src=\"".$atmp."\" alt=\"".chentities($data["caption"])."\" />\n". 185 "<img class=\"albumIcon\" src=\"".$atmp."\" alt=\"".chentities($data["caption"])."\" />\n".
187 "<div class=\"albumTitle\">".chentities($data["caption"])."</div></a>\n"; 186 " <div class=\"albumTitle\">".chentities($data["caption"])."</div></a>\n";
188 } 187 }
189 188
190 if ($galUseTables) 189 if ($galUseTables)
191 { 190 {
192 echo " </td>\n"; 191 echo " </td>\n";