Settings logic
-
I noticed that when I set image_links to false (don’t automatically add rel=”lightbox” to links to images) and images_as_gallery to true (treat separate lightboxed images on a page as a single gallery), then ALL images on the page have rel=”lightbox” added even though the first setting forbid that.
This behaviour is explicitely defined in the code:
responsive-lightbox.phpif($this->options['settings']['image_links'] === true) || $this->options['settings']['images_as_gallery'] === true) add_filter('the_content', array(&$this, 'add_links_lightbox_selector'));
For my site, I needed to disable automatic image_links because underneath each thumbnail I add an anchor-tag with a download-attribute (to try force downloading of the image instead of navigating to it…).
However, due to the logic, the anchor-tags with the download-attribute were also included in the gallery.
Isn’t the logic here flawed? I explicitely ask Responsive Lightbox to NOT automatically add the rel=”lightbox”. Shouldn’t the images_as_gallery setting means ‘put all the lightboxed images in a post in a single gallery’ (and let the user decide which images are lightboxed by looking at the images_links setting)?.
- The topic ‘Settings logic’ is closed to new replies.