Gallery Bank: WordPress Photo Gallery Plugin - Version 1.8.2

Version Description

  • Title Name on Front View & Albums were incorrect - Fixed.
  • Title Alignment - Fixed.
  • Thumbnails were disorted -Fixed.
Download this release

Release Info

Developer Gallery-Bank
Plugin Icon 128x128 Gallery Bank: WordPress Photo Gallery Plugin
Version 1.8.2
Comparing to
See all releases

Code changes from version 1.8.1 to 1.8.2

.project DELETED
@@ -1,12 +0,0 @@
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.1
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.2
8
  Author URI: http://gallery-bank.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
lib/front-view-album-class.php CHANGED
@@ -21,28 +21,34 @@
21
  $album_id
22
  )
23
  );
24
-
25
  for ($flag = 0; $flag <count($pic_detail); $flag++)
26
  {
 
 
 
27
  if($pic_detail[$flag]->description == "")
28
  {
29
  ?>
30
- <div class="imgContainerSingle">
31
  <a class="vlightbox1<?php echo $album_id;?>" id="<?php echo $pic_detail[$flag]->pic_id; ?>" href="<?php echo $pic_detail[$flag]->pic_path; ?>" title="<?php echo $pic_detail[$flag]->title; ?>">
32
- <img src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" width="150px" /></a>
33
- </div>
34
  <?php
35
  }
36
  else
37
  {
38
  ?>
39
- <div class="imgContainerSingle">
40
  <a class="vlightbox1<?php echo $album_id;?>" id="<?php echo $pic_detail[$flag]->pic_id; ?>" href="<?php echo $pic_detail[$flag]->pic_path; ?>" title="<?php echo $pic_detail[$flag]->title; ?> (<?php echo $pic_detail[$flag]->description; ?>)">
41
- <img src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" width="150px" /></a>
 
 
 
 
 
42
  </div>
43
  <?php
44
  }
45
- }
46
  ?>
47
  <script>
48
  window.Lightbox = new jQuery().visualLightbox
@@ -59,6 +65,19 @@
59
  <?php
60
  die();
61
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  }
63
 
64
  ?>
21
  $album_id
22
  )
23
  );
 
24
  for ($flag = 0; $flag <count($pic_detail); $flag++)
25
  {
26
+ ?>
27
+ <div class="imgContainerSingle">
28
+ <?php
29
  if($pic_detail[$flag]->description == "")
30
  {
31
  ?>
32
+
33
  <a class="vlightbox1<?php echo $album_id;?>" id="<?php echo $pic_detail[$flag]->pic_id; ?>" href="<?php echo $pic_detail[$flag]->pic_path; ?>" title="<?php echo $pic_detail[$flag]->title; ?>">
34
+ <img src="<?php echo $pic_detail[$flag]->pic_path; ?>" width="150px" /></a>
35
+
36
  <?php
37
  }
38
  else
39
  {
40
  ?>
41
+
42
  <a class="vlightbox1<?php echo $album_id;?>" id="<?php echo $pic_detail[$flag]->pic_id; ?>" href="<?php echo $pic_detail[$flag]->pic_path; ?>" title="<?php echo $pic_detail[$flag]->title; ?> (<?php echo $pic_detail[$flag]->description; ?>)">
43
+ <img src="<?php echo $pic_detail[$flag]->pic_path; ?>" width="150px" /></a>
44
+
45
+ <?php
46
+ }
47
+ ?>
48
+ </a>
49
  </div>
50
  <?php
51
  }
 
52
  ?>
53
  <script>
54
  window.Lightbox = new jQuery().visualLightbox
65
  <?php
66
  die();
67
  }
68
+ elseif($_REQUEST["param"] == "get_album_name")
69
+ {
70
+ $album_id = $_REQUEST['album_id'];
71
+ echo $album_name = $wpdb->get_var
72
+ (
73
+ $wpdb->prepare
74
+ (
75
+ "SELECT album_name from ".gallery_bank_albums()." where album_id = %d",
76
+ $album_id
77
+ )
78
+ );
79
+ die();
80
+ }
81
  }
82
 
