Image Photo Gallery Final Tiles Grid - Version 3.4.18

Version Description

  • Minor update for tooltips
  • Add shortcode copy functionality
  • Color picker bug gix
  • Toggle input bug fix *
Download this release

Release Info

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

Code changes from version 3.4.17 to 3.4.18

Files changed (55) hide show
  1. FinalTilesGalleryLite.php +36 -38
  2. admin/add-gallery.php +13 -9
  3. admin/css/style.css +21 -0
  4. admin/facebook.php +1 -1
  5. admin/images/everlightbox-reviews.png +0 -0
  6. admin/images/everlightbox.png +0 -0
  7. admin/include/edit-gallery.php +1113 -1191
  8. admin/include/fields.php +82 -82
  9. admin/overview.php +5 -4
  10. admin/scripts/admin.js +12 -0
  11. admin/scripts/editor-plugin.js +3 -3
  12. admin/scripts/final-tiles-gallery-admin.js +40 -36
  13. freemius/README.md +0 -253
  14. freemius/assets/css/admin/deactivation-feedback.css +0 -1
  15. freemius/assets/css/admin/license-activation.css +0 -1
  16. freemius/assets/scss/_colors.scss +0 -79
  17. freemius/assets/scss/_functions.scss +0 -0
  18. freemius/assets/scss/_load.scss +0 -4
  19. freemius/assets/scss/_mixins.scss +0 -270
  20. freemius/assets/scss/_start.scss +0 -4
  21. freemius/assets/scss/_vars.scss +0 -6
  22. freemius/assets/scss/admin/_ajax-loader.scss +0 -49
  23. freemius/assets/scss/admin/_auto-install.scss +0 -33
  24. freemius/assets/scss/admin/_deactivation-feedback.scss +0 -55
  25. freemius/assets/scss/admin/_gdpr-consent.scss +0 -81
  26. freemius/assets/scss/admin/_license-activation.scss +0 -47
  27. freemius/assets/scss/admin/_license-key-resend.scss +0 -68
  28. freemius/assets/scss/admin/_modal-common.scss +0 -194
  29. freemius/assets/scss/admin/_multisite-options.scss +0 -40
  30. freemius/assets/scss/admin/_themes.scss +0 -21
  31. freemius/assets/scss/admin/_tooltip.scss +0 -66
  32. freemius/assets/scss/admin/account.scss +0 -302
  33. freemius/assets/scss/admin/add-ons.scss +0 -449
  34. freemius/assets/scss/admin/affiliation.scss +0 -97
  35. freemius/assets/scss/admin/checkout.scss +0 -5
  36. freemius/assets/scss/admin/common.scss +0 -220
  37. freemius/assets/scss/admin/connect.scss +0 -548
  38. freemius/assets/scss/admin/debug.scss +0 -135
  39. freemius/assets/scss/admin/dialog-boxes.scss +0 -10
  40. freemius/assets/scss/admin/gdpr-optin-notice.scss +0 -17
  41. freemius/assets/scss/admin/index.php +0 -3
  42. freemius/assets/scss/customizer.scss +0 -125
  43. freemius/assets/scss/index.php +0 -3
  44. freemius/composer.json +0 -10
  45. freemius/gulpfile.js +0 -167
  46. freemius/package.json +0 -27
  47. languages/final-tiles-grid-gallery-lite-bkp-de.po +1810 -0
  48. languages/final-tiles-grid-gallery-lite-de_DE.mo +0 -0
  49. languages/final-tiles-grid-gallery-lite-de_DE.po +1810 -0
  50. languages/final-tiles-grid-gallery-lite-it_IT.po +2 -2
  51. languages/final-tiles-grid-gallery-lite.po +1397 -0
  52. lib/gallery-class.php +6 -6
  53. lib/languages/final-tiles-gallery.pot +1 -1
  54. readme.txt +13 -11
  55. scripts/gutenberg_block.js +2 -6
FinalTilesGalleryLite.php CHANGED
@@ -1,31 +1,30 @@
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.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
12
- * Requires PHP: 5.6
13
- * Text Domain: final-tiles-grid-gallery-lite
14
- * Domain Path: /languages
15
- *
16
- * Copyright 2015-2019 GreenTreeLabs diego@greentreelabs.net
17
- * Copyright 2019 MachoThemes office@machothemes.com
18
- * SVN commit with proof of ownership transfer: https://plugins.trac.wordpress.org/changeset/2163481/
19
- *
20
- * NOTE: MachoThemes took ownership of this plugin on: 09/26/2019 08:49:37 AM as can be seen from the above SVN commit.
21
- *
22
- * Original Plugin URI: https://greentreelabs.net/final-tiles-gallery-lite/
23
- * Original Author URI: https://greentreelabs.net
24
- * Original Author: https://profiles.wordpress.org/greentreealbs/
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" ) ) {
@@ -55,8 +54,7 @@ if ( !function_exists( "ftg_fs" ) ) {
55
  ),
56
  'has_affiliation' => 'all',
57
  'menu' => array(
58
- 'slug' => 'ftg-lite-gallery-admin',
59
- 'contact' => true,
60
  ),
61
  'is_live' => true,
62
  ) );
@@ -285,7 +283,7 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
285
  wp_set_script_translations( 'FinalTiles-gallery', 'final-tiles-gallery', dirname( plugin_basename( __FILE__ ) ) . '/lib/languages/' );
286
  $galls = [ [
287
  'value' => 0,
288
- 'label' => __( 'Select gallery', 'FinalTiles-gallery' ),
289
  ] ];
290
  $galleries = $this->FinalTilesdb->getGalleries();
291
  if ( $galleries ) {
@@ -359,7 +357,7 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
359
  if ( !$with_date && count( $galleries ) > 0 && !$there_was_review ) {
360
  $valid = true;
361
  }
362
- // If we don't have a valid optin yet, return.
363
  if ( !$valid ) {
364
  return;
365
  }
@@ -367,20 +365,20 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
367
  ?>
368
  <div class="notice notice-info is-dismissible ftg-review-notice">
369
  <p><?php
370
- _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' );
371
  ?></p>
372
  <p><strong><?php
373
- _e( 'Cristian Raiber<br>Founder of Macho Themes', 'final-tiles-gallery' );
374
  ?></strong></p>
375
  <p>
376
  <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
377
- _e( 'Ok, you deserve it', 'final-tiles-gallery-lite' );
378
  ?></a><br>
379
  <a href="#" class="ftg-dismiss-review-notice" rel="noopener"><?php
380
- _e( 'Nope, maybe later', 'final-tiles-gallery' );
381
  ?></a><br>
382
  <a href="#" class="ftg-dismiss-review-notice" rel="noopener"><?php
383
- _e( 'I already did', 'final-tiles-gallery' );
384
  ?></a><br>
385
  </p>
386
  </div>
@@ -420,7 +418,7 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
420
 
421
  if ( !empty($current_screen->id) && strpos( $current_screen->id, 'ftg' ) !== false ) {
422
  $url = 'https://wordpress.org/support/plugin/final-tiles-grid-gallery-lite/reviews/?filter=5#new-post';
423
- $text = sprintf( __( 'Please rate <strong>Final Tiles Gallery</strong> <a href="%s" target="_blank">&#9733;&#9733;&#9733;&#9733;&#9733;</a> on <a href="%s" target="_blank">WordPress.org</a> to help us spread the word. Thank you from the Final Tiles Gallery team!', 'wpforms' ), $url, $url );
424
  }
425
 
426
  return $text;
@@ -741,8 +739,8 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
741
  );
