Lightbox JS v2 is a simple, unobtrusive script used to to overlay images on the current page written by Lokesh Dhakar. Add rel="lightbox" attribute to any link tag to activate the lightbox. This plugin integrate its feature into your WordPress blog.
Version: 0.6.3
Author: Safirul Alredha
Author URI: http://zeo.unic.net.my/
License: GPL
*/
define("IMAGE_FILETYPE", "(bmp|gif|jpeg|jpg|png)", true);
function wp_lightbox2_javascript() {
if ( !function_exists('wp_enqueue_script') || is_admin() )
return;
wp_enqueue_script('prototype');
wp_enqueue_script('scriptaculous-effects');
}
add_action('init', 'wp_lightbox2_javascript');
function wp_lightbox2_init() {
$url = get_bloginfo('wpurl');
?>
if (toolbar) {
var theButton = document.createElement('input');
theButton.type = 'button';
theButton.value = '';
theButton.onclick = ;
theButton.className = 'ed_button';
theButton.title = "";
theButton.id = "";
toolbar.appendChild(theButton);
}