modified lightbox for message passing... ugly for now
This commit is contained in:
parent
7b04a345fd
commit
15b743eb00
@ -38,8 +38,9 @@ LBOXHEAD;
|
|||||||
add_action('wp_footer', 'plugin_lightbox_footer');
|
add_action('wp_footer', 'plugin_lightbox_footer');
|
||||||
|
|
||||||
function plugin_lightbox_hook($popup, $abspath) {
|
function plugin_lightbox_hook($popup, $abspath) {
|
||||||
|
global $lightbox_rel;
|
||||||
// the other $popup is just dropped
|
// the other $popup is just dropped
|
||||||
return ' rel="lightbox"';
|
return $lightbox_rel? "rel=\"lightbox[$lightbox_rel]\"" : ' rel="lightbox"';
|
||||||
}
|
}
|
||||||
add_action('bbcode_img_popup', 'plugin_lightbox_hook', 5, 2);
|
add_action('bbcode_img_popup', 'plugin_lightbox_hook', 5, 2);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user