Version Description
- [Enhancement] Gallery skips non existent images
- [Enhancement] Gallery shows proper message when id doesn't exist
Download this release
Release Info
Developer | giucu91 |
Plugin | Image Photo Gallery Final Tiles Grid |
Version | 3.4.16 |
Comparing to | |
See all releases |
Code changes from version 3.4.14 to 3.4.16
- FinalTilesGalleryLite.php +104 -83
- admin/facebook.php +1 -1
- admin/overview.php +1 -1
- admin/scripts/editor-plugin.js +3 -3
- languages/final-tiles-grid-gallery-lite-it_IT.po +2 -2
- lib/db-class.php +2 -0
- lib/gallery-class.php +15 -5
- lib/languages/final-tiles-gallery.pot +1 -1
- readme.txt +17 -6
- scripts/gutenberg_block.js +6 -2
- scripts/jquery.finalTilesGallery.js +2 -2
FinalTilesGalleryLite.php
CHANGED
@@ -1,20 +1,38 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
/*
|
17 |
Changelog:
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
3.4.13
|
19 |
Updated Freemius SDK
|
20 |
3.4.12
|
@@ -688,7 +706,7 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
688 |
_e( 'Hey, I noticed you created a photo gallery with Final Tiles - that’s awesome! Would you mind give it a 5-star rating on WordPress to help us spread the word and boost our motivation for new featrues?', 'final-tiles-gallery-lite' );
|
689 |
?></p>
|
690 |
<p><strong><?php
|
691 |
-
_e( '
|
692 |
?></strong></p>
|
693 |
<p>
|
694 |
<a href="https://wordpress.org/support/plugin/final-tiles-grid-gallery-lite/reviews/?filter=5#new-post" class="ftg-dismiss-review-notice ftg-review-out" target="_blank" rel="noopener"><?php
|
@@ -776,10 +794,9 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
776 |
|
777 |
if ( $file == $base ) {
|
778 |
$links[] = '<a href="admin.php?page=ftg-lite-gallery-admin" title="Final Tiles Grid Gallery Dashboard">Dashboard</a>';
|
779 |
-
$links[] = '<a href="https://www.
|
780 |
-
$links[] = '<a href="https://twitter.com/
|
781 |
-
$links[] = '<a href="https://www.facebook.com/
|
782 |
-
$links[] = '<a href="https://www.google.com/+GreentreelabsNetjs" title="GreenTreeLabs on Google+">Google+</a>';
|
783 |
}
|
784 |
|
785 |
return $links;
|
@@ -1703,72 +1720,76 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
1703 |
$attrs
|
1704 |
);
|
1705 |
$settings = $FinalTilesGallery->getGallery();
|
1706 |
-
|
1707 |
-
|
1708 |
-
|
1709 |
-
|
1710 |
-
|
1711 |
-
|
1712 |
-
|
1713 |
-
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
|
1718 |
-
|
1719 |
-
|
1720 |
-
|
1721 |
-
|
1722 |
-
|
1723 |
-
|
1724 |
-
|
1725 |
-
|
1726 |
-
|
1727 |
-
|
1728 |
-
|
1729 |
-
|
1730 |
-
|
1731 |
-
|
1732 |
-
|
1733 |
-
|
1734 |
-
|
1735 |
-
|
1736 |
-
|
1737 |
-
|
1738 |
-
|
1739 |
-
|
1740 |
-
|
1741 |
-
|
1742 |
-
|
1743 |
-
|
1744 |
-
|
1745 |
-
|
1746 |
-
|
1747 |
-
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
1752 |
-
|
1753 |
-
|
1754 |
-
|
1755 |
-
|
1756 |
-
|
1757 |
-
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
1761 |
-
|
1762 |
-
|
1763 |
-
|
1764 |
-
|
1765 |
-
|
1766 |
-
|
1767 |
-
|
1768 |
-
|
1769 |
-
|
1770 |
-
|
|
|
|
|
|
|
1771 |
}
|
|
|
1772 |
return $FinalTilesGallery->render();
|
1773 |
} else {
|
1774 |
return "Gallery not found.";
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
+
* Plugin Name: Final Tiles Grid Gallery - Image Gallery
|
4 |
+
* Description: Wordpress Plugin for creating responsive image galleries.
|
5 |
+
* Version: 3.4.16
|
6 |
+
* Author: MachoThemes
|
7 |
+
* Author URI: https://www.machothemes.com
|
8 |
+
* Requires: 4.9 or higher
|
9 |
+
* License: GPLv3 or later
|
10 |
+
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
+
* Requires PHP: 5.6
|
12 |
+
* Text Domain: final-tiles-grid-gallery-lite
|
13 |
+
* Domain Path: /languages
|
14 |
+
*
|
15 |
+
* Copyright 2015-2019 GreenTreeLabs diego@greentreelabs.net
|
16 |
+
* Copyright 2019 MachoThemes office@machothemes.com
|
17 |
+
* SVN commit with proof of ownership transfer: https://plugins.trac.wordpress.org/changeset/2163481/
|
18 |
+
*
|
19 |
+
* NOTE: MachoThemes took ownership of this plugin on: 09/26/2019 08:49:37 AM as can be seen from the above SVN commit.
|
20 |
+
*
|
21 |
+
* Original Plugin URI: https://greentreelabs.net/final-tiles-gallery-lite/
|
22 |
+
* Original Author URI: https://greentreelabs.net
|
23 |
+
* Original Author: https://profiles.wordpress.org/greentreealbs/
|
24 |
+
*/
|
25 |
+
|
26 |
+
|
27 |
+
define( "FTGVERSION", "3.4.16" );
|
28 |
/*
|
29 |
Changelog:
|
30 |
+
3.4.16
|
31 |
+
Gallery skips non existent images
|
32 |
+
3.4.15
|
33 |
+
Fixed filters + lightbox
|
34 |
+
3.4.14
|
35 |
+
Fixed links on mobile
|
36 |
3.4.13
|
37 |
Updated Freemius SDK
|
38 |
3.4.12
|
706 |
_e( 'Hey, I noticed you created a photo gallery with Final Tiles - that’s awesome! Would you mind give it a 5-star rating on WordPress to help us spread the word and boost our motivation for new featrues?', 'final-tiles-gallery-lite' );
|
707 |
?></p>
|
708 |
<p><strong><?php
|
709 |
+
_e( 'Cristian Raiber<br>Founder of Macho Themes', 'final-tiles-gallery' );
|
710 |
?></strong></p>
|
711 |
<p>
|
712 |
<a href="https://wordpress.org/support/plugin/final-tiles-grid-gallery-lite/reviews/?filter=5#new-post" class="ftg-dismiss-review-notice ftg-review-out" target="_blank" rel="noopener"><?php
|
794 |
|
795 |
if ( $file == $base ) {
|
796 |
$links[] = '<a href="admin.php?page=ftg-lite-gallery-admin" title="Final Tiles Grid Gallery Dashboard">Dashboard</a>';
|
797 |
+
$links[] = '<a href="https://www.machothemes.com/" title="MachoThemes website">MachoThemes</a>';
|
798 |
+
$links[] = '<a href="https://twitter.com/machothemes" title="@MachoThemes on Twitter">Twitter</a>';
|
799 |
+
$links[] = '<a href="https://www.facebook.com/machothemes" title="MachoThemes on Facebook">Facebook</a>';
|
|
|
800 |
}
|
801 |
|
802 |
return $links;
|
1720 |
$attrs
|
1721 |
);
|
1722 |
$settings = $FinalTilesGallery->getGallery();
|
1723 |
+
|
1724 |
+
if ( $settings != null ) {
|
1725 |
+
switch ( $settings->lightbox ) {
|
1726 |
+
case "magnific":
|
1727 |
+
wp_enqueue_style( 'magnific_stylesheet' );
|
1728 |
+
wp_enqueue_script( 'magnific_script' );
|
1729 |
+
break;
|
1730 |
+
case "prettyphoto":
|
1731 |
+
wp_enqueue_style( 'prettyphoto_stylesheet' );
|
1732 |
+
wp_enqueue_script( 'prettyphoto_script' );
|
1733 |
+
break;
|
1734 |
+
case "fancybox":
|
1735 |
+
wp_enqueue_style( 'fancybox_stylesheet' );
|
1736 |
+
wp_enqueue_script( 'fancybox_script' );
|
1737 |
+
break;
|
1738 |
+
case "colorbox":
|
1739 |
+
wp_enqueue_style( 'colorbox_stylesheet' );
|
1740 |
+
wp_enqueue_script( 'colorbox_script' );
|
1741 |
+
break;
|
1742 |
+
case "swipebox":
|
1743 |
+
wp_enqueue_style( 'swipebox_stylesheet' );
|
1744 |
+
wp_enqueue_script( 'swipebox_script' );
|
1745 |
+
break;
|
1746 |
+
case "lightbox2":
|
1747 |
+
wp_enqueue_style( 'lightbox2_stylesheet' );
|
1748 |
+
wp_enqueue_script( 'lightbox2_script' );
|
1749 |
+
break;
|
1750 |
+
case "image-lightbox":
|
1751 |
+
wp_enqueue_script( 'image-lightbox_script' );
|
1752 |
+
break;
|
1753 |
+
case "lightgallery":
|
1754 |
+
wp_enqueue_style( 'lightgallery_stylesheet' );
|
1755 |
+
wp_enqueue_script( 'lightgallery_script' );
|
1756 |
+
break;
|
1757 |
+
}
|
1758 |
+
switch ( $settings->mobileLightbox ) {
|
1759 |
+
default:
|
1760 |
+
case "magnific":
|
1761 |
+
wp_enqueue_style( 'magnific_stylesheet' );
|
1762 |
+
wp_enqueue_script( 'magnific_script' );
|
1763 |
+
break;
|
1764 |
+
case "prettyphoto":
|
1765 |
+
wp_enqueue_style( 'prettyphoto_stylesheet' );
|
1766 |
+
wp_enqueue_script( 'prettyphoto_script' );
|
1767 |
+
break;
|
1768 |
+
case "fancybox":
|
1769 |
+
wp_enqueue_style( 'fancybox_stylesheet' );
|
1770 |
+
wp_enqueue_script( 'fancybox_script' );
|
1771 |
+
break;
|
1772 |
+
case "colorbox":
|
1773 |
+
wp_enqueue_style( 'colorbox_stylesheet' );
|
1774 |
+
wp_enqueue_script( 'colorbox_script' );
|
1775 |
+
break;
|
1776 |
+
case "swipebox":
|
1777 |
+
wp_enqueue_style( 'swipebox_stylesheet' );
|
1778 |
+
wp_enqueue_script( 'swipebox_script' );
|
1779 |
+
break;
|
1780 |
+
case "lightbox2":
|
1781 |
+
wp_enqueue_style( 'lightbox2_stylesheet' );
|
1782 |
+
wp_enqueue_script( 'lightbox2_script' );
|
1783 |
+
break;
|
1784 |
+
case "image-lightbox":
|
1785 |
+
wp_enqueue_script( 'image-lightbox_script' );
|
1786 |
+
case "lightgallery":
|
1787 |
+
wp_enqueue_style( 'lightgallery_stylesheet' );
|
1788 |
+
wp_enqueue_script( 'lightgallery_script' );
|
1789 |
+
break;
|
1790 |
+
}
|
1791 |
}
|
1792 |
+
|
1793 |
return $FinalTilesGallery->render();
|
1794 |
} else {
|
1795 |
return "Gallery not found.";
|
admin/facebook.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<p>Support Final Tiles Grid Gallery, share on Facebook</p>
|
2 |
-
<div class="fb-like" data-href="https://www.facebook.com/
|
3 |
|
4 |
|
5 |
<div id="fb-root"></div>
|
1 |
<p>Support Final Tiles Grid Gallery, share on Facebook</p>
|
2 |
+
<div class="fb-like" data-href="https://www.facebook.com/machothemes" data-layout="standard" data-action="recommend" data-show-faces="false" data-share="true"></div>
|
3 |
|
4 |
|
5 |
<div id="fb-root"></div>
|
admin/overview.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
?>
|
8 |
|
9 |
<div class="bd wrap">
|
10 |
-
<h1 class="wp-heading-inline"><?php _e('Final Tiles Gallery') ?></h1>
|
11 |
<h2 class="ftg-subtitle"><?php _e('Galleries') ?></h2>
|
12 |
<hr class="wp-header-end">
|
13 |
<?php if(count($galleries) == 0) : ?>
|
7 |
?>
|
8 |
|
9 |
<div class="bd wrap">
|
10 |
+
<h1 class="wp-heading-inline"><?php _e('Final Tiles Gallery') ?> <small><?php echo FTGVERSION . " " . FTG_PLAN ?></small></h1>
|
11 |
<h2 class="ftg-subtitle"><?php _e('Galleries') ?></h2>
|
12 |
<hr class="wp-header-end">
|
13 |
<?php if(count($galleries) == 0) : ?>
|
admin/scripts/editor-plugin.js
CHANGED
@@ -21,9 +21,9 @@
|
|
21 |
{
|
22 |
return {
|
23 |
longname : 'Final Tiles Gallery',
|
24 |
-
author : '
|
25 |
-
authorurl : '
|
26 |
-
infourl : '
|
27 |
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
28 |
};
|
29 |
}
|
21 |
{
|
22 |
return {
|
23 |
longname : 'Final Tiles Gallery',
|
24 |
+
author : 'Macho Themes',
|
25 |
+
authorurl : 'https://www.machothemes.com/',
|
26 |
+
infourl : 'https://www.machothemes.com/',
|
27 |
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
28 |
};
|
29 |
}
|
languages/final-tiles-grid-gallery-lite-it_IT.po
CHANGED
@@ -32,8 +32,8 @@ msgstr ""
|
|
32 |
"aiutarci a migliorare questo plugin motivandoci per nuove funzionalità?"
|
33 |
|
34 |
#: FinalTilesGalleryLite.php:723
|
35 |
-
msgid "
|
36 |
-
msgstr "
|
37 |
|
38 |
#: FinalTilesGalleryLite.php:725
|
39 |
msgid "Ok, you deserve it"
|
32 |
"aiutarci a migliorare questo plugin motivandoci per nuove funzionalità?"
|
33 |
|
34 |
#: FinalTilesGalleryLite.php:723
|
35 |
+
msgid "Cristian Raiber<br>Founder of MachoThemes"
|
36 |
+
msgstr "Cristian Raiber<br>Fondatore di MachoThemes"
|
37 |
|
38 |
#: FinalTilesGalleryLite.php:725
|
39 |
msgid "Ok, you deserve it"
|
lib/db-class.php
CHANGED
@@ -111,6 +111,8 @@ if(! class_exists('FinalTilesDB'))
|
|
111 |
{
|
112 |
return get_object_vars(json_decode($gallery->configuration));
|
113 |
}
|
|
|
|
|
114 |
|
115 |
$data = json_decode($gallery->configuration);
|
116 |
if($data->captionBehavior == "hidden")
|
111 |
{
|
112 |
return get_object_vars(json_decode($gallery->configuration));
|
113 |
}
|
114 |
+
if($gallery == null)
|
115 |
+
return null;
|
116 |
|
117 |
$data = json_decode($gallery->configuration);
|
118 |
if($data->captionBehavior == "hidden")
|
lib/gallery-class.php
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
if ( !class_exists( "FinalTilesGallery" ) ) {
|
4 |
class FinalTilesGallery
|
5 |
{
|
|
|
6 |
private $defaultValues ;
|
7 |
public function __construct(
|
8 |
$galleryId,
|
@@ -12,11 +13,14 @@ if ( !class_exists( "FinalTilesGallery" ) ) {
|
|
12 |
)
|
13 |
{
|
14 |
$this->id = $galleryId;
|
15 |
-
$this->defaultValues = $defaultValues;
|
16 |
-
$this->gallery = null;
|
17 |
$this->db = $db;
|
18 |
$this->images = array();
|
19 |
-
$this->getGallery();
|
|
|
|
|
|
|
|
|
20 |
foreach ( $attrs as $k => $v ) {
|
21 |
$prop = FinalTilesGalleryUtils::shortcodeToFieldName( $k );
|
22 |
if ( isset( $this->gallery->{$prop} ) ) {
|
@@ -301,6 +305,9 @@ if ( !class_exists( "FinalTilesGallery" ) ) {
|
|
301 |
|
302 |
public function render()
|
303 |
{
|
|
|
|
|
|
|
304 |
$rid = $this->id;
|
305 |
$gallery = $this->gallery;
|
306 |
//shuffle enabled?
|
@@ -525,7 +532,7 @@ if ( !class_exists( "FinalTilesGallery" ) ) {
|
|
525 |
case 'magnific':
|
526 |
$html .= "\t\tjQuery('#ftg-{$this->id}{$rid}').magnificPopup({type:'image', zoom: {\n";
|
527 |
$html .= "\t\t\tenabled: true, duration: 300, easing: 'ease-in-out' },\n";
|
528 |
-
$html .= "\t\t\timage: { titleSrc: 'data-title' }, gallery: { enabled: " . (( $gallery->disableLightboxGroups == 'T' ? "false" : "true" )) . " }, delegate: '.tile:not(.ftg-hidden) .ftg-lightbox.ftg-current',\n";
|
529 |
$html .= stripslashes( $lightbox_options );
|
530 |
$html .= "\t\t});\n";
|
531 |
$html .= "\t\tjQuery('#ftg-{$this->id}{$rid} .ftg-lightbox-iframe').magnificPopup({type:'iframe',";
|
@@ -623,7 +630,7 @@ if ( !class_exists( "FinalTilesGallery" ) ) {
|
|
623 |
$groups["ftg-{$this->id}{$rid}"] = 1;
|
624 |
}
|
625 |
|
626 |
-
if ( wp_is_mobile() && $gallery->mobileLightbox == "lightbox2" ) {
|
627 |
$rel = "lightbox";
|
628 |
}
|
629 |
$data_keep_aspect_ratio = "";
|
@@ -830,6 +837,9 @@ if ( !class_exists( "FinalTilesGallery" ) ) {
|
|
830 |
|
831 |
if ( $this->gallery == null ) {
|
832 |
$this->gallery = $this->db->getGalleryById( $this->id );
|
|
|
|
|
|
|
833 |
foreach ( $this->defaultValues as $k => $v ) {
|
834 |
if ( !isset( $this->gallery->{$k} ) && isset( $v ) ) {
|
835 |
$this->gallery->{$k} = $v;
|
3 |
if ( !class_exists( "FinalTilesGallery" ) ) {
|
4 |
class FinalTilesGallery
|
5 |
{
|
6 |
+
public $gallery ;
|
7 |
private $defaultValues ;
|
8 |
public function __construct(
|
9 |
$galleryId,
|
13 |
)
|
14 |
{
|
15 |
$this->id = $galleryId;
|
16 |
+
$this->defaultValues = $defaultValues;
|
|
|
17 |
$this->db = $db;
|
18 |
$this->images = array();
|
19 |
+
$this->gallery = $this->getGallery();
|
20 |
+
|
21 |
+
if ( !$this->gallery ) {
|
22 |
+
return;
|
23 |
+
}
|
24 |
foreach ( $attrs as $k => $v ) {
|
25 |
$prop = FinalTilesGalleryUtils::shortcodeToFieldName( $k );
|
26 |
if ( isset( $this->gallery->{$prop} ) ) {
|
305 |
|
306 |
public function render()
|
307 |
{
|
308 |
+
if ( !$this->gallery ) {
|
309 |
+
return "<pre style='font-size:10px'>Final Tiles Gallery id=" . $this->id . " does not exist</pre>";
|
310 |
+
}
|
311 |
$rid = $this->id;
|
312 |
$gallery = $this->gallery;
|
313 |
//shuffle enabled?
|
532 |
case 'magnific':
|
533 |
$html .= "\t\tjQuery('#ftg-{$this->id}{$rid}').magnificPopup({type:'image', zoom: {\n";
|
534 |
$html .= "\t\t\tenabled: true, duration: 300, easing: 'ease-in-out' },\n";
|
535 |
+
$html .= "\t\t\timage: { titleSrc: 'data-title' }, gallery: { enabled: " . (( $gallery->disableLightboxGroups == 'T' ? "false" : "true" )) . " }, delegate: '.tile:not(.ftg-filter-hidden-tile) .ftg-lightbox.ftg-current',\n";
|
536 |
$html .= stripslashes( $lightbox_options );
|
537 |
$html .= "\t\t});\n";
|
538 |
$html .= "\t\tjQuery('#ftg-{$this->id}{$rid} .ftg-lightbox-iframe').magnificPopup({type:'iframe',";
|
630 |
$groups["ftg-{$this->id}{$rid}"] = 1;
|
631 |
}
|
632 |
|
633 |
+
if ( wp_is_mobile() && $gallery->mobileLightbox == "lightbox2" && empty($image->link) ) {
|
634 |
$rel = "lightbox";
|
635 |
}
|
636 |
$data_keep_aspect_ratio = "";
|
837 |
|
838 |
if ( $this->gallery == null ) {
|
839 |
$this->gallery = $this->db->getGalleryById( $this->id );
|
840 |
+
if ( $this->gallery == null ) {
|
841 |
+
return false;
|
842 |
+
}
|
843 |
foreach ( $this->defaultValues as $k => $v ) {
|
844 |
if ( !isset( $this->gallery->{$k} ) && isset( $v ) ) {
|
845 |
$this->gallery->{$k} = $v;
|
lib/languages/final-tiles-gallery.pot
CHANGED
@@ -302,7 +302,7 @@ msgid "(time zone permitting), thanks!"
|
|
302 |
msgstr ""
|
303 |
|
304 |
#: admin/support.php:29
|
305 |
-
msgid "Go to
|
306 |
msgstr ""
|
307 |
|
308 |
#: admin/tutorial.php:7
|
302 |
msgstr ""
|
303 |
|
304 |
#: admin/support.php:29
|
305 |
+
msgid "Go to MachoThemes support platform"
|
306 |
msgstr ""
|
307 |
|
308 |
#: admin/tutorial.php:7
|
readme.txt
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
=== Image Photo Gallery Final Tiles Grid ===
|
2 |
-
Contributors:
|
3 |
-
Donate link: http://amzn.eu/5SP6qpj
|
4 |
Tags: gallery, grid gallery, best gallery plugin, free gallery, gallery plugin, gallery grid plugin, masonry, photo gallery, image gallery, social gallery, portfolio gallery, lightbox, justified gallery
|
5 |
Requires at least: 3.8.2
|
6 |
Tested up to: 5.2
|
@@ -57,8 +56,6 @@ Final Tiles Gallery Lite is a very complete plugin but if you want the best expe
|
|
57 |
* WooCommerce support
|
58 |
* recent posts / custom posts galleries
|
59 |
|
60 |
-
If you love the Lite version and it’s enough for your needs but you want to say “thanks!” you can always buy a [present](http://amzn.eu/5SP6qpj) ;)
|
61 |
-
|
62 |
If you instead want to upgrade and unlock all the cool features then you can [buy a license](https://www.final-tiles-gallery.com/wordpress/pricing).
|
63 |
|
64 |
The “Final” layout can’t ensure you have a justified edge at the bottom of the gallery. If you have this requirement then you can use the “Masonry” layout and use images with same height, that way you can make a justified gallery.
|
@@ -122,7 +119,7 @@ Currently galleries made with Envira, FooGallery, Instagram, NextGen, JetPack, M
|
|
122 |
= How can I say thanks? =
|
123 |
|
124 |
* Just recommend our plugin to your friends! or
|
125 |
-
* Like and share our [Facebook page](https://www.facebook.com/
|
126 |
* Or buy me a [present](http://amzn.eu/5SP6qpj)
|
127 |
|
128 |
|
@@ -137,6 +134,16 @@ Currently galleries made with Envira, FooGallery, Instagram, NextGen, JetPack, M
|
|
137 |
|
138 |
== Changelog ==
|
139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
= 3.4.13 =
|
141 |
* [Fix] Updated Freemius SDK
|
142 |
|
@@ -350,6 +357,10 @@ Currently galleries made with Envira, FooGallery, Instagram, NextGen, JetPack, M
|
|
350 |
|
351 |
== Upgrade Notice ==
|
352 |
|
|
|
|
|
|
|
|
|
353 |
= 3.4.13 =
|
354 |
* [Fix] Updated Freemius SDK
|
355 |
|
@@ -443,4 +454,4 @@ Currently galleries made with Envira, FooGallery, Instagram, NextGen, JetPack, M
|
|
443 |
* This version fixes a critical bug that prevented to activate the plugin.
|
444 |
|
445 |
= 1.0 =
|
446 |
-
* This is the launch version. No changes yet.
|
1 |
=== Image Photo Gallery Final Tiles Grid ===
|
2 |
+
Contributors: machothemes, silkalns
|
|
|
3 |
Tags: gallery, grid gallery, best gallery plugin, free gallery, gallery plugin, gallery grid plugin, masonry, photo gallery, image gallery, social gallery, portfolio gallery, lightbox, justified gallery
|
4 |
Requires at least: 3.8.2
|
5 |
Tested up to: 5.2
|
56 |
* WooCommerce support
|
57 |
* recent posts / custom posts galleries
|
58 |
|
|
|
|
|
59 |
If you instead want to upgrade and unlock all the cool features then you can [buy a license](https://www.final-tiles-gallery.com/wordpress/pricing).
|
60 |
|
61 |
The “Final” layout can’t ensure you have a justified edge at the bottom of the gallery. If you have this requirement then you can use the “Masonry” layout and use images with same height, that way you can make a justified gallery.
|
119 |
= How can I say thanks? =
|
120 |
|
121 |
* Just recommend our plugin to your friends! or
|
122 |
+
* Like and share our [Facebook page](https://www.facebook.com/machothemes "Facebook fan page")
|
123 |
* Or buy me a [present](http://amzn.eu/5SP6qpj)
|
124 |
|
125 |
|
134 |
|
135 |
== Changelog ==
|
136 |
|
137 |
+
= 3.4.16 =
|
138 |
+
* [Enhancement] Gallery skips non existent images
|
139 |
+
* [Enhancement] Gallery shows proper message when id doesn't exist
|
140 |
+
|
141 |
+
= 3.4.15 =
|
142 |
+
* [Fix] Fixed filters + lightbox (Premium only)
|
143 |
+
|
144 |
+
= 3.4.14 =
|
145 |
+
* [Fix] Fixed mobile links
|
146 |
+
|
147 |
= 3.4.13 =
|
148 |
* [Fix] Updated Freemius SDK
|
149 |
|
357 |
|
358 |
== Upgrade Notice ==
|
359 |
|
360 |
+
= 3.4.16 =
|
361 |
+
* [Enhancement] Gallery skips non existent images
|
362 |
+
* [Enhancement] Gallery shows proper message when id doesn't exist
|
363 |
+
|
364 |
= 3.4.13 =
|
365 |
* [Fix] Updated Freemius SDK
|
366 |
|
454 |
* This version fixes a critical bug that prevented to activate the plugin.
|
455 |
|
456 |
= 1.0 =
|
457 |
+
* This is the launch version. No changes yet.
|
scripts/gutenberg_block.js
CHANGED
@@ -28,7 +28,7 @@
|
|
28 |
},
|
29 |
layout: {
|
30 |
type: 'string',
|
31 |
-
default: '
|
32 |
},
|
33 |
shortcodeAtts: {
|
34 |
type: 'string',
|
@@ -69,6 +69,7 @@
|
|
69 |
label: __( 'Select gallery layout', 'FinalTiles-gallery' ),
|
70 |
value: layout,
|
71 |
options: [
|
|
|
72 |
{ label: __('Masonry', 'FinalTiles-gallery'), value: 'columns' },
|
73 |
{ label: __('Final Tiles', 'FinalTiles-gallery'), value: 'final' }
|
74 |
],
|
@@ -126,7 +127,10 @@
|
|
126 |
|
127 |
var galleryShortcode = '';
|
128 |
if ( 'undefined' !== (typeof galleryId) && galleryId > 0 ) {
|
129 |
-
|
|
|
|
|
|
|
130 |
}
|
131 |
|
132 |
return el( 'div', {
|
28 |
},
|
29 |
layout: {
|
30 |
type: 'string',
|
31 |
+
default: ''
|
32 |
},
|
33 |
shortcodeAtts: {
|
34 |
type: 'string',
|
69 |
label: __( 'Select gallery layout', 'FinalTiles-gallery' ),
|
70 |
value: layout,
|
71 |
options: [
|
72 |
+
{ label: __('Default', 'FinalTiles-gallery'), value: '' },
|
73 |
{ label: __('Masonry', 'FinalTiles-gallery'), value: 'columns' },
|
74 |
{ label: __('Final Tiles', 'FinalTiles-gallery'), value: 'final' }
|
75 |
],
|
127 |
|
128 |
var galleryShortcode = '';
|
129 |
if ( 'undefined' !== (typeof galleryId) && galleryId > 0 ) {
|
130 |
+
var layoutCode = "";
|
131 |
+
if(layout != "")
|
132 |
+
layoutCode = ' layout="' + layout + '" ';
|
133 |
+
galleryShortcode = '[FinalTilesGallery id="' + galleryId +'" ' + layoutCode + shortcodeAtts +']';
|
134 |
}
|
135 |
|
136 |
return el( 'div', {
|
scripts/jquery.finalTilesGallery.js
CHANGED
@@ -498,8 +498,8 @@ var qualifyURL = function (url) {
|
|
498 |
instance.nextTile(addImage);
|
499 |
}
|
500 |
img.onerror = function() {
|
501 |
-
|
502 |
-
instance.nextTile(
|
503 |
}
|
504 |
img.src = $item.data("ftg-source");
|
505 |
$tile.data("ftg-type", "image");
|
498 |
instance.nextTile(addImage);
|
499 |
}
|
500 |
img.onerror = function() {
|
501 |
+
console.error("Final Tiles Gallery: Error loading image: " + img.src);
|
502 |
+
instance.nextTile(false);
|
503 |
}
|
504 |
img.src = $item.data("ftg-source");
|
505 |
$tile.data("ftg-type", "image");
|