742
  $add_gallery = add_submenu_page(
743
  'ftg-lite-gallery-admin',
744
- __( 'FinalTiles Gallery >> Add Gallery', 'FinalTiles-gallery' ),
745
- __( 'Add Gallery', 'FinalTiles-gallery' ),
746
  'edit_posts',
747
  'ftg-add-gallery',
748
  array( $this, 'add_gallery' )
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
+ /**
4
+ * Plugin Name: Final Tiles Grid Gallery - Image Gallery
5
+ * Description: Wordpress Plugin for creating responsive image galleries.
6
+ * Version: 3.4.18
7
+ * Author: MachoThemes
8
+ * Author URI: https://www.machothemes.com
9
+ * Tested up to: 5.2
10
+ * Requires: 4.9 or higher
11
+ * License: GPLv3 or later
12
+ * License URI: http://www.gnu.org/licenses/gpl-3.0.html
13
+ * Requires PHP: 5.6
14
+ * Text Domain: final-tiles-grid-gallery-lite
15
+ * Domain Path: /languages
16
+ *
17
+ * Copyright 2015-2019 GreenTreeLabs diego@greentreelabs.net
18
+ * Copyright 2019 MachoThemes office@machothemes.com
19
+ * SVN commit with proof of ownership transfer: https://plugins.trac.wordpress.org/changeset/2163481/
20
+ *
21
+ * NOTE: MachoThemes took ownership of this plugin on: 09/26/2019 08:49:37 AM as can be seen from the above SVN commit.
22
+ *
23
+ * Original Plugin URI: https://greentreelabs.net/final-tiles-gallery-lite/
24
+ * Original Author URI: https://greentreelabs.net
25
+ * Original Author: https://profiles.wordpress.org/greentreealbs/
26
+ */
27
+ define( "FTGVERSION", "3.4.18" );
28
  // Create a helper function for easy SDK access.
29
 
30
  if ( !function_exists( "ftg_fs" ) ) {
54
  ),
55
  'has_affiliation' => 'all',
56
  'menu' => array(
57
+ 'slug' => 'ftg-lite-gallery-admin',
 
58
  ),
59
  'is_live' => true,
60
  ) );
283
  wp_set_script_translations( 'FinalTiles-gallery', 'final-tiles-gallery', dirname( plugin_basename( __FILE__ ) ) . '/lib/languages/' );
284
  $galls = [ [
285
  'value' => 0,
286
+ 'label' => __( 'Select gallery', 'final-tiles-grid-gallery-lite' ),
287
  ] ];
288
  $galleries = $this->FinalTilesdb->getGalleries();
289
  if ( $galleries ) {
357
  if ( !$with_date && count( $galleries ) > 0 && !$there_was_review ) {
358
  $valid = true;
359
  }
360
+ // If we don't have a valid option yet, return.
361
  if ( !$valid ) {
362
  return;
363
  }
365
  ?>
366
  <div class="notice notice-info is-dismissible ftg-review-notice">
367
  <p><?php
368
+ _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-grid-gallery-lite' );
369
  ?></p>
370
  <p><strong><?php
371
+ _e( 'MachoThemes', 'final-tiles-grid-gallery-lite' );
372
  ?></strong></p>
373
  <p>
374
  <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
375
+ _e( 'Ok, you deserve it', 'final-tiles-grid-gallery-lite' );
376
  ?></a><br>
377
  <a href="#" class="ftg-dismiss-review-notice" rel="noopener"><?php
378
+ _e( 'Nope, maybe later', 'final-tiles-grid-gallery-lite' );
379
  ?></a><br>
380
  <a href="#" class="ftg-dismiss-review-notice" rel="noopener"><?php
381
+ _e( 'I already did', 'final-tiles-grid-gallery-lite' );
382
  ?></a><br>
383
  </p>
384
  </div>
418
 
419
  if ( !empty($current_screen->id) && strpos( $current_screen->id, 'ftg' ) !== false ) {
420
  $url = 'https://wordpress.org/support/plugin/final-tiles-grid-gallery-lite/reviews/?filter=5#new-post';
421
+ $text = sprintf( __( 'Please rate <strong>Final Tiles Gallery</strong> <a href="%s" target="_blank">&#9733;&#9733;&#9733;&#9733;&#9733;</a> on <a href="%s" target="_blank">WordPress.org</a> to help us spread the word. Thank you from the Final Tiles Gallery team!', 'final-tiles-grid-gallery-lite' ), $url, $url );
422
  }
423
 
424
  return $text;
739
  );
740
  $add_gallery = add_submenu_page(
741
  'ftg-lite-gallery-admin',
742
+ __( 'FinalTiles Gallery >> Add Gallery', 'final-tiles-grid-gallery-lite' ),
743
+ __( 'Add Gallery', 'final-tiles-grid-gallery-lite' ),
744
  'edit_posts',
745
  'ftg-add-gallery',
746
  array( $this, 'add_gallery' )
admin/add-gallery.php CHANGED
@@ -134,27 +134,27 @@ _e( 'Caption effect:', 'final-tiles-grid-gallery-lite' );
134
  ?></h5>
135
  <select class="browser-default" name="ftg_captionEffect">
136
  <option value="none"><?php
137
- _e( 'Fade' );
138
  ?></option>
139
  <?php
140
  ?>
141
  <option value="fixed" disabled><?php
142
- _e( 'Fixed' );
143
  ?> (Upgrade to unlock)</option>
144
  <option value="fixed-bg" disabled><?php
145
- _e( 'Fixed with background' );
146
  ?> (Upgrade to unlock)</option>
147
  <option value="fixed-then-hidden" disabled><?php
148
- _e( 'Fixed, hidden on hover' );
149
  ?> (Upgrade to unlock)</option>
150
  <option value="fixed-bottom" disabled><?php
151
- _e( 'Fixed at bottom' );
152
  ?> (Upgrade to unlock)</option>
153
  <option value="slide-from-top" disabled><?php
154
- _e( 'Slide from top' );
155
  ?> (Upgrade to unlock)</option>
156
  <option value="slide-from-bottom" disabled><?php
157
- _e( 'Slide from bottom' );
158
  ?> (Upgrade to unlock)</option>
159
  <?php
160
  ?>
@@ -169,8 +169,12 @@ _e( 'Slide from bottom' );
169
  _e( 'Choose the layout', 'final-tiles-grid-gallery-lite' );
170
  ?></h5>
171
  <select class="browser-default" name="layout">
172
- <option value="final">Final Tiles Gallery (mixed image width)</option>
173
- <option value="columns">Masonry (columns, same image width)</option>
 
 
 
 
174
  </select>
175
  </div>
176
  <div class="field">
134
  ?></h5>
135
  <select class="browser-default" name="ftg_captionEffect">
136
  <option value="none"><?php
137
+ _e( 'Fade', 'final-tiles-grid-gallery-lite' );
138
  ?></option>
139
  <?php
140
  ?>
141
  <option value="fixed" disabled><?php
142
+ _e( 'Fixed', 'final-tiles-grid-gallery-lite' );
143
  ?> (Upgrade to unlock)</option>
144
  <option value="fixed-bg" disabled><?php
145
+ _e( 'Fixed with background', 'final-tiles-grid-gallery-lite' );
146
  ?> (Upgrade to unlock)</option>
147
  <option value="fixed-then-hidden" disabled><?php
148
+ _e( 'Fixed, hidden on hover', 'final-tiles-grid-gallery-lite' );
149
  ?> (Upgrade to unlock)</option>
150
  <option value="fixed-bottom" disabled><?php
151
+ _e( 'Fixed at bottom', 'final-tiles-grid-gallery-lite' );
152
  ?> (Upgrade to unlock)</option>
153
  <option value="slide-from-top" disabled><?php
154
+ _e( 'Slide from top', 'final-tiles-grid-gallery-lite' );
155
  ?> (Upgrade to unlock)</option>
156
  <option value="slide-from-bottom" disabled><?php
157
+ _e( 'Slide from bottom', 'final-tiles-grid-gallery-lite' );
158
  ?> (Upgrade to unlock)</option>
159
  <?php
160
  ?>
169
  _e( 'Choose the layout', 'final-tiles-grid-gallery-lite' );
170
  ?></h5>
171
  <select class="browser-default" name="layout">
172
+ <option value="final"><?php
173
+ __( 'Final Tiles Gallery (mixed image width)', 'final-tiles-grid-gallery-lite' );
174
+ ?></option>
175
+ <option value="columns"><?php
176
+ __( 'Masonry (columns, same image width)', 'final-tiles-grid-gallery-lite' );
177
+ ?></option>
178
  </select>
179
  </div>
180
  <div class="field">
admin/css/style.css CHANGED
@@ -599,6 +599,10 @@ h2.ftg-subtitle {
599
  color: #999;
600
  font-size: 18px;
601
  }
 
 
 
 
602
  .collapsible li div.help .ftg-code a:focus {
603
  box-shadow: none;
604
  }
@@ -1100,6 +1104,7 @@ padding: 10px;
1100
  margin-top: 7px;
1101
  }
