diff --git a/index.php b/index.php index ab5ada0..416415a 100644 --- a/index.php +++ b/index.php @@ -51,9 +51,9 @@ $template = new plantillas($conf->template); $gelato_includes .= "\turlGelato."/images/favicon.ico\" />\n"; $gelato_includes .= "\turlGelato.($conf->urlFriendly?"/rss/":"/rss.php")."\"/>\n"; $gelato_includes .= "\turlGelato."/themes/".$conf->template."/style.css\"/>\n"; - $gelato_includes .= "\turlGelato."/admin/css/slimbox.css\" />\n"; - $gelato_includes .= "\t\n"; - $gelato_includes .= "\t"; + $gelato_includes .= "\turlGelato."/admin/css/lightbox.css\" />\n"; + $gelato_includes .= "\t\n"; + $gelato_includes .= "\t"; $input = array("{Gelato_includes}","{Title}", "{Description}", "{URL_Tumble}", "{Template_name}"); $output = array($gelato_includes, $conf->title, $conf->description, $conf->urlGelato, $conf->template); @@ -112,8 +112,8 @@ $template = new plantillas($conf->template); } else { $photoPath = str_replace("../", $conf->urlGelato."/", $register["url"]); } - - $effect = " onclick=\"Lightbox.show('".str_replace("../", $conf->urlGelato."/", $register["url"])."', '".strip_tags($register["description"])."');\" "; + + $effect = " href=\"".str_replace("../", $conf->urlGelato."/", $register["url"])."\" rel=\"lightbox\""; $input = array("{Date_Added}", "{Permalink}", "{PhotoURL}", "{PhotoAlt}", "{Caption}", "{Effect}", "{URL_Tumble}"); $output = array($formatedDate, $permalink, $photoPath, strip_tags($register["description"]), $register["description"], $effect, $conf->urlGelato); @@ -210,9 +210,8 @@ $template = new plantillas($conf->template); } else { $photoPath = str_replace("../", $conf->urlGelato."/", $register["url"]); } - - $effect = " onclick=\"Lightbox.show('".str_replace("../", $conf->urlGelato."/", $register["url"])."', '".strip_tags($register["description"])."');\" "; - + + $effect = " href=\"".str_replace("../", $conf->urlGelato."/", $register["url"])."\" rel=\"lightbox\""; $input = array("{Date_Added}", "{Permalink}", "{PhotoURL}", "{PhotoAlt}", "{Caption}", "{Effect}", "{URL_Tumble}"); $output = array($formatedDate, $permalink, $photoPath, strip_tags($register["description"]), $register["description"], $effect, $conf->urlGelato); diff --git a/themes/tumblr/template_photo.htm b/themes/tumblr/template_photo.htm index b55c342..80cc65a 100644 --- a/themes/tumblr/template_photo.htm +++ b/themes/tumblr/template_photo.htm @@ -10,8 +10,8 @@