Image Photo Gallery Final Tiles Grid - Version 3.4.17

Version Description

  • Fix and update tooltips
Download this release

Release Info

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

Code changes from version 3.4.16 to 3.4.17

Files changed (223) hide show
  1. FinalTilesGalleryLite.php +3 -339
  2. admin/css/gutenberg_block.css +0 -0
  3. admin/css/style.css +47 -0
  4. admin/images/photoblocks.png +0 -0
  5. admin/include/edit-gallery.php +1194 -1121
  6. admin/include/fields.php +0 -0
  7. admin/scripts/admin.js +0 -0
  8. admin/scripts/final-tiles-gallery-admin.js +36 -35
  9. admin/tutorial/tutorial-add-image-size.png +0 -0
  10. admin/tutorial/tutorial-add-image.png +0 -0
  11. admin/tutorial/tutorial-add-page.jpg +0 -0
  12. admin/tutorial/tutorial-add.png +0 -0
  13. admin/tutorial/tutorial-dashboard.png +0 -0
  14. admin/tutorial/tutorial-edit-list.jpg +0 -0
  15. admin/tutorial/tutorial-image-added.jpg +0 -0
  16. admin/tutorial/tutorial-image-edit.jpg +0 -0
  17. admin/tutorial/tutorial-image-panel.JPG +0 -0
  18. admin/tutorial/tutorial-images-tab.png +0 -0
  19. admin/tutorial/tutorial-tabs.jpg +0 -0
  20. freemius/LICENSE.txt +0 -0
  21. freemius/README.md +0 -0
  22. freemius/assets/css/admin/account.css +0 -0
  23. freemius/assets/css/admin/add-ons.css +0 -0
  24. freemius/assets/css/admin/affiliation.css +0 -0
  25. freemius/assets/css/admin/checkout.css +0 -0
  26. freemius/assets/css/admin/common.css +0 -0
  27. freemius/assets/css/admin/connect.css +0 -0
  28. freemius/assets/css/admin/deactivation-feedback.css +0 -0
  29. freemius/assets/css/admin/debug.css +0 -0
  30. freemius/assets/css/admin/dialog-boxes.css +0 -0
  31. freemius/assets/css/admin/gdpr-optin-notice.css +0 -0
  32. freemius/assets/css/admin/index.php +0 -0
  33. freemius/assets/css/admin/license-activation.css +0 -0
  34. freemius/assets/css/customizer.css +0 -0
  35. freemius/assets/css/index.php +0 -0
  36. freemius/assets/img/final-tiles-grid-gallery-lite.png +0 -0
  37. freemius/assets/img/index.php +0 -0
  38. freemius/assets/img/plugin-icon.png +0 -0
  39. freemius/assets/img/theme-icon.png +0 -0
  40. freemius/assets/index.php +0 -0
  41. freemius/assets/js/index.php +0 -0
  42. freemius/assets/js/nojquery.ba-postmessage.js +0 -0
  43. freemius/assets/js/nojquery.ba-postmessage.min.js +0 -0
  44. freemius/assets/js/postmessage.js +0 -0
  45. freemius/assets/scss/_colors.scss +0 -0
  46. freemius/assets/scss/_functions.scss +0 -0
  47. freemius/assets/scss/_load.scss +0 -0
  48. freemius/assets/scss/_mixins.scss +0 -0
  49. freemius/assets/scss/_start.scss +0 -0
  50. freemius/assets/scss/_vars.scss +0 -0
  51. freemius/assets/scss/admin/_ajax-loader.scss +0 -0
  52. freemius/assets/scss/admin/_auto-install.scss +0 -0
  53. freemius/assets/scss/admin/_deactivation-feedback.scss +0 -0
  54. freemius/assets/scss/admin/_gdpr-consent.scss +0 -0
  55. freemius/assets/scss/admin/_license-activation.scss +0 -0
  56. freemius/assets/scss/admin/_license-key-resend.scss +0 -0
  57. freemius/assets/scss/admin/_modal-common.scss +0 -0
  58. freemius/assets/scss/admin/_multisite-options.scss +0 -0
  59. freemius/assets/scss/admin/_themes.scss +0 -0
  60. freemius/assets/scss/admin/_tooltip.scss +0 -0
  61. freemius/assets/scss/admin/account.scss +0 -0
  62. freemius/assets/scss/admin/add-ons.scss +0 -0
  63. freemius/assets/scss/admin/affiliation.scss +0 -0
  64. freemius/assets/scss/admin/checkout.scss +0 -0
  65. freemius/assets/scss/admin/common.scss +0 -0
  66. freemius/assets/scss/admin/connect.scss +0 -0
  67. freemius/assets/scss/admin/debug.scss +0 -0
  68. freemius/assets/scss/admin/dialog-boxes.scss +0 -0
  69. freemius/assets/scss/admin/gdpr-optin-notice.scss +0 -0
  70. freemius/assets/scss/admin/index.php +0 -0
  71. freemius/assets/scss/customizer.scss +0 -0
  72. freemius/assets/scss/index.php +0 -0
  73. freemius/composer.json +0 -0
  74. freemius/config.php +0 -0
  75. freemius/gulpfile.js +0 -0
  76. freemius/includes/class-freemius-abstract.php +0 -0
  77. freemius/includes/class-freemius.php +0 -0
  78. freemius/includes/class-fs-admin-notices.php +0 -0
  79. freemius/includes/class-fs-api.php +0 -0
  80. freemius/includes/class-fs-logger.php +0 -0
  81. freemius/includes/class-fs-options.php +0 -0
  82. freemius/includes/class-fs-plugin-updater.php +0 -0
  83. freemius/includes/class-fs-security.php +0 -0
  84. freemius/includes/class-fs-storage.php +0 -0
  85. freemius/includes/class-fs-user-lock.php +0 -0
  86. freemius/includes/customizer/class-fs-customizer-support-section.php +0 -0
  87. freemius/includes/customizer/class-fs-customizer-upsell-control.php +0 -0
  88. freemius/includes/customizer/index.php +0 -0
  89. freemius/includes/debug/class-fs-debug-bar-panel.php +0 -0
  90. freemius/includes/debug/debug-bar-start.php +0 -0
  91. freemius/includes/debug/index.php +0 -0
  92. freemius/includes/entities/class-fs-affiliate-terms.php +0 -0
  93. freemius/includes/entities/class-fs-affiliate.php +0 -0
  94. freemius/includes/entities/class-fs-billing.php +0 -0
  95. freemius/includes/entities/class-fs-entity.php +0 -0
  96. freemius/includes/entities/class-fs-payment.php +0 -0
  97. freemius/includes/entities/class-fs-plugin-info.php +0 -0
  98. freemius/includes/entities/class-fs-plugin-license.php +0 -0
  99. freemius/includes/entities/class-fs-plugin-plan.php +0 -0
  100. freemius/includes/entities/class-fs-plugin-tag.php +0 -0
  101. freemius/includes/entities/class-fs-plugin.php +0 -0
  102. freemius/includes/entities/class-fs-pricing.php +0 -0
  103. freemius/includes/entities/class-fs-scope-entity.php +0 -0
  104. freemius/includes/entities/class-fs-site.php +0 -0
  105. freemius/includes/entities/class-fs-subscription.php +0 -0
  106. freemius/includes/entities/class-fs-user.php +0 -0
  107. freemius/includes/entities/index.php +0 -0
  108. freemius/includes/fs-core-functions.php +0 -0
  109. freemius/includes/fs-essential-functions.php +0 -0
  110. freemius/includes/fs-plugin-info-dialog.php +0 -0
  111. freemius/includes/i18n.php +0 -0
  112. freemius/includes/index.php +0 -0
  113. freemius/includes/l10n.php +0 -0
  114. freemius/includes/managers/class-fs-admin-menu-manager.php +0 -0
  115. freemius/includes/managers/class-fs-admin-notice-manager.php +0 -0
  116. freemius/includes/managers/class-fs-cache-manager.php +0 -0
  117. freemius/includes/managers/class-fs-gdpr-manager.php +0 -0
  118. freemius/includes/managers/class-fs-key-value-storage.php +0 -0
  119. freemius/includes/managers/class-fs-license-manager.php +0 -0
  120. freemius/includes/managers/class-fs-option-manager.php +0 -0
  121. freemius/includes/managers/class-fs-plan-manager.php +0 -0
  122. freemius/includes/managers/class-fs-plugin-manager.php +0 -0
  123. freemius/includes/managers/index.php +0 -0
  124. freemius/includes/sdk/Exceptions/ArgumentNotExistException.php +0 -0
  125. freemius/includes/sdk/Exceptions/EmptyArgumentException.php +0 -0
  126. freemius/includes/sdk/Exceptions/Exception.php +0 -0
  127. freemius/includes/sdk/Exceptions/InvalidArgumentException.php +0 -0
  128. freemius/includes/sdk/Exceptions/OAuthException.php +0 -0
  129. freemius/includes/sdk/Exceptions/index.php +0 -0
  130. freemius/includes/sdk/FreemiusBase.php +0 -0
  131. freemius/includes/sdk/FreemiusWordPress.php +0 -0
  132. freemius/includes/sdk/LICENSE.txt +0 -0
  133. freemius/includes/sdk/index.php +0 -0
  134. freemius/includes/supplements/fs-essential-functions-1.1.7.1.php +0 -0
  135. freemius/includes/supplements/fs-essential-functions-2.2.1.php +0 -0
  136. freemius/includes/supplements/index.php +0 -0
  137. freemius/index.php +0 -0
  138. freemius/languages/freemius-da_DK.mo +0 -0
  139. freemius/languages/freemius-da_DK.po +0 -0
  140. freemius/languages/freemius-en.mo +0 -0
  141. freemius/languages/freemius-en.po +0 -0
  142. freemius/languages/freemius-es_ES.mo +0 -0
  143. freemius/languages/freemius-es_ES.po +0 -0
  144. freemius/languages/freemius-fr_FR.mo +0 -0
  145. freemius/languages/freemius-fr_FR.po +0 -0
  146. freemius/languages/freemius-he_IL.mo +0 -0
  147. freemius/languages/freemius-he_IL.po +0 -0
  148. freemius/languages/freemius-hu_HU.mo +0 -0
  149. freemius/languages/freemius-hu_HU.po +0 -0
  150. freemius/languages/freemius-it_IT.mo +0 -0
  151. freemius/languages/freemius-it_IT.po +0 -0
  152. freemius/languages/freemius-ja_JP.mo +0 -0
  153. freemius/languages/freemius-ja_JP.po +0 -0
  154. freemius/languages/freemius-nl_NL.mo +0 -0
  155. freemius/languages/freemius-nl_NL.po +0 -0
  156. freemius/languages/freemius-ru_RU.mo +0 -0
  157. freemius/languages/freemius-ru_RU.po +0 -0
  158. freemius/languages/freemius.pot +0 -0
  159. freemius/languages/index.php +0 -0
  160. freemius/package.json +0 -0
  161. freemius/require.php +0 -0
  162. freemius/start.php +0 -0
  163. freemius/templates/account.php +0 -0
  164. freemius/templates/account/billing.php +0 -0
  165. freemius/templates/account/index.php +0 -0
  166. freemius/templates/account/partials/activate-license-button.php +0 -0
  167. freemius/templates/account/partials/addon.php +0 -0
  168. freemius/templates/account/partials/deactivate-license-button.php +0 -0
  169. freemius/templates/account/partials/index.php +0 -0
  170. freemius/templates/account/partials/site.php +0 -0
  171. freemius/templates/account/payments.php +0 -0
  172. freemius/templates/add-ons.php +0 -0
  173. freemius/templates/add-trial-to-pricing.php +0 -0
  174. freemius/templates/admin-notice.php +0 -0
  175. freemius/templates/ajax-loader.php +0 -0
  176. freemius/templates/auto-installation.php +0 -0
  177. freemius/templates/checkout.php +0 -0
  178. freemius/templates/connect.php +0 -0
  179. freemius/templates/contact.php +0 -0
  180. freemius/templates/debug.php +0 -0
  181. freemius/templates/debug/api-calls.php +0 -0
  182. freemius/templates/debug/index.php +0 -0
  183. freemius/templates/debug/logger.php +0 -0
  184. freemius/templates/debug/plugins-themes-sync.php +0 -0
  185. freemius/templates/debug/scheduled-crons.php +0 -0
  186. freemius/templates/email.php +0 -0
  187. freemius/templates/firewall-issues-js.php +0 -0
  188. freemius/templates/forms/affiliation.php +0 -0
  189. freemius/templates/forms/deactivation/contact.php +0 -0
  190. freemius/templates/forms/deactivation/form.php +0 -0
  191. freemius/templates/forms/deactivation/index.php +0 -0
  192. freemius/templates/forms/deactivation/retry-skip.php +0 -0
  193. freemius/templates/forms/index.php +0 -0
  194. freemius/templates/forms/license-activation.php +0 -0
  195. freemius/templates/forms/optout.php +0 -0
  196. freemius/templates/forms/premium-versions-upgrade-handler.php +0 -0
  197. freemius/templates/forms/premium-versions-upgrade-metadata.php +0 -0
  198. freemius/templates/forms/resend-key.php +0 -0
  199. freemius/templates/forms/subscription-cancellation.php +0 -0
  200. freemius/templates/forms/trial-start.php +0 -0
  201. freemius/templates/gdpr-optin-js.php +0 -0
  202. freemius/templates/index.php +0 -0
  203. freemius/templates/js/index.php +0 -0
  204. freemius/templates/js/jquery.content-change.php +0 -0
  205. freemius/templates/js/open-license-activation.php +0 -0
  206. freemius/templates/js/style-premium-theme.php +0 -0
  207. freemius/templates/partials/network-activation.php +0 -0
  208. freemius/templates/plugin-icon.php +0 -0
  209. freemius/templates/plugin-info/description.php +0 -0
  210. freemius/templates/plugin-info/features.php +0 -0
  211. freemius/templates/plugin-info/index.php +0 -0
  212. freemius/templates/plugin-info/screenshots.php +0 -0
  213. freemius/templates/powered-by.php +0 -0
  214. freemius/templates/pricing.php +0 -0
  215. freemius/templates/secure-https-header.php +0 -0
  216. freemius/templates/sticky-admin-notice-js.php +0 -0
  217. freemius/templates/tabs-capture-js.php +0 -0
  218. freemius/templates/tabs.php +0 -0
  219. languages/final-tiles-grid-gallery-lite-it_IT.mo +0 -0
  220. languages/final-tiles-grid-gallery-lite-it_IT.po +0 -0
  221. readme.txt +4 -1
  222. scripts/gutenberg_block.js +0 -0
  223. scripts/jquery.finalTilesGallery.js +0 -0
