SimplestGallery 4.0 – what’s new
We are very pleased to announce version 4.0 of Simplest Gallery plugin.
This release brings some interesting news both for users and for theme developers.
- The new version code has been refactored, so the main plugin file is lighter and faster than ever, and the code is simpler to understand. The code for the default lightbox gallery has been moved into a separate lightbox.php file, which can be used as a basis to develop new gallery style plugin according to our API specification. See API page for more information (theme and plugin developers)
- This new version uses the WordPress builtin functions to parse shortcodes, and does not perform internal pattern-matching anymore to spot and render gallery shortcodes. This means more reliability and robustness, but also you can now easily integrate galleries anywhere in your own theme, by simply adding a few lines of PHP code and using the do_shortcode() function. See these two demo sites for how to include an Imageflow Gallery and a simple jQuery Cycle Slider in the homepage beneath the ordinary blog entries. This has been done with a 5-minute edit of the standard, twenty-sixteen theme. See the “How to make it” pages in the demo sites for directions. Easy!
- Tested compatibility with WordPress 4.5
Please note: this new version is not guaranteed to work on all sites and may not work for old WP versions. If it’s your case, you will easily restore normal operation by reverting back to the old 3.6 version.