Version Description
- Titles were not saved properly
- Few Bugs solved.
Download this release
Release Info
Developer | Gallery-Bank |
Plugin | Gallery Bank: WordPress Photo Gallery Plugin |
Version | 1.8.1 |
Comparing to | |
See all releases |
Code changes from version 1.8 to 1.8.1
- .project +12 -0
- gallery-bank.php +1 -1
- lib/album-gallery-bank-class.php +6 -6
- readme.txt +6 -1
- views/add-album.php +4 -5
- views/edit-album.php +11 -8
- views/front-view-albums.php +2 -2
- views/front_view.php +0 -1
- views/view-album.php +3 -3
.project
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<projectDescription>
|
3 |
+
<name>gallery-bank</name>
|
4 |
+
<comment></comment>
|
5 |
+
<projects>
|
6 |
+
</projects>
|
7 |
+
<buildSpec>
|
8 |
+
</buildSpec>
|
9 |
+
<natures>
|
10 |
+
<nature>com.aptana.projects.webnature</nature>
|
11 |
+
</natures>
|
12 |
+
</projectDescription>
|
gallery-bank.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin URI: http://gallery-bank.com
|
5 |
Description: Gallery Bank is an interactive WordPress photo gallery plugin, best fit for creative and corporate portfolio websites.
|
6 |
Author: Gallery-Bank
|
7 |
-
Version: 1.8
|
8 |
Author URI: http://gallery-bank.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
4 |
Plugin URI: http://gallery-bank.com
|
5 |
Description: Gallery Bank is an interactive WordPress photo gallery plugin, best fit for creative and corporate portfolio websites.
|
6 |
Author: Gallery-Bank
|
7 |
+
Version: 1.8.1
|
8 |
Author URI: http://gallery-bank.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
lib/album-gallery-bank-class.php
CHANGED
@@ -12,7 +12,7 @@ else
|
|
12 |
{
|
13 |
if($_REQUEST["param"] == "add_new_album")
|
14 |
{
|
15 |
-
$ux_album_name =
|
16 |
$ux_desciption = html_entity_decode(esc_attr($_REQUEST["ux_description"]));
|
17 |
$ux_image_width = 160;
|
18 |
$ux_image_height = 120;
|
@@ -48,7 +48,7 @@ else
|
|
48 |
elseif($_REQUEST["param"] == "update_album")
|
49 |
{
|
50 |
$albumId = intval($_REQUEST["albumId"]);
|
51 |
-
$ux_edit_album_name =
|
52 |
$ux_edit_desciption = html_entity_decode(esc_attr($_REQUEST["ux_edit_description"]));
|
53 |
$ux_edit_image_width = 160;
|
54 |
$ux_edit_image_height = 120;
|
@@ -110,8 +110,8 @@ else
|
|
110 |
{
|
111 |
$ux_path = esc_attr($_REQUEST["path"]);
|
112 |
$ux_albumid = intval($_REQUEST["album_id"]);
|
113 |
-
$ux_title =
|
114 |
-
$ux_detail =
|
115 |
$thumbnail_url = esc_attr($_REQUEST["thumb"]);
|
116 |
$alb_cover = intval($_REQUEST["alb_cover"]);
|
117 |
$wpdb->query
|
@@ -135,8 +135,8 @@ else
|
|
135 |
{
|
136 |
$pic_id = intval($_REQUEST['picId']);
|
137 |
$albumId = intval($_REQUEST['albumId']);
|
138 |
-
$edit_title =
|
139 |
-
$edit_detail =
|
140 |
$edit_cover = esc_attr($_REQUEST["edit_cover"]);
|
141 |
$wpdb->query
|
142 |
(
|
12 |
{
|
13 |
if($_REQUEST["param"] == "add_new_album")
|
14 |
{
|
15 |
+
$ux_album_name = html_entity_decode($_REQUEST["album_name"]);
|
16 |
$ux_desciption = html_entity_decode(esc_attr($_REQUEST["ux_description"]));
|
17 |
$ux_image_width = 160;
|
18 |
$ux_image_height = 120;
|
48 |
elseif($_REQUEST["param"] == "update_album")
|
49 |
{
|
50 |
$albumId = intval($_REQUEST["albumId"]);
|
51 |
+
echo $ux_edit_album_name = html_entity_decode($_REQUEST["edit_album_name"]);
|
52 |
$ux_edit_desciption = html_entity_decode(esc_attr($_REQUEST["ux_edit_description"]));
|
53 |
$ux_edit_image_width = 160;
|
54 |
$ux_edit_image_height = 120;
|
110 |
{
|
111 |
$ux_path = esc_attr($_REQUEST["path"]);
|
112 |
$ux_albumid = intval($_REQUEST["album_id"]);
|
113 |
+
$ux_title = html_entity_decode($_REQUEST["title"]);
|
114 |
+
$ux_detail = html_entity_decode($_REQUEST["detail"]);
|
115 |
$thumbnail_url = esc_attr($_REQUEST["thumb"]);
|
116 |
$alb_cover = intval($_REQUEST["alb_cover"]);
|
117 |
$wpdb->query
|
135 |
{
|
136 |
$pic_id = intval($_REQUEST['picId']);
|
137 |
$albumId = intval($_REQUEST['albumId']);
|
138 |
+
$edit_title = html_entity_decode($_REQUEST['edit_title']);
|
139 |
+
$edit_detail = html_entity_decode($_REQUEST['edit_detail']);
|
140 |
$edit_cover = esc_attr($_REQUEST["edit_cover"]);
|
141 |
$wpdb->query
|
142 |
(
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Gallery-Bank
|
|
3 |
Tags: gallery, image, gallery image, album, foto, fotoalbum, website gallery, multiple pictures, pictures, photo, photoalbum, photogallery, photo gallery, lightbox
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 3.6 Beta
|
6 |
-
Stable tag: 1.8
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -104,6 +104,11 @@ Visit [here](http://gallery-bank.com) to upgrade to Pro Version now.
|
|
104 |
|
105 |
== Changelog ==
|
106 |
|
|
|
|
|
|
|
|
|
|
|
107 |
= 1.8.0 =
|
108 |
|
109 |
* Added 7 new Languages.
|
3 |
Tags: gallery, image, gallery image, album, foto, fotoalbum, website gallery, multiple pictures, pictures, photo, photoalbum, photogallery, photo gallery, lightbox
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 3.6 Beta
|
6 |
+
Stable tag: 1.8.1
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
104 |
|
105 |
== Changelog ==
|
106 |
|
107 |
+
= 1.8.1 =
|
108 |
+
|
109 |
+
* Titles were not saved properly
|
110 |
+
* Few Bugs solved.
|
111 |
+
|
112 |
= 1.8.0 =
|
113 |
|
114 |
* Added 7 new Languages.
|
views/add-album.php
CHANGED
@@ -153,10 +153,10 @@ var thumb_array = [];
|
|
153 |
var uxDescription = encodeURIComponent(jQuery('#ux_description').val());
|
154 |
}
|
155 |
var ux_slide_interval = jQuery('#ux_slide_interval').val();
|
|
|
156 |
|
157 |
-
jQuery.post(ajaxurl, jQuery(form).serialize() +"&ux_description="+uxDescription+"¶m=add_new_album&action=album_gallery_library", function(data)
|
158 |
{
|
159 |
-
|
160 |
var album_id= jQuery.trim(data);
|
161 |
var pic;
|
162 |
var count = 0;
|
@@ -166,8 +166,8 @@ var thumb_array = [];
|
|
166 |
{
|
167 |
var path = arr[pic];
|
168 |
var thumb = thumb_array[pic];
|
169 |
-
var title = jQuery("#title_img_" + ar[pic]).val();
|
170 |
-
var detail= jQuery("#des_img_" + ar[pic]).val();
|
171 |
var alb_cover = jQuery('input:radio[id=cover_'+ar[pic]+']:checked').val();
|
172 |
if(alb_cover == "on")
|
173 |
{
|
@@ -177,7 +177,6 @@ var thumb_array = [];
|
|
177 |
{
|
178 |
alb_cover1 = 0;
|
179 |
}
|
180 |
-
|
181 |
jQuery.post(ajaxurl, "album_id="+album_id+"&title="+title+"&detail="+detail+"&alb_cover="+alb_cover1+"&path="+path+"&thumb="+thumb+"¶m=add_pic&action=album_gallery_library", function(data)
|
182 |
{
|
183 |
jQuery('#error_album_message').css('display','none');
|
153 |
var uxDescription = encodeURIComponent(jQuery('#ux_description').val());
|
154 |
}
|
155 |
var ux_slide_interval = jQuery('#ux_slide_interval').val();
|
156 |
+
var album_name = encodeURIComponent(jQuery('#ux_album_name').val());
|
157 |
|
158 |
+
jQuery.post(ajaxurl, jQuery(form).serialize() +"&album_name="+album_name+"&ux_description="+uxDescription+"¶m=add_new_album&action=album_gallery_library", function(data)
|
159 |
{
|
|
|
160 |
var album_id= jQuery.trim(data);
|
161 |
var pic;
|
162 |
var count = 0;
|
166 |
{
|
167 |
var path = arr[pic];
|
168 |
var thumb = thumb_array[pic];
|
169 |
+
var title = encodeURIComponent(jQuery("#title_img_" + ar[pic]).val());
|
170 |
+
var detail= encodeURIComponent(jQuery("#des_img_" + ar[pic]).val());
|
171 |
var alb_cover = jQuery('input:radio[id=cover_'+ar[pic]+']:checked').val();
|
172 |
if(alb_cover == "on")
|
173 |
{
|
177 |
{
|
178 |
alb_cover1 = 0;
|
179 |
}
|
|
|
180 |
jQuery.post(ajaxurl, "album_id="+album_id+"&title="+title+"&detail="+detail+"&alb_cover="+alb_cover1+"&path="+path+"&thumb="+thumb+"¶m=add_pic&action=album_gallery_library", function(data)
|
181 |
{
|
182 |
jQuery('#error_album_message').css('display','none');
|
views/edit-album.php
CHANGED
@@ -62,7 +62,7 @@
|
|
62 |
<?php _e( "Album Name :", gallery_bank ); ?>
|
63 |
</label>
|
64 |
<div class="right">
|
65 |
-
<input type="text" class="required span12" name="ux_edit_album_name" id="ux_edit_album_name" value="<?php echo $album->album_name ;?>"/>
|
66 |
</div>
|
67 |
</div>
|
68 |
<div class="row">
|
@@ -131,7 +131,7 @@
|
|
131 |
<?php _e( "Title :", gallery_bank ); ?>
|
132 |
</label>
|
133 |
<div class="right" >
|
134 |
-
<input type="text" id="ux_edit_title_<?php echo $pic_detail[$flag]->pic_id ;?>" value= "<?php echo $pic_detail[$flag]->title ;?>" />
|
135 |
</div>
|
136 |
</div>
|
137 |
<div class="row" style="margin-left:180px!important;border-bottom:none !important; margin-bottom: 20px;">
|
@@ -139,7 +139,7 @@
|
|
139 |
<?php _e( "Description :", gallery_bank ); ?>
|
140 |
</label>
|
141 |
<div class="right">
|
142 |
-
<textarea rows="10" id="ux_edit_desc_<?php echo $pic_detail[$flag]->pic_id ;?>" ><?php echo $pic_detail[$flag]->description ;?></textarea>
|
143 |
</div>
|
144 |
|
145 |
</div>
|
@@ -225,6 +225,8 @@ jQuery("#gallery_bank").addClass("current");
|
|
225 |
var uxeditdescription = encodeURIComponent(jQuery('#ux_edit_description').val());
|
226 |
}
|
227 |
var count_pic = arr.length;
|
|
|
|
|
228 |
jQuery.post(ajaxurl, "id="+arr+"&count_pic="+count_pic+"¶m=delete_pic&action=album_gallery_library", function(data)
|
229 |
{
|
230 |
});
|
@@ -233,8 +235,8 @@ jQuery("#gallery_bank").addClass("current");
|
|
233 |
{
|
234 |
?>
|
235 |
var picId = <?php echo $pic_detail[$flag]->pic_id; ?>;
|
236 |
-
var edit_title = jQuery("#ux_edit_title_" + picId).val();
|
237 |
-
var edit_detail = jQuery("#ux_edit_desc_" + picId).val();
|
238 |
var edit_cover = jQuery('input:radio[id=edit_cover_' + picId+']:checked').val();
|
239 |
if(edit_cover == "on")
|
240 |
{
|
@@ -250,8 +252,9 @@ jQuery("#gallery_bank").addClass("current");
|
|
250 |
<?php
|
251 |
}
|
252 |
?>
|
253 |
-
jQuery.post(ajaxurl, jQuery(form).serialize() +"&albumId="+albumId+"&ux_edit_description="+uxeditdescription+"¶m=update_album&action=album_gallery_library", function(data)
|
254 |
{
|
|
|
255 |
var pics;
|
256 |
var count = 0;
|
257 |
if(array.length > 0)
|
@@ -260,8 +263,8 @@ jQuery("#gallery_bank").addClass("current");
|
|
260 |
{
|
261 |
var pic_path = array[pics];
|
262 |
var thumb = thumb_array[pics];
|
263 |
-
var pic_title = jQuery("#pic_title_" + ar[pics]).val();
|
264 |
-
var pic_detail= jQuery("#pic_des_" + ar[pics]).val();
|
265 |
var cover_pic = jQuery('input:radio[id=cover_pic_'+ar[pics]+']:checked').val();
|
266 |
if(cover_pic == undefined)
|
267 |
{
|
62 |
<?php _e( "Album Name :", gallery_bank ); ?>
|
63 |
</label>
|
64 |
<div class="right">
|
65 |
+
<input type="text" class="required span12" name="ux_edit_album_name" id="ux_edit_album_name" value="<?php echo stripcslashes($album->album_name) ;?>"/>
|
66 |
</div>
|
67 |
</div>
|
68 |
<div class="row">
|
131 |
<?php _e( "Title :", gallery_bank ); ?>
|
132 |
</label>
|
133 |
<div class="right" >
|
134 |
+
<input type="text" id="ux_edit_title_<?php echo $pic_detail[$flag]->pic_id ;?>" value= "<?php echo stripcslashes($pic_detail[$flag]->title) ;?>" />
|
135 |
</div>
|
136 |
</div>
|
137 |
<div class="row" style="margin-left:180px!important;border-bottom:none !important; margin-bottom: 20px;">
|
139 |
<?php _e( "Description :", gallery_bank ); ?>
|
140 |
</label>
|
141 |
<div class="right">
|
142 |
+
<textarea rows="10" id="ux_edit_desc_<?php echo $pic_detail[$flag]->pic_id ;?>" ><?php echo stripcslashes($pic_detail[$flag]->description) ;?></textarea>
|
143 |
</div>
|
144 |
|
145 |
</div>
|
225 |
var uxeditdescription = encodeURIComponent(jQuery('#ux_edit_description').val());
|
226 |
}
|
227 |
var count_pic = arr.length;
|
228 |
+
var edit_album_name = encodeURIComponent(jQuery('#ux_edit_album_name').val());
|
229 |
+
|
230 |
jQuery.post(ajaxurl, "id="+arr+"&count_pic="+count_pic+"¶m=delete_pic&action=album_gallery_library", function(data)
|
231 |
{
|
232 |
});
|
235 |
{
|
236 |
?>
|
237 |
var picId = <?php echo $pic_detail[$flag]->pic_id; ?>;
|
238 |
+
var edit_title = encodeURIComponent(jQuery("#ux_edit_title_" + picId).val());
|
239 |
+
var edit_detail = encodeURIComponent(jQuery("#ux_edit_desc_" + picId).val());
|
240 |
var edit_cover = jQuery('input:radio[id=edit_cover_' + picId+']:checked').val();
|
241 |
if(edit_cover == "on")
|
242 |
{
|
252 |
<?php
|
253 |
}
|
254 |
?>
|
255 |
+
jQuery.post(ajaxurl, jQuery(form).serialize() +"&albumId="+albumId+"&edit_album_name="+edit_album_name+"&ux_edit_description="+uxeditdescription+"¶m=update_album&action=album_gallery_library", function(data)
|
256 |
{
|
257 |
+
|
258 |
var pics;
|
259 |
var count = 0;
|
260 |
if(array.length > 0)
|
263 |
{
|
264 |
var pic_path = array[pics];
|
265 |
var thumb = thumb_array[pics];
|
266 |
+
var pic_title = encodeURIComponent(jQuery("#pic_title_" + ar[pics]).val());
|
267 |
+
var pic_detail= encodeURIComponent(jQuery("#pic_des_" + ar[pics]).val());
|
268 |
var cover_pic = jQuery('input:radio[id=cover_pic_'+ar[pics]+']:checked').val();
|
269 |
if(cover_pic == undefined)
|
270 |
{
|
views/front-view-albums.php
CHANGED
@@ -48,7 +48,7 @@ if($album_cover_count == 0)
|
|
48 |
?>
|
49 |
<div id="main_div<?php echo $unique_id;?>" style="display: block;" class="album-cover">
|
50 |
<img class="imgHolder" src="<?php echo stripcslashes($url); ?>" onclick="view_images(<?php echo $album_id;?>);" style="display:inline-block;border:5px solid #000; cursor:pointer;" width="150px" />
|
51 |
-
<div style="text-align: justify;display:inline-block;vertical-align:
|
52 |
<h3><?php echo $album->album_name; ?> </h3>
|
53 |
<span><?php echo $album->description;?> </span><br/>
|
54 |
<a style="cursor: pointer;" onclick="view_images(<?php echo $album_id;?>)">
|
@@ -63,7 +63,7 @@ else
|
|
63 |
?>
|
64 |
<div id="main_div<?php echo $unique_id;?>" style="display: block;" class="album-cover">
|
65 |
<img class="imgHolder" src="<?php echo stripcslashes($album_cover->thumbnail_url); ?>" onclick="view_images(<?php echo $album_id;?>);" style="display:inline-block;border:5px solid #000; cursor:pointer;" width="150px" />
|
66 |
-
<div style="text-align: justify;display:inline-block;vertical-align:
|
67 |
<h3><?php echo $album->album_name; ?> </h3>
|
68 |
<span><?php echo $album->description;?> </span><br/>
|
69 |
<a style="cursor: pointer;" onclick="view_images(<?php echo $album_id;?>)">
|
48 |
?>
|
49 |
<div id="main_div<?php echo $unique_id;?>" style="display: block;" class="album-cover">
|
50 |
<img class="imgHolder" src="<?php echo stripcslashes($url); ?>" onclick="view_images(<?php echo $album_id;?>);" style="display:inline-block;border:5px solid #000; cursor:pointer;" width="150px" />
|
51 |
+
<div style="text-align: justify;display:inline-block;vertical-align:top;margin-left:20px;">
|
52 |
<h3><?php echo $album->album_name; ?> </h3>
|
53 |
<span><?php echo $album->description;?> </span><br/>
|
54 |
<a style="cursor: pointer;" onclick="view_images(<?php echo $album_id;?>)">
|
63 |
?>
|
64 |
<div id="main_div<?php echo $unique_id;?>" style="display: block;" class="album-cover">
|
65 |
<img class="imgHolder" src="<?php echo stripcslashes($album_cover->thumbnail_url); ?>" onclick="view_images(<?php echo $album_id;?>);" style="display:inline-block;border:5px solid #000; cursor:pointer;" width="150px" />
|
66 |
+
<div style="text-align: justify;display:inline-block;vertical-align:top;margin-left:20px;">
|
67 |
<h3><?php echo $album->album_name; ?> </h3>
|
68 |
<span><?php echo $album->description;?> </span><br/>
|
69 |
<a style="cursor: pointer;" onclick="view_images(<?php echo $album_id;?>)">
|
views/front_view.php
CHANGED
@@ -69,7 +69,6 @@
|
|
69 |
enableSlideshow:false,
|
70 |
startZoom:true
|
71 |
});
|
72 |
-
|
73 |
var $container_<?php echo $unique_id;?> = jQuery('#view_bank_album_<?php echo $unique_id;?>');
|
74 |
$container_<?php echo $unique_id;?>.imagesLoaded( function(){
|
75 |
$container_<?php echo $unique_id;?>.masonry({
|
69 |
enableSlideshow:false,
|
70 |
startZoom:true
|
71 |
});
|
|
|
72 |
var $container_<?php echo $unique_id;?> = jQuery('#view_bank_album_<?php echo $unique_id;?>');
|
73 |
$container_<?php echo $unique_id;?>.imagesLoaded( function(){
|
74 |
$container_<?php echo $unique_id;?>.masonry({
|
views/view-album.php
CHANGED
@@ -51,7 +51,7 @@
|
|
51 |
</label>
|
52 |
<div class="right">
|
53 |
<span>
|
54 |
-
<?php echo $album->album_name;?>
|
55 |
</span>
|
56 |
</div>
|
57 |
</div>
|
@@ -157,7 +157,7 @@
|
|
157 |
<strong><?php _e( "Title :", gallery_bank ); ?></strong>
|
158 |
</label>
|
159 |
<div class="right">
|
160 |
-
<span><?php echo $pic_detail[$flag]->title; ?></span>
|
161 |
|
162 |
</div>
|
163 |
</div>
|
@@ -166,7 +166,7 @@
|
|
166 |
<strong><?php _e( "Description :", gallery_bank ); ?></strong>
|
167 |
</label>
|
168 |
<div class="right" >
|
169 |
-
<span><?php echo $pic_detail[$flag]->description;?></span>
|
170 |
|
171 |
</div>
|
172 |
</div>
|
51 |
</label>
|
52 |
<div class="right">
|
53 |
<span>
|
54 |
+
<?php echo stripcslashes($album->album_name);?>
|
55 |
</span>
|
56 |
</div>
|
57 |
</div>
|
157 |
<strong><?php _e( "Title :", gallery_bank ); ?></strong>
|
158 |
</label>
|
159 |
<div class="right">
|
160 |
+
<span><?php echo stripcslashes($pic_detail[$flag]->title); ?></span>
|
161 |
|
162 |
</div>
|
163 |
</div>
|
166 |
<strong><?php _e( "Description :", gallery_bank ); ?></strong>
|
167 |
</label>
|
168 |
<div class="right" >
|
169 |
+
<span><?php echo stripcslashes($pic_detail[$flag]->description);?></span>
|
170 |
|
171 |
</div>
|
172 |
</div>
|