1102
 
 
1103
  /* Tabs tooltips */
1104
  .ftg-tooltip {
1105
  position: relative;
@@ -1139,4 +1144,20 @@ padding: 10px;
1139
  }
1140
  .ftg-tooltip:hover .ftg-tooltip-content {
1141
  display: block;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1142
  }
599
  color: #999;
600
  font-size: 18px;
601
  }
602
+ .collapsible li div.help .ftg-code a .fa-eye{
603
+ color:#007cba;
604
+ }
605
+
606
  .collapsible li div.help .ftg-code a:focus {
607
  box-shadow: none;
608
  }
1104
  margin-top: 7px;
1105
  }
1106
 
1107
+
1108
  /* Tabs tooltips */
1109
  .ftg-tooltip {
1110
  position: relative;
1144
  }
1145
  .ftg-tooltip:hover .ftg-tooltip-content {
1146
  display: block;
1147
+ }
1148
+
1149
+ /* Copy shortcode design */
1150
+ .gallery-actions .copy-ftg-shortcode {
1151
+ height: 40px;
1152
+ line-height: 40px !important;
1153
+ }
1154
+
1155
+ .copy-ftg-shortcode {
1156
+ height:max-content;
1157
+ }
1158
+
1159
+ /* Color picker fix */
1160
+ .field.js-update-shortcode .iris-border .iris-picker-inner {
1161
+ min-width:250px;
1162
+ min-height:250px;
1163
  }
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/machothemes" data-layout="standard" data-action="recommend" data-show-faces="false" data-share="true"></div>
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/greentreelabs" data-layout="standard" data-action="recommend" data-show-faces="false" data-share="true"></div>
3
 
4
 
5
  <div id="fb-root"></div>
admin/images/everlightbox-reviews.png ADDED
Binary file
admin/images/everlightbox.png ADDED
Binary file
admin/include/edit-gallery.php CHANGED
@@ -1,74 +1,80 @@
1
  <?php
2
 