83
  ?>
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.1
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -104,6 +104,12 @@ Visit [here](http://gallery-bank.com) to upgrade to Pro Version now.
104
 
105
  == Changelog ==
106
 
 
 
 
 
 
 
107
  = 1.8.1 =
108
 
109
  * Titles were not saved properly
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.2
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.2 =
108
+
109
+ * Title Name on Front View & Albums were incorrect - Fixed.
110
+ * Title Alignment - Fixed.
111
+ * Thumbnails were disorted -Fixed.
112
+
113
  = 1.8.1 =
114
 
115
  * Titles were not saved properly
views/add-album.php CHANGED
@@ -232,16 +232,8 @@ var thumb_array = [];
232
  var div = jQuery("<div class=\"box\" style=\"border-bottom: solid 1px #e5e5e5;\"id=\""+dynamicId+"\">");
233
  var innerDiv = jQuery("<div style=\"float:left;width:170px;margin-left:10px;\">");
234
  var img = jQuery("<img class=\"imgHolder\" style=\"border:3px solid #e5e5e5;margin-top:10px;\" id=\"up_img\"/>");
235
- if(attachment.sizes.medium != undefined)
236
- {
237
- img.attr('src', attachment.sizes.medium.url);
238
- thumb_array.push(attachment.sizes.medium.url);
239
- }
240
- else
241
- {
242
- img.attr('src', attachment.url);
243
- thumb_array.push(attachment.url);
244
- }
245
  arr.push(attachment.url);
246
  img.attr('width', '150px');
247
  innerDiv.append(img);
232
  var div = jQuery("<div class=\"box\" style=\"border-bottom: solid 1px #e5e5e5;\"id=\""+dynamicId+"\">");
233
  var innerDiv = jQuery("<div style=\"float:left;width:170px;margin-left:10px;\">");
234
  var img = jQuery("<img class=\"imgHolder\" style=\"border:3px solid #e5e5e5;margin-top:10px;\" id=\"up_img\"/>");
235
+ img.attr('src', attachment.url);
236
+ thumb_array.push(attachment.url);
 
 
 
 
 
 
 
 
237
  arr.push(attachment.url);
238
  img.attr('width', '150px');
239
  innerDiv.append(img);
views/edit-album.php CHANGED
@@ -383,16 +383,8 @@ jQuery("#gallery_bank").addClass("current");
383
  var div = jQuery("<div class=\"box\" style=\"border-bottom: solid 1px #e5e5e5;\"id=\""+dynamicId+"\">");
384
  var innerDiv = jQuery("<div style=\"float:left;width:170px;\">");
385
  var img = jQuery("<img class=\"imgHolder\" style=\"border:3px solid #e5e5e5;margin-top:10px;\"; id=\"up_img\"/>");
386
- if(attachment.sizes.medium != undefined)
387
- {
388
- img.attr('src', attachment.sizes.medium.url);
389
- thumb_array.push(attachment.sizes.medium.url);
390
- }
391
- else
392
- {
393
- img.attr('src', attachment.url);
394
- thumb_array.push(attachment.url);
395
- }
396
  img.attr('width', '150px');
397
  innerDiv.append(img);
398
  var cover = jQuery("<input type=\"radio\" style=\"cursor: pointer;\" id=\"cover_pic_"+dynamicId+"\" name = \"edit_album_cover\" /><label><?php _e(" Set Image as Album Cover",gallery_bank);?></label>");
383
  var div = jQuery("<div class=\"box\" style=\"border-bottom: solid 1px #e5e5e5;\"id=\""+dynamicId+"\">");
384
  var innerDiv = jQuery("<div style=\"float:left;width:170px;\">");
385
  var img = jQuery("<img class=\"imgHolder\" style=\"border:3px solid #e5e5e5;margin-top:10px;\"; id=\"up_img\"/>");
386
+ img.attr('src', attachment.url);
387
+ thumb_array.push(attachment.url);
 
 
 
 
 
 
 
 
388
  img.attr('width', '150px');
389
  innerDiv.append(img);
390
  var cover = jQuery("<input type=\"radio\" style=\"cursor: pointer;\" id=\"cover_pic_"+dynamicId+"\" name = \"edit_album_cover\" /><label><?php _e(" Set Image as Album Cover",gallery_bank);?></label>");
views/front-view-albums.php CHANGED
@@ -38,7 +38,7 @@
38
  $unique_id = rand(100,10000);
39
 
40
  ?>
41
- <button id="back_button" style="margin-top:10px; display: none;" onclick="view_albums();">
42
  <span style="color: #000;">&laquo <?php _e('Back to Albums', gallery_bank); ?></span>
43
  </button>
44
  <?php
@@ -49,8 +49,8 @@ if($album_cover_count == 0)
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; ?>&nbsp;</h3>
53
- <span><?php echo $album->description;?>&nbsp;</span><br/>
54
  <a style="cursor: pointer;" onclick="view_images(<?php echo $album_id;?>)">
55
  <?php _e("See Album images", gallery_bank ); ?> &raquo
56
  </a>
@@ -62,10 +62,10 @@ else
62
  {
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; ?>&nbsp;</h3>
68
- <span><?php echo $album->description;?>&nbsp;</span><br/>
69
  <a style="cursor: pointer;" onclick="view_images(<?php echo $album_id;?>)">
70
  <?php _e("See Album images", gallery_bank ); ?> &raquo
71
  </a>
@@ -76,7 +76,7 @@ else
76
  ?>
77
 
78
  <div id="image_show_div<?php echo $unique_id;?>" style="display: none;" class="images-cover">
79
- <h3><?php echo $album->album_name;?></h3>
80
  <div id="show_images_<?php echo $unique_id;?>" >
81
  </div>
82
  </div>
@@ -87,11 +87,11 @@ else
87
 
88
  jQuery(".album-cover").css('display','none');
89
  jQuery("#main_div<?php echo $unique_id;?>").css('display','none');
90
- jQuery("#back_button").css('display','none');
91
  jQuery("#image_show_div<?php echo $unique_id;?>").css('display','block');
92
  jQuery.post(ajaxurl, "album_id="+album_id+"&param=show_images&action=front_albums_gallery_library", function(data)
93
  {
94
- jQuery("#back_button").css('display','block');
95
 
96
  jQuery('#show_images_<?php echo $unique_id;?>').html(data);
97
  var $container_<?php echo $unique_id;?> = jQuery('#show_images_<?php echo $unique_id;?>');
@@ -108,12 +108,16 @@ else
108
  });
109
  $container_<?php echo $unique_id;?>.masonry('reload');
110
  });
 
 
 
 
