Version Description
- [Enhancement] Compatibility with JetPack Photon
Download this release
Release Info
| Developer | GreenTreeLabs |
| Plugin | |
| Version | 3.3.27 |
| Comparing to | |
| See all releases | |
Code changes from version 3.3.26 to 3.3.27
- FinalTilesGalleryLite.php +17 -2
- readme.txt +5 -2
FinalTilesGalleryLite.php
CHANGED
|
@@ -5,15 +5,17 @@
|
|
| 5 |
* Plugin URI: https://www.final-tiles-gallery.com
|
| 6 |
* Description: Wordpress Plugin for creating responsive image galleries. By: GreenTreeLabs
|
| 7 |
* Author: Green Tree Labs
|
| 8 |
-
* Version: 3.3.
|
| 9 |
* Author URI: https://www.greentreelabs.net
|
| 10 |
*
|
| 11 |
* @fs_premium_only /lightbox-pro/
|
| 12 |
*
|
| 13 |
*/
|
| 14 |
-
define( "FTGVERSION", "3.3.
|
| 15 |
/*
|
| 16 |
Changelog:
|
|
|
|
|
|
|
| 17 |
3.3.26
|
| 18 |
New feature: use custom fields as captions
|
| 19 |
3.3.25
|
|
@@ -1587,9 +1589,22 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
| 1587 |
}
|
| 1588 |
|
| 1589 |
//Create Short Code
|
|
|
|
| 1590 |
public function gallery_shortcode_handler( $atts )
|
| 1591 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1592 |
return $this->create_gallery( $atts );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1593 |
}
|
| 1594 |
|
| 1595 |
public static function slugify( $text )
|
| 5 |
* Plugin URI: https://www.final-tiles-gallery.com
|
| 6 |
* Description: Wordpress Plugin for creating responsive image galleries. By: GreenTreeLabs
|
| 7 |
* Author: Green Tree Labs
|
| 8 |
+
* Version: 3.3.27
|
| 9 |
* Author URI: https://www.greentreelabs.net
|
| 10 |
*
|
| 11 |
* @fs_premium_only /lightbox-pro/
|
| 12 |
*
|
| 13 |
*/
|
| 14 |
+
define( "FTGVERSION", "3.3.27" );
|
| 15 |
/*
|
| 16 |
Changelog:
|
| 17 |
+
3.3.27
|
| 18 |
+
Enhancement: compatibility with JetPack Photon
|
| 19 |
3.3.26
|
| 20 |
New feature: use custom fields as captions
|
| 21 |
3.3.25
|
| 1589 |
}
|
| 1590 |
|
| 1591 |
//Create Short Code
|
| 1592 |
+
private $photon_removed ;
|
| 1593 |
public function gallery_shortcode_handler( $atts )
|
| 1594 |
{
|
| 1595 |
+
$this->photon_removed = '';
|
| 1596 |
+
if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'photon' ) ) {
|
| 1597 |
+
$this->photon_removed = remove_filter( 'image_downsize', array( Jetpack_Photon::instance(), 'filter_image_downsize' ) );
|
| 1598 |
+
}
|
| 1599 |
return $this->create_gallery( $atts );
|
| 1600 |
+
if ( $this->photon_removed ) {
|
| 1601 |
+
add_filter(
|
| 1602 |
+
'image_downsize',
|
| 1603 |
+
array( Jetpack_Photon::instance(), 'filter_image_downsize' ),
|
| 1604 |
+
10,
|
| 1605 |
+
3
|
| 1606 |
+
);
|
| 1607 |
+
}
|
| 1608 |
}
|
| 1609 |
|
| 1610 |
public static function slugify( $text )
|
readme.txt
CHANGED
|
@@ -135,11 +135,14 @@ Currently galleries made with Envira, FooGallery, Instagram, NextGen, JetPack, M
|
|
| 135 |
|
| 136 |
== Changelog ==
|
| 137 |
|
| 138 |
-
= 3.3.
|
|
|
|
|
|
|
|
|
|
| 139 |
* [Add] New feature: use custom fields as captions in recent posts galleries
|
| 140 |
* [Fix] Columns (masonry) layout completely rewritten, fixed bug causing wrong image sizes or hidden images
|
| 141 |
|
| 142 |
-
= 3.3.24
|
| 143 |
* [Fix] Fixed missing captions on mobile
|
| 144 |
* [Fix] Fixed skipped images when using columns layout
|
| 145 |
|
| 135 |
|
| 136 |
== Changelog ==
|
| 137 |
|
| 138 |
+
= 3.3.27 =
|
| 139 |
+
* [Enhancement] Compatibility with JetPack Photon
|
| 140 |
+
|
| 141 |
+
= 3.3.26 =
|
| 142 |
* [Add] New feature: use custom fields as captions in recent posts galleries
|
| 143 |
* [Fix] Columns (masonry) layout completely rewritten, fixed bug causing wrong image sizes or hidden images
|
| 144 |
|
| 145 |
+
= 3.3.24 =
|
| 146 |
* [Fix] Fixed missing captions on mobile
|
| 147 |
* [Fix] Fixed skipped images when using columns layout
|
| 148 |
|
