Image Photo Gallery Final Tiles Grid - Version 3.3.19

Version Description

  • [Fix] Fixed ignored caption font size
Download this release

Release Info

Developer GreenTreeLabs
Plugin Icon 128x128 Image Photo Gallery Final Tiles Grid
Version 3.3.19
Comparing to
See all releases

Code changes from version 3.3.18 to 3.3.19

Files changed (3) hide show
  1. FinalTilesGalleryLite.php +238 -236
  2. lib/gallery-class.php +5 -5
  3. readme.txt +6 -0
FinalTilesGalleryLite.php CHANGED
@@ -1,242 +1,244 @@
1
  <?php
2
 
3
- /**
4
- * Plugin Name: Final Tiles Grid Gallery - Image Gallery
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.18
9
- * Author URI: https://www.greentreelabs.net
10
- *
11
- * @fs_premium_only /lightbox-pro/
12
- *
13
  */
14
- define( 'FTGVERSION', '3.3.18' );
15
- /*
16
- Changelog:
17
- 3.3.18
18
- Fixed issue with iconv function
19
- 3.3.17
20
- Fixed issues in admin panel
21
- 3.3.16
22
- Fixed plugin name
23
- 3.3.15
24
- Fixed minor issue
25
- 3.3.14
26
- Fixed bug
27
- 3.3.13
28
- Fixed menu slug
29
- 3.3.12
30
- Lite version code merged with premium
31
- 3.3.10
32
- Bug fix (wrong behaviour on mobile with columns layout)
33
- 3.3.9
34
- Extended support for PHP versions
35
- 3.3.8
36
- Bug fix (Woocommerce categories were ignored)
37
- 3.3.7
38
- Bug fix (Youtube videos not showing in lightboxes)
39
- 3.3.6
40
- Bug fix (Vimeo videos not showing in lightboxes)
41
- 3.3.5
42
- Enhanced compatibility with EverlightBox
43
- 3.3.4
44
- Bug fix (woocommerce 3.1.x galleries not working)
45
- Admin UI minor fixes
46
- 3.3.3
47
- Bug fix (wrong behaviour of captions on mobile devices)
48
- 3.3.2
49
- Bug fix (videos not using the masonry layout)
50
- 3.3.1
51
- Bug fix (videos not visible)
52
- 3.3.0
53
- Use gallery options inside shortcode
54
- Enhanced backend UI
55
- Added new caption behaviours
56
- Fix FitVid conflicts
57
- Added Hover effects and Image loaded effects presets
58
- Added hover effect duration
59
- Added new feature: disable grid size below given screen width
60
- Added title and description to LightGallery
61
- 3.2.9
62
- Added support for EverlightBox
63
- Renamed get_image_sizes function to avoid conflicts
64
- 3.2.8
65
- Minor Bug fix
66
- 3.2.7
67
- Minor Bug fix
68
- 3.2.6
69
- Bug fix
70
- New feature: choose image size for lightbox
71
- 3.2.5
72
- SwipeBox now supports filters
73
- Download the full size from LighGallery
74
- Ajax loading (beta)
75
- 3.2.4
76
- Bug fix
77
- 3.2.3
78
- Bug fix
79
- 3.2.2
80
- Bug fix
81
- 3.2.1
82
- Bug fix
83
- 3.2.0
84
- Lightbox groups
85
- Hidden images
86
- 3.1.32
87
- Added date filter to media panel
88
- Added support to Enhanced Media Panel
89
- Lazy loading with multiple image loading
90
- Pre-selected filter
91
- 3.1.31
92
- Enhanced compatibility with other plugins and themes by adding data-class attribute on images
93
- 3.1.30
94
- Fixed jQuery issue
95
- 3.1.29
96
- Minor bug fix
97
- 3.1.28
98
- Bug fix
99
- 3.1.27
100
- Alt tag
101
- 3.1.26
102
- Bug fix
103
- 3.1.25
104
- Bug fix
105
- 3.1.24
106
- Bug fix
107
- 3.1.23
108
- Fixed bug occuring with Lazy load + Filters
109
- 3.1.22
110
- Lazy load
111
- 3.1.21
112
- New layout Masonry
113
- 3.1.20
114
- Max number of posts for "Recent posts" galleries
115
- 3.1.19
116
- Open videos in lightbox
117
- 3.1.18
118
- Admin panel enhancements
119
- Fixed issue about Magnific Popup being loaded even when not needed
120
- 3.1.17
121
- New lightbox added: Lightgallery
122
- Fixed minor bug in Custom CSS (removed slashes)
123
- 3.1.16
124
- Fixed bug in 'Recent posts' galleries, now it's possible to link posts
125
- 3.1.15
126
- Added new lightbox: LightGallery
127
- 3.1.14
128
- Import/Export features, Set title font size, select images by filter (backend), choose mobile lightbox
129
- 3.1.13
130
- Fixed issue with some lightboxes on pages with more than one gallery
131
- 3.1.12
132
- Solved conflicts with FitVids
133
- 3.1.11
134
- [Backend] edit gallery by clicking the tile
135
- 3.1.10
136
- Bug fix
137
- 3.1.9
138
- Load gallery with a selected filter, choose to reload page after clicking a filter,
139
- choose gallery from text editor, load scripts from footer for enhanced page load
140
- 3.1.8
141
- Updated material design fonts
142
- 3.1.7
143
- Fix grid size 0
144
- 3.1.6
145
- Minor bug fix
146
- 3.1.5
147
- Image loaded effects
148
- 3.1.4
149
- Bug fix
150
- 3.1.3
151
- Set a custom label for "All" filter, Choose size of images in admin panel, Loading bar color, Loading bar background color, Caption font size, Sequential image loading
152
- 3.1.2
153
- PrettyPhoto security fix
154
- 3.1.1
155
- Minor bug fix
156
- 3.1.0
157
- New Backoffice
158
- Wizard
159
- WooCommerce products
160
- New caption styles
161
- Earn money with referral
162
- 3.0.21
163
- Bug fix
164
- 3.0.20
165
- Support for Social Gallery plugin by EpicPlugins
166
- 3.0.19
167
- Bug fix
168
- 3.0.18
169
- Posts galleries can use lightboxes
170
- 3.0.17
171
- Bug fix
172
- 3.0.16
173
- Filters available with recent posts
174
- 3.0.15
175
- bug fix
176
- 3.1.14
177
- New customization fields: before gallery text and after gallery text
178
- 3.0.13
179
- Removed unused gallery properties
180
- Read "Description" field from media panel
181
- Added delay control
182
- 3.0.12
183
- minor bug fix
184
- 3.0.11
185
- Image width and height attributes are now ignored
186
- 3.0.10
187
- Added compatibility with Cherry themes
188
- 3.0.9
189
- Minor bug fix
190
- 3.0.8
191
- Minor bug fix
192
- 3.0.7
193
- Minor bug fix
194
- 3.0.6
195
- Added filters in media panel
196
- 3.0.5
197
- Minor bug fix
198
- 3.0.4
199
- Minor bug fix
200
- 3.0.3
201
- Bug fix
202
- 3.0.2
203
- Bug fix
204
- 3.0.1
205
- Bug fix
206
- 3.0
207
- New grid layout algorithm
208
- Video support, reverse order option
209
- Automatic gallery with recent posts, toggle HTML compression, caption behavior on mobile devices, custom caption icon, update to FontAwesone 4.1.0
210
- 2.1.10
211
- Lazy loading
212
- 2.1.9
213
- Fixed issue with single quote character in captions
214
- 2.1.8
215
- Re-activated html compression
216
- 2.1.7
217
- Fixed notice messages
218
- 2.1.6
219
- Magnific Popup and Lightbox now work with gallery filters
220
- 2.1.5
221
- New feature: dynamic image size factor
222
- 2.1.4
223
- New fields: CSS class and REL on A tag
224
- 2.1.3
225
- Social icons bug fix
226
-
227
- 2.1.2
228
- Show empty captions
229
- Inverted captions (visible then hidden on mouse over)
230
- Icons in captions
231
- Admin redesign UI
232
- Enable/Disable effects on mouse over
233
- Caption auto height
234
- Set color of social sharing icons
235
- Fixed captions
236
- Loading progress bar
237
- Minor bugs fixes
238
- Page with support request instructions
239
- Page with instructions
 
 
240
  */