3
- if (!function_exists('ftg_p')) {
4
- function ftg_p($gallery, $field, $default = NULL) {
5
- global $ftg_options;
6
-
7
- if ($ftg_options) {
8
- if (array_key_exists($field, $ftg_options)) {
9
- print stripslashes($ftg_options[$field]);
 
10
  }
11
  return;
12
  }
13
-
14
-
15
- if ($gallery == NULL || $gallery->{$field} === NULL) {
16
-
17
- if ($default === NULL) {
18
  print "";
19
  } else {
20
- print stripslashes($default);
21
  }
22
-
23
  } else {
24
- print stripslashes($gallery->{$field});
25
  }
26
-
27
  }
28
-
29
  function ftg_sel(
30
  $gallery,
31
  $field,
32
  $value,
33
  $type = "selected"
34
- ) {
35
- global $ftg_options;
36
-
37
- if ($ftg_options && $ftg_options[$field] == $value) {
 
38
  print $type;
39
  return;
40
  }
41
-
42
-
43
- if ($gallery == NULL || !isset($gallery->{$field})) {
44
  print "";
45
  } else {
46
- if ($gallery->{$field} == $value) {
47
  print $type;
48
  }
49
  }
50
-
51
  }
52
-
53
- function ftg_checkFieldDisabled($options) {
54
- if (is_array($options) && count($options) == 3 && $options[2] == "disabled") {
 
55
  return "disabled";
56
  }
57
  return "";
58
  }
59
-
60
- function ftg_checkDisabledOption($plan) {
 
61
  return "disabled";
62
  return "";
63
  }
64
-
65
- function ftg_printPro($plan) {
 
66
  return " (upgrade to unlock)";
67
  return "";
68
  }
69
-
70
- function ftg_printFieldPro($options) {
71
- if (is_array($options) && count($options) == 3 && $options[2] == "disabled") {
 
72
  return " (upgrade to unlock)";
73
  }
74
  return "";
@@ -76,1187 +82,1103 @@ if (!function_exists('ftg_p')) {
76
 
77
  }
78
 
79
- global $ftg_parent_page;
80
- global $ftg_fields;
81
  $filters = array();
82
  //print_r($gallery);
83
  $idx = 0;
84
- function ftgSortByName($a, $b) {
 
85
  return $a["name"] > $b["name"];
86
  }
87
 
88
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
 
90
- <div class="row">
91
- <div class="col s9">
92
- <ul class="collapsible" id="all-settings" data-collapsible="accordion">
93
- <li id="images" class="active">
94
- <div class="collapsible-header">
95
- <i class="fa fa-picture-o light-green darken-1 white-text ftg-section-icon"></i> <?php
96
- _e('Images', 'final-tiles-grid-gallery-lite');
97
- ?>
98
- </div>
99
- <div class="collapsible-body" style="display:block">
100
- <div class="actions">
101
- <div class="images-bar">
102
- <select name="ftg_source" class="browser-default">
103
- <option <?php
104
- ftg_sel($gallery, "source", "images");
105
- ?> value="images"><?php
106
- _e('User images', 'final-tiles-grid-gallery-lite');
107
- ?></option>
108
- <option <?php
109
- ftg_sel($gallery, "source", "posts");
110
- ?> value="posts" <?php
111
- echo ftg_checkDisabledOption('ultimate');
112
- ?>><?php
113
- _e('Recent posts with featured image', 'final-tiles-grid-gallery-lite');
114
- echo ftg_printPro('ultimate');
115
- ?></option>
116
- <?php
117
-
118
- if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) {
119
- ?>
120
- <option <?php
121
- ftg_sel($gallery, "source", "woocommerce");
122
- ?> value="woocommerce" <?php
123
- echo ftg_checkDisabledOption('ultimate');
124
- ?>><?php
125
- _e('WooCommerce products', 'final-tiles-grid-gallery-lite');
126
- echo ftg_printPro('ultimate');
127
- ?></option>
128
- <?php
129
- }
130
-
131
- ?>
132
- </select>
133
- <select class="current-image-size browser-default">
134
- <?php
135
- foreach ($this->list_thumbnail_sizes() as $size => $atts) {
136
- print '<option ' . (($size == 'large' ? 'selected' : '')) . ' value="' . $size . '">' . $size . " (" . implode('x', $atts) . ")</option>";
137
- }
138
- ?>
139
- </select>
140
-
141
- <a href="#" class="open-media-panel button">
142
- <?php
143
- _e('Add images', 'final-tiles-grid-gallery-lite');
144
- ?>
145
- </a>
146
- <?php
147
- ?>
148
- <a onclick="alert('Upgrade to unlock')" href="#" class=" button"><?php
149
- _e('Add video', 'final-tiles-grid-gallery-lite');
150
- ?></a>
151
- <?php
152
- ?>
153
- <a class="button button-delete" data-remove-images href="#!"><?php
154
- _e('Remove selected', 'final-tiles-grid-gallery-lite');
155
- ?></a>
156
- </div>
157
- <div class="row selection-row">
158
- <div class="bulk options">
159
- <span>
160
- <a class="button" href="#" data-action="select"><?php
161
- _e('Select all', 'final-tiles-grid-gallery-lite');
162
- ?></a>
163
- <a class="button" href="#" data-action="deselect"><?php
164
- _e('Deselect all', 'final-tiles-grid-gallery-lite');
165
- ?></a>
166
- <a class="button" href="#" data-action="toggle"><?php
167
- _e('Toggle selection', 'final-tiles-grid-gallery-lite');
168
- ?></a>
169
- </span>
170
- <span>
171
- <?php
172
- ?>
173
- <?php
174
- ?>
175
- </span>
176
- <span>
177
- <a class="button" href="#" data-action="show-hide"><?php
178
- _e('Toggle visibility', 'final-tiles-grid-gallery-lite');
179
- ?></a>
180
- </span>
181
- </div>
182
- </div>
183
- <?php
184
-
185
- if (is_array($filters) && count($filters) > 1) {
186
- ?>
187
- <div class="row filter-list">
188
- <b> <?php
189
- _e('Select by filter:', 'final-tiles-grid-gallery-lite');
190
- ?> </b>
191
- <span class="filter-select-control">
192
- <?php
193
- foreach ($filters as $filter) {
194
- ?>
195
- <em class='button filter-item'><?php
196
- print $filter;
197
- ?></em>
198
- <?php
199
- }
200
- ?>
201
- </span>
202
- </div>
203
- <?php
204
- }
205
-
206
- ?>
207
- </div>
208
- <div id="image-list" class="row"></div>
209
-
210
- <div class="actions">
211
- <div class="row">
212
- <?php
213
- _e('Add links by clicking the EDIT (pencil) button', 'final-tiles-grid-gallery-lite');
214
- ?><br>
215
- <?php
216
- _e('Drag the images to change their order.', 'final-tiles-grid-gallery-lite');
217
- ?>
218
- </div>
219
- </div>
220
- <div id="images" class="ftg-section form-fields">
221
- <div class="actions source-posts source-panel">
222
- <div class="row">
223
- <label>Taxonomy operator</label>
224
- <select name="ftg_taxonomyOperator" class="browser-default js-ajax-loading-control">
225
- <option <?php
226
- ftg_sel($gallery, "taxonomyOperator", "OR");
227
- ?> value="OR">OR: all posts matching 1 ore more selected taxonomies
228
- </option>
229
- <option <?php
230
- ftg_sel($gallery, "taxonomyOperator", "AND");
231
- ?> value="AND">AND: all posts matching all the selected taxonomies
232
- </option>
233
- </select>
234
- </div>
235
- <div class="row">
236
- <label>Taxonomy as filter</label>
237
- <select name="ftg_taxonomyAsFilter" class="browser-default js-ajax-loading-control">
238
- <option></option>
239
- <?php
240
- foreach (get_taxonomies(array(), "objects") as $taxonomy => $t) {
241
- ?>
242
- <?php
243
-
244
- if ($t->publicly_queryable) {
245
- ?>
246
- <option <?php
247
- ftg_sel($gallery, "taxonomyAsFilter", $t->label);
248
- ?> value="<?php
249
- _e($t->label);
250
- ?>"><?php
251
- _e($t->label);
252
- ?></option>
253
- <?php
254
- }
255
-
256
- ?>
257
- <?php
258
- }
259
- ?>
260
- </select>
261
- </div>
262
- <div class="row checkboxes">
263
- <strong class="label"><?php
264
- _e('Post type:', 'final-tiles-grid-gallery-lite');
265
- ?></strong>
266
- <span>
267
- <?php
268
- $idx = 0;
269
- ?>
270
- <?php
271
- foreach (get_post_types('', 'names') as $t) {
272
- ?>
273
- <?php
274
-
275
- if (!in_array($t, $excluded_post_types)) {
276
- ?>
277
- <span class="tax-item">
278
- <input class="browser-default" id="post-type-<?php
279
- _e($idx);
280
- ?>" type="checkbox" name="post_types" value="<?php
281
- _e($t);
282
- ?>">
283
- <label for="post-type-<?php
284
- _e($idx);
285
- ?>"><?php
286
- _e($t);
287
- ?></label>
288
- </span>
289
- <?php
290
- $idx++;
291
- ?>
292
- <?php
293
- }
294
-
295
- ?>
296
- <?php
297
- }
298
- ?>
299
- <input type="hidden" name="ftg_post_types" value="<?php
300
- _e($gallery->post_types);
301
- ?>"/>
302
- </span>
303
- </div>
304
- <?php
305
- //print_r(get_taxonomies(array(), "objects")); exit();
306
- ?>
307
- <?php
308
- foreach (get_taxonomies(array(), "objects") as $taxonomy => $t) {
309
- ?>
310
- <?php
311
-
312
- if ($t->publicly_queryable) {
313
- ?>
314
- <?php
315
- $items = get_terms($taxonomy, array(
316
- "hide_empty" => false,
317
- ));
318
- ?>
319
- <?php
320
-
321
- if (count($items) > 0) {
322
- ?>
323
- <?php
324
- //print_r($items);
325
- ?>
326
- <div class="row checkboxes">
327
- <strong class="label"><?php
328
- echo $t->label;
329
- ?></strong>
330
- <span>
331
- <?php
332
- $idx = 0;
333
- ?>
334
- <?php
335
- foreach ($items as $c) {
336
- ?>
337
- <span class="tax-item">
338
- <input id="post-tax-<?php
339
- _e($c->term_id);
340
- ?>" type="checkbox" name="post_taxonomy" data-taxonomy="<?php
341
- _e($t->name);
342
- ?>" value="<?php
343
- _e($c->term_id);
344
- ?>">
345
- <label for="post-tax-<?php
346
- _e($c->term_id);
347
- ?>"><?php
348
- _e($c->name);
349
- ?></label>
350
- </span>
351
- <?php
352
- $idx++;
353
- ?>
354
- <?php
355
- }
356
- ?>
357
- </span>
358
- </div>
359
- <?php
360
- }
361
-
362
- ?>
363
- <?php
364
- }
365
-
366
- ?>
367
- <?php
368
- }
369
- ?>
370
- <input type="hidden" name="ftg_post_taxonomies" value="<?php
371
- _e($gallery->post_taxonomies);
372
- ?>"/>
373
- <div class="row checkboxes">
374
- <strong class="label"><?php
375
- _e('Max posts:', 'final-tiles-grid-gallery-lite');
376
- ?></strong>
377
- <span class="aside">
378
- <input type="text" name="ftg_max_posts" value="<?php
379
- echo $gallery->max_posts;
380
- ?>">
381
- <span><?php
382
- _e('(enter 0 for unlimited posts)', 'final-tiles-grid-gallery-lite');
383
- ?></span>
384
- </span>
385
- </div>
386
- </div>
387
- <?php
388
-
389
- if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) {
390
- ?>
391
- <div class="actions source-woocommerce source-panel">
392
- <div class="row checkboxes">
393
- <strong class="label"><?php
394
- _e('Categories', 'final-tiles-grid-gallery-lite');
395
- ?>:</strong>
396
- <span>
397
- <?php
398
- $idx = 0;
399
- ?>
400
- <?php
401
- foreach ($woo_categories as $c) {
402
- ?>
403
- <input class="browser-default" id="woo-cat-<?php
404
- _e($idx);
405
- ?>" type="checkbox" name="woo_cat" value="<?php
406
- _e($c->term_id);
407
- ?>">
408
- <label for="woo-cat-<?php
409
- _e($idx);
410
- ?>"><?php
411
- _e($c->cat_name);
412
- ?></label>
413
- <?php
414
- $idx++;
415
- ?>
416
- <?php
417
- }
418
- ?>
419
- <input type="hidden" name="ftg_woo_categories" value="<?php
420
- _e($gallery->woo_categories);
421
- ?>"/>
422
- </span>
423
- </div>
424
- </div>
425
- <?php
426
- }
427
 
