=== Responsive Lightbox & Gallery ===
Contributors: dfactory
Donate link: http://www.dfactory.co/
Tags: gallery, galleries, lightbox, image, images
Requires at least: 6.0
Tested up to: 6.9
Stable tag: 2.6.0
Requires PHP: 5.6
License: MIT License
License URI: http://opensource.org/licenses/MIT

The most popular lightbox plugin and responsive gallery builder for WordPress.

== Description ==

= Everything You Need in a WordPress Gallery Plugin =

<a href="http://www.dfactory.co/products/responsive-lightbox/?utm_source=repo&utm_medium=link&utm_campaign=responsive-lightbox-plugin-free">Responsive Lightbox and Gallery plugin</a> is a fully fledged WordPress gallery plugin with a powerful Drag & Drop Gallery Builder and Lightbox functionality that's used daily by more than 100,000 active users and downloaded over 3 Million times.

The beauty of it is how easy it is for you to customize it and enhance its features thanks to <a href="?utm_source=repo&utm_medium=link&utm_campaign=responsive-lightbox-plugin-free">free and premium extensions</a>. 

= Why You Should Use Responsive Lightbox and Gallery Plugin =

= Easiest Gallery Builder =

Say goodbye to coding. With the built-in drag and drop Gallery builder, you will be able to create beautiful galleries, customize them, and add your preferred styles in minutes.

= Vast Customization Options = 

Responsive Lightbox and Gallery plugin is packed with customization options per each gallery and lightbox style so you can tweak them to suit your website's audience with just a few clicks.

= SEO-Friendly and Lightweight =

Responsive Lightbox and Gallery plugin is built keeping SEO and performance in mind, making it lightweight and fast when it comes to page load.

= Premium Extensions =

Looking to provide a premium experience to your visitors? Responsive Lightbox and Gallery plugin offers plenty of premium extensions to provide you with even more flexibility and customization options. 

Need more reasons? <a href="http://www.dfactory.co/products/responsive-lightbox/?utm_source=repo&utm_medium=link&utm_campaign=responsive-lightbox-plugin-free">Check them out here</a>!

= What some of our 100,000+ active users say about Responsive Lightbox and Gallery plugin =

* Amazing Gallery plugin!

* Versatile and powerful for both sliders and galleries, many features and style options.

* Really easy to use. Takes all the fiddling out of the process of creating a responsive gallery/lightbox.

* I needed a lightbox plugin that works reliably. This marvelous plugin does the magic. Now I can spend more on my photography and less time customizing WordPress.

* This plugin is quite flexible and effective. The functionality choices are broad and all quite easy to configure.

= Need more galley options? =

Responsive Lightbox and Gallery plugin can be extended with our <a href="?utm_source=repo&utm_medium=link&utm_campaign=responsive-lightbox-plugin-free">premium extensions</a>:

