Version Description
- [Fix] Fixed lightbox
Download this release
Release Info
Developer | GreenTreeLabs |
Plugin | Image Photo Gallery Final Tiles Grid |
Version | 3.4.10 |
Comparing to | |
See all releases |
Code changes from version 3.4.9 to 3.4.10
- FinalTilesGalleryLite.php +3 -1
- lib/gallery-class.php +10 -3
- readme.txt +6 -0
FinalTilesGalleryLite.php
CHANGED
@@ -12,9 +12,11 @@
|
|
12 |
*
|
13 |
*
|
14 |
*/
|
15 |
-
define( "FTGVERSION", "3.4.
|
16 |
/*
|
17 |
Changelog:
|
|
|
|
|
18 |
3.4.9
|
19 |
Fixed "no link" on mobile
|
20 |
3.4.8
|
12 |
*
|
13 |
*
|
14 |
*/
|
15 |
+
define( "FTGVERSION", "3.4.10" );
|
16 |
/*
|
17 |
Changelog:
|
18 |
+
3.4.10
|
19 |
+
Fixed lightbox
|
20 |
3.4.9
|
21 |
Fixed "no link" on mobile
|
22 |
3.4.8
|
lib/gallery-class.php
CHANGED
@@ -160,9 +160,9 @@ if ( !class_exists( "FinalTilesGallery" ) ) {
|
|
160 |
|
161 |
private function getLightboxClass( $image )
|
162 |
{
|
|
|
163 |
|
164 |
if ( !empty($image->target) && $image->target == '_lightbox' && !empty($image->link) ) {
|
165 |
-
$l = ( wp_is_mobile() ? $this->gallery->mobileLightbox : $this->gallery->lightbox );
|
166 |
if ( $l == 'magnific' || $l == 'colorbox' ) {
|
167 |
return "ftg-lightbox-iframe";
|
168 |
}
|
@@ -444,7 +444,7 @@ if ( !class_exists( "FinalTilesGallery" ) ) {
|
|
444 |
}
|
445 |
$html .= "</div>\n";
|
446 |
$html .= "<script type='text/javascript'>\n";
|
447 |
-
if ( $
|
448 |
$html .= "jQuery('#ftg-{$this->id}{$rid} img.item').removeAttr('src');\n";
|
449 |
}
|
450 |
$html .= "jQuery(document).ready(function () {\n";
|
@@ -655,7 +655,14 @@ if ( !class_exists( "FinalTilesGallery" ) ) {
|
|
655 |
$title_text = "<span class='title'>{$image->title}</span><span class='text'>{$image->description}</span>";
|
656 |
}
|
657 |
$html .= "<a {$title}=\"" . $title_text . "\" ";
|
658 |
-
$html .= (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
659 |
if ( !isset( $image->width ) ) {
|
660 |
$image->width = "auto";
|
661 |
}
|
160 |
|
161 |
private function getLightboxClass( $image )
|
162 |
{
|
163 |
+
$l = ( wp_is_mobile() ? $this->gallery->mobileLightbox : $this->gallery->lightbox );
|
164 |
|
165 |
if ( !empty($image->target) && $image->target == '_lightbox' && !empty($image->link) ) {
|
|
|
166 |
if ( $l == 'magnific' || $l == 'colorbox' ) {
|
167 |
return "ftg-lightbox-iframe";
|
168 |
}
|
444 |
}
|
445 |
$html .= "</div>\n";
|
446 |
$html .= "<script type='text/javascript'>\n";
|
447 |
+
if ( $lightbox != 'lightgallery' ) {
|
448 |
$html .= "jQuery('#ftg-{$this->id}{$rid} img.item').removeAttr('src');\n";
|
449 |
}
|
450 |
$html .= "jQuery(document).ready(function () {\n";
|
655 |
$title_text = "<span class='title'>{$image->title}</span><span class='text'>{$image->description}</span>";
|
656 |
}
|
657 |
$html .= "<a {$title}=\"" . $title_text . "\" ";
|
658 |
+
$html .= ( $lightbox == "lightbox2" && empty($image->link) ? "data-lightbox='{$rel}'" : "" );
|
659 |
+
$html .= " rel='{$rel}' ";
|
660 |
+
$html .= $this->getTarget( $image );
|
661 |
+
$html .= " class=' tile-inner " . $gallery->aClass . " ";
|
662 |
+
$html .= $this->getLightboxClass( $image ) . "' ";
|
663 |
+
$html .= $this->getLink( $image ) . " ";
|
664 |
+
$html .= ( $lightbox == "lightgallery" ? "data-download-url='{$image->original}'" : '' );
|
665 |
+
$html .= ">\n";
|
666 |
if ( !isset( $image->width ) ) {
|
667 |
$image->width = "auto";
|
668 |
}
|
readme.txt
CHANGED
@@ -137,6 +137,9 @@ Currently galleries made with Envira, FooGallery, Instagram, NextGen, JetPack, M
|
|
137 |
|
138 |
== Changelog ==
|
139 |
|
|
|
|
|
|
|
140 |
= 3.4.9 =
|
141 |
* [Fix] Fixed "No link" on mobile
|
142 |
|
@@ -337,6 +340,9 @@ Currently galleries made with Envira, FooGallery, Instagram, NextGen, JetPack, M
|
|
337 |
|
338 |
== Upgrade Notice ==
|
339 |
|
|
|
|
|
|
|
340 |
= 3.4.9 =
|
341 |
* [Fix] Fixed "No link" on mobile
|
342 |
|
137 |
|
138 |
== Changelog ==
|
139 |
|
140 |
+
= 3.4.10 =
|
141 |
+
* [Fix] Fixed lightbox
|
142 |
+
|
143 |
= 3.4.9 =
|
144 |
* [Fix] Fixed "No link" on mobile
|
145 |
|
340 |
|
341 |
== Upgrade Notice ==
|
342 |
|
343 |
+
= 3.4.10 =
|
344 |
+
* [Fix] Fixed lightbox
|
345 |
+
|
346 |
= 3.4.9 =
|
347 |
* [Fix] Fixed "No link" on mobile
|
348 |
|