111
  }
112
  function view_albums()
113
  {
114
  jQuery(".album-cover").css('display','block');
115
  jQuery(".images-cover").css('display','none');
116
- jQuery("#back_button").css('display','none');
117
  }
118
 
119
 
38
  $unique_id = rand(100,10000);
39
 
40
  ?>
41
+ <button id="back_button<?php echo $unique_id;?>" style="margin-top:10px; display: none;" onclick="view_albums();">
42
  <span style="color: #000;">&laquo <?php _e('Back to Albums', gallery_bank); ?></span>
43
  </button>
44
  <?php
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 stripcslashes($album->album_name); ?>&nbsp;</h3>
53
+ <span><?php echo stripcslashes($album->description);?>&nbsp;</span><br/>
54
  <a style="cursor: pointer;" onclick="view_images(<?php echo $album_id;?>)">
55
  <?php _e("See Album images", gallery_bank ); ?> &raquo
56
  </a>
62
  {
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->pic_path); ?>" 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 stripcslashes($album->album_name); ?>&nbsp;</h3>
68
+ <span><?php echo stripcslashes($album->description);?>&nbsp;</span><br/>
69
  <a style="cursor: pointer;" onclick="view_images(<?php echo $album_id;?>)">
70
  <?php _e("See Album images", gallery_bank ); ?> &raquo
71
  </a>
76
  ?>
77
 
78
  <div id="image_show_div<?php echo $unique_id;?>" style="display: none;" class="images-cover">
79
+ <h3 id="album_title<?php echo $unique_id;?>"><?php echo stripcslashes($album->album_name); ?>&nbsp;</h3>
80
  <div id="show_images_<?php echo $unique_id;?>" >
81
  </div>
82
  </div>
87
 
88
  jQuery(".album-cover").css('display','none');
89
  jQuery("#main_div<?php echo $unique_id;?>").css('display','none');
90
+ jQuery("#back_button<?php echo $unique_id;?>").css('display','none');
91
  jQuery("#image_show_div<?php echo $unique_id;?>").css('display','block');
92
  jQuery.post(ajaxurl, "album_id="+album_id+"&param=show_images&action=front_albums_gallery_library", function(data)
93
  {
94
+ jQuery("#back_button<?php echo $unique_id;?>").css('display','block');
95
 
96
  jQuery('#show_images_<?php echo $unique_id;?>').html(data);
97
  var $container_<?php echo $unique_id;?> = jQuery('#show_images_<?php echo $unique_id;?>');
108
  });
109
  $container_<?php echo $unique_id;?>.masonry('reload');
110
  });