428
- ?>
429
- </div>
430
- </div>
431
- </li>
432
- <?php
433
- foreach ($ftg_fields as $section => $s) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
434
  ?>
435
- <li id="<?php
436
- _e(FinalTiles_Gallery::slugify($section));
437
- ?>">
438
- <div class="collapsible-header">
439
- <i class="<?php
440
- echo $s["icon"];
441
- ?> light-green darken-1 white-text ftg-section-icon"></i> <?php
442
- _e($section, 'final-tiles-grid-gallery-lite');
443
- ?>
444
- </div>
445
- <div class="collapsible-body tab form-fields">
446
- <div class="jump-head">
447
- <?php
448
- $jumpFields = array();
449
- foreach ($s["fields"] as $f => $data) {
450
- $jumpFields[$f] = $data;
451
- $jumpFields[$f]['_code'] = $f;
452
- }
453
- unset($f);
454
- unset($data);
455
- usort($jumpFields, "ftgSortByName");
456
- ?>
457
- <select class="browser-default jump">
458
- <option><?php
459
- _e('Jump to setting', 'final-tiles-grid-gallery-lite');
460
- ?></option>
461
- <?php
462
- foreach ($jumpFields as $f => $data) {
463
- ?>
464
- <?php
465
-
466
- if (is_array($data["excludeFrom"]) && !in_array($ftg_parent_page, $data["excludeFrom"])) {
467
- ?>
468
- <option value="<?php
469
- _e($data['_code'], 'final-tiles-grid-gallery-lite');
470
- ?>">
471
- <?php
472
- _e($data["name"], 'final-tiles-grid-gallery-lite');
473
- ?>
474
- </option>
475
- <?php
476
- }
477
-
478
- ?>
479
- <?php
480
- }
481
- ?>
482
- </select>
483
-
484
- <?php
485
-
486
- if (array_key_exists("presets", $s)) {
487
- ?>
488
- <select class="browser-default presets" data-field-idx="<?php
489
- echo $idx;
490
- ?>">
491
- <option value="">Select preset</option>
492
- <?php
493
- foreach ($s["presets"] as $preset => $data) {
494
- ?>
495
- <option><?php
496
- echo $preset;
497
- ?></option>
498
- <?php
499
- }
500
- ?>
501
- </select>
502
- <?php
503
- }
504
-
505
- ?>
506
- </div>
507
- <table>
508
- <tbody>
509
- <?php
510
- foreach ($s["fields"] as $f => $data) {
511
- ?>
512
- <?php
513
-
514
- if (is_array($data["excludeFrom"]) && !in_array($ftg_parent_page, $data["excludeFrom"])) {
515
- ?>
516
-
517
- <tr class="field-row row-<?php
518
- print $f;
519
- ?> <?php
520
- print $data["type"];
521
- ?>">
522
- <th scope="row">
523
- <label><?php
524
- _e($data["name"], 'final-tiles-grid-gallery-lite');
525
- ?>
526
- <?php
527
-
528
- if ($data["mu"]) {
529
- ?>
530
- (<?php
531
- _e($data["mu"]);
532
- ?>)
533
- <?php
534
- }
535
-
536
- ?>
537
-
538
- <?php
539
- if (strlen($data["description"])) {
540
- ?>
541
- <div class="tab-header-tooltip-container ftg-tooltip">
542
- <span>[?]</span>
543
- <div class="tab-header-description ftg-tooltip-content">
544
- <?php echo wp_kses_post($data["description"]); ?>
545
- </div>
546
- </div>
547
- <?php
548
- }
549
-
550
- ?>
551
- </label>
552
- </th>
553
- <td>
554
- <div class="field <?php
555
- echo(in_array('shortcode', $data["excludeFrom"]) ? "" : "js-update-shortcode");
556
- ?>">
557
- <?php
558
-
559
- if ($data["type"] == "text") {
560
- ?>
561
- <div class="text">
562
- <input type="text" size="30" name="ftg_<?php
563
- print $f;
564
- ?>" value="<?php
565
- ftg_p($gallery, $f, $data["default"]);
566
- ?>"/>
567
- </div>
568
- <?php
569
- } elseif ($data["type"] == "cta") {
570
- ?>
571
- <div class="text">
572
- <a class="in-table-cta" href="<?php
573
- echo ftg_fs()->get_upgrade_url();
574
- ?>"><i class="mdi mdi-bell-ring-outline"></i>
575
- <?php
576
- _e('Unlock this feature. Upgrade Now!', 'final-tiles-grid-gallery-lite');
577
- ?>
578
- </a>
579
- </div>
580
- <?php
581
- } elseif ($data["type"] == "select") {
582
- ?>
583
- <div class="text">
584
- <select class="browser-default" name="ftg_<?php
585
- print $f;
586
- ?>">
587
- <?php
588
- foreach (array_keys($data["values"]) as $optgroup) {
589
- ?>
590
- <optgroup label="<?php
591
- print $optgroup;
592
- ?>">
593
- <?php
594
- foreach ($data["values"][$optgroup] as $option) {
595
- ?>
596
-
597
- <?php
598
- $v = explode("|", $option);
599
- ?>
600
-
601
- <option <?php
602
- echo ftg_checkFieldDisabled($v);
603
- ?> <?php
604
- ftg_sel($gallery, $f, $v[0]);
605
- ?> value="<?php
606
- print $v[0];
607
- ?>"><?php
608
- _e($v[1], 'final-tiles-grid-gallery-lite');
609
- echo ftg_printFieldPro($v);
610
- ?></option>
611
- <?php
612
- }
613
- ?>
614
- </optgroup>
615
- <?php
616
- }
617
- ?>
618
- </select>
619
- <?php
620
-
621
- if ($f == "lightbox") {
622
- ?>
623
- <div class="col s12 ftg-everlightbox-settings">
624
- <?php
625
-
626
- if (class_exists('Everlightbox_Public')) {
627
- ?>
628
- <div class="card-panel light-green lighten-4">
629
- <a href="?page=everlightbox_options"
630
- target="_blank"><?php
631
- _e('EverlightBox settings', 'final-tiles-grid-gallery-lite');
632
- ?></a>
633
- </div>
634
- <?php
635
- } else {
636
- ?>
637
- <div class="card-panel yellow lighten-3">
638
- <?php
639
- _e('EverlightBox not installed', 'final-tiles-grid-gallery-lite');
640
- ?>. <a target="_blank" class="open-checkout"
641
- href="https://checkout.freemius.com/mode/dialog/plugin/1981/plan/2954/"><?php
642
- _e('Purchase', 'final-tiles-grid-gallery-lite');
643
- ?></a>
644
- </div>
645
- <?php
646
- }
647
-
648
- ?>
649
- </div>
650
- <?php
651
- }
652
-
653
- ?>
654
- </div>
655
- <?php
656
- } elseif ($data["type"] == "toggle") {
657
- ?>
658
- <div class="switch">
659
- <label>
660
- Off
661
- <input disabled type="checkbox" id="ftg_<?php
662
- print $f;
663
- ?>" name="ftg_<?php
664
- print $f;
665
- ?>" value="<?php
666
- ftg_p($gallery, $f, $data["default"]);
667
- ?>" <?php
668
- ftg_sel(
669
- $gallery,
670
- $f,
671
- "T",
672
- "checked"
673
- );
674
- ?> >
675
- <span class="lever"></span>
676
- On
677
- </label>
678
- </div>
679
- <?php
680
- } elseif ($data["type"] == "slider") {
681
- ?>
682
-
683
- <div class="text">
684
- <b id="preview-<?php
685
- print $f;
686
- ?>" class="range-preview"><?php
687
- ftg_p($gallery, $f, $data["default"]);
688
- ?></b>
689
- <p class="range-field">
690
- <input data-preview="<?php
691
- echo $f;
692
- ?>" name="ftg_<?php
693
- print $f;
694
- ?>" value="<?php
695
- ftg_p($gallery, $f, $data["default"]);
696
- ?>" type="range" min="<?php
697
- print $data["min"];
698
- ?>" max="<?php
699
- print $data["max"];
700
- ?>"/>
701
- </p>
702
- </div>
703
-
704
- <?php
705
- } elseif ($data["type"] == "number") {
706
- ?>
707
- <div class="text">
708
- <input type="text" name="ftg_<?php
709
- print $f;
710
- ?>" class="integer-only" value="<?php
711
- ftg_p($gallery, $f, $data["default"]);
712
- ?>">
713
- </div>
714
-
715
- <?php
716
- } elseif ($data["type"] == "color") {
717
- ?>
718
- <div class="text">
719
- <input type="text" size="6" data-default-color="<?php
720
- print $data["default"];
721
- ?>" name="ftg_<?php
722
- print $f;
723
- ?>" value="<?php
724
- ftg_p($gallery, $f, $data["default"]);
725
- ?>" class='pickColor'/></div>
726
-
727
- <?php
728
- } elseif ($data["type"] == "filter") {
729
- ?>
730
-
731
- <div class="filters gallery-filters dynamic-table">
732
- <div class="text"></div>
733
- <a href="#" class="add button"><?php
734
- _e('Add filter', 'final-tiles-grid-gallery-lite');
735
- ?></a>
736
- <a href="#" class="reset-default-filter button"><?php
737
- _e('Reset selected filter', 'final-tiles-grid-gallery-lite');
738
- ?></a>
739
- <input type="hidden" name="ftg_filters" value="<?php
740
- ftg_p($gallery, "filters");
741
- ?>"/>
742
- <input type="hidden" name="filter_def" value="<?php
743
- ftg_p($gallery, "defaultFilter");
744
- ?>"/>
745
- </div>
746
-
747
- <?php
748
- } elseif ($data["type"] == "textarea") {
749
- ?>
750
- <div class="text">
751
- <textarea name="ftg_<?php
752
- print $f;
753
- ?>"><?php
754
- ftg_p($gallery, $f);
755
- ?></textarea>
756
- </div>
757
- <?php
758
- } elseif ($data["type"] == "custom_isf") {
759
- ?>
760
- <div class="custom_isf dynamic-table">
761
- <table class="striped">
762
- <thead>
763
- <tr>
764
- <th></th>
765
- <th><?php
766
- _e('Resolution', 'final-tiles-grid-gallery-lite');
767
- ?> (px)
768
- </th>
769
- <th><?php
770
- _e('Size factor', 'final-tiles-grid-gallery-lite');
771
- ?> (%)
772
- </th>
773
- </tr>
774
- </thead>
775
- <tbody>
776
- </tbody>
777
- </table>
778
- <input type="hidden" name="ftg_imageSizeFactorCustom"
779
- 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 (!in_array('shortcode', $data["excludeFrom"]) && $data["type"] != "cta") {
797
- ?>
798
- <div class="ftg-code">
799
- <a href="#" class="toggle-shortcode"
800
- data-code="<?php print $f; ?>">
801
- <i class="fa fa-eye-slash"></i>
802
- </a>
803
- <span id="shortcode-<?php print $f; ?>">
804
- <?php _e('Shortcode attribute', 'final-tiles-grid-gallery-lite'); ?>:
805
- <!--<input type="text" class="shortcode-val" readonly="" value='<?php
806
- /* _e(FinalTilesGalleryUtils::fieldNameToShortcode($f));
807
- */?>="<?php
808
- /* ftg_p($gallery, $f, $data["default"]);
809
- */?>"'>-->
810
- <code class="shortcode-val"><?php _e(FinalTilesGalleryUtils::fieldNameToShortcode($f)); ?>="<?php ftg_p($gallery, $f, $data["default"]); ?>"</code>
811
- </span>
812
- </div>
813
- <?php
814
- }
815
-
816
- ?>
817
- </div>
818
-
819
- </div>
820
- </td>
821
- </tr>
822
- <?php
823
- }
824
-
825
- ?>
826
- <?php
827
- }
828
- ?>
829
- </tbody>
830
- </table>
831
- </div>
832
- </li>
833
- <?php
834
  $idx++;
835
  ?>
836
- <?php
837
  }
