diff --git a/fp-plugins/lightbox/plugin.lightbox.php b/fp-plugins/lightbox/plugin.lightbox.php index ec77245..3d5286e 100755 --- a/fp-plugins/lightbox/plugin.lightbox.php +++ b/fp-plugins/lightbox/plugin.lightbox.php @@ -38,8 +38,9 @@ LBOXHEAD; add_action('wp_footer', 'plugin_lightbox_footer'); function plugin_lightbox_hook($popup, $abspath) { + global $lightbox_rel; // 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);