111
+ jQuery.post(ajaxurl, "album_id="+album_id+"&param=get_album_name&action=front_albums_gallery_library", function(data)
112
+ {
113
+ jQuery("#album_title<?php echo $unique_id;?>").html(data);
114
+ });
115
  }
116
  function view_albums()
117
  {
118
  jQuery(".album-cover").css('display','block');
119
  jQuery(".images-cover").css('display','none');
120
+ jQuery("#back_button<?php echo $unique_id;?>").css('display','none');
121
  }
122
 
123
 
views/front_view.php CHANGED
@@ -28,7 +28,7 @@
28
  {
29
  ?><div class="imgContainerSingle">
30
  <a class="vlightbox1<?php echo $unique_id;?>" id="<?php echo $pic_detail[$flag]->pic_id; ?>" href="<?php echo $pic_detail[$flag]->pic_path; ?>" title="<?php echo $pic_detail[$flag]->title; ?>">
31
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url); ?>" width="150px" /></a>
32
  </div>
33
  <?php
34
 
@@ -38,7 +38,7 @@
38
  ?>
39
  <div class="imgContainerSingle">
40
  <a class="vlightbox1<?php echo $unique_id;?>" id="<?php echo $pic_detail[$flag]->pic_id; ?>" href="<?php echo $pic_detail[$flag]->pic_path; ?>" title="<?php echo $pic_detail[$flag]->title; ?> (<?php echo $pic_detail[$flag]->description; ?>)">
41
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url); ?>" width="150px" /></a>
42
  </div>
43
  <?php
44
  }
28
  {
29
  ?><div class="imgContainerSingle">
30
  <a class="vlightbox1<?php echo $unique_id;?>" id="<?php echo $pic_detail[$flag]->pic_id; ?>" href="<?php echo $pic_detail[$flag]->pic_path; ?>" title="<?php echo $pic_detail[$flag]->title; ?>">
31
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" width="150px" /></a>
32
  </div>
33
  <?php
34
 
38
  ?>
39
  <div class="imgContainerSingle">
40
  <a class="vlightbox1<?php echo $unique_id;?>" id="<?php echo $pic_detail[$flag]->pic_id; ?>" href="<?php echo $pic_detail[$flag]->pic_path; ?>" title="<?php echo $pic_detail[$flag]->title; ?> (<?php echo $pic_detail[$flag]->description; ?>)">
41
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" width="150px" /></a>
42
  </div>
43
  <?php
44
  }
views/view-album.php CHANGED
@@ -141,14 +141,14 @@
141
  {
142
  ?>
143
  <a class="vlightbox1" id="<?php echo $pic_detail[$flag]->pic_id; ?>" href="<?php echo $pic_detail[$flag]->pic_path; ?>" title="<?php echo $pic_detail[$flag]->title; ?>">
144
- <img class="imgHolder" src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" style="border:3px solid #e5e5e5"; width="150px;"/></a>
145
  <?php
146
  }
147
  else
148
  {
149
  ?>
150
  <a class="vlightbox1" id="<?php echo $pic_detail[$flag]->pic_id; ?>" href="<?php echo $pic_detail[$flag]->pic_path; ?>" title="<?php echo $pic_detail[$flag]->title; ?> (<?php echo $pic_detail[$flag]->description; ?>)">
151
- <img class="imgHolder" src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" style="border:3px solid #e5e5e5"; width="150px;"/></a>
152
  <?php
153
  }
154
  ?>
141
  {
142
  ?>
143
  <a class="vlightbox1" id="<?php echo $pic_detail[$flag]->pic_id; ?>" href="<?php echo $pic_detail[$flag]->pic_path; ?>" title="<?php echo $pic_detail[$flag]->title; ?>">
144
+ <img class="imgHolder" src="<?php echo $pic_detail[$flag]->pic_path; ?>" style="border:3px solid #e5e5e5"; width="150px;"/></a>
145
  <?php
146
  }
147
  else
148
  {
149
  ?>
150
  <a class="vlightbox1" id="<?php echo $pic_detail[$flag]->pic_id; ?>" href="<?php echo $pic_detail[$flag]->pic_path; ?>" title="<?php echo $pic_detail[$flag]->title; ?> (<?php echo $pic_detail[$flag]->description; ?>)">
151
+ <img class="imgHolder" src="<?php echo $pic_detail[$flag]->pic_path; ?>" style="border:3px solid #e5e5e5"; width="150px;"/></a>
152
  <?php
153
  }
154
  ?>