838
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
839
 
840
- </ul>
841
- </div>
842
- <div class="col s3">
843
- <?php
844
-
845
- if (ftg_fs()->is_not_paying()) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
846
  ?>
847
- <ul class="collapsible gallery-actions">
848
- <li class="active">
849
- <div class="collapsible-header"><?php
850
- _e('Upgrade', 'final-tiles-grid-gallery-lite');
851
- ?>: <?php
852
- _e('unlock features', 'final-tiles-grid-gallery-lite');
853
- ?></div>
854
- <div class="collapsible-body">
855
- <div class="ftg-upsell">
856
- <a href="<?php
857
- echo ftg_fs()->get_upgrade_url();
858
- ?>"><i class="fa fa-hand-o-right"></i> <?php
859
- _e('Upgrade', 'final-tiles-grid-gallery-lite');
860
- ?></a>
861
- </div>
862
- <p>or save 30% purchasing the <strong>BUNDLE</strong>:</p>
863
- <div class="ftg-upsell">
864
- <a target="_blank" href="https://www.final-tiles-gallery.com/wordpress/bundle">
865
- <i class="fa fa-star"></i>
866
- Bundle: 30% <?php
867
- _e('discount', 'final-tiles-grid-gallery-lite');
868
- ?></a>
869
- </div>
870
- <p class="upsell-info">
871
- <?php
872
- _e('GET 3 plugins', 'final-tiles-grid-gallery-lite');
873
- ?>: Final Tiles Gallery Ultimate + EverlightBox + PostSnippet
874
- </p>
875
- </div>
876
- </li>
877
- </ul>
878
- <?php
879
  }
880
-
881
  ?>
