moving the script code to wp_footer, this has been reported to fix IE7 issues... well, let's try...
This commit is contained in:
parent
7c91314ff5
commit
67fac1e13e
@ -21,13 +21,22 @@ function plugin_lightbox_head() {
|
||||
echo <<<LBOXHEAD
|
||||
<!-- start of lightbox -->
|
||||
<link rel="stylesheet" type="text/css" href="{$pdir}res/slimbox.css" />
|
||||
<script type="text/javascript" src="{$pdir}res/slimbox.js"></script>
|
||||
|
||||
<!-- end of lightbox -->
|
||||
LBOXHEAD;
|
||||
}
|
||||
add_action('wp_head', 'plugin_lightbox_head');
|
||||
|
||||
function plugin_lightbox_footer() {
|
||||
|
||||
$pdir=plugin_geturl('lightbox');
|
||||
echo <<<LBOXHEAD
|
||||
<!-- start of lightbox -->
|
||||
<script type="text/javascript" src="{$pdir}res/slimbox.js"></script>
|
||||
<!-- end of lightbox -->
|
||||
LBOXHEAD;
|
||||
}
|
||||
add_action('wp_footer', 'plugin_lightbox_footer');
|
||||
|
||||
function plugin_lightbox_hook($popup, $abspath) {
|
||||
// the other $popup is just dropped
|
||||
return ' rel="lightbox"';
|
||||
|
Loading…
x
Reference in New Issue
Block a user