Version Description
- [Fix] Fixed bug when using masonry layout
Download this release
Release Info
Developer | GreenTreeLabs |
Plugin | Image Photo Gallery Final Tiles Grid |
Version | 3.0.5 |
Comparing to | |
See all releases |
Code changes from version 3.0.3 to 3.0.5
- FinalTilesGalleryLite.php +2 -4
- admin/add-gallery.php +1 -12
- admin/adv.php +0 -24
- admin/overview.php +1 -11
- lib/db-class.php +1 -1
- readme.txt +21 -3
- scripts/script.js +1 -1
FinalTilesGalleryLite.php
CHANGED
@@ -4,10 +4,10 @@ Plugin Name: Final Tiles Grid Gallery Lite
|
|
4 |
Plugin URI: http://codecanyon.net/item/final-tiles-gallery-for-wordpress/5189351?ref=GreenTreeLabs
|
5 |
Description: Wordpress Plugin for creating responsive image galleries. By: Green Tree Labs
|
6 |
Author: Green Tree Labs
|
7 |
-
Version: 3.0.
|
8 |
Author URI: http://codecanyon.net/user/GreenTreeLabs
|
9 |
*/
|
10 |
-
define("FTGLITEVERSION", "3.0.
|
11 |
// Create a helper function for easy SDK access.
|
12 |
function ftggl_fs() {
|
13 |
global $ftggl_fs;
|
@@ -661,7 +661,6 @@ if (!class_exists("FinalTiles_GalleryLite"))
|
|
661 |
$overview = add_menu_page('Final Tiles Gallery', 'Final Tiles Gallery', 'edit_posts', 'ftg-lite-gallery-admin', array($this, 'add_overview'), plugins_url() . '/final-tiles-grid-gallery-lite/admin/icon.png');
|
662 |
$add_gallery = add_submenu_page('ftg-lite-gallery-admin', __('FinalTiles Gallery >> Add Gallery', 'FinalTiles-gallery'), __('Add Gallery', 'FinalTiles-gallery'), 'edit_posts', 'ftg-lite-add-gallery', array($this, 'add_gallery'));
|
663 |
$tutorial = add_submenu_page('ftg-lite-gallery-admin', __('FinalTiles Gallery >> Tutorial', 'FinalTiles-gallery'), __('Tutorial', 'FinalTiles-gallery'), 'edit_posts', 'ftg-lite-tutorial', array($this, 'tutorial'));
|
664 |
-
$plugins = add_submenu_page('ftg-lite-gallery-admin', __('FinalTiles Gallery >> Other galleries','FinalTiles-gallery'), __('Other galleries','FinalTiles-gallery'), 'edit_posts', 'ftg-lite-gallery-others', array($this, 'other_galleries'));
|
665 |
$support = add_submenu_page('ftg-lite-gallery-admin', __('FinalTiles Gallery >> Support', 'FinalTiles-gallery'), __('Support', 'FinalTiles-gallery'), 'edit_posts', 'ftg-lite-support', array($this, 'support'));
|
666 |
$upgrade = add_submenu_page('ftg-lite-gallery-admin', __('FinalTiles Gallery >> Upgrade','FinalTiles-gallery'), __('<span style="color:#7cc048">Upgrade</span>','FinalTiles-gallery'), 'edit_posts', 'ftg-lite-gallery-upgrade', array($this, 'upgrade'));
|
667 |
|
@@ -669,7 +668,6 @@ if (!class_exists("FinalTiles_GalleryLite"))
|
|
669 |
add_action('load-' . $overview, array($this, 'gallery_admin_init'));
|
670 |
add_action('load-' . $add_gallery, array($this, 'gallery_admin_init'));
|
671 |
add_action('load-' . $support, array($this, 'gallery_admin_init'));
|
672 |
-
add_action('load-'.$plugins, array($this, 'gallery_admin_init'));
|
673 |
add_action('load-'.$upgrade, array($this, 'gallery_admin_init'));
|
674 |
|
675 |
add_action( 'admin_bar_menu', array($this, 'gallery_admin_bar'), 100);
|
4 |
Plugin URI: http://codecanyon.net/item/final-tiles-gallery-for-wordpress/5189351?ref=GreenTreeLabs
|
5 |
Description: Wordpress Plugin for creating responsive image galleries. By: Green Tree Labs
|
6 |
Author: Green Tree Labs
|
7 |
+
Version: 3.0.5
|
8 |
Author URI: http://codecanyon.net/user/GreenTreeLabs
|
9 |
*/
|
10 |
+
define("FTGLITEVERSION", "3.0.5");
|
11 |
// Create a helper function for easy SDK access.
|
12 |
function ftggl_fs() {
|
13 |
global $ftggl_fs;
|
661 |
$overview = add_menu_page('Final Tiles Gallery', 'Final Tiles Gallery', 'edit_posts', 'ftg-lite-gallery-admin', array($this, 'add_overview'), plugins_url() . '/final-tiles-grid-gallery-lite/admin/icon.png');
|
662 |
$add_gallery = add_submenu_page('ftg-lite-gallery-admin', __('FinalTiles Gallery >> Add Gallery', 'FinalTiles-gallery'), __('Add Gallery', 'FinalTiles-gallery'), 'edit_posts', 'ftg-lite-add-gallery', array($this, 'add_gallery'));
|
663 |
$tutorial = add_submenu_page('ftg-lite-gallery-admin', __('FinalTiles Gallery >> Tutorial', 'FinalTiles-gallery'), __('Tutorial', 'FinalTiles-gallery'), 'edit_posts', 'ftg-lite-tutorial', array($this, 'tutorial'));
|
|
|
664 |
$support = add_submenu_page('ftg-lite-gallery-admin', __('FinalTiles Gallery >> Support', 'FinalTiles-gallery'), __('Support', 'FinalTiles-gallery'), 'edit_posts', 'ftg-lite-support', array($this, 'support'));
|
665 |
$upgrade = add_submenu_page('ftg-lite-gallery-admin', __('FinalTiles Gallery >> Upgrade','FinalTiles-gallery'), __('<span style="color:#7cc048">Upgrade</span>','FinalTiles-gallery'), 'edit_posts', 'ftg-lite-gallery-upgrade', array($this, 'upgrade'));
|
666 |
|
668 |
add_action('load-' . $overview, array($this, 'gallery_admin_init'));
|
669 |
add_action('load-' . $add_gallery, array($this, 'gallery_admin_init'));
|
670 |
add_action('load-' . $support, array($this, 'gallery_admin_init'));
|
|
|
671 |
add_action('load-'.$upgrade, array($this, 'gallery_admin_init'));
|
672 |
|
673 |
add_action( 'admin_bar_menu', array($this, 'gallery_admin_bar'), 100);
|
admin/add-gallery.php
CHANGED
@@ -87,18 +87,7 @@
|
|
87 |
<p><?php _e('No tags found','final-tiles-gallery')?></p>
|
88 |
<?php endif ?>
|
89 |
</div>
|
90 |
-
</fieldset>
|
91 |
-
<fieldset data-step="3" data-branch="woocommerce">
|
92 |
-
<div class="field">
|
93 |
-
<h5><?php _e('Categories:','final-tiles-gallery')?></h5>
|
94 |
-
<?php foreach($woo_categories as $c) : ?>
|
95 |
-
<p>
|
96 |
-
<input type="checkbox" name="_woo_categories" value="<?php _e($c->cat_ID) ?>" id="wooc<?php _e($c->cat_ID) ?>">
|
97 |
-
<label for="wooc<?php _e($c->cat_ID) ?>"><?php _e($c->name) ?></label>
|
98 |
-
</p>
|
99 |
-
<?php endforeach ?>
|
100 |
-
</div>
|
101 |
-
</fieldset>
|
102 |
<fieldset data-step="4" data-save="true">
|
103 |
<div class="field">
|
104 |
<h5><?php _e('Choose the layout','final-tiles-gallery')?></h5>
|
87 |
<p><?php _e('No tags found','final-tiles-gallery')?></p>
|
88 |
<?php endif ?>
|
89 |
</div>
|
90 |
+
</fieldset>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
<fieldset data-step="4" data-save="true">
|
92 |
<div class="field">
|
93 |
<h5><?php _e('Choose the layout','final-tiles-gallery')?></h5>
|
admin/adv.php
CHANGED
@@ -1,24 +0,0 @@
|
|
1 |
-
<?php if (!class_exists("AviaryWP") && empty($_COOKIE["__gtl_av"]) ) : ?>
|
2 |
-
<div class="updated fade" id="aviary-adv">
|
3 |
-
<p>
|
4 |
-
Hey, do you already know
|
5 |
-
<strong>
|
6 |
-
<a target="_blank" href="http://codecanyon.net/item/aviary-for-wordpress/5224791">Aviary Advanced Image Editor for WordPress</a></strong>?
|
7 |
-
It's the best image editing tool for WordPress, you can resize, crop, adjust colors, add Instagram like
|
8 |
-
effects and much more!
|
9 |
-
<br />
|
10 |
-
<br />
|
11 |
-
<strong><a target="_blank" href="http://codecanyon.net/item/aviary-for-wordpress/5224791">Go to Aviary for WordPress</a></strong>
|
12 |
-
or <a href="#" class="close">Dismiss this notice</a>
|
13 |
-
</p>
|
14 |
-
</div>
|
15 |
-
<script>
|
16 |
-
(function(e){if(typeof define==="function"&&define.amd){define(["jquery"],e)}else{e(jQuery)}})(function(e){function n(e){return e}function r(e){return decodeURIComponent(e.replace(t," "))}function i(e){if(e.indexOf('"')===0){e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")}try{return s.json?JSON.parse(e):e}catch(t){}}var t=/\+/g;var s=e.cookie=function(t,o,u){if(o!==undefined){u=e.extend({},s.defaults,u);if(typeof u.expires==="number"){var a=u.expires,f=u.expires=new Date;f.setDate(f.getDate()+a)}o=s.json?JSON.stringify(o):String(o);return document.cookie=[s.raw?t:encodeURIComponent(t),"=",s.raw?o:encodeURIComponent(o),u.expires?"; expires="+u.expires.toUTCString():"",u.path?"; path="+u.path:"",u.domain?"; domain="+u.domain:"",u.secure?"; secure":""].join("")}var l=s.raw?n:r;var c=document.cookie.split("; ");var h=t?undefined:{};for(var p=0,d=c.length;p<d;p++){var v=c[p].split("=");var m=l(v.shift());var g=l(v.join("="));if(t&&t===m){h=i(g);break}if(!t){h[m]=i(g)}}return h};s.defaults={};e.removeCookie=function(t,n){if(e.cookie(t)!==undefined){e.cookie(t,"",e.extend({},n,{expires:-1}));return true}return false}});
|
17 |
-
jQuery("#aviary-adv .close").click(function (e) {
|
18 |
-
e.preventDefault();
|
19 |
-
jQuery("#aviary-adv").fadeOut(function () {
|
20 |
-
jQuery.cookie("__gtl_av", "1", { expires: 365 });
|
21 |
-
});
|
22 |
-
});
|
23 |
-
</script>
|
24 |
-
<?php endif ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/overview.php
CHANGED
@@ -11,17 +11,7 @@
|
|
11 |
$galleries = $this->FinalTilesdb->getGalleries();
|
12 |
?>
|
13 |
|
14 |
-
<div class="bd">
|
15 |
-
<?php if(! isset($_COOKIE['gtl'])) : ?>
|
16 |
-
<div class="row">
|
17 |
-
<div id="adv" class="col s12">
|
18 |
-
<a href="http://modula.greentreelabs.net/?utm_source=ftglite&utm_medium=banner&utm_campaign=Final%20Tiles%20Gallery%20Lite" target="_blank">
|
19 |
-
<img src="<?php print plugins_url('/images/modula-strip.jpg',__file__) ?>" alt="Modula Grid Gallery">
|
20 |
-
</a>
|
21 |
-
<a href="#close" class="close">Dismiss</a>
|
22 |
-
</div>
|
23 |
-
</div>
|
24 |
-
<?php endif ?>
|
25 |
<?php if(count($galleries) == 0) : ?>
|
26 |
<div class="row ">
|
27 |
<div class="col s12">
|
11 |
$galleries = $this->FinalTilesdb->getGalleries();
|
12 |
?>
|
13 |
|
14 |
+
<div class="bd">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
<?php if(count($galleries) == 0) : ?>
|
16 |
<div class="row ">
|
17 |
<div class="col s12">
|
lib/db-class.php
CHANGED
@@ -207,7 +207,7 @@ if (!class_exists("FinalTilesLiteDB")) {
|
|
207 |
return true;
|
208 |
}
|
209 |
|
210 |
-
public function getImagesByGalleryId($gid, $skip, $size)
|
211 |
{
|
212 |
global $wpdb;
|
213 |
|
207 |
return true;
|
208 |
}
|
209 |
|
210 |
+
public function getImagesByGalleryId($gid, $skip=0, $size=0)
|
211 |
{
|
212 |
global $wpdb;
|
213 |
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Image Photo Gallery Final Tiles Grid ===
|
2 |
Contributors: GreenTreeLabs
|
3 |
Donate link: http://greentreelabs.net/blog/donate/
|
4 |
-
Tags: gallery, grid gallery,
|
5 |
Requires at least: 3.8.0
|
6 |
-
Tested up to: 4.
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -40,6 +40,7 @@ This gallery plugin is perfect for you if you need:
|
|
40 |
* sort images manually or randomly
|
41 |
* 1 lightbox + support for [EverlightBox](https://wordpress.org/plugins/search/everlightbox/)
|
42 |
* social sharing
|
|
|
43 |
|
44 |
= PRO version features =
|
45 |
|
@@ -58,6 +59,7 @@ If you love the Lite version and it’s enough for your needs but you want to sa
|
|
58 |
|
59 |
If you instead want to upgrade and unlock all the cool features then you can [buy a license](http://1.envato.market/c/288541/275988/4415?u=http%3A%2F%2F1.envato.market%2Fc%2F288541%2F275988%2F4415%3Fu%3Dhttp%253A%252F%252Fcodecanyon.net%252Fitem%252Ffinal-tiles-grid-gallery-for-wordpress%252F5189351).
|
60 |
|
|
|
61 |
|
62 |
== Installation ==
|
63 |
|
@@ -101,12 +103,16 @@ Have a look at this [video tutorial](https://www.youtube.com/watch?v=RNT4JGjtyrs
|
|
101 |
|
102 |
= Why does some image look blurry ? =
|
103 |
|
104 |
-
Under some circumstances the images have to be
|
105 |
|
106 |
= I want to use another lightbox instead of the provided one =
|
107 |
|
108 |
The PRO license bundles 7 different lightboxes. However you can use any other lightbox you want also with the Lite license. If you have installed a lightbox plugin then you just need to select "Direct link to image" in the "Lightbox" settings.
|
109 |
|
|
|
|
|
|
|
|
|
110 |
= How can I get support? =
|
111 |
|
112 |
* Get priority support with a PRO license: http://www.final-tiles-gallery.com/wordpress/pro.html
|
@@ -129,6 +135,12 @@ The PRO license bundles 7 different lightboxes. However you can use any other li
|
|
129 |
|
130 |
== Changelog ==
|
131 |
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
= 3.0.3 =
|
133 |
* [Enhancement] Backend UI tweaks
|
134 |
* [Add] Functionalities for usage analysis
|
@@ -203,6 +215,12 @@ The PRO license bundles 7 different lightboxes. However you can use any other li
|
|
203 |
|
204 |
== Upgrade Notice ==
|
205 |
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
= 3.0.3 =
|
207 |
* [Enhancement] Backend UI tweaks
|
208 |
* [Add] Functionalities for usage analysis
|
1 |
=== Image Photo Gallery Final Tiles Grid ===
|
2 |
Contributors: GreenTreeLabs
|
3 |
Donate link: http://greentreelabs.net/blog/donate/
|
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.0
|
6 |
+
Tested up to: 4.8
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
40 |
* sort images manually or randomly
|
41 |
* 1 lightbox + support for [EverlightBox](https://wordpress.org/plugins/search/everlightbox/)
|
42 |
* social sharing
|
43 |
+
* video gallery
|
44 |
|
45 |
= PRO version features =
|
46 |
|
59 |
|
60 |
If you instead want to upgrade and unlock all the cool features then you can [buy a license](http://1.envato.market/c/288541/275988/4415?u=http%3A%2F%2F1.envato.market%2Fc%2F288541%2F275988%2F4415%3Fu%3Dhttp%253A%252F%252Fcodecanyon.net%252Fitem%252Ffinal-tiles-grid-gallery-for-wordpress%252F5189351).
|
61 |
|
62 |
+
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.
|
63 |
|
64 |
== Installation ==
|
65 |
|
103 |
|
104 |
= Why does some image look blurry ? =
|
105 |
|
106 |
+
Under some circumstances the images have to be enlarged a bit to avoid gaps. To avoid a blurry effect you can decrease the "Image size factor" setting.
|
107 |
|
108 |
= I want to use another lightbox instead of the provided one =
|
109 |
|
110 |
The PRO license bundles 7 different lightboxes. However you can use any other lightbox you want also with the Lite license. If you have installed a lightbox plugin then you just need to select "Direct link to image" in the "Lightbox" settings.
|
111 |
|
112 |
+
= Can I import galleries from other plugins? =
|
113 |
+
|
114 |
+
Currently galleries made with Envira, FooGallery, Instagram, NextGen, JetPack, Modula, etc cannot be imported.
|
115 |
+
|
116 |
= How can I get support? =
|
117 |
|
118 |
* Get priority support with a PRO license: http://www.final-tiles-gallery.com/wordpress/pro.html
|
135 |
|
136 |
== Changelog ==
|
137 |
|
138 |
+
= 3.0.5 =
|
139 |
+
* [Fix] Fixed bug when using masonry layout
|
140 |
+
|
141 |
+
= 3.0.4 =
|
142 |
+
* [Fix] Fixed bug in FinalTilesLiteDB::getImagesByGalleryId()
|
143 |
+
|
144 |
= 3.0.3 =
|
145 |
* [Enhancement] Backend UI tweaks
|
146 |
* [Add] Functionalities for usage analysis
|
215 |
|
216 |
== Upgrade Notice ==
|
217 |
|
218 |
+
= 3.0.5 =
|
219 |
+
* [Fix] Fixed bug when using masonry layout
|
220 |
+
|
221 |
+
= 3.0.4 =
|
222 |
+
* [Fix] Fixed bug in FinalTilesLiteDB::getImagesByGalleryId()
|
223 |
+
|
224 |
= 3.0.3 =
|
225 |
* [Enhancement] Backend UI tweaks
|
226 |
* [Add] Functionalities for usage analysis
|
scripts/script.js
CHANGED
@@ -116,7 +116,7 @@ var qualifyURL = function (url) {
|
|
116 |
this.currentColumnsCount = this.settings.columns[i][1];
|
117 |
}
|
118 |
|
119 |
-
this._columnSize =
|
120 |
|
121 |
this.print(this.currentWidth + " | " + this._columnSize + " | " + this.currentColumnsCount);
|
122 |
},
|
116 |
this.currentColumnsCount = this.settings.columns[i][1];
|
117 |
}
|
118 |
|
119 |
+
this._columnSize = (this.currentWidth - (this.settings.margin * (this.currentColumnsCount - 1))) / this.currentColumnsCount;
|
120 |
|
121 |
this.print(this.currentWidth + " | " + this._columnSize + " | " + this.currentColumnsCount);
|
122 |
},
|