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 | 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
- FinalTilesGalleryLite.php +36 -38
- admin/add-gallery.php +13 -9
- admin/css/style.css +21 -0
- admin/facebook.php +1 -1
- admin/images/everlightbox-reviews.png +0 -0
- admin/images/everlightbox.png +0 -0
- admin/include/edit-gallery.php +1113 -1191
- admin/include/fields.php +82 -82
- admin/overview.php +5 -4
- admin/scripts/admin.js +12 -0
- admin/scripts/editor-plugin.js +3 -3
- admin/scripts/final-tiles-gallery-admin.js +40 -36
- freemius/README.md +0 -253
- freemius/assets/css/admin/deactivation-feedback.css +0 -1
- freemius/assets/css/admin/license-activation.css +0 -1
- freemius/assets/scss/_colors.scss +0 -79
- freemius/assets/scss/_functions.scss +0 -0
- freemius/assets/scss/_load.scss +0 -4
- freemius/assets/scss/_mixins.scss +0 -270
- freemius/assets/scss/_start.scss +0 -4
- freemius/assets/scss/_vars.scss +0 -6
- freemius/assets/scss/admin/_ajax-loader.scss +0 -49
- freemius/assets/scss/admin/_auto-install.scss +0 -33
- freemius/assets/scss/admin/_deactivation-feedback.scss +0 -55
- freemius/assets/scss/admin/_gdpr-consent.scss +0 -81
- freemius/assets/scss/admin/_license-activation.scss +0 -47
- freemius/assets/scss/admin/_license-key-resend.scss +0 -68
- freemius/assets/scss/admin/_modal-common.scss +0 -194
- freemius/assets/scss/admin/_multisite-options.scss +0 -40
- freemius/assets/scss/admin/_themes.scss +0 -21
- freemius/assets/scss/admin/_tooltip.scss +0 -66
- freemius/assets/scss/admin/account.scss +0 -302
- freemius/assets/scss/admin/add-ons.scss +0 -449
- freemius/assets/scss/admin/affiliation.scss +0 -97
- freemius/assets/scss/admin/checkout.scss +0 -5
- freemius/assets/scss/admin/common.scss +0 -220
- freemius/assets/scss/admin/connect.scss +0 -548
- freemius/assets/scss/admin/debug.scss +0 -135
- freemius/assets/scss/admin/dialog-boxes.scss +0 -10
- freemius/assets/scss/admin/gdpr-optin-notice.scss +0 -17
- freemius/assets/scss/admin/index.php +0 -3
- freemius/assets/scss/customizer.scss +0 -125
- freemius/assets/scss/index.php +0 -3
- freemius/composer.json +0 -10
- freemius/gulpfile.js +0 -167
- freemius/package.json +0 -27
- languages/final-tiles-grid-gallery-lite-bkp-de.po +1810 -0
- languages/final-tiles-grid-gallery-lite-de_DE.mo +0 -0
- languages/final-tiles-grid-gallery-lite-de_DE.po +1810 -0
- languages/final-tiles-grid-gallery-lite-it_IT.po +2 -2
- languages/final-tiles-grid-gallery-lite.po +1397 -0
- lib/gallery-class.php +6 -6
- lib/languages/final-tiles-gallery.pot +1 -1
- readme.txt +13 -11
- 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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'
|
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', '
|
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
|
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( '
|
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">★★★★★</a> on <a href="%s" target="_blank">WordPress.org</a> to help us spread the word. Thank you from the Final Tiles Gallery team!', '
|
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', '
|
745 |
-
__( 'Add 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">★★★★★</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"
|
173 |
-
|
|
|
|
|
|
|
|
|
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/
|
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 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
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 |
-
|
36 |
-
|
37 |
-
|
|
|
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 |
-
|
|
|
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 |
-
|
|
|
72 |
return " (upgrade to unlock)";
|
73 |
}
|
74 |
return "";
|
@@ -76,1187 +82,1103 @@ if (!function_exists('ftg_p')) {
|
|
76 |
|
77 |
}
|
78 |
|
79 |
-
global
|
80 |
-
global
|
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 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
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 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
434 |
?>
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
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 |
-
|
837 |
}
|
838 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
839 |
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
846 |
?>
|
847 |
-
|
848 |
-
|
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 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
935 |
?>
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
?>
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
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 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
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 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
1169 |
-
|
1170 |
-
|
1171 |
-
|
1172 |
-
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
|
1189 |
-
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
1193 |
-
|
1194 |
-
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1198 |
?>
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
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 |
-
|
|
|
|
|
1240 |
}
|
1241 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1242 |
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
|
1247 |
-
|
1248 |
-
|
1249 |
-
|
1250 |
-
|
1251 |
-
|
1252 |
-
|
1253 |
-
|
1254 |
-
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
1258 |
-
|
1259 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1260 |
|
1261 |
-
|
1262 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 ) && |