Version Description
- Fix: Default WordPress gallery issue
Download this release
Release Info
Developer | dfactory |
Plugin | Responsive Lightbox & Gallery |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
- includes/class-frontend.php +11 -5
- readme.txt +6 -5
- responsive-lightbox.php +3 -3
includes/class-frontend.php
CHANGED
@@ -333,9 +333,15 @@ class Responsive_Lightbox_Frontend {
|
|
333 |
|
334 |
// add title and rl_title
|
335 |
if ( preg_match( '/<a.*? title=(?:\'|").*?(?:\'|").*?>/is', $link ) === 1 )
|
336 |
-
$link = preg_replace( '/(<a.*? title=(?:\'|")).*?((?:\'|").*?>)/s', '$1' . $title . '"
|
337 |
else
|
338 |
-
$link = preg_replace( '/(<a.*?)>/s', '$1 title="' . $title . '"
|
|
|
|
|
|
|
|
|
|
|
|
|
339 |
|
340 |
// gallery image caption
|
341 |
$caption = ! empty( $args['caption'] ) ? $args['caption'] : '';
|
@@ -1397,7 +1403,7 @@ class Responsive_Lightbox_Frontend {
|
|
1397 |
$atts = $this->sanitize_shortcode_args( $atts, $fields );
|
1398 |
|
1399 |
// break if it is not basicgrid gallery
|
1400 |
-
if ( ! ( $atts['type'] === 'basicgrid' || ( $atts['type'] === '' && Responsive_Lightbox()->options['settings']['builder_gallery'] === 'basicgrid' ) ) )
|
1401 |
return $output;
|
1402 |
|
1403 |
// ID
|
@@ -1599,7 +1605,7 @@ class Responsive_Lightbox_Frontend {
|
|
1599 |
$atts = $this->sanitize_shortcode_args( $atts, $fields );
|
1600 |
|
1601 |
// break if it is not basicslider gallery
|
1602 |
-
if ( ! ( $atts['type'] === 'basicslider' || ( $atts['type'] === '' && Responsive_Lightbox()->options['settings']['builder_gallery'] === 'basicslider' ) ) )
|
1603 |
return $output;
|
1604 |
|
1605 |
// ID
|
@@ -1777,7 +1783,7 @@ class Responsive_Lightbox_Frontend {
|
|
1777 |
$atts = Responsive_Lightbox()->frontend->sanitize_shortcode_args( $atts, $fields );
|
1778 |
|
1779 |
// break if it is not basic masonry gallery
|
1780 |
-
if ( ! ( $atts['type'] === 'basicmasonry' || ( $atts['type'] === '' && Responsive_Lightbox()->options['settings']['default_gallery'] === 'basicmasonry' ) ) )
|
1781 |
return $output;
|
1782 |
|
1783 |
// ID
|
333 |
|
334 |
// add title and rl_title
|
335 |
if ( preg_match( '/<a.*? title=(?:\'|").*?(?:\'|").*?>/is', $link ) === 1 )
|
336 |
+
$link = preg_replace( '/(<a.*? title=(?:\'|")).*?((?:\'|").*?>)/s', '$1' . $title . '" data-rl_title="'. $title .'$2', $link );
|
337 |
else
|
338 |
+
$link = preg_replace( '/(<a.*?)>/s', '$1 title="' . $title . '" data-rl_title="'. $title .'">', $link );
|
339 |
+
|
340 |
+
// add class if needed
|
341 |
+
if ( preg_match( '/<a.*? class=(?:\'|").*?(?:\'|").*?>/is', $link ) === 1 )
|
342 |
+
$link = preg_replace( '/(<a.*?) class=(?:\'|")(.*?)(?:\'|")(.*?>)/s', '$1 class="$2 rl-gallery-link" $3', $link );
|
343 |
+
else
|
344 |
+
$link = preg_replace( '/(<a.*?)>/s', '$1 class="rl-gallery-link">', $link );
|
345 |
|
346 |
// gallery image caption
|
347 |
$caption = ! empty( $args['caption'] ) ? $args['caption'] : '';
|
1403 |
$atts = $this->sanitize_shortcode_args( $atts, $fields );
|
1404 |
|
1405 |
// break if it is not basicgrid gallery
|
1406 |
+
if ( ! ( $atts['type'] === 'basicgrid' || ( $atts['type'] === '' && ( ( $rl_gallery && Responsive_Lightbox()->options['settings']['builder_gallery'] === 'basicgrid' ) || ( ! $rl_gallery && Responsive_Lightbox()->options['settings']['default_gallery'] === 'basicgrid' ) ) ) ) )
|
1407 |
return $output;
|
1408 |
|
1409 |
// ID
|
1605 |
$atts = $this->sanitize_shortcode_args( $atts, $fields );
|
1606 |
|
1607 |
// break if it is not basicslider gallery
|
1608 |
+
if ( ! ( $atts['type'] === 'basicslider' || ( $atts['type'] === '' && ( ( $rl_gallery && Responsive_Lightbox()->options['settings']['builder_gallery'] === 'basicslider' ) || ( ! $rl_gallery && Responsive_Lightbox()->options['settings']['default_gallery'] === 'basicslider' ) ) ) ) )
|
1609 |
return $output;
|
1610 |
|
1611 |
// ID
|
1783 |
$atts = Responsive_Lightbox()->frontend->sanitize_shortcode_args( $atts, $fields );
|
1784 |
|
1785 |
// break if it is not basic masonry gallery
|
1786 |
+
if ( ! ( $atts['type'] === 'basicmasonry' || ( $atts['type'] === '' && ( ( $rl_gallery && Responsive_Lightbox()->options['settings']['builder_gallery'] === 'basicmasonry' ) || ( ! $rl_gallery && Responsive_Lightbox()->options['settings']['default_gallery'] === 'basicmasonry' ) ) ) ) )
|
1787 |
return $output;
|
1788 |
|
1789 |
// ID
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.dfactory.eu/
|
|
4 |
Tags: gallery, images, lightbox, photos, theme, photo, image, picture, slideshow, modal, overlay, video
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.9.5
|
7 |
-
Stable tag: 2.0.
|
8 |
Requires PHP: 5.2.4
|
9 |
License: MIT License
|
10 |
License URI: http://opensource.org/licenses/MIT
|
@@ -78,8 +78,10 @@ No questions yet.
|
|
78 |
|
79 |
== Changelog ==
|
80 |
|
81 |
-
= 2.0.
|
|
|
82 |
|
|
|
83 |
* Fix: Syntax error in frontend.php on line 522
|
84 |
|
85 |
= 2.0 =
|
@@ -338,6 +340,5 @@ Initial release
|
|
338 |
|
339 |
== Upgrade Notice ==
|
340 |
|
341 |
-
= 2.0.
|
342 |
-
|
343 |
-
* Fix: Syntax error in frontend.php on line 522
|
4 |
Tags: gallery, images, lightbox, photos, theme, photo, image, picture, slideshow, modal, overlay, video
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.9.5
|
7 |
+
Stable tag: 2.0.2
|
8 |
Requires PHP: 5.2.4
|
9 |
License: MIT License
|
10 |
License URI: http://opensource.org/licenses/MIT
|
78 |
|
79 |
== Changelog ==
|
80 |
|
81 |
+
= 2.0.2 =
|
82 |
+
* Fix: Default WordPress gallery issue
|
83 |
|
84 |
+
= 2.0.1 =
|
85 |
* Fix: Syntax error in frontend.php on line 522
|
86 |
|
87 |
= 2.0 =
|
340 |
|
341 |
== Upgrade Notice ==
|
342 |
|
343 |
+
= 2.0.2 =
|
344 |
+
* Fix: Default WordPress gallery issue
|
|
responsive-lightbox.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Responsive Lightbox & Gallery
|
4 |
Description: Responsive Lightbox & Gallery allows users to create galleries and view larger versions of images, galleries and videos in a lightbox (overlay) effect optimized for mobile devices.
|
5 |
-
Version: 2.0.
|
6 |
Author: dFactory
|
7 |
Author URI: http://www.dfactory.eu/
|
8 |
Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
|
@@ -41,7 +41,7 @@ include_once( RESPONSIVE_LIGHTBOX_PATH . 'includes' . DIRECTORY_SEPARATOR . 'fun
|
|
41 |
* Responsive Lightbox class.
|
42 |
*
|
43 |
* @class Responsive_Lightbox
|
44 |
-
* @version 2.0.
|
45 |
*/
|
46 |
class Responsive_Lightbox {
|
47 |
|
@@ -237,7 +237,7 @@ class Responsive_Lightbox {
|
|
237 |
'origin_left' => true,
|
238 |
'origin_top' => true
|
239 |
),
|
240 |
-
'version' => '2.0.
|
241 |
'activation_date' => ''
|
242 |
);
|
243 |
public $options = array();
|
2 |
/*
|
3 |
Plugin Name: Responsive Lightbox & Gallery
|
4 |
Description: Responsive Lightbox & Gallery allows users to create galleries and view larger versions of images, galleries and videos in a lightbox (overlay) effect optimized for mobile devices.
|
5 |
+
Version: 2.0.2
|
6 |
Author: dFactory
|
7 |
Author URI: http://www.dfactory.eu/
|
8 |
Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
|
41 |
* Responsive Lightbox class.
|
42 |
*
|
43 |
* @class Responsive_Lightbox
|
44 |
+
* @version 2.0.2
|
45 |
*/
|
46 |
class Responsive_Lightbox {
|
47 |
|
237 |
'origin_left' => true,
|
238 |
'origin_top' => true
|
239 |
),
|
240 |
+
'version' => '2.0.2',
|
241 |
'activation_date' => ''
|
242 |
);
|
243 |
public $options = array();
|