I have just released version 1.42 of Photonic. The major highlights of this version are under the hood, wherein there are lots of performance improvements.
- I have added an option to use a ColorBox skin defined in the theme folder. Earlier if such a folder existed, it would be picked up by default. And quite embarrassingly this made Photonic’s ColorBox skin selection not work with Suffusion!
- I have updated the SimpleModal, ColorBox and PrettyPhoto libraries to the latest versions. This will fix incompatibility issues with IE for the popup windows, in addition to letting the code work for JQuery 1.9.x.
- I have modified some native code in Photonic to ensure that it will work with JQuery 1.9.x, which some zealous plugin authors seem to include by force. Consequently, Photonic now requires you to be on at least WP 3.3.
- I have removed the explicit link that said “View in Flickr” from the plugin. To compensate I have provided options for each provider to let you link to the photo page from the lightbox. This puts the onus on you to ensure that the terms of service are maintained with respect to linking.
- This is another big one. I have started the support for non-bundled lightbox libraries. Currently FancyBox2 is supported. The reason I have started this is to let users use non-GPL libraries (which cannot be bundled with the plugin) with Photonic. FancyBox2 happens to be released under a non-GPL-compatible license, but you can link the JS and the CSS appropriately for it.
- I had earlier bundled modified scripts for FancyBox and ColorBox because I couldn’t get them to work with the JQuery Tooltip plugin. I now have a fix for this scenario, so the scripts are back to their original. I couldn’t do the same for PrettyPhoto though, so I am hoping that a version of PrettyPhoto in the near future will help.
Several factors necessitated the code refactoring, primary being that for every new provider I was setting up, I was having to repeat a lot of code. With this change the barrier to introduction of new providers should reduce (though I cannot think of any other provider to include other than Facebook). This also helped me cut out hundreds of lines of JS, easing the load on the browser.
Do let me know how you like this release.