882
- <ul class="collapsible gallery-actions">
883
- <li class="active">
884
- <div class="collapsible-header"><?php
885
- _e('Publish', 'final-tiles-grid-gallery-lite');
886
- ?>
887
- <svg class="components-panel__arrow" width="24px" height="24px" viewBox="0 0 24 24"
888
- xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false">
889
- <g>
890
- <path fill="none" d="M0,0h24v24H0V0z"></path>
891
- </g>
892
- <g>
893
- <path d="M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"></path>
894
- </g>
895
- </svg>
896
- </div>
897
- <div class="collapsible-body">
898
- <div><input readonly="" type="text" value="[FinalTilesGallery id='<?php
899
- print $gid;
900
- ?>']"></div>
901
- <div>
902
- <button data-update-gallery class="button components-button is-primary"><?php
903
- _e('Save gallery', 'final-tiles-grid-gallery-lite');
904
- ?></button>
905
- </div>
906
- </div>
907
- </li>
908
- <li>
909
- <div class="collapsible-header"><?php
910
- _e('Import settings', 'final-tiles-grid-gallery-lite');
911
- ?>
912
- <svg class="components-panel__arrow" width="24px" height="24px" viewBox="0 0 24 24"
913
- xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false">
914
- <g>
915
- <path fill="none" d="M0,0h24v24H0V0z"></path>
916
- </g>
917
- <g>
918
- <path d="M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"></path>
919
- </g>
920
- </svg>
921
- </div>
922
- <div class="collapsible-body">
923
- <p><?php
924
- _e('Paste Here the configuration code', 'final-tiles-grid-gallery-lite');
925
- ?></p>
926
- <div><textarea data-import-text></textarea></div>
927
- <button data-ftg-import class="button"><i class="fa fa-upload"></i> <?php
928
- _e('Import', 'final-tiles-grid-gallery-lite');
929
- ?></button>
930
- </div>
931
- </li>
932
- <li>
933
- <div class="collapsible-header"><?php
934
- _e('Export settings', 'final-tiles-grid-gallery-lite');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
935
  ?>
936
- <svg class="components-panel__arrow" width="24px" height="24px" viewBox="0 0 24 24"
937
- xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false">
938
- <g>
939
- <path fill="none" d="M0,0h24v24H0V0z"></path>
940
- </g>
941
- <g>
942
- <path d="M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"></path>
943
- </g>
944
- </svg>
945
- </div>
946
- <div class="collapsible-body">
947
- <p><?php
948
- _e('Settings', 'final-tiles-grid-gallery-lite');
949
- ?></p>
950
- <div><textarea readonly id="ftg-export-code"></textarea></div>
951
- <button id="ftg-export" class="button"><i class="fa fa-download"></i> <?php
952
- _e('Refresh code', 'final-tiles-grid-gallery-lite');
953
- ?></button>
954
- </div>
955
- </li>
956
- <li>
957
- <div class="collapsible-header"><?php
958
- _e('Help', 'final-tiles-grid-gallery-lite');
959
  ?>
960
- <svg class="components-panel__arrow" width="24px" height="24px" viewBox="0 0 24 24"
961
- xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false">
962
- <g>
963
- <path fill="none" d="M0,0h24v24H0V0z"></path>
964
- </g>
965
- <g>
966
- <path d="M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"></path>
967
- </g>
968
- </svg>
969
- </div>
970
- <div class="collapsible-body">
971
- <ul class="collection">
972
- <li class="collection-item">
973
- <i class="fa fa-chevron-right"></i>
974
- <a href="http://issuu.com/greentreelabs/docs/finaltilesgridgallery-documentation?e=17859916/13243836"
975
- target="_blank"><?php
976
- _e('Documentation', 'final-tiles-grid-gallery-lite');
977
- ?></a></li>
978
- <li class="collection-item">
979
- <i class="fa fa-chevron-right"></i>
980
- <a target="_blank" href="https://www.youtube.com/watch?v=RNT4JGjtyrs">
981
- <?php
982
- _e('Tutorial', 'final-tiles-grid-gallery-lite');
983
- ?></a>
984
- </li>
985
- <li class="collection-item">
986
- <i class="fa fa-chevron-right"></i>
987
- <a href="http://www.wpbeginner.com/wp-tutorials/how-to-create-additional-image-sizes-in-wordpress/"
988
- target="_blank"><?php
989
- _e('How to add additional image sizes', 'final-tiles-grid-gallery-lite');
990
- ?></a>
991
- </li>
992
- </ul>
993
- </div>
994
- </li>
995
- </ul>
996
- <ul class="collapsible gallery-actions">
997
- <li>
998
- <div class="collapsible-header"><?php
999
- _e('FAQ', 'final-tiles-grid-gallery-lite');
1000
  ?>