<strong>Premium Extensions:</strong>
* [Photo & Art bundle](http://www.dfactory.co/products/photo-art-bundle/)
* [Justified Gallery](http://www.dfactory.co/products/justified-gallery/)
* [Expander Gallery](http://www.dfactory.co/products/expander-gallery/)
* [Hidden Gallery](http://www.dfactory.co/products/hidden-gallery/)
* [Masonry Image Gallery](http://www.dfactory.co/products/masonry-gallery-pro/)
* [Slider Gallery](http://www.dfactory.co/products/slider-gallery/)
* [Lightcase Lightbox](http://www.dfactory.co/products/lightcase-lightbox/)
* [PhotoSwipe Lightbox](http://www.dfactory.co/products/photoswipe-lightbox/)
* [Lightgallery Lightbox](http://www.dfactory.co/products/lightgallery-lightbox/)
* [Strip Lightbox](http://www.dfactory.co/products/strip-lightbox/)
* [Fancybox Pro](http://www.dfactory.co/products/fancybox-pro/)
* [Lightbox Comments](http://www.dfactory.co/products/lightbox-comments/)

= Full Feature List =

* Powerful and easy-to-use gallery builder
* 3 beautiful gallery templates - Grid, Slider and Masonry
* 8 responsive lightbox scripts (SwipeBox, prettyPhoto, Nivo Lightbox, Image Lightbox, Tos "R" Us, Featherlight, Magnific Popup, GLightbox)
* Create galleries from Media Library or Post attached images
* Media Folders with a drag & drop interface
* Access to millions of images through Remote Library
* Option to import remote images to Media Library
* Gutenberg editor compatibility
* Iframe, Ajax, HTML5 and Inline lightbox content support
* Advanced pagination, incl. AJAX and infinite scroll
* Automatically add lightbox to WordPress image galleries
* Automatically add lightbox to WordPress image links
* Automatically add lightbox to WordPress video links (YouTube, Vimeo)
* Automatically add lightbox to widgets content
* Automatically add lightbox to WordPress comments content
* WooCommerce product gallery support
* Popular Page builders compatibility
* Gallery widget
* Single image widget
* Option to display single post images as a gallery
* Option to modify native WP gallery links image size
* Option to set gallery images title from image title, caption, alt or description
* Option to force lightbox for custom WP gallery replacements like Jetpack tiled galleries
* Option to trigger lightbox on custom jquery events
* Option to conditionally load scripts and styles only on pages that have images or galleries in post content
* Highly customizable settings for each of the lightbox scripts
* Highly customizable settings for each gallery
* Multisite support
* .pot file for translations included

== Frequently Asked Questions ==

= Who is Responsive Lightbox & Gallery for? =

Responsive Lightbox and Gallery is the perfect solution for anyone who wants to create incredibly beautiful responsive galleries with images and/or videos with lightbox effect. This means bloggers, photographers, designers can choose from one of the many layouts available and publish their gallery in minutes.

= Do I need coding skills to use this plugin? =

Thanks to the built-in gallery builder, anyone can create a professional responsive gallery and take advantage of the many layouts and styles. Know how to code? You can adjust the plugin to meet your requirements.

= What's the Photo & Art Bundle? =

Many users love to have different ways to customize their galleries. This bundle gives you access to all our premium extensions, 1-year direct support and all updates, at a hugely discounted price (70% off). [Learn more here](http://www.dfactory.co/products/photo-art-bundle/?utm_source=repo&utm_medium=link&utm_campaign=responsive-lightbox-plugin-free).

= Will this plugin slow down my site? =

Responsive Lightbox and Gallery plugin is a lightweight WordPress gallery plugin built with performance and speed in mind. This means your page load time won't be affected.

= How can I get the most of this plugin? =

Responsive Lightbox and Gallery plugin comes with plenty of documentation to guide you while creating and customizing your galleries. On top of that, you'll find plenty of articles on how to add the lightbox effect, how to use the gallery builder, and much more! Need to fix a specific issue? Share it on our forum and get the answer you need!  

= I need a specific style, layout or effect for my galleries. What should I do? =

Responsive Lightbox and Gallery plugin comes with many styles and effects already in it's free version and can be enhanced with 10+ premium extensions like Masonry Gallery Pro, Hidden Gallery, Slider Gallery, and many more. <a href="http://www.dfactory.co/products/responsive-lightbox-gallery-extensions/?utm_source=repo&utm_medium=link&utm_campaign=responsive-lightbox-plugin-free">Check them all out here</a> and pick your preferred one!

== Installation ==

1. Install Responsive Lightbox either via the WordPress.org plugin directory, or by uploading the files to your server
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to the Responsive Lightbox settings and set your desired options.

== Screenshots ==

1. screenshot-1.png
2. screenshot-2.jpg

== Changelog ==

= 2.6.0 =
* New: GLightbox script support - Added modern, lightweight GLightbox as a new lightbox option
* New: WebP image format support across all lightbox scripts
* Security: Comprehensive security hardening for all lightbox scripts (XSS prevention, content sanitization)
* Security: Implemented DOMPurify for enhanced JavaScript content sanitization
* Tweak: prettyPhoto improvements - hardened content handling, fixed media cases, improved thumbnail display
* Tweak: Updated all third-party assets and dependencies for better security and performance

= 2.5.5 =
* Security: Hardened Remote Library requests with capability + nonce checks and added a configurable max download size to block oversized images.
* Security: Sanitized folder taxonomy loading and fixed a typo that could break the old-taxonomies AJAX call.
* Tweak: Added explicit block editor dependencies to ensure scripts load reliably on widgets/customizer screens.

= 2.5.4 =
* Fix: SSFR vulnerability related to the 'get_image_size_by_url' function
* Tweak: Modernized build process with Dart Sass and updated dependencies

= 2.5.3 =
* Fix: Potential XSS vulnerability related to lightbox link handling
* Tweak: Refactor lightbox link handling to use DOMDocument

= 2.5.2 =
* Fix: XSS vulnerability related to Swipebox lightbox
* Fix: Issue with folders display in grid mode
* Tweak: Add missing text strings for galleries
* Tweak: Updated jsTree to 3.3.17

= 2.5.1 =
* Fix: Loading textdomain warning
* Fix: XSS vulnerability related to prettyPhoto
* Tweak: Updated enqueuing versions of scripts and style

= 2.5.0 =
* New: Switch to new Basic slider script
* New: Added caption font size option in galleries
* New: Added caption padding option in galleries
* Tweak: Set versions for scripts/styles of assets

= 2.4.9 =
* Fix: Potential XSS vulnerability related to Featherlight lightbox
* Fix: Removed the vulnerable Fancybox 3.x script

= 2.4.8 =
* Fix: Flushing rewrite rules
* Fix: Uploading remote library images
* Fix: Potential XSS vulnerability related to Magnific Popup
* Tweak: Updated Magnific Popup to 1.2.0

= 2.4.7 =
* Fix: Unauthorized access to private rl_gallery shortcodes

= 2.4.6 =
* Fix: Editing folder names
* Tweak: Updated jsTree to 3.3.16

= 2.4.5 =
* New: WordPress 6.2 compatibility
* New: PHP 8.2 compatibility
* Fix: Rendering media providers in settings
* Fix: Assigning terms to media folders
* Fix: Getting galleries for post-new.php pages
* Fix: Displaying legacy gallery and image widgets
* Fix: Getting colors for media folders (Undefined array key 3 in includes\class-folders.php)
* Tweak: Updated jsTree to 3.3.14

= 2.4.4 =
* Fix: Improved sanitization and validation
* Fix: Displaying legacy gallery and image widgets
* Fix: Assigning terms to media folders
* Fix: Issue getting colors for media folders
* Fix: Automatic conversion of false to array deprecated

= 2.4.3 =
* Fix: General sanitization and validation overhaul
* Fix: Displaying legacy gallery and image widgets
* Fix: Getting colors for media folders
* Fix: Assigning terms to media folders

= 2.4.2 =
* Fix: Potential XSS vulnerabilities related to settings validation
* Fix: Missing image alt attribute
* Fix: Undefined array key "type"
* Fix: Possible invalid data passed to attachment_url_to_postid function

= 2.4.1 =
* Fix: WooCommerce product gallery
* Fix: WooCommerce gallery lightbox

= 2.4.0 =
* New: WordPress 6.0 compatibility
* New: HTML5 Media Library videos support (with Lightgallery, Fancybox Pro and Lightcase lightboxes)
* New: Embed Youtube & Vimeo videos support (with Lightgallery, Fancybox Pro and Lightcase lightboxes)
* New: [Lightbox Comments](http://www.dfactory.co/products/lightbox-comments/) extension
* New: WP Gallery block support
* New: WP Image block support

= 2.3.5 =
* Fix: Insert gallery double preview
* Tweak: Display of horizontal / vertical igallery images 
* Tweak: Improved gallery images loading performance
* Tweak: Add gallery number of images displayed

= 2.3.4 =
* New: WordPress 5.9 compatibility
* Fix: Adding new images to existing galleries
* Fix: Ajax gallery pagination
* Fix: Infinite scroll issues with Masonry gallery
* Fix: Edge case PHP Fatal error
* Fix: WP Media grid view folders not updating
* Fix: Gallery shortcode not selecting
* Fix: Deprecated events: DOMNodeInserted, DOMNodeRemoved in front.js
* Fix: Deprecated event: DOMNodeInserted in admin-galleries.js
* Fix: Uncaught Error: Call to undefined method Responsive_Lightbox_Galleries::get_active_providers()

= 2.3.3 =
* Fix: Invalid argument in upgrader process
* Fix: Widgets warning in WordPress 5.8
* Fix: Warning in wp_localize_script usage

= 2.3.2 =
* Fix: Add option to enable/disable advanced capability management
* Fix: Insert gallery into post not working in Gutenberg editor
* Fix: Remove "ready" deprecated event from front.js
* Fix: array_combine() function error class-folders.php
* FIx: $.uniqueSort is not a function error

= 2.3.1 =
* Fix: Plugin capabilities not granted properly

= 2.3.0 =
* New: WordPress 5.6 compatibility
* New: Capabilities management
* New: Admin breadcrumb navigation

= 2.2.3 =
* Fix: Media Folders js and CSS issues in Media Library
* Fix: Empty src attribute in Remote Library inserted images
* Tweak: Remove featured image thumbnail from Media Library access

= 2.2.2 =
* Fix: Add Media button not working for custom post types
* Fix: Underscore.js dependency missing
* Fix: Undefined variable: current_color_scheme
* Fix: Root Folder missing in media upload dropdown

= 2.2.1 =
* Fix: Invalid arguments passed in class-folders.php

= 2.2.0 =
* New: Introducing Remote Library feature
* New: Gutenberg editor compatibility
* Tweak: PHP 7.3 support

= 2.1.0 =
* New: Introducing Media Library Folders
* New: Media folder gallery type
* New: Filter gallery by category
* Fix: Ajax Pagination not working when logged out
* Fix: CSS issues with multiple Basic grid galleries on one page
* Fix: Removed call to a sanitize_field function

= 2.0.5 =
* Fix: Escaped characters on titles and descriptions
* Fix: Gallery shortcode not accepting image order
* Fix: Gallery using default parameters instead of the settings
* Fix: PHP fatal error if gallery builder is disabled

= 2.0.4 =
* Fix: Gallery sorting and orderby not working
* Fix: Slow db query on post edit screen
* Fix: WooCommerce gallery undefined method for get_gallery_image_ids
* Fix: Uncaught Argument in preview_post_link function
* Fix: Removed a callback to sanitize_textarea_field

= 2.0.3 =
* Fix: Gallery shortcode thumbnails not accepting size parameter
* Fix: Basic templates for WooCommerce gallery 

= 2.0.2 =
* Fix: Default WordPress gallery issue

= 2.0.1 =
* Fix: Syntax error in frontend.php on line 522

= 2.0 =
* New: Powerful gallery builder
* New: 3 gallery templates - Basic Grid, Slider and Masonry
* New: Magnific Popup lightbox
* New: Iframe, Ajax, HTML5 and Inline lightbox content support
* Tweak: Improved Visual Composer compatibility
* Tweak: Revamped admin interface

= 1.7.1 =
* New: Tos "R" Us overlay close option
* Fix: License activation issues
* Tweak: Featherlight script update to 1.7.0
* Tweak: Imagelightbox script update

= 1.7.0 =
* New: Add lightbox to widgets content
* New: Add lightbox to WordPress comments
* New: Gallery widget
* New: Single image widget
* New: Visual Composer compatibility
* New: WooCommerce 3.0 compatibility
* New: [Fancybox Pro](http://www.dfactory.co/products/fancybox-pro/) premium extension
* New: [Expander Gallery](http://www.dfactory.co/products/expander-gallery/) premium extension
* New: [Hidden Gallery](http://www.dfactory.co/products/hidden-gallery/) premium extension
* Tweak: Attachment ID query optimization
* Tweak: Revamped lightbox settings screen
* Tweak: Improved custom galleries compatibility

= 1.6.12 =
* Fix: WooCommerce single product image lightbox

= 1.6.11 =
* Tweak: Added plugin documentation link
* Tweak: Nivo lightbox update to 1.3.1

= 1.6.10 =
* New: Featherlight lightbox script
* New: [Lightgallery Lightbox](http://www.dfactory.co/products/lightgallery-lightbox/) premium extension
* New: [Slider Gallery](http://www.dfactory.co/products/slider-gallery/) premium extension

= 1.6.9 =
* New: [PhotoSwipe Lightbox](http://www.dfactory.co/products/photoswipe-lightbox/) premium extension
* Fix: data-rel attribute missing in multiline links
* Tweak: Removed local translation files in favor of WP repository translations
* Tweak: SwipeBox script updated to 1.4.4

= 1.6.8 =
* Tweak: Tos "R" Us script caption issue when empty link title
* Tweak: Undefined notice on extentions activation.

= 1.6.7 =
* New: WooCommerce product gallery support
* New: [Masonry Image Gallery](http://www.dfactory.co/products/masonry-gallery-pro/) and [Strip Lightbox](http://www.dfactory.co/products/strip-lightbox/) extensions
* Tweak: Tos"R"Us script updated to 2.4.2
* Tweak: Settings handler improvements.

= 1.6.6 =
* Tweak: Confirmed WordPress 4.4 compatibility

= 1.6.5 =
* Fix: Lightbox activated on non-video youtube links
* Tweak: Added a way to change settings required capability 

= 1.6.4 =
* Tweak: prettyPhoto improvements for mobile devices

= 1.6.3 =
* Fix: Tos"R"Us script initialized multiple times in Ajax
* Fix: Regex issue with replacing rel attribute
* Tweak: Swipebox updated to 1.4.1

= 1.6.2 =
* New: Disable lightbox for single images with data-rel="norl" attribute
* Tweak: Keep rel attribute intact if used in post content links
* Tweak: Vimeo regex improvements

= 1.6.1 =
* Fix: prettyPhoto and Nivo gallery navigation broken
* Tweak: Added another way to close the extensions notification

= 1.6.0 =
* New: Introducing [Justified Gallery](http://www.dfactory.co/products/justified-gallery/) and [Lightcase Lightbox](http://www.dfactory.co/products/lightcase-lightbox/) premium extensions.
* New: Option to set single images title from image title, caption, alt or description
* Tweak: Confirmed WP 4.3 compatibility

= 1.5.8 =
* Tweak: Switched to protocol independent URLs in Nivo and Tosrus

= 1.5.7 =
* New: Romanian translation, thanks to [Victor Chiritoiu](http://contacter.ro)
* Fix: Tos "R" Us pagination thumbnails and pause on hover settings not working
* Tweak: Scripts and styles versioning, for better cache handling
* Tweak: French translation updated

= 1.5.6 =
* New: Option to conditionally load scripts and styles only on pages that have images or galleries in post content.

= 1.5.5 =
* Tweak: Multiple backward rel attribute compatibility tweaks
* Fix: Nivo lightbox and Image lightbox js attr errors when no data-rel given
* Fix: Swipebox option to remove top and bottom bars

= 1.5.4 =
* Tweak: Swipebox option to remove top and bottom bars on mobile devices
* Fix: Swipe support for Tos "R" Us lightbox script

= 1.5.3 =
* Fix: Nivo lightbox buttons and styles missing

= 1.5.2 =
* New: Tos "R" Us lightbox script
* Fix: Final fix for video links regex (hopefully)
* Tweak: Switched from rel to data-rel attribute to avoid W3C validation errors
* Tweak: Optimized gallery image size function

= 1.5.1 =
* Tweak: Support for multiple custom galleries per page (via gallery-n) in rel
* Fix: Boolean / subfields bug not saving settings properly
* Fix: Vimeo videos automatic lightbox not working when query parameters were not set

= 1.5.0 =
* New: Revamped User Interface
* New: Option to force lightbox for custom WP gallery replacements like Jetpack tiled galleries 

= 1.4.14 =
* New: Option to set gallery images title from image title, caption, alt or description
* Tweak: Improved regex for Youtube video links

= 1.4.13 =
* Fix: Reverted back the regex change in lightbox selector to gallery links

= 1.4.12 =
* Fix: jQuery prettyPhoto DOM Cross-Site Scripting (XSS) vulnerability
* Tweak: Added regex filetype check before applying lightbox selector to gallery links.
* Tweak: Switched from wp_generate_password() to custom function, without needless DB call.

= 1.4.11 =
* Tweak: Swipebox script updated to 1.3.0.2
* Tweak: prettyPhoto CSS tweaks
* Tweak: fancyBox IE patch

= 1.4.10 =
* Tweak: Image Lightbox updated

= 1.4.9 =
* New: Hungarian translation, thanks to [Zsolt Boda](http://cmfrt.net/)
* Tweak: Remove direct http calls from Javascript to improve https protocol compatibility

= 1.4.8 =
* Tweak: Nivo Lightbox updated to 1.2
* Tweak: Confirmed WP 4.0 compatibility

= 1.4.7 =
* New: Option to modify native WP gallery links image size
* New: Option to donate this plugin :)

= 1.4.6 =
* New: Slovak translation, thanks to [Patrik Zec](http://patwist.com)

= 1.4.5 =
* New: Russian translation, thanks to [Konstantin](http://l-konstantin.ru)

= 1.4.4 =
* Fix: Prevent unintentional scroll to the top when pressing the "enter" key in the opened swipebox, thanks to Arno Welzel

= 1.4.3 =
* New: Estonian translation, thanks to Hugo Amtmann
* Tweak: Swipebox script update, thanks to Arno Welzel

= 1.4.2 =
* Fix: Final fix for IE scroll bug

= 1.4.1 =
* Fix: Swipebox script files inconsistency

= 1.4.0 =
* New: Added Image Lightbox script
* New: Option to load scripts in header or footer
* Tweak: Changed Swipebox script to custom built, thanks to Arno Welzel

= 1.3.6 =
* New: Added rl_lightbox_args filter hook for embeddding different scripts based on any custom conditions (page, post, category, user id, etc.)

= 1.3.5 =
* New: Dutch translation, thanks to [Sebas Blom](http://www.basbva.nl/)

= 1.3.4 =
* Fix: Gallery images displayed as single images

= 1.3.3 =
* New: Triggering lightbox on custom jquery events option
* Tweak: UI improvements for WP 3.8

= 1.3.2 =
* New: German translation, thanks to Andreas Reitberger
* Tweak: Nivo Lightbox script updated

= 1.3.1 =
* New: Spanish translation, thanks to Gaston
* Tweak: Japanese translation updated

= 1.3.0 =
* New: Added Nivo Lightbox script
* New: Option to reset plugin settings to defaults

= 1.2.3 =
* New: Serbo-Croatian translation, thanks to Borisa Djuraskovic

= 1.2.2 =
* New: Option to force PNG icons in case of display problems
* Fix: Bug with video width not working in SwipeBox

= 1.2.1 =
* New: Support for images loaded via AJAX
* Tweak: Updated Japanese translation

= 1.2.0 =
* New: Added FancyBox script
* Tweak: UI enhancements for options
* Tweak: Better YouTube video handling (including https protocol) 

= 1.1.2 =
* New: Japanese translation, thanks to stranger-jp

= 1.1.1 =
* Tweak: UI enhancements for prettyPhoto opacity

= 1.1.0 =
* New: Multisite support
* Fix: Notice during first plugin activation

= 1.0.4 =
* Fix: Changed regex for links to attachment pages, thanks to Darwin

= 1.0.3 =
* New: Added Czech translation, thanks to Vaclav Hnilicka
* Tweak: Small UI enhancements
* Tweak: Changed SwipeBox Top and Bottom bars options description

= 1.0.2 =
* New: Option to display single post images as a gallery
* New: Added French translation by Li-An
* Tweak: Rewritten regex for selector

= 1.0.1 =
* New: Support for video links (YouTube and Vimeo)
* New: Added Polish translation
* New: Added Persian translation by Ali Mirzaei
* Tweak: SwipeBox script updated
* Tweak: Changed method of applying lightbox rel attribute to single images

= 1.0.0 =
Initial release

== Upgrade Notice ==

= 2.6.0 =
New GLightbox script support, comprehensive security hardening, WebP format support, DOMPurify implementation, and updated third-party assets