FinalTilesGalleryLite.php CHANGED
@@ -2,9 +2,10 @@
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
@@ -24,344 +25,7 @@
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
39
- Fixed image drag and drop
40
- Fixed edit video
41
- 3.4.11
42
- Fixed add video
43
- 3.4.10
44
- Fixed lightbox
45
- 3.4.9
46
- Fixed "no link" on mobile
47
- 3.4.8
48
- Edit Alt attribute
49
- Fixed "no link" on mobile
50
- 3.4.7
51
- Removed unnecessary translation functions
52
- 3.4.6
53
- Fixed image source selection
54
- 3.4.5
55
- Fixed JS conflict in admin
56
- 3.4.4
57
- Fixed missing message after new gallery
58
- 3.4.3
59
- New admin dashboard
60
- 3.4.2
61
- Fix empty image source
62
- 3.4.1
63
- Added Italian
64
- 3.4.0
65
- Revamped UI
66
- Gutenmberg blocks
67
- 3.3.59
68
- Fixed missing link target in cloned images
69
- 3.3.58
70
- Fixed missing link in cloned images
71
- 3.3.57
72
- Security fix
73
- 3.3.56
74
- Enhancement: SwipeBox shows captions on mobile
75
- 3.3.55
76
- Fix: fixed Safari loosing filters when editing a gallery
77
- 3.3.54
78
- Fix: fixed pre-selected filter "All" loosing "selected" class
79
- Fix: fixed clickable hidden images
80
- 3.3.53
81
- Restored filters on premium versions
82
- 3.3.52
83
- Fixed database installation
84
- 3.3.49
85
- Fixed multisite activation
86
- 3.3.48
87
- Fixed mobile lightbox options
88
- 3.3.47
89
- Fixed issue when activating the premium version
90
- 3.3.46
91
- Better compatibility with external lazy loading scripts
92
- 3.3.45
93
- Fixed lazy loading
94
- 3.3.44
95
- WooCommerce Fix
96
- 3.3.43
97
- Admin UI tweaks
98
- 3.3.42
99
- Fix: lightbox params
100
- 3.3.41
101
- New feature: lightbox params
102
- 3.3.40
103
- Improved performances
104
- 3.3.39
105
- Updated LightGallery
106
- 3.3.38
107
- Fixed Fatal error "Cannot redeclare ftg_admin_script()"
108
- Use custom taxonomy as filters in post galleries
109
- 3.3.37
110
- PhotoBlocks banners
111
- 3.3.36
112
- PHP 7.1 compatibility
113
- 3.3.35
114
- Updated Freemius library
115
- 3.3.34
116
- Fix: fixed lightbox skipping images bug
117
- 3.3.30
118
- Fix: fixed wrong image order when using Masonry layout
119
- 3.3.29
120
- Fix: fixed path to library
121
- 3.3.28
122
- Fix: filters with groups
123
- 3.3.27
124
- Enhancement: compatibility with JetPack Photon
125
- 3.3.26
126
- New feature: use custom fields as captions
127
- 3.3.25
128
- Fixed recent posts galleries
129
- 3.3.24
130
- Fixed missing captions on mobile
131
- 3.3.23
132
- Added "ask for review" functionality
133
- 3.3.22
134
- Fixed issue with filters
135
- 3.3.21
136
- Fixed disabled hover rotation field
137
- 3.3.20
138
- Fixed disabled caption behaviour field
139
- 3.3.19
140
- Fixed ignored caption font size
141
- 3.3.18
142
- Fixed issue with iconv function
143
- 3.3.17
144
- Fixed issues in admin panel
145
- 3.3.16
146
- Fixed plugin name
147
- 3.3.15
148
- Fixed minor issue
149
- 3.3.14
150
- Fixed bug
151
- 3.3.13
152
- Fixed menu slug
153
- 3.3.12
154
- Lite version code merged with premium
155
- 3.3.10
156
- Bug fix (wrong behaviour on mobile with columns layout)
157
- 3.3.9
158
- Extended support for PHP versions
159
- 3.3.8
160
- Bug fix (Woocommerce categories were ignored)
161
- 3.3.7
162
- Bug fix (Youtube videos not showing in lightboxes)
163
- 3.3.6
164
- Bug fix (Vimeo videos not showing in lightboxes)
165
- 3.3.5
166
- Enhanced compatibility with EverlightBox
167
- 3.3.4
168
- Bug fix (woocommerce 3.1.x galleries not working)
169
- Admin UI minor fixes
170
- 3.3.3
171
- Bug fix (wrong behaviour of captions on mobile devices)
172
- 3.3.2
173
- Bug fix (videos not using the masonry layout)
174
- 3.3.1
175
- Bug fix (videos not visible)
176
- 3.3.0
177
- Use gallery options inside shortcode
178
- Enhanced backend UI
179
- Added new caption behaviours
180
- Fix FitVid conflicts
181
- Added Hover effects and Image loaded effects presets
182
- Added hover effect duration
183
- Added new feature: disable grid size below given screen width
184
- Added title and description to LightGallery
185
- 3.2.9
186
- Added support for EverlightBox
187
- Renamed get_image_sizes function to avoid conflicts
188
- 3.2.8
189
- Minor Bug fix
190
- 3.2.7
191
- Minor Bug fix
192
- 3.2.6
193
- Bug fix
194
- New feature: choose image size for lightbox
195
- 3.2.5
196
- SwipeBox now supports filters
197
- Download the full size from LighGallery
198
- Ajax loading (beta)
199
- 3.2.4
200
- Bug fix
201
- 3.2.3
202
- Bug fix
203
- 3.2.2
204
- Bug fix
205
- 3.2.1
206
- Bug fix
207
- 3.2.0
208
- Lightbox groups
209
- Hidden images
210
- 3.1.32
211
- Added date filter to media panel
212
- Added support to Enhanced Media Panel
213
- Lazy loading with multiple image loading
214
- Pre-selected filter
215
- 3.1.31
216
- Enhanced compatibility with other plugins and themes by adding data-class attribute on images
217
- 3.1.30
218
- Fixed jQuery issue
219
- 3.1.29
220
- Minor bug fix
221
- 3.1.28
222
- Bug fix
223
- 3.1.27
224
- Alt tag
225
- 3.1.26
226
- Bug fix
227
- 3.1.25
228
- Bug fix
229
- 3.1.24
230
- Bug fix
231
- 3.1.23
232
- Fixed bug occuring with Lazy load + Filters
233
- 3.1.22
234
- Lazy load
235
- 3.1.21
236
- New layout Masonry
237
- 3.1.20
238
- Max number of posts for "Recent posts" galleries
239
- 3.1.19
240
- Open videos in lightbox
241
- 3.1.18
242
- Admin panel enhancements
243
- Fixed issue about Magnific Popup being loaded even when not needed
244
- 3.1.17
245
- New lightbox added: Lightgallery
246
- Fixed minor bug in Custom CSS (removed slashes)
247
- 3.1.16
248
- Fixed bug in 'Recent posts' galleries, now it's possible to link posts
249
- 3.1.15
250
- Added new lightbox: LightGallery
251
- 3.1.14
252
- Import/Export features, Set title font size, select images by filter (backend), choose mobile lightbox
253
- 3.1.13
254
- Fixed issue with some lightboxes on pages with more than one gallery
255
- 3.1.12
256
- Solved conflicts with FitVids
257
- 3.1.11
258
- [Backend] edit gallery by clicking the tile
259
- 3.1.10
260
- Bug fix
261
- 3.1.9
262
- Load gallery with a selected filter, choose to reload page after clicking a filter,
263
- choose gallery from text editor, load scripts from footer for enhanced page load
264
- 3.1.8
265
- Updated material design fonts
266
- 3.1.7
267
- Fix grid size 0
268
- 3.1.6
269
- Minor bug fix
270
- 3.1.5
271
- Image loaded effects
272
- 3.1.4
273
- Bug fix
274
- 3.1.3
275
- 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
276
- 3.1.2
277
- PrettyPhoto security fix
278
- 3.1.1
279
- Minor bug fix
280
- 3.1.0
281
- New Backoffice
282
- Wizard
283
- WooCommerce products
284
- New caption styles
285
- Earn money with referral
286
- 3.0.21
287
- Bug fix
288
- 3.0.20
289
- Support for Social Gallery plugin by EpicPlugins
290
- 3.0.19
291
- Bug fix
292
- 3.0.18
293
- Posts galleries can use lightboxes
294
- 3.0.17
295
- Bug fix
296
- 3.0.16
297
- Filters available with recent posts
298
- 3.0.15
299
- bug fix
300
- 3.1.14
301
- New customization fields: before gallery text and after gallery text
302
- 3.0.13
303
- Removed unused gallery properties
304
- Read "Description" field from media panel
305
- Added delay control
306
- 3.0.12
307
- minor bug fix
308
- 3.0.11
309
- Image width and height attributes are now ignored
310
- 3.0.10
311
- Added compatibility with Cherry themes
312
- 3.0.9
313
- Minor bug fix
314
- 3.0.8
315
- Minor bug fix
316
- 3.0.7
317
- Minor bug fix
318
- 3.0.6
319
- Added filters in media panel
320
- 3.0.5
321
- Minor bug fix
322
- 3.0.4
323
- Minor bug fix
324
- 3.0.3
325
- Bug fix
326
- 3.0.2
327
- Bug fix
328
- 3.0.1
329
- Bug fix
330
- 3.0
331
- New grid layout algorithm
332
- Video support, reverse order option
333
- Automatic gallery with recent posts, toggle HTML compression, caption behavior on mobile devices, custom caption icon, update to FontAwesone 4.1.0
334
- 2.1.10
335
- Lazy loading
336
- 2.1.9
337
- Fixed issue with single quote character in captions
338
- 2.1.8
339
- Re-activated html compression
340
- 2.1.7
341
- Fixed notice messages
342
- 2.1.6
343
- Magnific Popup and Lightbox now work with gallery filters
344
- 2.1.5
345
- New feature: dynamic image size factor
346
- 2.1.4
347
- New fields: CSS class and REL on A tag
348
- 2.1.3
349
- Social icons bug fix
350
-
351
- 2.1.2
352
- Show empty captions
353
- Inverted captions (visible then hidden on mouse over)
354
- Icons in captions
355
- Admin redesign UI
356
- Enable/Disable effects on mouse over
357
- Caption auto height
358
- Set color of social sharing icons
359
- Fixed captions
360
- Loading progress bar
361
- Minor bugs fixes
362
- Page with support request instructions
363
- Page with instructions
364
- */
365
  // Create a helper function for easy SDK access.
