Version Description
- Delete Image Bug Fixed.
Download this release
Release Info
Developer | contact-banker |
Plugin | Gallery Bank: WordPress Photo Gallery Plugin |
Version | 3.0.332 |
Comparing to | |
See all releases |
Code changes from version 3.0.331 to 3.0.332
- gallery-bank.php +1 -1
- lib/add-new-album-class.php +3 -1
- readme.txt +6 -2
- views/edit-album.php +78 -70
gallery-bank.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin URI: http://tech-banker.com
|
5 |
Description: Gallery Bank is an easy to use Responsive WordPress Gallery Plugin for photos, videos, galleries and albums.
|
6 |
Author: Tech Banker
|
7 |
-
Version: 3.0.
|
8 |
Author URI: http://tech-banker.com
|
9 |
License: GPLv3 or later
|
10 |
*/
|
4 |
Plugin URI: http://tech-banker.com
|
5 |
Description: Gallery Bank is an easy to use Responsive WordPress Gallery Plugin for photos, videos, galleries and albums.
|
6 |
Author: Tech Banker
|
7 |
+
Version: 3.0.332
|
8 |
Author URI: http://tech-banker.com
|
9 |
License: GPLv3 or later
|
10 |
*/
|
lib/add-new-album-class.php
CHANGED
@@ -171,11 +171,13 @@ else
|
|
171 |
break;
|
172 |
case "delete_pic":
|
173 |
|
|
|
174 |
$albumId = intval($_REQUEST["albumid"]);
|
|
|
175 |
|
176 |
$wpdb->query
|
177 |
(
|
178 |
-
"DELETE FROM " . gallery_bank_pics() . " WHERE pic_id
|
179 |
);
|
180 |
die();
|
181 |
break;
|
171 |
break;
|
172 |
case "delete_pic":
|
173 |
|
174 |
+
$data_to_be_deleted = json_decode(stripslashes(html_entity_decode($_REQUEST["delete_array"])));
|
175 |
$albumId = intval($_REQUEST["albumid"]);
|
176 |
+
$query_data = implode(",",$data_to_be_deleted);
|
177 |
|
178 |
$wpdb->query
|
179 |
(
|
180 |
+
"DELETE FROM " . gallery_bank_pics() . " WHERE pic_id in ($query_data)"
|
181 |
);
|
182 |
die();
|
183 |
break;
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Gallery-Bank,contact-banker
|
|
3 |
Tags: add album, add gallery, add pictures, admin, AJAX, album, banner rotator, best gallery, best gallery plugin, comments, filterable gallery, foto, fotoalbum, fotogalerie, free photo gallery, fullscreen gallery, fullscreen slider, galeri, galerie, Galleria, galleries, gallery, gallery decription, gallery image, gallery lightbox, gallery shortcode, gallery slider, image, image album, image gallery, image lightbox, image rotate, image slider, image slideshow, images, images gallery, instagram, jquery, jquery gallery, lightbox, media, mosaic, multiple pictures, photo, photo album, photo albums, photo gallery, photoalbum, photogallery, photography, photos, photoset, picture, pictures, responsive, responsive gallery, responsive wordpress photo gallery, sidebar, Simple gallery, slide, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, upload images, upload photos, video gallery, videos, view images, view pictures, vimeo, watermarking, watermarks, website gallery, widget gallery, wordpress gallery, wordpress gallery plugin, wordpress photo gallery plugin, wp gallery, wp gallery plugins, youtube, gallery bank
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 4.3
|
6 |
-
Stable tag: 3.0.
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -500,13 +500,17 @@ is False in shortcode.
|
|
500 |
|
501 |
== Changelog ==
|
502 |
|
|
|
|
|
|
|
|
|
503 |
= 3.0.331 =
|
504 |
|
505 |
* Pretty Photo Title & Description Bug Fixed.
|
506 |
|
507 |
= 3.0.330 =
|
508 |
|
509 |
-
* Few
|
510 |
* Isotope 2.2.2 Version used.
|
511 |
|
512 |
= 3.0.229 =
|
3 |
Tags: add album, add gallery, add pictures, admin, AJAX, album, banner rotator, best gallery, best gallery plugin, comments, filterable gallery, foto, fotoalbum, fotogalerie, free photo gallery, fullscreen gallery, fullscreen slider, galeri, galerie, Galleria, galleries, gallery, gallery decription, gallery image, gallery lightbox, gallery shortcode, gallery slider, image, image album, image gallery, image lightbox, image rotate, image slider, image slideshow, images, images gallery, instagram, jquery, jquery gallery, lightbox, media, mosaic, multiple pictures, photo, photo album, photo albums, photo gallery, photoalbum, photogallery, photography, photos, photoset, picture, pictures, responsive, responsive gallery, responsive wordpress photo gallery, sidebar, Simple gallery, slide, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, upload images, upload photos, video gallery, videos, view images, view pictures, vimeo, watermarking, watermarks, website gallery, widget gallery, wordpress gallery, wordpress gallery plugin, wordpress photo gallery plugin, wp gallery, wp gallery plugins, youtube, gallery bank
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 4.3
|
6 |
+
Stable tag: 3.0.332
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
500 |
|
501 |
== Changelog ==
|
502 |
|
503 |
+
= 3.0.332 =
|
504 |
+
|
505 |
+
* Delete Image Bug Fixed.
|
506 |
+
|
507 |
= 3.0.331 =
|
508 |
|
509 |
* Pretty Photo Title & Description Bug Fixed.
|
510 |
|
511 |
= 3.0.330 =
|
512 |
|
513 |
+
* Few 1ecurity Issues Fixed.
|
514 |
* Isotope 2.2.2 Version used.
|
515 |
|
516 |
= 3.0.229 =
|
views/edit-album.php
CHANGED
@@ -455,81 +455,89 @@
|
|
455 |
});
|
456 |
jQuery("#edit_album").validate
|
457 |
({
|
458 |
-
submitHandler: function ()
|
|
|
459 |
jQuery("#update_album_success_message").css("display", "block");
|
460 |
-
jQuery("body,html").animate
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
|
|
471 |
<?php
|
472 |
if(class_exists("ckeditor_wordpress"))
|
473 |
{
|
474 |
?>
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
533 |
});
|
534 |
jQuery(document).ready(function()
|
535 |
{
|
455 |
});
|
456 |
jQuery("#edit_album").validate
|
457 |
({
|
458 |
+
submitHandler: function ()
|
459 |
+
{
|
460 |
jQuery("#update_album_success_message").css("display", "block");
|
461 |
+
jQuery("body,html").animate
|
462 |
+
({
|
463 |
+
scrollTop: jQuery("body,html").position().top
|
464 |
+
}, "slow");
|
465 |
+
var albumid = jQuery("#ux_hidden_album_id").val();
|
466 |
+
jQuery.post(ajaxurl,"albumid=" + albumid + "&delete_array=" + JSON.stringify(delete_array) +"¶m=delete_pic&action=add_new_album_library", function ()
|
467 |
+
{
|
468 |
+
|
469 |
+
});
|
470 |
+
|
471 |
+
var uxEditDescription = "";
|
472 |
+
|
473 |
<?php
|
474 |
if(class_exists("ckeditor_wordpress"))
|
475 |
{
|
476 |
?>
|
477 |
+
var uxEditDescription = encodeURIComponent(CKEDITOR.instances.ux_edit_description.getData());
|
478 |
+
<?php
|
479 |
+
}
|
480 |
+
else
|
481 |
+
{
|
482 |
+
?>
|
483 |
+
var uxEditDescription = jQuery("#wp-ux_edit_description-wrap").hasClass("tmce-active") ?
|
484 |
+
encodeURIComponent(tinyMCE.get("ux_edit_description").getContent())
|
485 |
+
: encodeURIComponent(jQuery("#ux_edit_description").val());
|
486 |
+
<?php
|
487 |
+
}
|
488 |
+
?>
|
489 |
+
|
490 |
+
var edit_album_name = encodeURIComponent(jQuery("#ux_edit_title").val());
|
491 |
+
jQuery.post(ajaxurl, "albumid=" + albumid + "&edit_album_name=" + edit_album_name + "&uxEditDescription=" + uxEditDescription + "¶m=update_album&action=add_new_album_library", function ()
|
492 |
+
{
|
493 |
+
|
494 |
+
});
|
495 |
+
|
496 |
+
var count = 0;
|
497 |
+
jQuery.each(oTable.fnGetNodes(), function (index, value)
|
498 |
+
{
|
499 |
+
var controlClass = jQuery(value.cells[1]).find("img").attr("class");
|
500 |
+
var controlType = "";
|
501 |
+
var img_gb_path = "";
|
502 |
+
var isAlbumCoverSet = "";
|
503 |
+
var title = "";
|
504 |
+
var description = "";
|
505 |
+
var tags = "";
|
506 |
+
var urlRedirect = "";
|
507 |
+
var picId = "";
|
508 |
+
var row_data = [];
|
509 |
+
|
510 |
+
controlType = jQuery(value.cells[1]).find("img").attr("type");
|
511 |
+
picId = jQuery(value.cells[1]).find("img").attr("imageId");
|
512 |
+
img_gb_path = (jQuery(value.cells[1]).find("img").attr("imgpath"));
|
513 |
+
isAlbumCoverSet = jQuery(value.cells[1]).find("input:radio").attr("checked");
|
514 |
+
title = (jQuery(value.cells[2]).find("input:text").eq(0).val());
|
515 |
+
description =(jQuery(value.cells[2]).find("textarea").eq(0).val());
|
516 |
+
tags = jQuery(value.cells[3]).find("input:text").eq(0).val();
|
517 |
+
urlRedirect = jQuery(value.cells[4]).find("input:text").eq(0).val();
|
518 |
+
row_data.push(controlType);
|
519 |
+
row_data.push(picId);
|
520 |
+
row_data.push(img_gb_path);
|
521 |
+
row_data.push(isAlbumCoverSet);
|
522 |
+
row_data.push(title);
|
523 |
+
row_data.push(description);
|
524 |
+
row_data.push(tags);
|
525 |
+
row_data.push(urlRedirect);
|
526 |
+
row_data.push(cover_width);
|
527 |
+
row_data.push(cover_height);
|
528 |
+
|
529 |
+
array_album_data.push(row_data);
|
530 |
+
});
|
531 |
+
|
532 |
+
jQuery.post(ajaxurl, "album_data="+encodeURIComponent(JSON.stringify(array_album_data))+ "¶m=update_pic&action=add_new_album_library", function (data)
|
533 |
+
{
|
534 |
+
setTimeout(function ()
|
535 |
+
{
|
536 |
+
jQuery("#update_album_success_message").css("display", "none");
|
537 |
+
window.location.href = "admin.php?page=gallery_bank";
|
538 |
+
}, 10000);
|
539 |
+
});
|
540 |
+
}
|
541 |
});
|
542 |
jQuery(document).ready(function()
|
543 |
{
|