Version Description
- Compatible with wordpress 3.4.2 (Fixed PHP 5 bug)
- Fixed Bug Stopped Working with W3 Total Cache
Download this release
Release Info
Developer | masdiblogs |
Plugin | WP Lightbox 2 |
Version | 2.25 |
Comparing to | |
See all releases |
Code changes from version 2.22 to 2.25
- I18n/howtouse.html +2 -2
- readme.txt +29 -6
- wp-lightbox-2.js +6 -4
- wp-lightbox-2.php +7 -4
I18n/howtouse.html
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<h2>How to Use: <span style="font-size:12px">You can check more details <a href="http://onlinewebapplication.com/
|
2 |
<ol>
|
3 |
<li>You can use WordPress image galleries and have them grouped and auto-lightboxed: <a href="http://codex.wordpress.org/Gallery_Shortcode"><code>[gallery link="file"]</code></a></li>
|
4 |
<li>You can also add a <code>rel="lightbox"</code> attribute to any link tag to activate the lightbox. For example:
|
@@ -26,7 +26,7 @@
|
|
26 |
<h2>Credits</h2><ul style="list-style-type: circle;margin-left: 24px;">
|
27 |
<li>Based on wp-jquery-lightbox was created by <a href="http://www.ulfben.com">Ulf Benjaminsson</a> (who <a href="http://amzn.com/w/2QB6SQ5XX2U0N">appreciates books</a>). :)</li>
|
28 |
<li>wp-lightbox-2 borrowed the regexp from <a href="http://stimuli.ca/lightbox/">LightBox-2 by Rupert Morris</a> to apply lightbox-rel without clobbering manual inputs.</li>
|
29 |
-
<li><a href="http://onlinewebapplication.com/
|
30 |
</ul>
|
31 |
|
32 |
<h2>Changes to Lightbox-script:</h2><p style="margin-left: 24px;">
|
1 |
+
<h2>How to Use: <span style="font-size:12px">You can check more details <a href="http://onlinewebapplication.com/how-to-use-wp-lightbox-2-wordpress-plugin/" target="_blank">here</a></span></h2>
|
2 |
<ol>
|
3 |
<li>You can use WordPress image galleries and have them grouped and auto-lightboxed: <a href="http://codex.wordpress.org/Gallery_Shortcode"><code>[gallery link="file"]</code></a></li>
|
4 |
<li>You can also add a <code>rel="lightbox"</code> attribute to any link tag to activate the lightbox. For example:
|
26 |
<h2>Credits</h2><ul style="list-style-type: circle;margin-left: 24px;">
|
27 |
<li>Based on wp-jquery-lightbox was created by <a href="http://www.ulfben.com">Ulf Benjaminsson</a> (who <a href="http://amzn.com/w/2QB6SQ5XX2U0N">appreciates books</a>). :)</li>
|
28 |
<li>wp-lightbox-2 borrowed the regexp from <a href="http://stimuli.ca/lightbox/">LightBox-2 by Rupert Morris</a> to apply lightbox-rel without clobbering manual inputs.</li>
|
29 |
+
<li><a href="http://onlinewebapplication.com/wp-lightbox-2/">WP Lightbox 2</a> is based on <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox 2 by Lokesh Dhakar</a></li>
|
30 |
</ul>
|
31 |
|
32 |
<h2>Changes to Lightbox-script:</h2><p style="margin-left: 24px;">
|
readme.txt
CHANGED
@@ -4,17 +4,19 @@ Plugin Site: http://onlinewebapplication.com/
|
|
4 |
Donate link: http://onlinewebapplication.com/onlinewebapplication-com-donation/
|
5 |
Tags: lightbox, WP Lightbox, AJAX, image, photo, picture, JQuery WP Image Plugin, colorbox
|
6 |
Requires at least: 2.8
|
7 |
-
Tested up to: 3.4.
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
This plugin used to add the lightbox (overlay) effect to the current page images on your WordPress blog.
|
13 |
== Description ==
|
14 |
-
From 2.1, the default view changed to Colorbox due to the license regulation by the plugin directory. This plugin used to add the lightbox (overlay) effect to the current page images on your WordPress blog. Used to overlay images on the current page. Extension of wp-jquery-lightbox.
|
15 |
|
16 |
Just install and sit back. This plugin enable image overlay lighbox effect for all the post images in your wordpress plugin. No configuration required.
|
17 |
|
|
|
|
|
18 |
Feature:
|
19 |
|
20 |
1. Works on all modern browsers.
|
@@ -24,9 +26,15 @@ Feature:
|
|
24 |
5. 5 Inbuilt theme.
|
25 |
6. Lightbox display of Gallery.
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
<br />
|
28 |
[Author Site](http://onlinewebapplication.com)|
|
29 |
-
[Plugin Home Page](http://onlinewebapplication.com/
|
30 |
<br />
|
31 |
<br />
|
32 |
== Installation ==
|
@@ -40,7 +48,7 @@ To do a new installation of the plugin, please follow these steps
|
|
40 |
5. Optionally, go to the Options page and select a new Lightbox colour scheme.
|
41 |
|
42 |
<br />
|
43 |
-
[How to use WP Lighbox 2](http://onlinewebapplication.com/
|
44 |
|
45 |
== Frequently Asked Questions ==
|
46 |
|
@@ -61,15 +69,24 @@ Answer: Yes it does. The problem is with your WordPress theme, mangling image di
|
|
61 |
|
62 |
<br />
|
63 |
You can check more FAQ on plugin website URL :<br />
|
64 |
-
[WP Lightbox 2](http://onlinewebapplication.com/
|
65 |
|
66 |
|
67 |
== Screenshots ==
|
68 |
|
69 |
You can check Screen Shots on plugin website URL :<br />
|
70 |
-
[WP Lightbox 2](http://onlinewebapplication.com/
|
71 |
|
72 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
= 2.22 =
|
75 |
* Fixed one s, that caused a fatal error.
|
@@ -94,6 +111,12 @@ You can check Screen Shots on plugin website URL :<br />
|
|
94 |
* Lightbox display of Gallery.
|
95 |
|
96 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
|
98 |
= 2.1 =
|
99 |
Default view changed to Colorbox due to the license regulation by the plugin directory.
|
4 |
Donate link: http://onlinewebapplication.com/onlinewebapplication-com-donation/
|
5 |
Tags: lightbox, WP Lightbox, AJAX, image, photo, picture, JQuery WP Image Plugin, colorbox
|
6 |
Requires at least: 2.8
|
7 |
+
Tested up to: 3.4.2
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
This plugin used to add the lightbox (overlay) effect to the current page images on your WordPress blog.
|
13 |
== Description ==
|
14 |
+
From 2.1, the default view changed to [Colorbox](http://yepinol.com/lightbox-2-plugin-wordpress/) due to the license regulation by the plugin directory. This plugin used to add the lightbox (overlay) effect to the current page images on your WordPress blog. Used to overlay images on the current page. Extension of wp-jquery-lightbox.
|
15 |
|
16 |
Just install and sit back. This plugin enable image overlay lighbox effect for all the post images in your wordpress plugin. No configuration required.
|
17 |
|
18 |
+
<b>This is the first Ligtbox plugin which support Image Map.</b>
|
19 |
+
|
20 |
Feature:
|
21 |
|
22 |
1. Works on all modern browsers.
|
26 |
5. 5 Inbuilt theme.
|
27 |
6. Lightbox display of Gallery.
|
28 |
|
29 |
+
See the plugin in action here:
|
30 |
+
[WP Lightbox 2 Demo link 1](http://yepinol.com/wp-lightbox-2-plugin-wordpress-demo/)
|
31 |
+
[WP Lightbox 2 Demo link 2](http://onlinewebapplication.com/wp-lightbox-2-demo/)
|
32 |
+
|
33 |
+
If you value my plugins, please help me out by rate this.
|
34 |
+
|
35 |
<br />
|
36 |
[Author Site](http://onlinewebapplication.com)|
|
37 |
+
[Plugin Home Page](http://onlinewebapplication.com/wp-lightbox-2/)
|
38 |
<br />
|
39 |
<br />
|
40 |
== Installation ==
|
48 |
5. Optionally, go to the Options page and select a new Lightbox colour scheme.
|
49 |
|
50 |
<br />
|
51 |
+
[How to use WP Lighbox 2](http://onlinewebapplication.com/how-to-use-wp-lightbox-2-wordpress-plugin/)<br />
|
52 |
|
53 |
== Frequently Asked Questions ==
|
54 |
|
69 |
|
70 |
<br />
|
71 |
You can check more FAQ on plugin website URL :<br />
|
72 |
+
[WP Lightbox 2](http://onlinewebapplication.com/wp-lightbox-2/)<br />
|
73 |
|
74 |
|
75 |
== Screenshots ==
|
76 |
|
77 |
You can check Screen Shots on plugin website URL :<br />
|
78 |
+
[WP Lightbox 2](http://onlinewebapplication.com/wp-lightbox-2/)<br />
|
79 |
|
80 |
== Changelog ==
|
81 |
+
= 2.25 =
|
82 |
+
* Compatible with wordpress 3.4.2 (Fixed PHP 5 bug)
|
83 |
+
* Fixed Bug [Stopped Working with W3 Total Cache](http://onlinewebapplication.com/wp-lightbox-2/)
|
84 |
+
|
85 |
+
= 2.24 =
|
86 |
+
* Compatible with wordpress 3.4.2
|
87 |
+
|
88 |
+
= 2.23 =
|
89 |
+
* Updated jQuery calls.
|
90 |
|
91 |
= 2.22 =
|
92 |
* Fixed one s, that caused a fatal error.
|
111 |
* Lightbox display of Gallery.
|
112 |
|
113 |
== Upgrade Notice ==
|
114 |
+
= 2.25 =
|
115 |
+
Compatible with wordpress 3.4.2 (Fixed PHP 5 bug)
|
116 |
+
Fixed Bug [Stopped Working with W3 Total Cache](http://onlinewebapplication.com/wp-lightbox-2/)
|
117 |
+
|
118 |
+
= 2.24 =
|
119 |
+
Compatible with wordpress 3.4.2
|
120 |
|
121 |
= 2.1 =
|
122 |
Default view changed to Colorbox due to the license regulation by the plugin directory.
|
wp-lightbox-2.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/**
|
2 |
* Plugin Name: WP Lightbox 2
|
3 |
-
* Plugin URI: http://onlinewebapplication.com/
|
4 |
* Description: This plugin used to add the lightbox (overlay) effect to the current page images on your WordPress blog.
|
5 |
-
* Version: 2.
|
6 |
* Author: Pankaj Jha
|
7 |
* Author URI: http://onlinewebapplication.com/
|
8 |
* License: GNU General Public License, v2 (or newer)
|
@@ -91,6 +91,8 @@
|
|
91 |
};
|
92 |
//allow image to reposition & scale if orientation change or resize occurs.
|
93 |
/*2.21 - Image Map, Shrink large images to fit smaller screens*/
|
|
|
|
|
94 |
function resizeListener(e) {
|
95 |
if (opts.resizeTimeout) {
|
96 |
clearTimeout(opts.resizeTimeout);
|
@@ -104,7 +106,7 @@
|
|
104 |
pgDocHeight = 4096;
|
105 |
}
|
106 |
var viewportHeight = $(window).height() - opts.adminBarHeight;
|
107 |
-
//$(document).width() returns width of HTML document
|
108 |
return new Array($(document).width(), pgDocHeight, $(window).width(), viewportHeight, $(document).height());
|
109 |
};
|
110 |
//code for IE8 check provided by http://kangax.github.com/cft/
|
@@ -137,7 +139,7 @@
|
|
137 |
}
|
138 |
return new Array(xScroll, yScroll);
|
139 |
};
|
140 |
-
|
141 |
function start(imageLink) {
|
142 |
$("select, embed, object").hide();
|
143 |
var arrayPageSize = getPageSize();
|
1 |
/**
|
2 |
* Plugin Name: WP Lightbox 2
|
3 |
+
* Plugin URI: http://onlinewebapplication.com/wp-lightbox-2/
|
4 |
* Description: This plugin used to add the lightbox (overlay) effect to the current page images on your WordPress blog.
|
5 |
+
* Version: 2.25
|
6 |
* Author: Pankaj Jha
|
7 |
* Author URI: http://onlinewebapplication.com/
|
8 |
* License: GNU General Public License, v2 (or newer)
|
91 |
};
|
92 |
//allow image to reposition & scale if orientation change or resize occurs.
|
93 |
/*2.21 - Image Map, Shrink large images to fit smaller screens*/
|
94 |
+
/*2.23 - Updated jQuery calls for faster load*/
|
95 |
+
/*2.25 - Fixed PHP 5 bug*/
|
96 |
function resizeListener(e) {
|
97 |
if (opts.resizeTimeout) {
|
98 |
clearTimeout(opts.resizeTimeout);
|
106 |
pgDocHeight = 4096;
|
107 |
}
|
108 |
var viewportHeight = $(window).height() - opts.adminBarHeight;
|
109 |
+
//$(document).width() returns width of HTML document
|
110 |
return new Array($(document).width(), pgDocHeight, $(window).width(), viewportHeight, $(document).height());
|
111 |
};
|
112 |
//code for IE8 check provided by http://kangax.github.com/cft/
|
139 |
}
|
140 |
return new Array(xScroll, yScroll);
|
141 |
};
|
142 |
+
// JQuery Call
|
143 |
function start(imageLink) {
|
144 |
$("select, embed, object").hide();
|
145 |
var arrayPageSize = getPageSize();
|
wp-lightbox-2.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: WP Lightbox 2
|
4 |
-
* Plugin URI: http://onlinewebapplication.com/
|
5 |
* Description: This plugin used to add the lightbox (overlay) effect to the current page images on your WordPress blog.
|
6 |
-
* Version: 2.
|
7 |
* Author: masdiblogs
|
8 |
* Author URI: http://profiles.wordpress.org/masdiblogs
|
9 |
* License: GNU General Public License, v2 (or newer)
|
@@ -26,7 +26,10 @@
|
|
26 |
*/
|
27 |
|
28 |
/*2.21 - Image Map, Shrink large images to fit smaller screens*/
|
29 |
-
/*2.22 -
|
|
|
|
|
|
|
30 |
add_action( 'plugins_loaded', 'jqlb_init' );
|
31 |
function jqlb_init() {
|
32 |
if(!defined('ULFBEN_DONATE_URL')){
|
@@ -283,7 +286,7 @@ _top: open the image in the full body of the window', 'jqlb') ?>"><?php _e('Targ
|
|
283 |
}
|
284 |
}
|
285 |
if($text === false){
|
286 |
-
$text = '<p>The documentation files are missing! Try <a href="http://wordpress.org/extend/plugins/wp-lightbox-2/">downloading</a> and <a href="http://wordpress.org/extend/plugins/wp-lightbox-2/installation/">re-installing</a> this plugin.</p>';
|
287 |
}
|
288 |
echo $text;
|
289 |
?>
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: WP Lightbox 2
|
4 |
+
* Plugin URI: http://onlinewebapplication.com/wp-lightbox-2/
|
5 |
* Description: This plugin used to add the lightbox (overlay) effect to the current page images on your WordPress blog.
|
6 |
+
* Version: 2.25
|
7 |
* Author: masdiblogs
|
8 |
* Author URI: http://profiles.wordpress.org/masdiblogs
|
9 |
* License: GNU General Public License, v2 (or newer)
|
26 |
*/
|
27 |
|
28 |
/*2.21 - Image Map, Shrink large images to fit smaller screens*/
|
29 |
+
/*2.22 - Fixed one s, that caused a fatal error*/
|
30 |
+
/*2.23 - Updated jQuery calls for faster load*/
|
31 |
+
/*2.24 - Compatible with wordpress 3.4.2*/
|
32 |
+
/*2.25 - Fixed PHP 5 bug*/
|
33 |
add_action( 'plugins_loaded', 'jqlb_init' );
|
34 |
function jqlb_init() {
|
35 |
if(!defined('ULFBEN_DONATE_URL')){
|
286 |
}
|
287 |
}
|
288 |
if($text === false){
|
289 |
+
$text = '<p>The documentation files are missing! Try <a href="http://wordpress.org/extend/plugins/wp-lightbox-2/">downloading</a> and <a href="http://wordpress.org/extend/plugins/wp-lightbox-2/installation/">re-installing</a> this lightbox plugin.</p>';
|
290 |
}
|
291 |
echo $text;
|
292 |
?>
|