366
 
367
  if ( !function_exists( "ftg_fs" ) ) {
2
  /**
3
  * Plugin Name: Final Tiles Grid Gallery - Image Gallery
4
  * Description: Wordpress Plugin for creating responsive image galleries.
5
+ * Version: 3.4.17
6
  * Author: MachoThemes
7
  * Author URI: https://www.machothemes.com
8
+ * Tested up to: 5.2
9
  * Requires: 4.9 or higher
10
  * License: GPLv3 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
25
  */
26
 
27
 
28
+ define( "FTGVERSION", "3.4.17" );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  // Create a helper function for easy SDK access.
30
 
31
  if ( !function_exists( "ftg_fs" ) ) {
admin/css/gutenberg_block.css CHANGED
File without changes
admin/css/style.css CHANGED
@@ -582,8 +582,14 @@ h2.ftg-subtitle {
582
  border-bottom-right-radius: 6px;
583
  padding: 10px 10px 0 10px;
584
  color: #666;
 
 
 
585
  display: none;
586
  }
 
 
 
587
  .collapsible li div.help .ftg-code {
588
  display: block;
589
  padding-top: 10px;
@@ -1092,4 +1098,45 @@ padding: 10px;
1092
  .no-thank-you {
1093
  float: right;
1094
  margin-top: 7px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1095
  }
582
  border-bottom-right-radius: 6px;
583
  padding: 10px 10px 0 10px;
584
  color: #666;
585
+ /*display: none;*/
586
+ }
587
+ .collapsible li div.help span code {
588
  display: none;
589
  }
590
+ .collapsible li div.help span.visible code {
591
+ display: inline-block;
592
+ }
593
  .collapsible li div.help .ftg-code {
594
  display: block;
595
  padding-top: 10px;
1098
  .no-thank-you {
1099
  float: right;
1100
  margin-top: 7px;
1101
+ }
1102
+
1103
+ /* Tabs tooltips */
1104
+ .ftg-tooltip {
1105
+ position: relative;
1106
+ display: inline-block;
1107
+ }
1108
+ .ftg-tooltip > span {
1109
+ cursor: pointer;
1110
+ color: #0073aa;
1111
+ text-decoration: underline;
1112
+ margin-left: 5px;
1113
+ }
1114
+ .ftg-tooltip .ftg-tooltip-content {
1115
+ display: none;
1116
+ position: absolute;
1117
+ top: 50%;
1118
+ right: -10px;
1119
+ transform: translate( 100% ,-50% );
1120
+ width: 300px;
1121
+ background: #000;
1122
+ color: #fff;
1123
+ padding: 10px;
1124
+ box-sizing: border-box;
1125
+ z-index: 99;
1126
+ }
1127
+ .ftg-tooltip .ftg-tooltip-content:before {
1128
+ content: '';
1129
+ width: 0px;
1130
+ height: 0px;
1131
+ border-style: solid;
1132
+ border-width: 8px 8px 8px 0;
1133
+ border-color: transparent #000 transparent transparent;
1134
+ display: block;
1135
+ position: absolute;
1136
+ top: 50%;
1137
+ left: -8px;
1138
+ transform: translateY( -50% );
1139
+ }
1140
+ .ftg-tooltip:hover .ftg-tooltip-content {
1141
+ display: block;
1142
  }
admin/images/photoblocks.png CHANGED
File without changes
admin/include/edit-gallery.php CHANGED
@@ -1,80 +1,74 @@
1
  <?php
2
 
3
- if ( !function_exists( 'ftg_p' ) ) {
4
- function ftg_p( $gallery, $field, $default = NULL )
5
- {
6
- global $ftg_options ;
7
-
8
- if ( $ftg_options ) {
9
- if ( array_key_exists( $field, $ftg_options ) ) {
10
- print stripslashes( $ftg_options[$field] );
11
  }
12
  return;
13
  }
14
-
15
-
16
- if ( $gallery == NULL || $gallery->{$field} === NULL ) {
17
-
18
- if ( $default === NULL ) {
19
  print "";
20
  } else {
21
- print stripslashes( $default );
22
  }
23
-
24
  } else {
25
- print stripslashes( $gallery->{$field} );
26
  }
27
-
28
  }
29
-
30
  function ftg_sel(
31
  $gallery,
32
  $field,
33
  $value,
34
  $type = "selected"
35
- )
36
- {
37
- global $ftg_options ;
38
-
39
- if ( $ftg_options && $ftg_options[$field] == $value ) {
40
  print $type;
41
  return;
42
  }
43
-
44
-
45
- if ( $gallery == NULL || !isset( $gallery->{$field} ) ) {
46
  print "";
47
  } else {
48
- if ( $gallery->{$field} == $value ) {
49
  print $type;
50
  }
51
  }
52
-
53
  }
54
-
55
- function ftg_checkFieldDisabled( $options )
56
- {
57
- if ( is_array( $options ) && count( $options ) == 3 && $options[2] == "disabled" ) {
58
  return "disabled";
59
  }
60
  return "";
61
  }
62
-
63
- function ftg_checkDisabledOption( $plan )
64
- {
65
  return "disabled";
66
  return "";
67
  }
68
-
69
- function ftg_printPro( $plan )
70
- {
71
  return " (upgrade to unlock)";
72
  return "";
73
  }
74
-
75
- function ftg_printFieldPro( $options )
76
- {
77
- if ( is_array( $options ) && count( $options ) == 3 && $options[2] == "disabled" ) {
78
  return " (upgrade to unlock)";
79
  }
80
  return "";
@@ -82,1108 +76,1187 @@ if ( !function_exists( 'ftg_p' ) ) {
82
 
83
  }
84
 
85
- global $ftg_parent_page ;
86
- global $ftg_fields ;
87
  $filters = array();
88
  //print_r($gallery);
89
  $idx = 0;
90
- function ftgSortByName( $a, $b )
91
- {
92
  return $a["name"] > $b["name"];
93
  }
94
 
95
  ?>
96
-
97
- <div class="row">
98
- <div class="col s9">
99
- <ul class="collapsible" id="all-settings" data-collapsible="accordion">
100
- <li id="images" class="active">
101
- <div class="collapsible-header">
102
- <i class="fa fa-picture-o light-green darken-1 white-text ftg-section-icon"></i> <?php
103
- _e( 'Images', 'final-tiles-grid-gallery-lite' );
104
- ?>
105
- </div>
106
- <div class="collapsible-body" style="display:block">
107
- <div class="actions">
108
- <div class="images-bar">
109
- <select name="ftg_source" class="browser-default">
110
- <option <?php
111
- ftg_sel( $gallery, "source", "images" );
112
- ?> value="images"><?php
113
- _e( 'User images', 'final-tiles-grid-gallery-lite' );
114
- ?></option>
115
- <option <?php
116
- ftg_sel( $gallery, "source", "posts" );
117
- ?> value="posts" <?php
118
- echo ftg_checkDisabledOption( 'ultimate' ) ;
119
- ?>><?php
120
- _e( 'Recent posts with featured image', 'final-tiles-grid-gallery-lite' );
121
- echo ftg_printPro( 'ultimate' ) ;
122
- ?></option>
123
- <?php
124
-
125
- if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
126
- ?>
127
- <option <?php
128
- ftg_sel( $gallery, "source", "woocommerce" );
129
- ?> value="woocommerce" <?php
130
- echo ftg_checkDisabledOption( 'ultimate' ) ;
131
- ?>><?php
132
- _e( 'WooCommerce products', 'final-tiles-grid-gallery-lite' );
133
- echo ftg_printPro( 'ultimate' ) ;
134
- ?></option>
135
- <?php
136
- }
137
 
138
- ?>
139
- </select>
140
- <select class="current-image-size browser-default">
141
- <?php
142
- foreach ( $this->list_thumbnail_sizes() as $size => $atts ) {
143
- print '<option ' . (( $size == 'large' ? 'selected' : '' )) . ' value="' . $size . '">' . $size . " (" . implode( 'x', $atts ) . ")</option>";
144
- }
145
- ?>
146
- </select>
147
-
148
- <a href="#" class="open-media-panel button">
149
- <?php
150
- _e( 'Add images', 'final-tiles-grid-gallery-lite' );
151
- ?>
152
- </a>
153
- <?php
154
- ?>
155
- <a onclick="alert('Upgrade to unlock')" href="#" class=" button"><?php
156
- _e( 'Add video', 'final-tiles-grid-gallery-lite' );
157
- ?></a>
158
- <?php
159
- ?>
160
- <a class="button button-delete" data-remove-images href="#!"><?php
161
- _e( 'Remove selected', 'final-tiles-grid-gallery-lite' );
162
- ?></a>
163
- </div>
164
- <div class="row selection-row">
165
- <div class="bulk options">
166
- <span>
167
- <a class="button" href="#" data-action="select"><?php
168
- _e( 'Select all', 'final-tiles-grid-gallery-lite' );
169
- ?></a>
170
- <a class="button" href="#" data-action="deselect"><?php
171
- _e( 'Deselect all', 'final-tiles-grid-gallery-lite' );
172
- ?></a>
173
- <a class="button" href="#" data-action="toggle"><?php
174
- _e( 'Toggle selection', 'final-tiles-grid-gallery-lite' );
175
- ?></a>
176
- </span>
177
- <span>
178
- <?php
179
- ?>
180
- <?php
181
- ?>
182
- </span>
183
- <span>
184
- <a class="button" href="#" data-action="show-hide"><?php
185
- _e( 'Toggle visibility', 'final-tiles-grid-gallery-lite' );
186
- ?></a>
187
- </span>
188
- </div>
189
- </div>
190
- <?php
191
-
192
- if ( is_array( $filters ) && count( $filters ) > 1 ) {
193
- ?>
194
- <div class="row filter-list">
195
- <b> <?php
196
- _e( 'Select by filter:', 'final-tiles-grid-gallery-lite' );
197
- ?> </b>
198
- <span class="filter-select-control">
199
- <?php
200
- foreach ( $filters as $filter ) {
201
- ?>
202
- <em class='button filter-item' ><?php
203
- print $filter;
204
- ?></em>
205
- <?php
206
- }
207
- ?>
208
- </span>
209
- </div>
210
- <?php
211
- }
212
 
213
- ?>
214
- </div>
215
- <div id="image-list" class="row"></div>
216
-
217
- <div class="actions">
218
- <div class="row">
219
- <?php
220
- _e( 'Add links by clicking the EDIT (pencil) button', 'final-tiles-grid-gallery-lite' );
221
- ?><br>
222
- <?php
223
- _e( 'Drag the images to change their order.', 'final-tiles-grid-gallery-lite' );
224
- ?>
225
- </div>
226
- </div>
227
- <div id="images" class="ftg-section form-fields">
228
- <div class="actions source-posts source-panel">
229
- <div class="row">
230
- <label>Taxonomy operator</label>
231
- <select name="ftg_taxonomyOperator" class="browser-default js-ajax-loading-control">
232
- <option <?php
233
- ftg_sel( $gallery, "taxonomyOperator", "OR" );
234
- ?> value="OR">OR: all posts matching 1 ore more selected taxonomies</option>
235
- <option <?php
236
- ftg_sel( $gallery, "taxonomyOperator", "AND" );
237
- ?> value="AND">AND: all posts matching all the selected taxonomies</option>
238
- </select>
239
- </div>
240
- <div class="row">
241
- <label>Taxonomy as filter</label>
242
- <select name="ftg_taxonomyAsFilter" class="browser-default js-ajax-loading-control">
243
- <option></option>
244
- <?php
245
- foreach ( get_taxonomies( array(), "objects" ) as $taxonomy => $t ) {
246
- ?>
247
- <?php
248
-
249
- if ( $t->publicly_queryable ) {
250
- ?>
251
- <option <?php
252
- ftg_sel( $gallery, "taxonomyAsFilter", $t->label );
253
- ?> value="<?php
254
- _e( $t->label );
255
- ?>"><?php
256
- _e( $t->label );
257
- ?></option>
258
- <?php
259
- }
260
-
261
- ?>
262
- <?php
263
- }
264
- ?>
265
- </select>
266
- </div>
267
- <div class="row checkboxes">
268
- <strong class="label"><?php
269
- _e( 'Post type:', 'final-tiles-grid-gallery-lite' );
270
- ?></strong>
271
- <span>
272
- <?php
273
- $idx = 0;
274
- ?>
275
- <?php
276
- foreach ( get_post_types( '', 'names' ) as $t ) {
277
- ?>
278
- <?php
279
-
280
- if ( !in_array( $t, $excluded_post_types ) ) {
281
- ?>
282
- <span class="tax-item">
283
- <input class="browser-default" id="post-type-<?php
284
- _e( $idx );
285
- ?>" type="checkbox" name="post_types" value="<?php
286
- _e( $t );
287
- ?>">
288
- <label for="post-type-<?php
289
- _e( $idx );
290
- ?>"><?php
291
- _e( $t );
292
- ?></label>
293
- </span>
294
- <?php
295
- $idx++;
296
- ?>
297
- <?php
298
- }
299
-
300
- ?>
301
- <?php
302
- }
303
- ?>
304
- <input type="hidden" name="ftg_post_types" value="<?php
305
- _e( $gallery->post_types );
306
- ?>" />
307
- </span>
308
- </div>
309
- <?php
310
- //print_r(get_taxonomies(array(), "objects")); exit();
311
- ?>
312
- <?php
313
- foreach ( get_taxonomies( array(), "objects" ) as $taxonomy => $t ) {
314
- ?>
315
- <?php
316
-
317
- if ( $t->publicly_queryable ) {
318
- ?>
319
- <?php
320
- $items = get_terms( $taxonomy, array(
321
- "hide_empty" => false,
322
- ) );
323
- ?>
324
- <?php
325
-
326
- if ( count( $items ) > 0 ) {
327
- ?>
328
- <?php
329
- //print_r($items);
330
- ?>
331
- <div class="row checkboxes">
332
- <strong class="label"><?php
333
- echo $t->label ;
334
- ?></strong>
335
- <span>
336
- <?php
337
- $idx = 0;
338
- ?>
339
- <?php
340
- foreach ( $items as $c ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
341
  ?>
342
- <span class="tax-item">
343
- <input id="post-tax-<?php
344
- _e( $c->term_id );
345
- ?>" type="checkbox" name="post_taxonomy" data-taxonomy="<?php
346
- _e( $t->name );
347
- ?>" value="<?php
348
- _e( $c->term_id );
349
- ?>">
350
- <label for="post-tax-<?php
351
- _e( $c->term_id );
352
- ?>"><?php
353
- _e( $c->name );
354
- ?></label>
355
- </span>
356
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
357
  $idx++;
358
  ?>
359
- <?php
360
  }
361
- ?>
362
- </span>
363
- </div>
364
- <?php
365
- }
366
-
367
- ?>
368
- <?php
369
- }
370
-
371
- ?>
372
- <?php
373
- }
374
- ?>
375
- <input type="hidden" name="ftg_post_taxonomies" value="<?php
376
- _e( $gallery->post_taxonomies );
377
- ?>" />
378
- <div class="row checkboxes">
379
- <strong class="label"><?php
380
- _e( 'Max posts:', 'final-tiles-grid-gallery-lite' );
381
- ?></strong>
382
- <span class="aside">
383
- <input type="text" name="ftg_max_posts" value="<?php
384
- echo $gallery->max_posts ;
385
- ?>">
386
- <span><?php
387
- _e( '(enter 0 for unlimited posts)', 'final-tiles-grid-gallery-lite' );
388
- ?></span>
389
- </span>
390
- </div>
391
- </div>
392
- <?php
393
-
394
- if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
395
- ?>
396
- <div class="actions source-woocommerce source-panel">
397
- <div class="row checkboxes">
398
- <strong class="label"><?php
399
- _e( 'Categories', 'final-tiles-grid-gallery-lite' );
400
- ?>:</strong>
401
- <span>
402
- <?php
403
- $idx = 0;
404
- ?>
405
- <?php
406
- foreach ( $woo_categories as $c ) {
407
- ?>
408
- <input class="browser-default" id="woo-cat-<?php
409
- _e( $idx );
410
- ?>" type="checkbox" name="woo_cat" value="<?php
411
- _e( $c->term_id );
412
- ?>">
413
- <label for="woo-cat-<?php
414
- _e( $idx );
415
- ?>"><?php
416
- _e( $c->cat_name );
417
- ?></label>
418
- <?php
419
- $idx++;
420
- ?>
421
- <?php
422
- }
423
- ?>
424
- <input type="hidden" name="ftg_woo_categories" value="<?php
425
- _e( $gallery->woo_categories );
426
- ?>" />
427
- </span>
428
- </div>
429
- </div>
430
- <?php
431
- }
432
-
433
- ?>
434
- </div>
435
- </div>
436
- </li>
437
- <?php
438
- foreach ( $ftg_fields as $section => $s ) {
439
- ?>
440
- <li id="<?php
441
- _e( FinalTiles_Gallery::slugify( $section ) );
442
- ?>">
443
- <div class="collapsible-header">
444
- <i class="<?php
445
- echo $s["icon"] ;
446
- ?> light-green darken-1 white-text ftg-section-icon"></i> <?php
447
- _e( $section, 'final-tiles-grid-gallery-lite' );
448
- ?>
449
- </div>
450
- <div class="collapsible-body tab form-fields">
451
- <div class="jump-head">
452
- <?php
453
- $jumpFields = array();
454
- foreach ( $s["fields"] as $f => $data ) {
455
- $jumpFields[$f] = $data;
456
- $jumpFields[$f]['_code'] = $f;
457
- }
458
- unset( $f );
459
- unset( $data );
460
- usort( $jumpFields, "ftgSortByName" );
461
- ?>
462
- <select class="browser-default jump">
463
- <option><?php
464
- _e( 'Jump to setting', 'final-tiles-grid-gallery-lite' );
465
- ?></option>
466
- <?php
467
- foreach ( $jumpFields as $f => $data ) {
468
- ?>
469
- <?php
470
-
471
- if ( is_array( $data["excludeFrom"] ) && !in_array( $ftg_parent_page, $data["excludeFrom"] ) ) {
472
  ?>
473
- <option value="<?php
474
- _e( $data['_code'], 'final-tiles-grid-gallery-lite' );
475
- ?>">
476
- <?php
477
- _e( $data["name"], 'final-tiles-grid-gallery-lite' );
478
- ?>
479
- </option>
480
- <?php
481
- }
482
-
483
- ?>
484
- <?php
485
- }
486
- ?>
487
- </select>
488
-
489
- <?php
490
-
491
- if ( array_key_exists( "presets", $s ) ) {
492
- ?>
493
- <select class="browser-default presets" data-field-idx="<?php
494
- echo $idx ;
495
- ?>">
496
- <option value="">Select preset</option>
497
- <?php
498
- foreach ( $s["presets"] as $preset => $data ) {
499
  ?>
500
- <option><?php
501
- echo $preset ;
502
- ?></option>
503
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
504
  }
 
505
  ?>
506
- </select>
507
- <?php
508
- }
509
-
510
- ?>
511
- </div>
512
- <table>
513
- <tbody>
514
- <?php
515
- foreach ( $s["fields"] as $f => $data ) {
516
- ?>
517
- <?php
518
-
519
- if ( is_array( $data["excludeFrom"] ) && !in_array( $ftg_parent_page, $data["excludeFrom"] ) ) {
520
- ?>
521
-
522
- <tr class="field-row row-<?php
523
- print $f;
524
- ?> <?php
525
- print $data["type"];
526
- ?>">
527
- <th scope="row">
528
- <label><?php
529
- _e( $data["name"], 'final-tiles-grid-gallery-lite' );
530
- ?>
531
- <?php
532
-
533
- if ( $data["mu"] ) {
534
- ?>
535
- (<?php
536
- _e( $data["mu"] );
537
- ?>)
538
- <?php
539
- }
540
-
541
- ?>
542
-
543
- <?php
544
-
545
- if ( strlen( $data["description"] ) ) {
546
- ?>
547
- <a data-field="<?php
548
- echo $f ;
549
- ?>" data-tooltip="<?php
550
- _e( 'Show help', 'final-tiles-grid-gallery-lite' );
551
- ?>" class="field-help" href="#"><i class="fa fa-question"></i></a>
552
- <?php
553
- }
554
-
555
- ?>
556
- </label>
557
- </th>
558
- <td>
559
- <div class="field <?php
560
- echo ( in_array( 'shortcode', $data["excludeFrom"] ) ? "" : "js-update-shortcode" ) ;
561
- ?>">
562
- <?php
563
-
564
- if ( $data["type"] == "text" ) {
565
- ?>
566
- <div class="text">
567
- <input type="text" size="30" name="ftg_<?php
568
- print $f;
569
- ?>" value="<?php
570
- ftg_p( $gallery, $f, $data["default"] );
571
- ?>" />
572
- </div>
573
- <?php
574
- } elseif ( $data["type"] == "cta" ) {
575
- ?>
576
- <div class="text">
577
- <a class="in-table-cta" href="<?php
578
- echo ftg_fs()->get_upgrade_url() ;
579
- ?>"><i class="mdi mdi-bell-ring-outline"></i>
580
- <?php
581
- _e( 'Unlock this feature. Upgrade Now!', 'final-tiles-grid-gallery-lite' );
582
- ?>
583
- </a>
584
- </div>
585
- <?php
586
- } elseif ( $data["type"] == "select" ) {
587
- ?>
588
- <div class="text">
589
- <select class="browser-default" name="ftg_<?php
590
- print $f;
591
- ?>">
592
- <?php
593
- foreach ( array_keys( $data["values"] ) as $optgroup ) {
594
  ?>
595
- <optgroup label="<?php
596
- print $optgroup;
597
- ?>">
598
- <?php
599
- foreach ( $data["values"][$optgroup] as $option ) {
600
- ?>
601
-
602
- <?php
603
- $v = explode( "|", $option );
604
- ?>
605
-
606
- <option <?php
607
- echo ftg_checkFieldDisabled( $v ) ;
608
- ?> <?php
609
- ftg_sel( $gallery, $f, $v[0] );
610
- ?> value="<?php
611
- print $v[0];
612
- ?>"><?php
613
- _e( $v[1], 'final-tiles-grid-gallery-lite' );
614
- echo ftg_printFieldPro( $v ) ;
615
- ?></option>
616
- <?php
617
- }
 
618
  ?>
619
- </optgroup>
620
- <?php
621
- }
622
- ?>
623
- </select>
624
- <?php
625
-
626
- if ( $f == "lightbox" ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
627
  ?>
628
- <div class="col s12 ftg-everlightbox-settings">
629
- <?php
630
-
631
- if ( class_exists( 'Everlightbox_Public' ) ) {
632
- ?>
633
- <div class="card-panel light-green lighten-4">
634
- <a href="?page=everlightbox_options" target="_blank"><?php
635
- _e( 'EverlightBox settings', 'final-tiles-grid-gallery-lite' );
636
- ?></a>
637
- </div>
638
- <?php
639
- } else {
640
- ?>
641
- <div class="card-panel yellow lighten-3">
642
- <?php
643
- _e( 'EverlightBox not installed', 'final-tiles-grid-gallery-lite' );
644
- ?>. <a target="_blank" class="open-checkout" href="https://checkout.freemius.com/mode/dialog/plugin/1981/plan/2954/"><?php
645
- _e( 'Purchase', 'final-tiles-grid-gallery-lite' );
646
- ?></a>
647
- </div>
648
- <?php
649
- }
650
-
651
- ?>
652
- </div>
653
- <?php
654
- }
655
-
656
- ?>
657
- </div>
658
- <?php
659
- } elseif ( $data["type"] == "toggle" ) {
660
- ?>
661
- <div class="switch">
662
- <label>
663
- Off
664
- <input disabled type="checkbox" id="ftg_<?php
665
- print $f;
666
- ?>" name="ftg_<?php
667
- print $f;
668
- ?>" value="<?php
669
- ftg_p( $gallery, $f, $data["default"] );
670
- ?>" <?php
671
- ftg_sel(
672
- $gallery,
673
- $f,
674
- "T",
675
- "checked"
676
- );
677
- ?> >
678
- <span class="lever"></span>
679
- On
680
- </label>
681
- </div>
682
- <?php
683
- } elseif ( $data["type"] == "slider" ) {
684
- ?>
685
-
686
- <div class="text">
687
- <b id="preview-<?php
688
- print $f;
689
- ?>" class="range-preview"><?php
690
- ftg_p( $gallery, $f, $data["default"] );
691
- ?></b>
692
- <p class="range-field">
693
- <input data-preview="<?php
694
- echo $f ;
695
- ?>" name="ftg_<?php
696
- print $f;
697
- ?>" value="<?php
698
- ftg_p( $gallery, $f, $data["default"] );
699
- ?>" type="range" min="<?php
700
- print $data["min"];
701
- ?>" max="<?php
702
- print $data["max"];
703
- ?>" />
704
- </p>
705
- </div>
706
-
707
- <?php
708
- } elseif ( $data["type"] == "number" ) {
709
- ?>
710
- <div class="text">
711
- <input type="text" name="ftg_<?php
712
- print $f;
713
- ?>" class="integer-only" value="<?php
714
- ftg_p( $gallery, $f, $data["default"] );
715
- ?>" >
716
- </div>
717
-
718
- <?php
719
- } elseif ( $data["type"] == "color" ) {
720
- ?>
721
- <div class="text">
722
- <input type="text" size="6" data-default-color="<?php
723
- print $data["default"];
724
- ?>" name="ftg_<?php
725
- print $f;
726
- ?>" value="<?php
727
- ftg_p( $gallery, $f, $data["default"] );
728
- ?>" class='pickColor' /> </div>
729
-
730
- <?php
731
- } elseif ( $data["type"] == "filter" ) {
732
- ?>
733
-
734
- <div class="filters gallery-filters dynamic-table">
735
- <div class="text"></div>
736
- <a href="#" class="add button"><?php
737
- _e( 'Add filter', 'final-tiles-grid-gallery-lite' );
738
- ?></a>
739
- <a href="#" class="reset-default-filter button"><?php
740
- _e( 'Reset selected filter', 'final-tiles-grid-gallery-lite' );
741
- ?></a>
742
- <input type="hidden" name="ftg_filters" value="<?php
743
- ftg_p( $gallery, "filters" );
744
- ?>" />
745
- <input type="hidden" name="filter_def" value="<?php
746
- ftg_p( $gallery, "defaultFilter" );
747
- ?>" />
748
- </div>
749
-
750
- <?php
751
- } elseif ( $data["type"] == "textarea" ) {
752
- ?>
753
- <div class="text">
754
- <textarea name="ftg_<?php
755
- print $f;
756
- ?>"><?php
757
- ftg_p( $gallery, $f );
758
- ?></textarea>
759
- </div>
760
- <?php
761
- } elseif ( $data["type"] == "custom_isf" ) {
762
- ?>
763
- <div class="custom_isf dynamic-table">
764
- <table class="striped">
765
- <thead>
766
- <tr>
767
- <th></th>
768
- <th><?php
769
- _e( 'Resolution', 'final-tiles-grid-gallery-lite' );
770
- ?> (px)</th>
771
- <th><?php
772
- _e( 'Size factor', 'final-tiles-grid-gallery-lite' );
773
- ?> (%)</th>
774
- </tr>
775
- </thead>
776
- <tbody>
777
- </tbody>
778
- </table>
779
- <input type="hidden" name="ftg_imageSizeFactorCustom" value="<?php
780
- ftg_p( $gallery, "imageSizeFactorCustom" );
781
- ?>" />
782
- <a href="#" class="add button">
783
- <?php
784
- _e( 'Add resolution', 'final-tiles-grid-gallery-lite' );
785
- ?></a>
786
- </div>
787
- <?php
788
- }
789
-
790
- ?>
791
- <div class="help" id="help-<?php
792
- echo $f ;
793
- ?>">
794
- <?php
795
-
796
- if ( strlen( $data["description"] ) ) {
797
- ?>
798
- <p><?php
799
- echo $data["description"] ;
800
- ?></p>
801
- <?php
802
- }
803
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
804
  ?>
805
- <?php
806
-
807
- if ( !in_array( 'shortcode', $data["excludeFrom"] ) && $data["type"] != "cta" ) {
808
- ?>
809
- <div class="ftg-code">
810
- <a href="#" class="toggle-shortcode" data-code="<?php
811
- print $f;
812
- ?>"><i class="fa fa-cog"></i></a>
813
-