Version Description
- Added links to PhotoBlocks Grid Gallery
Download this release
Release Info
Developer | GreenTreeLabs |
Plugin | Image Photo Gallery Final Tiles Grid |
Version | 3.3.37 |
Comparing to | |
See all releases |
Code changes from version 3.3.36 to 3.3.37
- FinalTilesGalleryLite.php +102 -2
- admin/images/photoblocks.png +0 -0
- admin/photoblocks.php +30 -0
- admin/scripts/admin.js +10 -0
- admin/scripts/final-tiles-gallery-admin.js +4 -1
- admin/support.php +1 -1
- readme.txt +4 -1
FinalTilesGalleryLite.php
CHANGED
@@ -5,15 +5,17 @@
|
|
5 |
* Plugin URI: https://www.final-tiles-gallery.com
|
6 |
* Description: Wordpress Plugin for creating responsive image galleries. By: GreenTreeLabs
|
7 |
* Author: Green Tree Labs
|
8 |
-
* Version: 3.3.
|
9 |
* Author URI: https://www.greentreelabs.net
|
10 |
*
|
11 |
* @fs_premium_only /lightbox-pro/
|
12 |
*
|
13 |
*/
|
14 |
-
define( "FTGVERSION", "3.3.
|
15 |
/*
|
16 |
Changelog:
|
|
|
|
|
17 |
3.3.36
|
18 |
PHP 7.1 compatibility
|
19 |
3.3.35
|
@@ -459,10 +461,12 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
459 |
);
|
460 |
add_action( 'wp_ajax_load_chunk', array( $this, 'load_chunk' ) );
|
461 |
add_action( 'wp_ajax_nopriv_load_chunk', array( $this, 'load_chunk' ) );
|
|
|
462 |
|
463 |
if ( ftg_fs()->is_not_paying() ) {
|
464 |
add_action( 'admin_notices', array( $this, 'review' ) );
|
465 |
add_action( 'wp_ajax_ftg_dismiss_review', array( $this, 'dismiss_review' ) );
|
|
|
466 |
add_filter(
|
467 |
'admin_footer_text',
|
468 |
array( $this, 'admin_footer' ),
|
@@ -474,6 +478,68 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
474 |
$this->resetFields();
|
475 |
}
|
476 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
477 |
public function review()
|
478 |
{
|
479 |
// Verify that we can do a check for reviews.
|
@@ -585,6 +651,18 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
585 |
die;
|
586 |
}
|
587 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
588 |
public function admin_footer( $text )
|
589 |
{
|
590 |
global $current_screen ;
|
@@ -923,9 +1001,18 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
923 |
'ftg-tutorial',
|
924 |
array( $this, 'tutorial' )
|
925 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
926 |
add_action( 'load-' . $tutorial, array( $this, 'gallery_admin_init' ) );
|
927 |
add_action( 'load-' . $overview, array( $this, 'gallery_admin_init' ) );
|
928 |
add_action( 'load-' . $add_gallery, array( $this, 'gallery_admin_init' ) );
|
|
|
929 |
}
|
930 |
|
931 |
//Create Admin Pages
|
@@ -965,6 +1052,11 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
|
|
965 |
include "admin/support.php";
|
966 |
}
|
967 |
|
|
|
|
|
|
|
|
|
|
|
968 |
private function getWooCategories()
|
969 |
{
|
970 |
|
@@ -1690,3 +1782,11 @@ if ( class_exists( "FinalTiles_Gallery" ) ) {
|
|
1690 |
global $ob_FinalTiles_Gallery ;
|
1691 |
$ob_FinalTiles_Gallery = new FinalTiles_Gallery();
|
1692 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
* Plugin URI: https://www.final-tiles-gallery.com
|
6 |
* Description: Wordpress Plugin for creating responsive image galleries. By: GreenTreeLabs
|
7 |
* Author: Green Tree Labs
|
8 |
+
* Version: 3.3.37
|
9 |
* Author URI: https://www.greentreelabs.net
|
10 |
*
|
11 |
* @fs_premium_only /lightbox-pro/
|
12 |
*
|
13 |
*/
|
14 |
+
define( "FTGVERSION", "3.3.37" );
|
15 |
/*
|
16 |
Changelog:
|
17 |
+
3.3.37
|
18 |
+
PhotoBlocks banners
|
19 |
3.3.36
|
20 |
PHP 7.1 compatibility
|
21 |
3.3.35
|
461 |
);
|
462 |
add_action( 'wp_ajax_load_chunk', array( $this, 'load_chunk' ) );
|
463 |
add_action( 'wp_ajax_nopriv_load_chunk', array( $this, 'load_chunk' ) );
|
464 |
+
add_action( 'admin_notices', array( $this, 'photoblocks_notice' ) );
|
465 |
|
466 |
if ( ftg_fs()->is_not_paying() ) {
|
467 |
add_action( 'admin_notices', array( $this, 'review' ) );
|
468 |
add_action( 'wp_ajax_ftg_dismiss_review', array( $this, 'dismiss_review' ) );
|
469 |
+
add_action( 'wp_ajax_ftg_dismiss_photoblocks', array( $this, 'dismiss_photoblocks' ) );
|
470 |
add_filter(
|
471 |
'admin_footer_text',
|
472 |
array( $this, 'admin_footer' ),
|
478 |
$this->resetFields();
|
479 |
}
|
480 |
|
481 |
+
public function photoblocks_notice()
|
482 |
+
{
|
483 |
+
// Verify that we can do a check for reviews.
|
484 |
+
$review = get_option( 'ftg_photoblocks' );
|
485 |
+
$time = time();
|
486 |
+
$load = false;
|
487 |
+
$there_was_review = false;
|
488 |
+
|
489 |
+
if ( !$review ) {
|
490 |
+
$review = array(
|
491 |
+
'time' => $time,
|
492 |
+
'dismissed' => false,
|
493 |
+
);
|
494 |
+
$load = true;
|
495 |
+
$there_was_review = false;
|
496 |
+
} else {
|
497 |
+
// Check if it has been dismissed or not.
|
498 |
+
if ( isset( $review['dismissed'] ) && !$review['dismissed'] && (isset( $review['time'] ) && $review['time'] + DAY_IN_SECONDS <= $time) ) {
|
499 |
+
$load = true;
|
500 |
+
}
|
501 |
+
}
|
502 |
+
|
503 |
+
// If we cannot load, return early.
|
504 |
+
if ( !$load ) {
|
505 |
+
return;
|
506 |
+
}
|
507 |
+
// We have a candidate! Output a review message.
|
508 |
+
?>
|
509 |
+
<div class="notice notice-info is-dismissible ftg-photoblocks-notice">
|
510 |
+
<p><?php
|
511 |
+
_e( 'We released a new gallery plugin, have a look at <strong><a href="https://wordpress.org/plugins/photoblocks-grid-gallery/">PhotoBlocks Grid Gallery</a></strong>!', 'final-tiles-gallery-lite' );
|
512 |
+
?></p>
|
513 |
+
<p>
|
514 |
+
<a style="margin-right:10px;" href="https://wordpress.org/plugins/photoblocks-grid-gallery/" class="ftg-dismiss-photoblocks-notice ftg-photoblocks-out" target="_blank" rel="noopener"><?php
|
515 |
+
_e( 'Ok', 'final-tiles-gallery-lite' );
|
516 |
+
?></a>
|
517 |
+
<a style="margin-right:10px;" href="#" class="ftg-dismiss-photoblocks-notice" rel="noopener"><?php
|
518 |
+
_e( 'Maybe later', 'final-tiles-gallery' );
|
519 |
+
?></a>
|
520 |
+
<a href="#" class="ftg-dismiss-photoblocks-notice" rel="noopener"><?php
|
521 |
+
_e( 'I already did', 'final-tiles-gallery' );
|
522 |
+
?></a>
|
523 |
+
</p>
|
524 |
+
</div>
|
525 |
+
<script type="text/javascript">
|
526 |
+
jQuery(document).ready( function($) {
|
527 |
+
$(document).on('click', '.ftg-dismiss-photoblocks-notice, .ftg-photoblocks-notice button', function( event ) {
|
528 |
+
if ( ! $(this).hasClass('ftg-photoblocks-out') ) {
|
529 |
+
event.preventDefault();
|
530 |
+
}
|
531 |
+
|
532 |
+
$.post( ajaxurl, {
|
533 |
+
action: 'ftg_dismiss_photoblocks'
|
534 |
+
});
|
535 |
+
|
536 |
+
$('.ftg-photoblocks-notice').remove();
|
537 |
+
});
|
538 |
+
});
|
539 |
+
</script>
|
540 |
+
<?php
|
541 |
+
}
|
542 |
+
|
543 |
public function review()
|
544 |
{
|
545 |
// Verify that we can do a check for reviews.
|
651 |
die;
|
652 |
}
|
653 |
|
654 |
+
public function dismiss_photoblocks()
|
655 |
+
{
|
656 |
+
$review = get_option( 'ftg_photoblocks' );
|
657 |
+
if ( !$review ) {
|
658 |
+
$review = array();
|
659 |
+
}
|
660 |
+
$review['time'] = time();
|
661 |
+
$review['dismissed'] = true;
|
662 |
+
update_option( 'ftg_photoblocks', $review );
|
663 |
+
die;
|
664 |
+
}
|
665 |
+
|
666 |
public function admin_footer( $text )
|
667 |
{
|
668 |
global $current_screen ;
|
1001 |
'ftg-tutorial',
|
1002 |
array( $this, 'tutorial' )
|
1003 |
);
|
1004 |
+
$photoblocks = add_submenu_page(
|
1005 |
+
'ftg-lite-gallery-admin',
|
1006 |
+
__( 'FinalTiles Gallery >> PhotoBlocks', 'FinalTiles-gallery' ),
|
1007 |
+
__( 'PhotoBlocks', 'FinalTiles-gallery' ),
|
1008 |
+
'edit_posts',
|
1009 |
+
'ftg-photoblocks',
|
1010 |
+
array( $this, 'photoblocks' )
|
1011 |
+
);
|
1012 |
add_action( 'load-' . $tutorial, array( $this, 'gallery_admin_init' ) );
|
1013 |
add_action( 'load-' . $overview, array( $this, 'gallery_admin_init' ) );
|
1014 |
add_action( 'load-' . $add_gallery, array( $this, 'gallery_admin_init' ) );
|
1015 |
+
add_action( 'load-' . $photoblocks, array( $this, 'gallery_admin_init' ) );
|
1016 |
}
|
1017 |
|
1018 |
//Create Admin Pages
|
1052 |
include "admin/support.php";
|
1053 |
}
|
1054 |
|
1055 |
+
public function photoblocks()
|
1056 |
+
{
|
1057 |
+
include "admin/photoblocks.php";
|
1058 |
+
}
|
1059 |
+
|
1060 |
private function getWooCategories()
|
1061 |
{
|
1062 |
|
1782 |
global $ob_FinalTiles_Gallery ;
|
1783 |
$ob_FinalTiles_Gallery = new FinalTiles_Gallery();
|
1784 |
}
|
1785 |
+
|
1786 |
+
function ftg_admin_script()
|
1787 |
+
{
|
1788 |
+
wp_register_script( 'admin-generic-ftg', plugins_url( 'admin/scripts/admin.js', __FILE__ ), array( 'jquery' ) );
|
1789 |
+
wp_enqueue_script( 'admin-generic-ftg' );
|
1790 |
+
}
|
1791 |
+
|
1792 |
+
add_action( 'admin_enqueue_scripts', 'ftg_admin_script' );
|
admin/images/photoblocks.png
ADDED
Binary file
|
admin/photoblocks.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die(_e('You are not allowed to call this page directly.','final-tiles-gallery')); } ?>
|
2 |
+
|
3 |
+
<style>
|
4 |
+
#support-page .main-pic {
|
5 |
+
width: 100%;
|
6 |
+
margin-bottom:20px;
|
7 |
+
}
|
8 |
+
#support-page iframe {
|
9 |
+
width: 100%;
|
10 |
+
margin-top:20px;
|
11 |
+
}
|
12 |
+
</style>
|
13 |
+
|
14 |
+
<div class="container">
|
15 |
+
<div class="row">
|
16 |
+
<div class="section s12 m12 l12 col" id="support-page">
|
17 |
+
<h4 class="center-on-small-only">Other galleries:</h4>
|
18 |
+
<h1 class="header center-on-small-only">PhotoBlocks</h1>
|
19 |
+
<a href="https://wordpress.org/plugins/photoblocks-grid-gallery/"><img src="<?php echo plugins_url('images', __FILE__) ?>/photoblocks.png" alt="PhotoBlocks preview" class="main-pic"></a>
|
20 |
+
<p>PhotoBlocks Grid Builder is the stellar feature that makes PhotoBlocks special and different from other galleries.
|
21 |
+
With this tool you can design the layout of your gallery simply by dragging the images. You can make a gallery
|
22 |
+
with images spanning on more columns or rows.</p>
|
23 |
+
<iframe width="100%" height="380px" src="https://www.youtube-nocookie.com/embed/x3zfTDwoQc4?rel=0&controls=0&showinfo=0&autoplay=1&loop=1&playlist=x3zfTDwoQc4&modestbranding=1" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
|
24 |
+
|
25 |
+
<p>
|
26 |
+
<a class="button" href="https://wordpress.org/plugins/photoblocks-grid-gallery/" aria-label="Download PhotoBlocks – Image Photo Grid Gallery 1.0.1" >Download</a>
|
27 |
+
</p>
|
28 |
+
</div>
|
29 |
+
</div>
|
30 |
+
</div>
|
admin/scripts/admin.js
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(function () {
|
2 |
+
var $ = jQuery;
|
3 |
+
|
4 |
+
$(".fs-modal").on("click", 'input', function () {
|
5 |
+
if($(this).val() == "2" || $(this).val() == "7") {
|
6 |
+
$(this).parents(".reason").find('input[type="text"], .message').hide();
|
7 |
+
$(this).parents(".reason").addClass("other-plugin").find(".reason-input").prepend("<p class='photoblocks-tip'>👉 Maybe <a href='plugin-install.php?s=photoblocks&tab=search&type=term'>PhotoBlocks</a> could be the right gallery for you!</p>");
|
8 |
+
}
|
9 |
+
});
|
10 |
+
});
|
admin/scripts/final-tiles-gallery-admin.js
CHANGED
@@ -1183,4 +1183,7 @@ jQuery(function() {
|
|
1183 |
});
|
1184 |
FTG.init();
|
1185 |
FTGWizard.init();
|
1186 |
-
|
|
|
|
|
|
1183 |
});
|
1184 |
FTG.init();
|
1185 |
FTGWizard.init();
|
1186 |
+
|
1187 |
+
|
1188 |
+
|
1189 |
+
});
|
admin/support.php
CHANGED
@@ -26,7 +26,7 @@
|
|
26 |
</ul>
|
27 |
<p><strong><?php _e("The more complete these informations are, the faster we'll be our response",'final-tiles-gallery')?></strong><?php _e('(time zone permitting), thanks!','final-tiles-gallery')?></p>
|
28 |
<p class="buttons">
|
29 |
-
<a class="right waves-effect waves-light btn" href="
|
30 |
</p>
|
31 |
</div>
|
32 |
</div>
|
26 |
</ul>
|
27 |
<p><strong><?php _e("The more complete these informations are, the faster we'll be our response",'final-tiles-gallery')?></strong><?php _e('(time zone permitting), thanks!','final-tiles-gallery')?></p>
|
28 |
<p class="buttons">
|
29 |
+
<a class="right waves-effect waves-light btn" href="https://www.final-tiles-gallery.com/support" target="_blank"><i class="mdi-content-send right"></i> <?php _e('Go to GreenTreeLabs support platform','final-tiles-gallery')?> </a>
|
30 |
</p>
|
31 |
</div>
|
32 |
</div>
|
readme.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
=== Image Photo Gallery Final Tiles Grid ===
|
2 |
-
Contributors: GreenTreeLabs
|
3 |
Donate link: http://amzn.eu/5SP6qpj
|
4 |
Tags: gallery, grid gallery, best gallery plugin, free gallery, gallery plugin, gallery grid plugin, masonry, photo gallery, image gallery, social gallery, portfolio gallery, lightbox, justified gallery
|
5 |
Requires at least: 3.8.2
|
@@ -135,6 +135,9 @@ Currently galleries made with Envira, FooGallery, Instagram, NextGen, JetPack, M
|
|
135 |
|
136 |
== Changelog ==
|
137 |
|
|
|
|
|
|
|
138 |
= 3.3.36 =
|
139 |
* [Enhancement] PHP 7.1 compatibility
|
140 |
|
1 |
=== Image Photo Gallery Final Tiles Grid ===
|
2 |
+
Contributors: GreenTreeLabs, freemius
|
3 |
Donate link: http://amzn.eu/5SP6qpj
|
4 |
Tags: gallery, grid gallery, best gallery plugin, free gallery, gallery plugin, gallery grid plugin, masonry, photo gallery, image gallery, social gallery, portfolio gallery, lightbox, justified gallery
|
5 |
Requires at least: 3.8.2
|
135 |
|
136 |
== Changelog ==
|
137 |
|
138 |
+
= 3.3.37 =
|
139 |
+
* Added links to PhotoBlocks Grid Gallery
|
140 |
+
|
141 |
= 3.3.36 =
|
142 |
* [Enhancement] PHP 7.1 compatibility
|
143 |
|