I’m pleased to announce the release of Lightbox Plus 1.6.6 for WordPress. Change log details are below.
1.6.6
- Tested with WordPress 2.9.1
- Only works with WordPress 2.8+ due to the use of the
$in_footer
parameter used in thewp_enqueue_script()
function.
- Only works with WordPress 2.8+ due to the use of the
- Moved all possible JavaScript to the footer to improve load speed
- Requires theme has the
wp_footer()
hook
- Requires theme has the
- Cleaned up jQuery call to correctly work in no conflict mode per definition.
- Updated Colorbox to 1.3.6 which include the following fixes
- Small change to make Colorbox compatible with jQuery 1.4
- Fixed a bug introduced in 1.3.4 with IE7’s display of example 2 and example 3, and auto-width in Opera.
- Fixed a bug introduced in 1.3.4 where colorbox could not be launched by triggering an element’s click event through JavaScript.
- Minor refinements.
- Event delegation is now used for elements that ColorBox is assigned to, rather than individual click events.
- Additional callbacks have been added to represent other stages of ColorBox’s lifecycle. Available callbacks, in order of their execution:
onOpen
,onLoad
,onComplete
,onCleanup
,onClosed
These take place at the same time as the event hooks, but will be better suited than the hooks for targeting specific instances of ColorBox. - Ajax content is now immediately added to the DOM to be more compatible if that content contains script tags.
- Focus is now returned to the calling element on closing.
- Fixed a bug where
maxHeight
andmaxWidth
did not work for non-photo content. - Direct calls no longer need
'open:true'
, it is assumed. Example:$.fn.colorbox({html:"<p>Hi</p>"});
- Changed
$.fn.colorbox.element()
to return a jQuery object rather the DOM element. - jQuery.colorbox-min.js is compressed with Google’s Closure Compiler rather than YUI Compressor.
- Added
'innerWidth'
and'innerHeight'
options to allow people to easily set the size dimensions for ColorBox, without having to anticipate the size of the borders and buttons. - Renamed
'scrollbars'
option to'scrolling'
to be in keeping with the existing HTML attribute. The option now also applies to iframes. - Bug fix: In Safari, positioning occassionally incorrect when using ‘100%’ dimensions.
- Bug fix: In IE6, the background overlay is briefly not full size when first viewing.
- Bug fix: In Firefox, opening ColorBox causes a split second shift with a small minority of webpage layouts.
- Simplified code in a few areas.
- Special thanks for navjotjsingh for the include, excude fix for WordPress built in gallery
You can download it from wordpress.org or 23systems download [Download not found] directly.
As usual you can get support at the Lightbox Plus message board.
Leave a Reply