Version Description
Download this release
Release Info
Developer | techotronic |
Plugin | jQuery Colorbox |
Version | 4.4.1 |
Comparing to | |
See all releases |
Code changes from version 4.4 to 4.4.1
- README.md +5 -1
- jquery-colorbox.php +2 -2
- js/jquery-colorbox-wrapper-min.js +1 -1
- js/jquery-colorbox-wrapper.js +1 -1
- readme.txt +4 -1
README.md
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.techotronic.de/donate/
|
|
4 |
Tags: jquery, colorbox, lightbox, images, pictures, photos, gallery, javascript, overlay, nextgen gallery, nextgen-gallery, image, picture, photo, media, slideshow, ngg, mu
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.4
|
7 |
-
Stable tag: 4.4
|
8 |
|
9 |
Adds Colorbox/Lightbox functionality to images, grouped by post or page. Works for WordPress and NextGEN galleries. Comes with different themes.
|
10 |
|
@@ -138,6 +138,10 @@ Do not forget to activate auto Colorbox if you want the Lightbox/Colorbox to wor
|
|
138 |
I'll include new FAQs in newer versions.
|
139 |
|
140 |
## Changelog ##
|
|
|
|
|
|
|
|
|
141 |
### 4.4 (2012-07-16) ###
|
142 |
* NEW: A Zoom overlay can be added to images automatically
|
143 |
* NEW: Added option to load all JavaScript in the footer
|
4 |
Tags: jquery, colorbox, lightbox, images, pictures, photos, gallery, javascript, overlay, nextgen gallery, nextgen-gallery, image, picture, photo, media, slideshow, ngg, mu
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.4
|
7 |
+
Stable tag: 4.4.1
|
8 |
|
9 |
Adds Colorbox/Lightbox functionality to images, grouped by post or page. Works for WordPress and NextGEN galleries. Comes with different themes.
|
10 |
|
138 |
I'll include new FAQs in newer versions.
|
139 |
|
140 |
## Changelog ##
|
141 |
+
|
142 |
+
### 4.4.1 (2012-07-19) ###
|
143 |
+
* BUGFIX: using colorbox-link works again
|
144 |
+
|
145 |
### 4.4 (2012-07-16) ###
|
146 |
* NEW: A Zoom overlay can be added to images automatically
|
147 |
* NEW: Added option to load all JavaScript in the footer
|
jquery-colorbox.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Plugin Name: jQuery Colorbox
|
7 |
* Plugin URI: http://www.techotronic.de/plugins/jquery-colorbox/
|
8 |
* Description: Used to overlay images on the current page. Images in one post are grouped automatically.
|
9 |
-
* Version: 4.4
|
10 |
* Author: Arne Franken
|
11 |
* Author URI: http://www.techotronic.de/
|
12 |
* License: GPL
|
@@ -19,7 +19,7 @@
|
|
19 |
?>
|
20 |
<?php
|
21 |
//define constants
|
22 |
-
define('JQUERYCOLORBOX_VERSION', '4.4');
|
23 |
define('COLORBOXLIBRARY_VERSION', '1.3.19');
|
24 |
|
25 |
if (!defined('JQUERYCOLORBOX_PLUGIN_BASENAME')) {
|
6 |
* Plugin Name: jQuery Colorbox
|
7 |
* Plugin URI: http://www.techotronic.de/plugins/jquery-colorbox/
|
8 |
* Description: Used to overlay images on the current page. Images in one post are grouped automatically.
|
9 |
+
* Version: 4.4.1
|
10 |
* Author: Arne Franken
|
11 |
* Author URI: http://www.techotronic.de/
|
12 |
* License: GPL
|
19 |
?>
|
20 |
<?php
|
21 |
//define constants
|
22 |
+
define('JQUERYCOLORBOX_VERSION', '4.4.1');
|
23 |
define('COLORBOXLIBRARY_VERSION', '1.3.19');
|
24 |
|
25 |
if (!defined('JQUERYCOLORBOX_PLUGIN_BASENAME')) {
|
js/jquery-colorbox-wrapper-min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var COLORBOX_INTERNAL_LINK_PATTERN=/^#.*/;var COLORBOX_SUFFIX_PATTERN=/\.(?:jpe?g|gif|png|bmp)/i;var COLORBOX_MANUAL="colorbox-manual";var COLORBOX_OFF_CLASS=".colorbox-off";var COLORBOX_LINK_CLASS=".colorbox-link";var COLORBOX_OFF="colorbox-off";var COLORBOX_CLASS_PATTERN="colorbox-[0-9]+";var COLORBOX_LINK_CLASS_PATTERN="colorbox-link-[0-9]+";jQuery(document).ready(function(){if(typeof jQueryColorboxSettingsArray!=="object"){jQueryColorboxSettingsArray=getColorboxConfigDefaults()}if(jQueryColorboxSettingsArray.autoColorboxJavaScript==="true"){colorboxAddManualClass()}if(jQueryColorboxSettingsArray.colorboxAddClassToLinks==="true"){colorboxAddClassToLinks()}if(jQueryColorboxSettingsArray.autoHideFlash==="true"){colorboxHideFlash();colorboxShowFlash()}colorboxSelector()});(function(a){colorboxShowFlash=function(){a(document).bind("cbox_closed",function(){var c=document.getElementsByTagName("object");for(i=0;i<c.length;i++){c[i].style.visibility="visible"}var b=document.getElementsByTagName("embed");for(i=0;i<b.length;i++){b[i].style.visibility="visible"}})}})(jQuery);(function(a){colorboxHideFlash=function(){a(document).bind("cbox_open",function(){var c=document.getElementsByTagName("object");for(i=0;i<c.length;i++){c[i].style.visibility="hidden"}var b=document.getElementsByTagName("embed");for(i=0;i<b.length;i++){b[i].style.visibility="hidden"}})}})(jQuery);(function(a){colorboxAddClassToLinks=function(){a("a:not(:contains(img))").each(function(d,f){var c=a(f);var b=c.attr("class");if(b!==undefined&&!b.match("colorbox")){var e=c.attr("href");if(e!==undefined&&a(f).attr("href").match(COLORBOX_SUFFIX_PATTERN)){c.addClass("colorbox-link")}}})}})(jQuery);(function(a){colorboxAddManualClass=function(){a("img").each(function(c,e){var d=a(e);var b=d.attr("class");if(b===undefined||!b.match("colorbox")){d.addClass("colorbox-manual")}})}})(jQuery);(function(a){colorboxSelector=function(){a("a:has(img[class*=colorbox-]):not(.colorbox-off)").each(function(b,d){ColorboxLocal=a.extend(true,{},jQueryColorboxSettingsArray);ColorboxLocal.colorboxMaxWidth=ColorboxLocal.colorboxImageMaxWidth;ColorboxLocal.colorboxMaxHeight=ColorboxLocal.colorboxImageMaxHeight;ColorboxLocal.colorboxHeight=ColorboxLocal.colorboxImageHeight;ColorboxLocal.colorboxWidth=ColorboxLocal.colorboxImageWidth;var c=a(d).attr("href");if(c!==undefined&&c.match(COLORBOX_SUFFIX_PATTERN)){colorboxImage(b,d)}});a("a[class*=colorbox-link]").each(function(b,d){ColorboxLocal=a.extend(true,{},jQueryColorboxSettingsArray);var c=a(d).attr("href");if(c!==undefined){colorboxLink(b,d,c)}})}})(jQuery);(function(a){colorboxImage=function(b,f){var d=a(f).find("img:first");var e=a(f).attr("class");if(e!==undefined){ColorboxLocal.colorboxGroupId=e.match(COLORBOX_CLASS_PATTERN)||e.match(COLORBOX_MANUAL)}if(!ColorboxLocal.colorboxGroupId){var g=d.attr("class");if(g!==undefined&&!g.match(COLORBOX_OFF)){ColorboxLocal.colorboxGroupId=g.match(COLORBOX_CLASS_PATTERN)||g.match(COLORBOX_MANUAL)}if(ColorboxLocal.colorboxGroupId){ColorboxLocal.colorboxGroupId=ColorboxLocal.colorboxGroupId.toString().split("-")[1];if(ColorboxLocal.colorboxGroupId==="manual"){ColorboxLocal.colorboxGroupId="nofollow"}var c=d.attr("title");if(c!==undefined){ColorboxLocal.colorboxTitle=c}if(jQueryColorboxSettingsArray.addZoomOverlay==="true"){colorboxAddZoomOverlayToImages(a(f),d)}colorboxWrapper(f)}}}})(jQuery);(function(a){colorboxLink=function(c,e,f){ColorboxLocal.colorboxGroupId=a(e).attr("class").match(COLORBOX_LINK_CLASS_PATTERN);if(ColorboxLocal.colorboxGroupId!==undefined
|
1 |
+
var COLORBOX_INTERNAL_LINK_PATTERN=/^#.*/;var COLORBOX_SUFFIX_PATTERN=/\.(?:jpe?g|gif|png|bmp)/i;var COLORBOX_MANUAL="colorbox-manual";var COLORBOX_OFF_CLASS=".colorbox-off";var COLORBOX_LINK_CLASS=".colorbox-link";var COLORBOX_OFF="colorbox-off";var COLORBOX_CLASS_PATTERN="colorbox-[0-9]+";var COLORBOX_LINK_CLASS_PATTERN="colorbox-link-[0-9]+";jQuery(document).ready(function(){if(typeof jQueryColorboxSettingsArray!=="object"){jQueryColorboxSettingsArray=getColorboxConfigDefaults()}if(jQueryColorboxSettingsArray.autoColorboxJavaScript==="true"){colorboxAddManualClass()}if(jQueryColorboxSettingsArray.colorboxAddClassToLinks==="true"){colorboxAddClassToLinks()}if(jQueryColorboxSettingsArray.autoHideFlash==="true"){colorboxHideFlash();colorboxShowFlash()}colorboxSelector()});(function(a){colorboxShowFlash=function(){a(document).bind("cbox_closed",function(){var c=document.getElementsByTagName("object");for(i=0;i<c.length;i++){c[i].style.visibility="visible"}var b=document.getElementsByTagName("embed");for(i=0;i<b.length;i++){b[i].style.visibility="visible"}})}})(jQuery);(function(a){colorboxHideFlash=function(){a(document).bind("cbox_open",function(){var c=document.getElementsByTagName("object");for(i=0;i<c.length;i++){c[i].style.visibility="hidden"}var b=document.getElementsByTagName("embed");for(i=0;i<b.length;i++){b[i].style.visibility="hidden"}})}})(jQuery);(function(a){colorboxAddClassToLinks=function(){a("a:not(:contains(img))").each(function(d,f){var c=a(f);var b=c.attr("class");if(b!==undefined&&!b.match("colorbox")){var e=c.attr("href");if(e!==undefined&&a(f).attr("href").match(COLORBOX_SUFFIX_PATTERN)){c.addClass("colorbox-link")}}})}})(jQuery);(function(a){colorboxAddManualClass=function(){a("img").each(function(c,e){var d=a(e);var b=d.attr("class");if(b===undefined||!b.match("colorbox")){d.addClass("colorbox-manual")}})}})(jQuery);(function(a){colorboxSelector=function(){a("a:has(img[class*=colorbox-]):not(.colorbox-off)").each(function(b,d){ColorboxLocal=a.extend(true,{},jQueryColorboxSettingsArray);ColorboxLocal.colorboxMaxWidth=ColorboxLocal.colorboxImageMaxWidth;ColorboxLocal.colorboxMaxHeight=ColorboxLocal.colorboxImageMaxHeight;ColorboxLocal.colorboxHeight=ColorboxLocal.colorboxImageHeight;ColorboxLocal.colorboxWidth=ColorboxLocal.colorboxImageWidth;var c=a(d).attr("href");if(c!==undefined&&c.match(COLORBOX_SUFFIX_PATTERN)){colorboxImage(b,d)}});a("a[class*=colorbox-link]").each(function(b,d){ColorboxLocal=a.extend(true,{},jQueryColorboxSettingsArray);var c=a(d).attr("href");if(c!==undefined){colorboxLink(b,d,c)}})}})(jQuery);(function(a){colorboxImage=function(b,f){var d=a(f).find("img:first");var e=a(f).attr("class");if(e!==undefined){ColorboxLocal.colorboxGroupId=e.match(COLORBOX_CLASS_PATTERN)||e.match(COLORBOX_MANUAL)}if(!ColorboxLocal.colorboxGroupId){var g=d.attr("class");if(g!==undefined&&!g.match(COLORBOX_OFF)){ColorboxLocal.colorboxGroupId=g.match(COLORBOX_CLASS_PATTERN)||g.match(COLORBOX_MANUAL)}if(ColorboxLocal.colorboxGroupId){ColorboxLocal.colorboxGroupId=ColorboxLocal.colorboxGroupId.toString().split("-")[1];if(ColorboxLocal.colorboxGroupId==="manual"){ColorboxLocal.colorboxGroupId="nofollow"}var c=d.attr("title");if(c!==undefined){ColorboxLocal.colorboxTitle=c}if(jQueryColorboxSettingsArray.addZoomOverlay==="true"){colorboxAddZoomOverlayToImages(a(f),d)}colorboxWrapper(f)}}}})(jQuery);(function(a){colorboxLink=function(c,e,f){ColorboxLocal.colorboxGroupId=a(e).attr("class").match(COLORBOX_LINK_CLASS_PATTERN);if(ColorboxLocal.colorboxGroupId!==undefined&&ColorboxLocal.colorboxGroupId!==null){ColorboxLocal.colorboxGroupId=ColorboxLocal.colorboxGroupId.toString().split("-")[2]}else{ColorboxLocal.colorboxGroupId="nofollow"}var b=a(e);var d=b.attr("title");if(d!==undefined){ColorboxLocal.colorboxTitle=d}else{ColorboxLocal.colorboxTitle=""}if(f.match(COLORBOX_SUFFIX_PATTERN)){ColorboxLocal.colorboxMaxWidth=ColorboxLocal.colorboxImageMaxWidth;ColorboxLocal.colorboxMaxHeight=ColorboxLocal.colorboxImageMaxHeight;ColorboxLocal.colorboxHeight=ColorboxLocal.colorboxImageHeight;ColorboxLocal.colorboxWidth=ColorboxLocal.colorboxImageWidth}else{ColorboxLocal.colorboxMaxWidth=false;ColorboxLocal.colorboxMaxHeight=false;ColorboxLocal.colorboxHeight=ColorboxLocal.colorboxLinkHeight;ColorboxLocal.colorboxWidth=ColorboxLocal.colorboxLinkWidth;if(f.match(COLORBOX_INTERNAL_LINK_PATTERN)){ColorboxLocal.colorboxInline=true}else{ColorboxLocal.colorboxIframe=true}}colorboxWrapper(e)}})(jQuery);(function(a){colorboxWrapper=function(b){a.each(ColorboxLocal,function(c,d){if(d==="false"){ColorboxLocal[c]=false}else{if(d==="true"){ColorboxLocal[c]=true}}});a(b).colorbox({transition:ColorboxLocal.colorboxTransition,speed:parseInt(ColorboxLocal.colorboxSpeed),title:ColorboxLocal.colorboxTitle,rel:ColorboxLocal.colorboxGroupId,scalePhotos:ColorboxLocal.colorboxScalePhotos,scrolling:ColorboxLocal.colorboxScrolling,opacity:ColorboxLocal.colorboxOpacity,preloading:ColorboxLocal.colorboxPreloading,overlayClose:ColorboxLocal.colorboxOverlayClose,escKey:ColorboxLocal.colorboxEscKey,arrowKey:ColorboxLocal.colorboxArrowKey,loop:ColorboxLocal.colorboxLoop,current:ColorboxLocal.colorboxCurrent,previous:ColorboxLocal.colorboxPrevious,next:ColorboxLocal.colorboxNext,close:ColorboxLocal.colorboxClose,iframe:ColorboxLocal.colorboxIframe,inline:ColorboxLocal.colorboxInline,width:ColorboxLocal.colorboxWidth,height:ColorboxLocal.colorboxHeight,initialWidth:ColorboxLocal.colorboxInitialWidth,initialHeight:ColorboxLocal.colorboxInitialHeight,maxWidth:ColorboxLocal.colorboxMaxWidth,maxHeight:ColorboxLocal.colorboxMaxHeight,slideshow:ColorboxLocal.colorboxSlideshow,slideshowSpeed:parseInt(ColorboxLocal.colorboxSlideshowSpeed),slideshowAuto:ColorboxLocal.colorboxSlideshowAuto,slideshowStart:ColorboxLocal.colorboxSlideshowStart,slideshowStop:ColorboxLocal.colorboxSlideshowStop})}})(jQuery);(function(a){colorboxAddZoomOverlayToImages=function(c,d){var b=a('<div class="zoomHover" style="opacity: 0;"></div>');c.append(b);c.addClass("zoomLink");c.hover(function(){b.stop().animate({opacity:0.8},300);d.stop().animate({opacity:0.6},300)},function(){b.stop().animate({opacity:0},300);d.stop().animate({opacity:1},300)})}})(jQuery);(function(a){getColorboxConfigDefaults=function(){return{colorboxInline:false,colorboxIframe:false,colorboxGroupId:"",colorboxTitle:"",colorboxWidth:false,colorboxHeight:false,colorboxMaxWidth:false,colorboxMaxHeight:false,colorboxSlideshow:false,colorboxSlideshowAuto:false,colorboxScalePhotos:false,colorboxPreloading:false,colorboxOverlayClose:false,colorboxLoop:false,colorboxEscKey:true,colorboxArrowKey:true,colorboxScrolling:false,colorboxOpacity:"0.85",colorboxTransition:"elastic",colorboxSpeed:"350",colorboxSlideshowSpeed:"2500",colorboxClose:"close",colorboxNext:"next",colorboxPrevious:"previous",colorboxSlideshowStart:"start slideshow",colorboxSlideshowStop:"stop slideshow",colorboxCurrent:"{current} of {total} images",colorboxImageMaxWidth:false,colorboxImageMaxHeight:false,colorboxImageHeight:false,colorboxImageWidth:false,colorboxLinkHeight:false,colorboxLinkWidth:false,colorboxInitialHeight:100,colorboxInitialWidth:300,autoColorboxJavaScript:false,autoHideFlash:false,autoColorbox:false,autoColorboxGalleries:false,colorboxAddClassToLinks:false,useGoogleJQuery:false,addZoomOverlay:false}}})(jQuery);(function(a){printArray=function(h,g){var b="";if(!g){g=0}var f="";for(var c=0;c<g+1;c++){f+=" "}if(typeof(h)==="object"){for(var d in h){var e=h[d];if(typeof(e)==="object"){b+=f+"'"+d+"' ...\n";b+=printArray(e,g+1)}else{b+=f+"'"+d+"' = \""+e+'"\n'}}}else{b="===>"+h+"<===("+typeof(h)+")"}return b}})(jQuery);
|
js/jquery-colorbox-wrapper.js
CHANGED
@@ -225,7 +225,7 @@ jQuery(document).ready(function() {
|
|
225 |
//class attribute must exist, otherwise this method wouldn't be called
|
226 |
ColorboxLocal.colorboxGroupId = jQuery(link).attr("class").match(COLORBOX_LINK_CLASS_PATTERN);
|
227 |
|
228 |
-
if(ColorboxLocal.colorboxGroupId !== undefined
|
229 |
//convert groupId to string and lose "colorbox-link-" for easier use
|
230 |
ColorboxLocal.colorboxGroupId = ColorboxLocal.colorboxGroupId.toString().split('-')[2];
|
231 |
}
|
225 |
//class attribute must exist, otherwise this method wouldn't be called
|
226 |
ColorboxLocal.colorboxGroupId = jQuery(link).attr("class").match(COLORBOX_LINK_CLASS_PATTERN);
|
227 |
|
228 |
+
if(ColorboxLocal.colorboxGroupId !== undefined && ColorboxLocal.colorboxGroupId !== null) {
|
229 |
//convert groupId to string and lose "colorbox-link-" for easier use
|
230 |
ColorboxLocal.colorboxGroupId = ColorboxLocal.colorboxGroupId.toString().split('-')[2];
|
231 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.techotronic.de/donate/
|
|
4 |
Tags: jquery, colorbox, lightbox, images, pictures, photos, gallery, javascript, overlay, nextgen gallery, nextgen-gallery, image, picture, photo, media, slideshow, ngg, mu
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.4
|
7 |
-
Stable tag: 4.4
|
8 |
|
9 |
Adds Colorbox/Lightbox functionality to images, grouped by post or page. Works for WordPress and NextGEN galleries. Comes with different themes.
|
10 |
|
@@ -138,6 +138,9 @@ Do not forget to activate auto Colorbox if you want the Lightbox/Colorbox to wor
|
|
138 |
I'll include new FAQs in newer versions.
|
139 |
|
140 |
== Changelog ==
|
|
|
|
|
|
|
141 |
### 4.4 (2012-07-16) ###
|
142 |
* NEW: A Zoom overlay can be added to images automatically
|
143 |
* NEW: Added option to load all JavaScript in the footer
|
4 |
Tags: jquery, colorbox, lightbox, images, pictures, photos, gallery, javascript, overlay, nextgen gallery, nextgen-gallery, image, picture, photo, media, slideshow, ngg, mu
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.4
|
7 |
+
Stable tag: 4.4.1
|
8 |
|
9 |
Adds Colorbox/Lightbox functionality to images, grouped by post or page. Works for WordPress and NextGEN galleries. Comes with different themes.
|
10 |
|
138 |
I'll include new FAQs in newer versions.
|
139 |
|
140 |
== Changelog ==
|
141 |
+
### 4.4.1 (2012-07-19) ###
|
142 |
+
* BUGFIX: using colorbox-link works again
|
143 |
+
|
144 |
### 4.4 (2012-07-16) ###
|
145 |
* NEW: A Zoom overlay can be added to images automatically
|
146 |
* NEW: Added option to load all JavaScript in the footer
|