1001
- <svg class="components-panel__arrow" width="24px" height="24px" viewBox="0 0 24 24"
1002
- xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false">
1003
- <g>
1004
- <path fill="none" d="M0,0h24v24H0V0z"></path>
1005
- </g>
1006
- <g>
1007
- <path d="M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"></path>
1008
- </g>
1009
- </svg>
1010
- </div>
1011
- <div class="collapsible-body">
1012
- <ul class="collapsible gallery-actions">
1013
- <li>
1014
- <div class="collapsible-header"><?php
1015
- _e('How can I change the grid on mobile?', 'final-tiles-grid-gallery-lite');
1016
- ?>
1017
- <svg class="components-panel__arrow" width="24px" height="24px" viewBox="0 0 24 24"
1018
- xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false">
1019
- <g>
1020
- <path fill="none" d="M0,0h24v24H0V0z"></path>
1021
- </g>
1022
- <g>
1023
- <path d="M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"></path>
1024
- </g>
1025
- </svg>
1026
- </div>
1027
- <div class="collapsible-body">
1028
- <p><?php
1029
- _e('You can customize the aspect of your galleries for any device. Find the options "Image size factor" into the "Advanced" section. Set a lower value to make images smaller and a higher value to make images larger.');
1030
- ?></p>
1031
- </div>
1032
- </li>
1033
- <li>
1034
- <div class="collapsible-header"><?php
1035
- _e('How to add a link to a picture?', 'final-tiles-grid-gallery-lite');
1036
- ?>
1037
- <svg class="components-panel__arrow" width="24px" height="24px" viewBox="0 0 24 24"
1038
- xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false">
1039
- <g>
1040
- <path fill="none" d="M0,0h24v24H0V0z"></path>
1041
- </g>
1042
- <g>
1043
- <path d="M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"></path>
1044
- </g>
1045
- </svg>
1046
- </div>
1047
- <div class="collapsible-body">
1048
- <p><?php
1049
- _e('Click the edit (pencil) icon on the image and insert the link inside the "Link" field', 'final-tiles-grid-gallery-lite');
1050
- ?></p>
1051
- </div>
1052
- </li>
1053
- <li>
1054
- <div class="collapsible-header"><?php
1055
- _e('Why my images look blurry?', 'final-tiles-grid-gallery-lite');
1056
- ?>
1057
- <svg class="components-panel__arrow" width="24px" height="24px" viewBox="0 0 24 24"
1058
- xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" focusable="false">
1059
- <g>
1060
- <path fill="none" d="M0,0h24v24H0V0z"></path>
1061
- </g>
1062
- <g>
1063
- <path d="M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"></path>
1064
- </g>
1065
- </svg>
1066
- </div>
1067
- <div class="collapsible-body">
1068
- <p><?php
1069
- _e('You probably have chosen a small image size. Click the edit (pencil) icon on the blurry image and choose a larger size. Remember, you can choose the size before adding the images to the gallery', 'final-tiles-grid-gallery-lite');
1070
- ?></p>
1071
- </div>
1072
- </li>
1073
- </ul>
1074
- </div>
1075
- </li>
1076
- </ul>
1077
- </div>
1078
- </div>
1079
-
1080
-
1081
- <!-- video panel -->
1082
- <div id="video-panel-model" class="modal">
1083
- <div class="modal-content">
1084
- <p><?php
1085
- _e('Paste here the embed code (it must be an ', 'final-tiles-grid-gallery-lite');
1086
- ?><strong><?php
1087
- _e('iframe', 'final-tiles-grid-gallery-lite');
1088
- ?></strong>
1089
- <?php
1090
- _e('and it must contain the attributes', 'final-tiles-grid-gallery-lite');
1091
- ?> <strong><?php
1092
- _e('width', 'final-tiles-grid-gallery-lite');
1093
- ?></strong> <?php
1094
- _e('and', 'final-tiles-grid-gallery-lite');
1095
- ?><strong><?php
1096
- _e(' height', 'final-tiles-grid-gallery-lite');
1097
- ?></strong>)</p>
1098
- <div class="text dark">
1099
- <textarea></textarea>
1100
- </div>
1101
- <div class="field video-filters clearfix"></div>
1102
- <input type="hidden" id="filter-video" value="<?php
1103
- print $gallery->filters;
1104
- ?>">
1105
- </div>
1106
- <input type="hidden" id="video-panel-action">
1107
- <div class="field buttons modal-footer">
1108
- <a href="#" data-action="edit"
1109
- class="action positive save modal-action modal-close waves-effect waves-green btn-flat"><?php
1110
- _e('Save', 'final-tiles-grid-gallery-lite');
1111
- ?></a>
1112
- <a href="#" data-action="cancel"
1113
- class="action neutral modal-action modal-close waves-effect waves-yellow btn-flat"><?php
1114
- _e('Cancel', 'final-tiles-grid-gallery-lite');
1115
- ?></a>
1116
- </div>
1117
- </div>
1118
-
1119
-
1120
- <!-- image panel -->
1121
- <div id="image-panel-model" class="modal">
1122
- <div class="modal-content cf">
1123
- <h4><?php
1124
- _e('Edit image', 'final-tiles-grid-gallery-lite');
1125
- ?></h4>
1126
- <div class="left">
1127
- <div class="figure"></div>
1128
- <div class="field sizes"></div>
1129
- </div>
1130
- <div class="right-side">
1131
- <div class="field">
1132
- <label><?php
1133
- _e('Title', 'final-tiles-grid-gallery-lite');
1134
- ?></label>
1135
- <div class="text">
1136
- <textarea name="imageTitle"></textarea>
1137
- </div>
1138
- </div>
1139
- <div class="field">
1140
- <label><?php
1141
- _e('Caption', 'final-tiles-grid-gallery-lite');
1142
- ?></label>
1143
- <div class="text">
1144
- <textarea name="description"></textarea>
1145
- </div>
1146
- </div>
1147
- <div class="field">
1148
- <label><?php
1149
- _e('Alt', 'final-tiles-grid-gallery-lite');
1150
- ?><?php
1151
- _e('(leave empty to use title or description as ALT attribute)', 'final-tiles-grid-gallery-lite');
1152
- ?></label>
1153
- <div class="text">
1154
- <input type="text" name="alt"/>
1155
- </div>
1156
- </div>
1157
- <div class="field">
1158
- <input class="browser-default" id="hidden-image" type="checkbox" name="hidden" value="T"/>
1159
- <label for="hidden-image">
1160
- <?php
1161
- _e('Hidden, visible only with lightbox', 'final-tiles-grid-gallery-lite');
1162
  ?>
1163
- </label>
1164
- </div>
1165
- <div class="field js-no-hidden">
1166
-
1167
- <table>
1168
- <tr>
1169
- <td style="width: 60%">
1170
- <label><?php
1171
- _e('Link', 'final-tiles-grid-gallery-lite');
1172
- ?></label><br>
1173
- <input type="text" size="20" value="" name="link"/>
1174
- </td>
1175
- <td>
1176
- <label><?php
1177
- _e('Link target', 'final-tiles-grid-gallery-lite');
1178
- ?></label>
1179
- <select name="target" class="browser-default">
1180
- <option value="default"><?php
1181
- _e('Default target', 'final-tiles-grid-gallery-lite');
1182
- ?></option>
1183
- <option value="_self"><?php
1184
- _e('Open in same page', 'final-tiles-grid-gallery-lite');
1185
- ?></option>
1186
- <option value="_blank"><?php
1187
- _e('Open in _blank', 'final-tiles-grid-gallery-lite');
1188
- ?></option>
1189
- <option value="_lightbox"><?php
1190
- _e('Open in lightbox (when using a lightbox)', 'final-tiles-grid-gallery-lite');
1191
- ?></option>
1192
- </select>
1193
- </td>
1194
- </tr>
1195
- </table>
1196
- </div>
1197
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1198
  ?>
1199
- </div>
1200
- </div>
1201
- <div class="field buttons modal-footer">
1202
- <a href="#" data-action="cancel" class="modal-close action button"><i class="mdi-content-reply"></i> <?php
1203
- _e('Cancel', 'final-tiles-grid-gallery-lite');
1204
- ?></a>
1205
- <a href="#" data-action="save" class="modal-close button components-button is-primary"><i
1206
- class="fa fa-save"></i> <?php
1207
- _e('Save', 'final-tiles-grid-gallery-lite');
1208
- ?></a>
1209
- </div>
1210
- </div>
1211
-
1212
- <div class="preloader-wrapper big active" id="spinner">
1213
- <div class="spinner-layer spinner-blue-only">
1214
- <div class="circle-clipper left">
1215
- <div class="circle"></div>
1216
- </div>
1217
- <div class="gap-patch">
1218
- <div class="circle"></div>
1219
- </div>
1220
- <div class="circle-clipper right">
1221
- <div class="circle"></div>
1222
- </div>
1223
- </div>
1224
- </div>
1225
- <!-- images section -->
1226
-
1227
- <div class="overlay" style="display:none"></div>
1228
-
1229
- <script>
1230
- var presets = {};
1231
- <?php
1232
- $presetIdx = 0;
1233
- foreach ($ftg_fields as $section => $s) {
1234
- if (array_key_exists("presets", $s)) {
1235
- foreach ($s["presets"] as $preset => $values) {
1236
- echo "presets['preset_" . $presetIdx . "_" . $preset . "'] = " . json_encode($values) . ";\n";
1237
  }
 
 
 
 
 
 
 
 
1238
  }
1239
- $presetIdx++;
 
 
1240
  }
1241
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1242
 
1243
- var ftg_wp_caption_field = '<?php
1244
- ftg_p($gallery, "wp_field_caption");
1245
- ?>';
1246
- (function ($) {
1247
- $("[name=captionFullHeight]").change(function () {
1248
- if ($(this).val() == "F")
1249
- $("[name=captionEffect]").val("fade");
1250
- });
1251
- $("[name=captionEffect]").change(function () {
1252
- if ($(this).val() != "fade" && $("[name=captionFullHeight]").val() == "F") {
1253
- $(this).val("fade");
1254
- alert("Cannot set this effect if 'Caption full height' is switched off.");
1255
- }
1256
- });
1257
-
1258
- <?php
1259
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1260
 
1261
- })(jQuery);
1262
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
 
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 ) &&