From 67fac1e13ef99b5d2fda4d7dfbf190c6df3e50c9 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Wed, 5 Mar 2008 09:37:55 +0000 Subject: [PATCH] moving the script code to wp_footer, this has been reported to fix IE7 issues... well, let's try... --- fp-plugins/lightbox/plugin.lightbox.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/fp-plugins/lightbox/plugin.lightbox.php b/fp-plugins/lightbox/plugin.lightbox.php index ea20210..ec77245 100755 --- a/fp-plugins/lightbox/plugin.lightbox.php +++ b/fp-plugins/lightbox/plugin.lightbox.php @@ -21,13 +21,22 @@ function plugin_lightbox_head() { echo << - - LBOXHEAD; } add_action('wp_head', 'plugin_lightbox_head'); +function plugin_lightbox_footer() { + + $pdir=plugin_geturl('lightbox'); + echo << + + +LBOXHEAD; +} +add_action('wp_footer', 'plugin_lightbox_footer'); + function plugin_lightbox_hook($popup, $abspath) { // the other $popup is just dropped return ' rel="lightbox"';