Version Description
- [Fix] Fixed image drag and drop
- [Fix] Fixed video edit (Premium)
Download this release
Release Info
| Developer | GreenTreeLabs |
| Plugin | |
| Version | 3.4.12 |
| Comparing to | |
| See all releases | |
Code changes from version 3.4.10 to 3.4.12
- FinalTilesGalleryLite.php +8 -3
- admin/add-gallery.php +16 -17
- admin/css/style.css +51 -2
- admin/include/image-list.php +1 -3
- admin/overview.php +2 -1
- admin/scripts/final-tiles-gallery-admin.js +5 -3
- readme.txt +14 -0
FinalTilesGalleryLite.php
CHANGED
|
@@ -5,16 +5,21 @@
|
|
| 5 |
* Plugin URI: https://www.final-tiles-gallery.com/wordpress
|
| 6 |
* Description: Wordpress Plugin for creating responsive image galleries. By: GreenTreeLabs
|
| 7 |
* Author: Green Tree Labs
|
| 8 |
-
* Version: 3.4.
|
| 9 |
* Author URI: https://www.greentreelabs.net
|
| 10 |
* Text Domain: final-tiles-grid-gallery-lite
|
| 11 |
* Domain Path: /languages
|
| 12 |
*
|
| 13 |
*
|
| 14 |
*/
|
| 15 |
-
define( "FTGVERSION", "3.4.
|
| 16 |
/*
|
| 17 |
Changelog:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
3.4.10
|
| 19 |
Fixed lightbox
|
| 20 |
3.4.9
|
|
@@ -367,7 +372,7 @@ if ( !function_exists( "ftg_fs" ) ) {
|
|
| 367 |
'has_affiliation' => 'all',
|
| 368 |
'menu' => array(
|
| 369 |
'slug' => 'ftg-lite-gallery-admin',
|
| 370 |
-
'contact' =>
|
| 371 |
),
|
| 372 |
'is_live' => true,
|
| 373 |
) );
|
| 5 |
* Plugin URI: https://www.final-tiles-gallery.com/wordpress
|
| 6 |
* Description: Wordpress Plugin for creating responsive image galleries. By: GreenTreeLabs
|
| 7 |
* Author: Green Tree Labs
|
| 8 |
+
* Version: 3.4.12
|
| 9 |
* Author URI: https://www.greentreelabs.net
|
| 10 |
* Text Domain: final-tiles-grid-gallery-lite
|
| 11 |
* Domain Path: /languages
|
| 12 |
*
|
| 13 |
*
|
| 14 |
*/
|
| 15 |
+
define( "FTGVERSION", "3.4.12" );
|
| 16 |
/*
|
| 17 |
Changelog:
|
| 18 |
+
3.4.12
|
| 19 |
+
Fixed image drag and drop
|
| 20 |
+
Fixed edit video
|
| 21 |
+
3.4.11
|
| 22 |
+
Fixed add video
|
| 23 |
3.4.10
|
| 24 |
Fixed lightbox
|
| 25 |
3.4.9
|
| 372 |
'has_affiliation' => 'all',
|
| 373 |
'menu' => array(
|
| 374 |
'slug' => 'ftg-lite-gallery-admin',
|
| 375 |
+
'contact' => true,
|
| 376 |
),
|
| 377 |
'is_live' => true,
|
| 378 |
) );
|
admin/add-gallery.php
CHANGED
|
@@ -29,31 +29,33 @@ wp_nonce_field( 'FinalTiles_gallery', 'FinalTiles_gallery' );
|
|
| 29 |
<input type="hidden" name="gridSize" value="5" />
|
| 30 |
<fieldset data-step="1">
|
| 31 |
<div class="row">
|
| 32 |
-
<div class="
|
| 33 |
-
|
| 34 |
-
<label for="name"><?php
|
| 35 |
_e( 'Name of the gallery', 'final-tiles-grid-gallery-lite' );
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
| 37 |
</div>
|
| 38 |
</div>
|
| 39 |
-
<div class="
|
| 40 |
-
|
| 41 |
-
<label for="description"><?php
|
| 42 |
_e( 'Description of the gallery', 'final-tiles-grid-gallery-lite' );
|
| 43 |
?></label>
|
|
|
|
| 44 |
</div>
|
| 45 |
</fieldset>
|
| 46 |
<fieldset data-step="2">
|
| 47 |
<h5><?php
|
| 48 |
_e( 'Choose the source of the images', 'final-tiles-grid-gallery-lite' );
|
| 49 |
?></h5>
|
| 50 |
-
<p>
|
| 51 |
<input class="with-gap browser-default" type="radio" checked="checked" name="ftg_source" id="source1" value="images" />
|
| 52 |
<label for="source1"><?php
|
| 53 |
_e( 'Media library', 'final-tiles-grid-gallery-lite' );
|
| 54 |
?></label>
|
| 55 |
</p>
|
| 56 |
-
<p>
|
| 57 |
<?php
|
| 58 |
?>
|
| 59 |
<input disabled class="with-gap browser-default" type="radio" name="ftg_source" value="*" id="source2" />
|
|
@@ -69,7 +71,7 @@ _e( 'Unlock this feature. Upgrade Now!', 'final-tiles-grid-gallery-lite' );
|
|
| 69 |
<?php
|
| 70 |
?>
|
| 71 |
</p>
|
| 72 |
-
<p>
|
| 73 |
<?php
|
| 74 |
?>
|
| 75 |
<input class="with-gap browser-default" disabled type="radio" name="ftg_source" value="*" id="source3" />
|
|
@@ -182,16 +184,13 @@ foreach ( $this->list_thumbnail_sizes() as $size => $atts ) {
|
|
| 182 |
}
|
| 183 |
?>
|
| 184 |
</select>
|
| 185 |
-
<label><?php
|
| 186 |
-
_e( 'You can customize each image later', 'final-tiles-grid-gallery-lite' );
|
| 187 |
-
?></label>
|
| 188 |
</div>
|
| 189 |
<div class="field select-images">
|
| 190 |
-
<a class="
|
| 191 |
-
|
| 192 |
_e( 'Add images', 'final-tiles-grid-gallery-lite' );
|
| 193 |
?></a>
|
| 194 |
-
|
| 195 |
<label><?php
|
| 196 |
_e( 'You can add images now or later.', 'final-tiles-grid-gallery-lite' );
|
| 197 |
?></label>
|
|
@@ -232,7 +231,7 @@ _e( 'to customize
|
|
| 232 |
</p>
|
| 233 |
</div>
|
| 234 |
<div class="modal-'footer">
|
| 235 |
-
<a href="?page=ftg-lite-gallery-admin" id="modal-close" class="
|
| 236 |
_e( 'Close', 'final-tiles-grid-gallery-lite' );
|
| 237 |
?></a>
|
| 238 |
</div>
|
| 29 |
<input type="hidden" name="gridSize" value="5" />
|
| 30 |
<fieldset data-step="1">
|
| 31 |
<div class="row">
|
| 32 |
+
<div class="ftg-field">
|
| 33 |
+
<label for="name"><?php
|
|
|
|
| 34 |
_e( 'Name of the gallery', 'final-tiles-grid-gallery-lite' );
|
| 35 |
+
?> <span class="req">(<?php
|
| 36 |
+
_e( 'required', 'final-tiles-grid-gallery-lite' );
|
| 37 |
+
?>)</span></label>
|
| 38 |
+
<input name="ftg_name" id="name" type="text" required="required">
|
| 39 |
</div>
|
| 40 |
</div>
|
| 41 |
+
<div class="ftg-field">
|
| 42 |
+
<label for="description"><?php
|
|
|
|
| 43 |
_e( 'Description of the gallery', 'final-tiles-grid-gallery-lite' );
|
| 44 |
?></label>
|
| 45 |
+
<textarea name="ftg_description" id="description"></textarea>
|
| 46 |
</div>
|
| 47 |
</fieldset>
|
| 48 |
<fieldset data-step="2">
|
| 49 |
<h5><?php
|
| 50 |
_e( 'Choose the source of the images', 'final-tiles-grid-gallery-lite' );
|
| 51 |
?></h5>
|
| 52 |
+
<p class="ftg-inline">
|
| 53 |
<input class="with-gap browser-default" type="radio" checked="checked" name="ftg_source" id="source1" value="images" />
|
| 54 |
<label for="source1"><?php
|
| 55 |
_e( 'Media library', 'final-tiles-grid-gallery-lite' );
|
| 56 |
?></label>
|
| 57 |
</p>
|
| 58 |
+
<p class="ftg-inline">
|
| 59 |
<?php
|
| 60 |
?>
|
| 61 |
<input disabled class="with-gap browser-default" type="radio" name="ftg_source" value="*" id="source2" />
|
| 71 |
<?php
|
| 72 |
?>
|
| 73 |
</p>
|
| 74 |
+
<p class="ftg-inline">
|
| 75 |
<?php
|
| 76 |
?>
|
| 77 |
<input class="with-gap browser-default" disabled type="radio" name="ftg_source" value="*" id="source3" />
|
| 184 |
}
|
| 185 |
?>
|
| 186 |
</select>
|
|
|
|
|
|
|
|
|
|
| 187 |
</div>
|
| 188 |
<div class="field select-images">
|
| 189 |
+
<a class="button add-images">
|
| 190 |
+
<?php
|
| 191 |
_e( 'Add images', 'final-tiles-grid-gallery-lite' );
|
| 192 |
?></a>
|
| 193 |
+
|
| 194 |
<label><?php
|
| 195 |
_e( 'You can add images now or later.', 'final-tiles-grid-gallery-lite' );
|
| 196 |
?></label>
|
| 231 |
</p>
|
| 232 |
</div>
|
| 233 |
<div class="modal-'footer">
|
| 234 |
+
<a href="?page=ftg-lite-gallery-admin" id="modal-close" class="button modal-action"><?php
|
| 235 |
_e( 'Close', 'final-tiles-grid-gallery-lite' );
|
| 236 |
?></a>
|
| 237 |
</div>
|
admin/css/style.css
CHANGED
|
@@ -221,9 +221,27 @@ td, th {
|
|
| 221 |
border: 0;
|
| 222 |
display: none;
|
| 223 |
}
|
| 224 |
-
#ftg-wizard fieldset label{
|
| 225 |
font-size: 16px;
|
| 226 |
color: #333;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
}
|
| 228 |
#ftg-wizard .ftg-input {
|
| 229 |
display: inline-block;
|
|
@@ -233,8 +251,23 @@ td, th {
|
|
| 233 |
#ftg-wizard fieldset:first-of-type {
|
| 234 |
display: block;
|
| 235 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
#ftg-wizard fieldset select {
|
| 237 |
-
height:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 238 |
}
|
| 239 |
#ftg-wizard h1 {
|
| 240 |
font-size: 32px;
|
|
@@ -245,6 +278,18 @@ td, th {
|
|
| 245 |
#ftg-wizard h1 small {
|
| 246 |
font-size: 12px;
|
| 247 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 248 |
h2.ftg-subtitle {
|
| 249 |
font-size:16px;
|
| 250 |
color:#666;
|
|
@@ -756,6 +801,10 @@ h2.ftg-subtitle {
|
|
| 756 |
}
|
| 757 |
#video-panel-model textarea {
|
| 758 |
height: 160px;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 759 |
}
|
| 760 |
#image-list {
|
| 761 |
padding: 10px;
|
| 221 |
border: 0;
|
| 222 |
display: none;
|
| 223 |
}
|
| 224 |
+
#ftg-wizard fieldset label {
|
| 225 |
font-size: 16px;
|
| 226 |
color: #333;
|
| 227 |
+
display: block;
|
| 228 |
+
margin-bottom: 4px;
|
| 229 |
+
}
|
| 230 |
+
#ftg-wizard fieldset .req {
|
| 231 |
+
font-size:12px;
|
| 232 |
+
font-weight: bold;
|
| 233 |
+
}
|
| 234 |
+
#ftg-wizard fieldset input[type=text] {
|
| 235 |
+
border: 1px solid #ccc;
|
| 236 |
+
display: block;
|
| 237 |
+
width: 100%;
|
| 238 |
+
padding: 10px;
|
| 239 |
+
}
|
| 240 |
+
#ftg-wizard fieldset textarea {
|
| 241 |
+
height: 100px;
|
| 242 |
+
}
|
| 243 |
+
#ftg-wizard fieldset .ftg-inline label {
|
| 244 |
+
display: inline-block;
|
| 245 |
}
|
| 246 |
#ftg-wizard .ftg-input {
|
| 247 |
display: inline-block;
|
| 251 |
#ftg-wizard fieldset:first-of-type {
|
| 252 |
display: block;
|
| 253 |
}
|
| 254 |
+
#ftg-wizard fieldset h5 {
|
| 255 |
+
font-size: 14px;
|
| 256 |
+
margin-bottom: 4px;
|
| 257 |
+
}
|
| 258 |
#ftg-wizard fieldset select {
|
| 259 |
+
height: 34px;
|
| 260 |
+
}
|
| 261 |
+
#ftg-wizard fieldset .select-images {
|
| 262 |
+
text-align: center;
|
| 263 |
+
}
|
| 264 |
+
#ftg-wizard fieldset .select-images .button {
|
| 265 |
+
font-size: 19px;
|
| 266 |
+
padding: 10px 20px;
|
| 267 |
+
height: auto;
|
| 268 |
+
}
|
| 269 |
+
#ftg-wizard fieldset .select-images label {
|
| 270 |
+
margin-top: 20px;
|
| 271 |
}
|
| 272 |
#ftg-wizard h1 {
|
| 273 |
font-size: 32px;
|
| 278 |
#ftg-wizard h1 small {
|
| 279 |
font-size: 12px;
|
| 280 |
}
|
| 281 |
+
#success h4 {
|
| 282 |
+
font-size: 20px;
|
| 283 |
+
}
|
| 284 |
+
#success input[type=text] {
|
| 285 |
+
width: 100%;
|
| 286 |
+
display: block;
|
| 287 |
+
margin:10px 0;
|
| 288 |
+
}
|
| 289 |
+
#success .modal-footer {
|
| 290 |
+
text-align: right;
|
| 291 |
+
padding: 10px;
|
| 292 |
+
}
|
| 293 |
h2.ftg-subtitle {
|
| 294 |
font-size:16px;
|
| 295 |
color:#666;
|
| 801 |
}
|
| 802 |
#video-panel-model textarea {
|
| 803 |
height: 160px;
|
| 804 |
+
font-size: 14px;
|
| 805 |
+
}
|
| 806 |
+
#video-panel-model label {
|
| 807 |
+
margin-right: 14px;
|
| 808 |
}
|
| 809 |
#image-list {
|
| 810 |
padding: 10px;
|
admin/include/image-list.php
CHANGED
|
@@ -17,7 +17,6 @@ if(isset($gallery))
|
|
| 17 |
else
|
| 18 |
$thumb = plugins_url('../images/video.jpg', __FILE__);
|
| 19 |
?>
|
| 20 |
-
<div class="">
|
| 21 |
<div class='item card hidden-<?php echo $image->hidden ?>' data-type='<?php echo $image->type ?>' data-image-id="<?php echo $image->imageId ?>" data-id="<?php echo $image->Id ?>">
|
| 22 |
<div class="figure card-image" style="background-image: url('<?php echo $thumb ?>');">
|
| 23 |
<?php if($image->type == 'image') : ?>
|
|
@@ -27,7 +26,7 @@ if(isset($gallery))
|
|
| 27 |
<?php print $image->imagePath ?>
|
| 28 |
</div>
|
| 29 |
<?php endif ?>
|
| 30 |
-
<a href="
|
| 31 |
<i class="mdi mdi-pencil"></i>
|
| 32 |
</a>
|
| 33 |
|
|
@@ -99,5 +98,4 @@ if(isset($gallery))
|
|
| 99 |
<input type="hidden" id="img-alt" value="<?php echo $image->alt ?>">
|
| 100 |
</div>
|
| 101 |
</div>
|
| 102 |
-
</div>
|
| 103 |
<?php } ?>
|
| 17 |
else
|
| 18 |
$thumb = plugins_url('../images/video.jpg', __FILE__);
|
| 19 |
?>
|
|
|
|
| 20 |
<div class='item card hidden-<?php echo $image->hidden ?>' data-type='<?php echo $image->type ?>' data-image-id="<?php echo $image->imageId ?>" data-id="<?php echo $image->Id ?>">
|
| 21 |
<div class="figure card-image" style="background-image: url('<?php echo $thumb ?>');">
|
| 22 |
<?php if($image->type == 'image') : ?>
|
| 26 |
<?php print $image->imagePath ?>
|
| 27 |
</div>
|
| 28 |
<?php endif ?>
|
| 29 |
+
<a href="#<?php echo $image->type ?>-panel-model" class="edit modal-trigger">
|
| 30 |
<i class="mdi mdi-pencil"></i>
|
| 31 |
</a>
|
| 32 |
|
| 98 |
<input type="hidden" id="img-alt" value="<?php echo $image->alt ?>">
|
| 99 |
</div>
|
| 100 |
</div>
|
|
|
|
| 101 |
<?php } ?>
|
admin/overview.php
CHANGED
|
@@ -121,6 +121,7 @@
|
|
| 121 |
</div>
|
| 122 |
</li>
|
| 123 |
</ul>
|
|
|
|
| 124 |
<ul class="collapsible gallery-actions">
|
| 125 |
<li class="active">
|
| 126 |
<div class="collapsible-header">
|
|
@@ -131,7 +132,7 @@
|
|
| 131 |
</div>
|
| 132 |
</li>
|
| 133 |
</ul>
|
| 134 |
-
|
| 135 |
</div>
|
| 136 |
|
| 137 |
</div>
|
| 121 |
</div>
|
| 122 |
</li>
|
| 123 |
</ul>
|
| 124 |
+
<?php endif ?>
|
| 125 |
<ul class="collapsible gallery-actions">
|
| 126 |
<li class="active">
|
| 127 |
<div class="collapsible-header">
|
| 132 |
</div>
|
| 133 |
</li>
|
| 134 |
</ul>
|
| 135 |
+
|
| 136 |
</div>
|
| 137 |
|
| 138 |
</div>
|
admin/scripts/final-tiles-gallery-admin.js
CHANGED
|
@@ -51,6 +51,7 @@ var FTG = function($) {
|
|
| 51 |
|
| 52 |
$.post(ajaxurl, data, function(html) {
|
| 53 |
$("#image-list").empty().append(html);
|
|
|
|
| 54 |
if (source == 'images') {
|
| 55 |
$("#image-list").sortable({
|
| 56 |
cancel: ".nosort",
|
|
@@ -593,7 +594,8 @@ var FTG = function($) {
|
|
| 593 |
});
|
| 594 |
$(".save", $panel).text("Update");
|
| 595 |
|
| 596 |
-
$panel
|
|
|
|
| 597 |
return;
|
| 598 |
}
|
| 599 |
|
|
@@ -1017,7 +1019,7 @@ var FTG = function($) {
|
|
| 1017 |
$imageList = $("#image-list");
|
| 1018 |
setInterval(function() {
|
| 1019 |
$("iframe", $imageList).each(function(i, o) {
|
| 1020 |
-
$(o).height($(o).width());
|
| 1021 |
});
|
| 1022 |
}, 1000);
|
| 1023 |
|
|
@@ -1171,7 +1173,7 @@ var FTGWizard = function($) {
|
|
| 1171 |
dataType: "json",
|
| 1172 |
type: "post",
|
| 1173 |
error: function(a, b, c) {
|
| 1174 |
-
$("#error").
|
| 1175 |
},
|
| 1176 |
success: function(id) {
|
| 1177 |
id = $.trim(id);
|
| 51 |
|
| 52 |
$.post(ajaxurl, data, function(html) {
|
| 53 |
$("#image-list").empty().append(html);
|
| 54 |
+
|
| 55 |
if (source == 'images') {
|
| 56 |
$("#image-list").sortable({
|
| 57 |
cancel: ".nosort",
|
| 594 |
});
|
| 595 |
$(".save", $panel).text("Update");
|
| 596 |
|
| 597 |
+
var instance = M.Modal.getInstance($panel);
|
| 598 |
+
instance.open();
|
| 599 |
return;
|
| 600 |
}
|
| 601 |
|
| 1019 |
$imageList = $("#image-list");
|
| 1020 |
setInterval(function() {
|
| 1021 |
$("iframe", $imageList).each(function(i, o) {
|
| 1022 |
+
$(o).height($(o).width() - 4);
|
| 1023 |
});
|
| 1024 |
}, 1000);
|
| 1025 |
|
| 1173 |
dataType: "json",
|
| 1174 |
type: "post",
|
| 1175 |
error: function(a, b, c) {
|
| 1176 |
+
M.Modal.getInstance($("#error")).open();
|
| 1177 |
},
|
| 1178 |
success: function(id) {
|
| 1179 |
id = $.trim(id);
|
readme.txt
CHANGED
|
@@ -137,6 +137,13 @@ Currently galleries made with Envira, FooGallery, Instagram, NextGen, JetPack, M
|
|
| 137 |
|
| 138 |
== Changelog ==
|
| 139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
= 3.4.10 =
|
| 141 |
* [Fix] Fixed lightbox
|
| 142 |
|
|
@@ -340,6 +347,13 @@ Currently galleries made with Envira, FooGallery, Instagram, NextGen, JetPack, M
|
|
| 340 |
|
| 341 |
== Upgrade Notice ==
|
| 342 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 343 |
= 3.4.10 =
|
| 344 |
* [Fix] Fixed lightbox
|
| 345 |
|
| 137 |
|
| 138 |
== Changelog ==
|
| 139 |
|
| 140 |
+
= 3.4.12 =
|
| 141 |
+
* [Fix] Fixed image drag and drop
|
| 142 |
+
* [Fix] Fixed video edit (Premium)
|
| 143 |
+
|
| 144 |
+
= 3.4.11 =
|
| 145 |
+
* [Fix] Fixed add video (Premium)
|
| 146 |
+
|
| 147 |
= 3.4.10 =
|
| 148 |
* [Fix] Fixed lightbox
|
| 149 |
|
| 347 |
|
| 348 |
== Upgrade Notice ==
|
| 349 |
|
| 350 |
+
= 3.4.12 =
|
| 351 |
+
* [Fix] Fixed image drag and drop
|
| 352 |
+
* [Fix] Fixed video edit (Premium)
|
| 353 |
+
|
| 354 |
+
= 3.4.11 =
|
| 355 |
+
* [Fix] Fixed add video (Premium)
|
| 356 |
+
|
| 357 |
= 3.4.10 =
|
| 358 |
* [Fix] Fixed lightbox
|
| 359 |
|
