/** * Plugin Name: WP Lightbox 2 * Plugin URI: http://yepinol.com/lightbox-2-plugin-wordpress/ * Description: This plugin used to add the lightbox (overlay) effect to the current page images on your WordPress blog. * Version: 2.28.9.2.1 * Author: Pankaj Jha * Author URI: http://onlinewebapplication.com/ * License: GNU General Public License, v2 (or newer) * License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html */ /* Copyright 2011 Pankaj Jha (onlinewebapplication.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation using version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /** * jQuery Lightbox * Version 0.5 - 11/29/2007 * @author Warren Krewenki * * This package is distributed under the BSD license. * For full license information, see LICENSE.TXT * * Based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/) * Originally written to make use of the Prototype framework, and Script.acalo.us, now altered to use jQuery. **/ /** toyNN: davidtg@comtrya.com: fixed IE7-8 incompatabilities in 1.3.* branch **/ (function($){ $.fn.lightbox = function(options) { var opts = $.extend({}, $.fn.lightbox.defaults, options); function onClick() { initialize(); start(this); return false; } if(parseFloat($().jquery) >= 1.7){ return $(this).on("click", onClick); }else{ return $(this).live("click", onClick); //deprecated since 1.7 } function initialize() { $(window).bind('orientationchange', resizeListener); $(window).bind('resize', resizeListener); // if (opts.followScroll) { $(window).bind('scroll', orientListener); } $('#overlay').remove(); $('#lightbox').remove(); opts.isIE8 = isIE8(); // //http://www.grayston.net/2011/internet-explorer-v8-and-opacity-issues/ opts.inprogress = false; // if jsonData, build the imageArray from data provided in JSON format if (opts.jsonData && opts.jsonData.length > 0) { var parser = opts.jsonDataParser ? opts.jsonDataParser : $.fn.lightbox.parseJsonData; opts.imageArray = []; opts.imageArray = parser(opts.jsonData); } var outerImage = '