241
  if ( !function_exists( 'ftg_fs' ) ) {
242
  // Create a helper function for easy SDK access.
1
  <?php
2
 
3
+ /**
4
+ * Plugin Name: Final Tiles Grid Gallery - Image Gallery
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.19
9
+ * Author URI: https://www.greentreelabs.net
10
+ *
11
+ * @fs_premium_only /lightbox-pro/
12
+ *
13
  */
14
+ define( 'FTGVERSION', '3.3.19' );
15
+ /*
16
+ Changelog:
17
+ 3.3.19
18
+ Fixed ignored caption font size
19
+ 3.3.18
20
+ Fixed issue with iconv function
21
+ 3.3.17
22
+ Fixed issues in admin panel
23
+ 3.3.16
24
+ Fixed plugin name
25
+ 3.3.15
26
+ Fixed minor issue
27
+ 3.3.14
28
+ Fixed bug
29
+ 3.3.13
30
+ Fixed menu slug
31
+ 3.3.12
32
+ Lite version code merged with premium
33
+ 3.3.10
34
+ Bug fix (wrong behaviour on mobile with columns layout)
35
+ 3.3.9
36
+ Extended support for PHP versions
37
+ 3.3.8
38
+ Bug fix (Woocommerce categories were ignored)
39
+ 3.3.7
40
+ Bug fix (Youtube videos not showing in lightboxes)
41
+ 3.3.6
42
+ Bug fix (Vimeo videos not showing in lightboxes)
43
+ 3.3.5
44
+ Enhanced compatibility with EverlightBox
45
+ 3.3.4
46
+ Bug fix (woocommerce 3.1.x galleries not working)
47
+ Admin UI minor fixes
48
+ 3.3.3
49
+ Bug fix (wrong behaviour of captions on mobile devices)
50
+ 3.3.2
51
+ Bug fix (videos not using the masonry layout)
52
+ 3.3.1
53
+ Bug fix (videos not visible)
54
+ 3.3.0
55
+ Use gallery options inside shortcode
56
+ Enhanced backend UI
57
+ Added new caption behaviours
58
+ Fix FitVid conflicts
59
+ Added Hover effects and Image loaded effects presets
60
+ Added hover effect duration
61
+ Added new feature: disable grid size below given screen width
62
+ Added title and description to LightGallery
63
+ 3.2.9
64
+ Added support for EverlightBox
65
+ Renamed get_image_sizes function to avoid conflicts
66
+ 3.2.8
67
+ Minor Bug fix
68
+ 3.2.7
69
+ Minor Bug fix
70
+ 3.2.6
71
+ Bug fix
72
+ New feature: choose image size for lightbox
73
+ 3.2.5
74
+ SwipeBox now supports filters
75
+ Download the full size from LighGallery
76
+ Ajax loading (beta)
77
+ 3.2.4
78
+ Bug fix
79
+ 3.2.3
80
+ Bug fix
81
+ 3.2.2
82
+ Bug fix
83
+ 3.2.1
84
+ Bug fix
85
+ 3.2.0
86
+ Lightbox groups
87
+ Hidden images
88
+ 3.1.32
89
+ Added date filter to media panel
90
+ Added support to Enhanced Media Panel
91
+ Lazy loading with multiple image loading
92
+ Pre-selected filter
93
+ 3.1.31
94
+ Enhanced compatibility with other plugins and themes by adding data-class attribute on images
95
+ 3.1.30
96
+ Fixed jQuery issue
97
+ 3.1.29
98
+ Minor bug fix
99
+ 3.1.28
100
+ Bug fix
101
+ 3.1.27
102
+ Alt tag
103
+ 3.1.26
104
+ Bug fix
105
+ 3.1.25
106
+ Bug fix
107
+ 3.1.24
108
+ Bug fix
109
+ 3.1.23
110
+ Fixed bug occuring with Lazy load + Filters
111
+ 3.1.22
112
+ Lazy load
113
+ 3.1.21
114
+ New layout Masonry
115
+ 3.1.20
116
+ Max number of posts for "Recent posts" galleries
117
+ 3.1.19
118
+ Open videos in lightbox
119
+ 3.1.18
120
+ Admin panel enhancements
121
+ Fixed issue about Magnific Popup being loaded even when not needed
122
+ 3.1.17
123
+ New lightbox added: Lightgallery
124
+ Fixed minor bug in Custom CSS (removed slashes)
125
+ 3.1.16
126
+ Fixed bug in 'Recent posts' galleries, now it's possible to link posts
127
+ 3.1.15
128
+ Added new lightbox: LightGallery
129
+ 3.1.14
130
+ Import/Export features, Set title font size, select images by filter (backend), choose mobile lightbox
131
+ 3.1.13
132
+ Fixed issue with some lightboxes on pages with more than one gallery
133
+ 3.1.12
134
+ Solved conflicts with FitVids
135
+ 3.1.11
136
+ [Backend] edit gallery by clicking the tile
137
+ 3.1.10
138
+ Bug fix
139
+ 3.1.9
140
+ Load gallery with a selected filter, choose to reload page after clicking a filter,
141
+ choose gallery from text editor, load scripts from footer for enhanced page load
142
+ 3.1.8
143
+ Updated material design fonts
144
+ 3.1.7
145
+ Fix grid size 0
146
+ 3.1.6
147
+ Minor bug fix
148
+ 3.1.5
149
+ Image loaded effects
150
+ 3.1.4
151
+ Bug fix
152
+ 3.1.3
153
+ Set a custom label for "All" filter, Choose size of images in admin panel, Loading bar color, Loading bar background color, Caption font size, Sequential image loading
154
+ 3.1.2
155
+ PrettyPhoto security fix
156
+ 3.1.1
157
+ Minor bug fix
158
+ 3.1.0
159
+ New Backoffice
160
+ Wizard
161
+ WooCommerce products
162
+ New caption styles
163
+ Earn money with referral
164
+ 3.0.21
165
+ Bug fix
166
+ 3.0.20
167
+ Support for Social Gallery plugin by EpicPlugins
168
+ 3.0.19
169
+ Bug fix
170
+ 3.0.18
171
+ Posts galleries can use lightboxes
172
+ 3.0.17
173
+ Bug fix
174
+ 3.0.16
175
+ Filters available with recent posts
176
+ 3.0.15
177
+ bug fix
178
+ 3.1.14
179
+ New customization fields: before gallery text and after gallery text
180
+ 3.0.13
181
+ Removed unused gallery properties
182
+ Read "Description" field from media panel
183
+ Added delay control
184
+ 3.0.12
185
+ minor bug fix
186
+ 3.0.11
187
+ Image width and height attributes are now ignored
188
+ 3.0.10
189
+ Added compatibility with Cherry themes
190
+ 3.0.9
191
+ Minor bug fix
192
+ 3.0.8
193
+ Minor bug fix
194
+ 3.0.7
195
+ Minor bug fix
196
+ 3.0.6
197
+ Added filters in media panel
198
+ 3.0.5
199
+ Minor bug fix
200
+ 3.0.4
201
+ Minor bug fix
202
+ 3.0.3
203
+ Bug fix
204
+ 3.0.2
205
+ Bug fix
206
+ 3.0.1
207
+ Bug fix
208
+ 3.0
209
+ New grid layout algorithm
210
+ Video support, reverse order option
211
+ Automatic gallery with recent posts, toggle HTML compression, caption behavior on mobile devices, custom caption icon, update to FontAwesone 4.1.0
212
+ 2.1.10
213
+ Lazy loading
214
+ 2.1.9
215
+ Fixed issue with single quote character in captions
216
+ 2.1.8
217
+ Re-activated html compression
218
+ 2.1.7
219
+ Fixed notice messages
220
+ 2.1.6
221
+ Magnific Popup and Lightbox now work with gallery filters
222
+ 2.1.5
223
+ New feature: dynamic image size factor
224
+ 2.1.4
225
+ New fields: CSS class and REL on A tag
226
+ 2.1.3
227
+ Social icons bug fix
228
+
229
+ 2.1.2
230
+ Show empty captions
231
+ Inverted captions (visible then hidden on mouse over)
232
+ Icons in captions
233
+ Admin redesign UI
234
+ Enable/Disable effects on mouse over
235
+ Caption auto height
236
+ Set color of social sharing icons
237
+ Fixed captions
238
+ Loading progress bar
239
+ Minor bugs fixes
240
+ Page with support request instructions
241
+ Page with instructions
242
  */
243
  if ( !function_exists( 'ftg_fs' ) ) {
244
  // Create a helper function for easy SDK access.
lib/gallery-class.php CHANGED
@@ -369,7 +369,7 @@ if (!class_exists("FinalTilesGallery"))
369
 
370
  if($gallery->captionFontSize)
371
  {
372
- $html .= "#ftg-$this->id$rid .tile .caption-block .text-wrapper span.subtitle { font-size:".$gallery->captionFontSize."px; }\n";
373
  }
374
  if($gallery->titleFontSize)
375
  {
@@ -381,7 +381,7 @@ if (!class_exists("FinalTilesGallery"))
381
 
382
  if($gallery->captionColor)
383
  {
384
- $html .= "#ftg-$this->id$rid .tile .caption-block .text-wrapper span.subtitle { color: " . $gallery->captionColor . "; }\n";
385
  $html .= "#ftg-$this->id$rid .tile .caption-block .text-wrapper span.title { color: " . $gallery->captionColor . "; }\n";
386
  }
387
 
@@ -405,7 +405,7 @@ if (!class_exists("FinalTilesGallery"))
405
  $html .= "#ftg-$this->id$rid .tile .tile-inner:before { background-color: rgba($bgCaption[0], $bgCaption[1], $bgCaption[2], ". ($gallery->captionOpacity/100) . "); }\n";
406
 
407
  if($gallery->captionFrame == 'T' && $gallery->captionFrameColor)
408
- $html .= "#ftg-$this->id$rid .tile .caption-block.frame .subtitle { border-color: ". $gallery->captionFrameColor ."; }\n";
409
 
410
  $loadedEasing = $gallery->loadedEasing;
411
  if($gallery->loadedEasing == "ease-out-back")
@@ -760,7 +760,7 @@ if (!class_exists("FinalTilesGallery"))
760
 
761
  $title_text = htmlspecialchars($description, ENT_QUOTES);
762
  if($lightbox == 'lightgallery' && $this->useCaptions())
763
- $title_text = "<span class='title'>$image->title</span><span class='subtitle'>$image->description</span>";
764
 
765
 
766
  $html .= "<a $title=\"".$title_text."\" ". (($gallery->lightbox == "lightbox2" ) && empty($image->link) ? "data-lightbox='$rel'" : "") ." rel='$rel' " . ($this->getTarget($image)) . " class=' tile-inner " . $gallery->aClass . " " . ($this->getLightboxClass($image)) . "' " . $this->getLink($image) . " " . ($lightbox == "lightgallery" ? "data-download-url='$image->original'" : '') . ">\n";
@@ -803,7 +803,7 @@ if (!class_exists("FinalTilesGallery"))
803
  if(($gallery->source == "posts" || $gallery->source == "woocommerce") && $this->useCaptions())
804
  {
805
  $html .= "\t<div class='text-wrapper'>\n";
806
- $html .= "\t\t<span class='subtitle'>$image->description</span>\n";
807
  $html .= "\t</div>\n";
808
  }
809
  $html .= "</div>\n";
369
 
370
  if($gallery->captionFontSize)
371
  {
372
+ $html .= "#ftg-$this->id$rid .tile .caption-block .text-wrapper span.text { font-size:".$gallery->captionFontSize."px; }\n";
373
  }
374
  if($gallery->titleFontSize)
375
  {
381
 
382
  if($gallery->captionColor)
383
  {
384
+ $html .= "#ftg-$this->id$rid .tile .caption-block .text-wrapper span.text { color: " . $gallery->captionColor . "; }\n";
385
  $html .= "#ftg-$this->id$rid .tile .caption-block .text-wrapper span.title { color: " . $gallery->captionColor . "; }\n";
386
  }
387
 
405
  $html .= "#ftg-$this->id$rid .tile .tile-inner:before { background-color: rgba($bgCaption[0], $bgCaption[1], $bgCaption[2], ". ($gallery->captionOpacity/100) . "); }\n";
406
 
407
  if($gallery->captionFrame == 'T' && $gallery->captionFrameColor)
408
+ $html .= "#ftg-$this->id$rid .tile .caption-block.frame .text { border-color: ". $gallery->captionFrameColor ."; }\n";
409
 
410
  $loadedEasing = $gallery->loadedEasing;
411
  if($gallery->loadedEasing == "ease-out-back")
760
 
761
  $title_text = htmlspecialchars($description, ENT_QUOTES);
762
  if($lightbox == 'lightgallery' && $this->useCaptions())
763
+ $title_text = "<span class='title'>$image->title</span><span class='text'>$image->description</span>";
764
 
765
 
766
  $html .= "<a $title=\"".$title_text."\" ". (($gallery->lightbox == "lightbox2" ) && empty($image->link) ? "data-lightbox='$rel'" : "") ." rel='$rel' " . ($this->getTarget($image)) . " class=' tile-inner " . $gallery->aClass . " " . ($this->getLightboxClass($image)) . "' " . $this->getLink($image) . " " . ($lightbox == "lightgallery" ? "data-download-url='$image->original'" : '') . ">\n";
803
  if(($gallery->source == "posts" || $gallery->source == "woocommerce") && $this->useCaptions())
804
  {
805
  $html .= "\t<div class='text-wrapper'>\n";
806
+ $html .= "\t\t<span class='text'>$image->description</span>\n";
807
  $html .= "\t</div>\n";
808
  }
809
  $html .= "</div>\n";
readme.txt CHANGED
@@ -135,6 +135,9 @@ Currently galleries made with Envira, FooGallery, Instagram, NextGen, JetPack, M
135
 
136
  == Changelog ==
137
 
 
 
 
138
  = 3.3.18 =
139
  * [Fix] Fixed issue with iconv function
140
 
@@ -239,6 +242,9 @@ Currently galleries made with Envira, FooGallery, Instagram, NextGen, JetPack, M
239
 
240
  == Upgrade Notice ==
241
 
 
 
 
242
  = 3.3.10 =
243
  * Lite and paid versions merged in same repository
244
 
135
 
136
  == Changelog ==
137
 
138
+ = 3.3.19 =
139
+ * [Fix] Fixed ignored caption font size
140
+
141
  = 3.3.18 =
142
  * [Fix] Fixed issue with iconv function
143
 
242
 
243
  == Upgrade Notice ==
244
 
245
+ = 3.3.19 =
246
+ * [Fix] Fixed ignored caption font size
247
+
248
  = 3.3.10 =
249
  * Lite and paid versions merged in same repository
250