ソースを参照

Slimbox on single pages

pecesama 18 年 前
コミット
5c45a74e8a
共有1 個のファイルを変更した5 個の追加3 個の削除を含む
  1. 5 3
      index.php

+ 5 - 3
index.php ファイルの表示

@@ -100,7 +100,7 @@
100 100
 						$effect = " onclick=\"Lightbox.show('".$register["url"]."', '".strip_tags(htmlentities($register["description"]))."');\" ";
101 101
 						
102 102
 						$input = array("{Date_Added}", "{Permalink}", "{PhotoURL}", "{PhotoAlt}", "{Caption}", "{Effect}", "{URL_Tumble}");
103
-						$output = array($formatedDate, $permalink, $photoPath, strip_tags($register["description"]), $register["description"], $effect, $conf->urlGelato);
103
+						$output = array($formatedDate, $permalink, $photoPath, strip_tags(htmlentities($register["description"])), $register["description"], $effect, $conf->urlGelato);
104 104
 						
105 105
 						$template->cargarPlantilla($input, $output, "template_photo");
106 106
 						$template->mostrarPlantilla();							   
@@ -172,8 +172,10 @@
172 172
 					$photoPath = $register["url"];
173 173
 				}
174 174
 				
175
-				$input = array("{Date_Added}", "{Permalink}", "{PhotoURL}", "{PhotoAlt}", "{Caption}", "{URL_Tumble}");
176
-				$output = array($formatedDate, $permalink, $photoPath, "", $register["description"], $conf->urlGelato);
175
+				$effect = " onclick=\"Lightbox.show('".$register["url"]."', '".strip_tags(htmlentities($register["description"]))."');\" ";
176
+						
177
+				$input = array("{Date_Added}", "{Permalink}", "{PhotoURL}", "{PhotoAlt}", "{Caption}", "{Effect}", "{URL_Tumble}");
178
+				$output = array($formatedDate, $permalink, $photoPath, strip_tags(htmlentities($register["description"])), $register["description"], $effect, $conf->urlGelato);
177 179
 				
178 180
 				$template->cargarPlantilla($input, $output, "template_photo");
179 181
 				$template->mostrarPlantilla();