瀏覽代碼

Slimbox on single pages

pecesama 18 年之前
父節點
當前提交
5c45a74e8a
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      index.php

+ 5 - 3
index.php 查看文件

100
 						$effect = " onclick=\"Lightbox.show('".$register["url"]."', '".strip_tags(htmlentities($register["description"]))."');\" ";
100
 						$effect = " onclick=\"Lightbox.show('".$register["url"]."', '".strip_tags(htmlentities($register["description"]))."');\" ";
101
 						
101
 						
102
 						$input = array("{Date_Added}", "{Permalink}", "{PhotoURL}", "{PhotoAlt}", "{Caption}", "{Effect}", "{URL_Tumble}");
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
 						$template->cargarPlantilla($input, $output, "template_photo");
105
 						$template->cargarPlantilla($input, $output, "template_photo");
106
 						$template->mostrarPlantilla();							   
106
 						$template->mostrarPlantilla();							   
172
 					$photoPath = $register["url"];
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
 				$template->cargarPlantilla($input, $output, "template_photo");
180
 				$template->cargarPlantilla($input, $output, "template_photo");
179
 				$template->mostrarPlantilla();							   
181
 				$template->mostrarPlantilla();