Image Photo Gallery Final Tiles Grid - Version 3.4.20

Version Description

  • Fix embeded video display
  • Fixed html in title
Download this release

Release Info

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

Code changes from version 3.4.19 to 3.4.20

FinalTilesGalleryLite.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  * Plugin Name: Final Tiles Grid Gallery - Image Gallery
5
  * Description: Wordpress Plugin for creating responsive image galleries.
6
- * Version: 3.4.19
7
  * Author: MachoThemes
8
  * Author URI: https://www.machothemes.com
9
  * Tested up to: 5.2
@@ -24,7 +24,7 @@
24
  * Original Author URI: https://greentreelabs.net
25
  * Original Author: https://profiles.wordpress.org/greentreealbs/
26
  */
27
- define( "FTGVERSION", "3.4.19" );
28
  // Create a helper function for easy SDK access.
29
 
30
  if ( !function_exists( "ftg_fs" ) ) {
@@ -1017,7 +1017,7 @@ if ( !class_exists( 'FinalTiles_Gallery' ) ) {
1017
  $imageUrl = stripslashes( $_POST['img_url'] );
1018
  $imageCaption = wp_kses_post( $_POST['description'] );
1019
  $filters = stripslashes( $_POST['filters'] );
1020
- $title = esc_html( $_POST['imageTitle'] );
1021
  $target = sanitize_text_field( $_POST['target'] );
1022
  $group = sanitize_text_field( $_POST['group'] );
1023
  $alt = sanitize_text_field( $_POST['alt'] );
3
  /**
4
  * Plugin Name: Final Tiles Grid Gallery - Image Gallery
5
  * Description: Wordpress Plugin for creating responsive image galleries.
6
+ * Version: 3.4.20
7
  * Author: MachoThemes
8
  * Author URI: https://www.machothemes.com
9
  * Tested up to: 5.2
24
  * Original Author URI: https://greentreelabs.net
25
  * Original Author: https://profiles.wordpress.org/greentreealbs/
26
  */
27
+ define( "FTGVERSION", "3.4.20" );
28
  // Create a helper function for easy SDK access.
29
 
30
  if ( !function_exists( "ftg_fs" ) ) {
1017
  $imageUrl = stripslashes( $_POST['img_url'] );
1018
  $imageCaption = wp_kses_post( $_POST['description'] );
1019
  $filters = stripslashes( $_POST['filters'] );
1020
+ $title = wp_kses_post( $_POST['imageTitle'] );
1021
  $target = sanitize_text_field( $_POST['target'] );
1022
  $group = sanitize_text_field( $_POST['group'] );
1023
  $alt = sanitize_text_field( $_POST['alt'] );
admin/include/image-list.php CHANGED
@@ -23,7 +23,23 @@ if(isset($gallery))
23
  <img class="thumb" src="<?php echo esc_url(plugins_url('../images/square.gif', __FILE__)); ?>" />
24
  <?php else : ?>
25
  <div class="aspect-ratio">
26
- <?php echo esc_url($image->imagePath); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  </div>
28
  <?php endif ?>
29
  <a href="#<?php echo esc_attr($image->type );?>-panel-model" class="edit modal-trigger">
@@ -71,7 +87,7 @@ if(isset($gallery))
71
  </div>
72
  <div class="card-content">
73
  <p class="truncate">
74
- <?php echo (isset($image->title) && !empty($image->title)) ? esc_html($image->title ): wp_kses_post($image->description );?>
75
  </p>
76
 
77
  <input class="copy" type="hidden" name="id" value="<?php echo esc_attr($image->Id );?>" />
@@ -93,7 +109,31 @@ if(isset($gallery))
93
  <input type="hidden" name="hidden" value="<?php echo esc_attr($image->hidden );?>" />
94
  <input type="hidden" name="sortOrder" value="<?php echo esc_attr($image->sortOrder );?>" />
95
  <pre class="hidden description"><?php echo wp_kses_post($image->description );?></pre>
96
- <pre class="hidden imagepath"><?php echo esc_url($image->imagePath) ?></pre>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  <input type="hidden" id="img-title" value="<?php echo esc_attr($image->title );?>">
98
  <input type="hidden" id="img-alt" value="<?php echo esc_attr($image->alt );?>">
99
  </div>
23
  <img class="thumb" src="<?php echo esc_url(plugins_url('../images/square.gif', __FILE__)); ?>" />
24
  <?php else : ?>
25
  <div class="aspect-ratio">
26
+ <?php echo ('video' != $image->type) ? esc_url($image->imagePath) : wp_kses( $image->imagePath, array(
27
+ 'iframe' => array(
28
+ 'align' => true,
29
+ 'width' => true,
30
+ 'height' => true,
31
+ 'frameborder' => true,
32
+ 'name' => true,
33
+ 'src' => true,
34
+ 'id' => true,
35
+ 'class' => true,
36
+ 'style' => true,
37
+ 'scrolling' => true,
38
+ 'marginwidth' => true,
39
+ 'marginheight' => true,
40
+ 'allowfullscreen' => true,
41
+ ),
42
+ ) ); ?>
43
  </div>
44
  <?php endif ?>
45
  <a href="#<?php echo esc_attr($image->type );?>-panel-model" class="edit modal-trigger">
87
  </div>
88
  <div class="card-content">
89
  <p class="truncate">
90
+ <?php echo (isset($image->title) && !empty($image->title)) ? wp_kses_post($image->title ): wp_kses_post($image->description );?>
91
  </p>
92
 
93
  <input class="copy" type="hidden" name="id" value="<?php echo esc_attr($image->Id );?>" />
109
  <input type="hidden" name="hidden" value="<?php echo esc_attr($image->hidden );?>" />
110
  <input type="hidden" name="sortOrder" value="<?php echo esc_attr($image->sortOrder );?>" />
111
  <pre class="hidden description"><?php echo wp_kses_post($image->description );?></pre>
112
+ <pre class="hidden imagepath">
113
+ <?php
114
+ if ( 'video' == $image->type ) {
115
+ echo wp_kses( $image->imagePath, array(
116
+ 'iframe' => array(
117
+ 'align' => true,
118
+ 'width' => true,
119
+ 'height' => true,
120
+ 'frameborder' => true,
121
+ 'name' => true,
122
+ 'src' => true,
123
+ 'id' => true,
124
+ 'class' => true,
125
+ 'style' => true,
126
+ 'scrolling' => true,
127
+ 'marginwidth' => true,
128
+ 'marginheight' => true,
129
+ 'allowfullscreen' => true,
130
+ ),
131
+ ) );
132
+ } else {
133
+ echo esc_url( $image->imagePath );
134
+ }
135
+ ?>
136
+ </pre>
137
  <input type="hidden" id="img-title" value="<?php echo esc_attr($image->title );?>">
138
  <input type="hidden" id="img-alt" value="<?php echo esc_attr($image->alt );?>">
139
  </div>
lib/gallery-class.php CHANGED
@@ -645,7 +645,23 @@ if ( !class_exists( "FinalTilesGallery" ) ) {
645
 
646
  if ( property_exists( $image, "type" ) && $image->type == "video" ) {
647
  $html .= "<div class='fitvidsignore'>";
648
- $html .= esc_url( $image->imagePath );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
649
  $html .= "</div>";
650
  } else {
651
  //$src = $gallery->sequentialImageLoading == "T" ? "" : $image->imagePath;
@@ -660,7 +676,7 @@ if ( !class_exists( "FinalTilesGallery" ) ) {
660
  }
661
  $title_text = htmlspecialchars( $description, ENT_QUOTES );
662
  if ( $lightbox == 'lightgallery' && $this->useCaptions() ) {
663
- $title_text = "<span class='title'>" . esc_html( $image->title ) . "</span><span class='text'>" . wp_kses_post( $image->description ) . "</span>";
664
  }
665
  $html .= "<a {$title}=\"" . $title_text . "\" ";
666
  $html .= ( $lightbox == "lightbox2" && empty($image->link) ? "data-lightbox='" . esc_attr( $rel ) . "'" : "" );
@@ -692,7 +708,7 @@ if ( !class_exists( "FinalTilesGallery" ) ) {
692
  if ( $gallery->source == "images" && $this->useCaptions() ) {
693
  $html .= "\t<div class='text-wrapper'>\n";
694
  if ( !empty($image->title) && $gallery->wp_field_title != "none" ) {
695
- $html .= "<span class='title'>" . esc_html( $image->title ) . "</span>\n";
696
  }
697
  if ( !empty($image->description) && $gallery->wp_field_caption != "none" ) {
698
  $html .= "\t<span class='text'>" . wp_kses_post( $image->description ) . "</span>\n";
@@ -728,7 +744,7 @@ if ( !class_exists( "FinalTilesGallery" ) ) {
728
  if ( $gallery->source == "images" ) {
729
  $html .= "\t<span>\n";
730
  if ( !empty($image->title) && $this->useCaptions() ) {
731
- $html .= "<span class='title'>" . esc_html( $image->title ) . "</span>\n";
732
  }
733
  if ( !empty($image->description) && $this->useCaptions() ) {
734
  $html .= "\t<span class='text'>" . wp_kses_post( $image->description ) . "</span>\n";
645
 
646
  if ( property_exists( $image, "type" ) && $image->type == "video" ) {
647
  $html .= "<div class='fitvidsignore'>";
648
+ $html .= wp_kses( $image->imagePath, array(
649
+ 'iframe' => array(
650
+ 'align' => true,
651
+ 'width' => true,
652
+ 'height' => true,
653
+ 'frameborder' => true,
654
+ 'name' => true,
655
+ 'src' => true,
656
+ 'id' => true,
657
+ 'class' => true,
658
+ 'style' => true,
659
+ 'scrolling' => true,
660
+ 'marginwidth' => true,
661
+ 'marginheight' => true,
662
+ 'allowfullscreen' => true,
663
+ ),
664
+ ) );
665
  $html .= "</div>";
666
  } else {
667
  //$src = $gallery->sequentialImageLoading == "T" ? "" : $image->imagePath;
676
  }
677
  $title_text = htmlspecialchars( $description, ENT_QUOTES );
678
  if ( $lightbox == 'lightgallery' && $this->useCaptions() ) {
679
+ $title_text = "<span class='title'>" . wp_kses_post( $image->title ) . "</span><span class='text'>" . wp_kses_post( $image->description ) . "</span>";
680
  }
681
  $html .= "<a {$title}=\"" . $title_text . "\" ";
682
  $html .= ( $lightbox == "lightbox2" && empty($image->link) ? "data-lightbox='" . esc_attr( $rel ) . "'" : "" );
708
  if ( $gallery->source == "images" && $this->useCaptions() ) {
709
  $html .= "\t<div class='text-wrapper'>\n";
710
  if ( !empty($image->title) && $gallery->wp_field_title != "none" ) {
711
+ $html .= "<span class='title'>" . wp_kses_post( $image->title ) . "</span>\n";
712
  }
713
  if ( !empty($image->description) && $gallery->wp_field_caption != "none" ) {
714
  $html .= "\t<span class='text'>" . wp_kses_post( $image->description ) . "</span>\n";
744
  if ( $gallery->source == "images" ) {
745
  $html .= "\t<span>\n";
746
  if ( !empty($image->title) && $this->useCaptions() ) {
747
+ $html .= "<span class='title'>" . wp_kses_post( $image->title ) . "</span>\n";
748
  }
749
  if ( !empty($image->description) && $this->useCaptions() ) {
750
  $html .= "\t<span class='text'>" . wp_kses_post( $image->description ) . "</span>\n";
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: machothemes, silkalns, freemius
3
  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
4
  Requires at least: 3.8.2
5
- Tested up to: 5.3
6
- Stable tag: 3.4.19
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -128,6 +128,9 @@ Currently galleries made with Envira, FooGallery, Instagram, NextGen, JetPack, M
128
  6. 52 pages documentation
129
 
130
  == Changelog ==
 
 
 
131
 
132
  = 3.4.19 =
133
  * Escaping and Sanitization
2
  Contributors: machothemes, silkalns, freemius
3
  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
4
  Requires at least: 3.8.2
5
+ Tested up to: 5.4
6
+ Stable tag: 3.4.20
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
128
  6. 52 pages documentation
129
 
130
  == Changelog ==
131
+ = 3.4.20 =
132
+ * Fix embeded video display
133
+ * Fixed html in title
134
 
135
  = 3.4.19 =
136
  * Escaping and Sanitization
scripts/ftg.css CHANGED
@@ -113,7 +113,7 @@
113
  opacity: 1;
114
  }
115
  .final-tiles-gallery .tile iframe.item {
116
- width: 100%;
117
  }
118
  .final-tiles-gallery .ftg-filters {
119
  margin-bottom: 20px;
113
  opacity: 1;
114
  }
115
  .final-tiles-gallery .tile iframe.item {
116
+ width: 100% !important;
117
  }
118
  .final-tiles-gallery .ftg-filters {
119
  margin-bottom: 20px;