Gallery Bank: WordPress Photo Gallery Plugin - Version 1.6

Version Description

  • Bug of Thumbnail Disorted Images fixed
  • Bug of No Album images shown in case of admin not logged in fixed.
  • Uninstall Hook Removed
Download this release

Release Info

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

Code changes from version 1.5 to 1.6

css/visuallightbox.css CHANGED
@@ -1,240 +1,241 @@
1
- #vlb1overlay{
2
- position:absolute;
3
- top:0;
4
- left:0;
5
- z-index:190;
6
- width:100%;
7
- height:auto;
8
- background-color:#ffffff;
9
- }
10
-
11
- #vlb1lightbox{
12
- position:absolute;
13
- top:20px;
14
- left:0;
15
- width:100%;
16
- z-index:200;
17
- text-align:center;
18
- color:#151410;
19
- line-height:0;
20
- }
21
- #vlb1lightbox td{
22
- vertical-align:top;
23
- }
24
- #vlb1lightbox a, #vlb1lightbox a:hover {
25
- border-bottom:none;
26
- color:#151410;
27
- text-decoration:underline;
28
- }
29
-
30
- #vlb1lightbox a img{ border:none; }
31
-
32
- #vlb1outerImageContainer{
33
- width:auto;
34
- height:auto; /* without this line error in IE8 detected */
35
- margin:0 auto;
36
- position:relative;
37
- border: none !important;
38
- }
39
-
40
- #vlb1lightboxImage{
41
- width:100%;
42
- height:100%;
43
- }
44
-
45
- #vlb1imageContainerMain{
46
- margin:0 auto;
47
- overflow:visible;
48
- position:relative;
49
- font-size:0;/* ie fix - big info bar*/
50
- }
51
-
52
- #vlb1imageContainer{
53
- width:10px;
54
- height:10px;
55
- margin:0 auto;
56
- overflow:hidden;
57
- background-color:#fff;
58
- position:relative;
59
- font-size:0;/* ie fix - big info bar*/
60
- }
61
-
62
- #vlb1loading{
63
- position:absolute;
64
- top:40%;
65
- left:0%;
66
- height:25%;
67
- width:100%;
68
- text-align:center;
69
- font-size:10px;
70
- z-index:1;
71
- }
72
- #vlb1loadingLink {
73
- display:block;
74
- margin:0 auto;
75
- padding:0;
76
- width:32px;
77
- height:32px;
78
- background:url(../images/loading.gif) center center no-repeat;
79
- text-indent:-9999px;
80
- }
81
- #vlb1hoverNav{
82
- position:absolute;
83
- top:0;
84
- left:0;
85
- height:100%;
86
- width:100%;
87
- z-index:10;
88
- }
89
- #vlb1imageContainer>#hoverNav{ left:0;}
90
- #vlb1prevLinkImg, #vlb1nextLinkImg{
91
- top:0;
92
- width:48px;
93
- height:100%;
94
- position:absolute;
95
- z-index:20;
96
- outline-style:none;
97
- display:block;
98
- text-indent:-9999px;
99
- background:none;
100
- }
101
- * html #vlb1prevLinkImg,* html #vlb1nextLinkImg{
102
- background-image:url(data:image/gif;base64,AAAA); /* Trick IE into showing hover */
103
- }
104
- #vlb1prevLinkImg { left: 0; }
105
- #vlb1nextLinkImg { right: 0; }
106
- #vlb1prevLinkImg:hover, #vlb1prevLinkImg.hover, #vlb1prevLinkImg:visited:hover {
107
- background:url(../images/prev.png) 5% center no-repeat;
108
- _background-image:url(../images/prev_ie6.gif)
109
- }
110
- #vlb1nextLinkImg:hover, #vlb1nextLinkImg.hover, #vlb1nextLinkImg:visited:hover {
111
- background:url(../images/next.png) 97% center no-repeat;
112
- _background-image:url(../images/next_ie6.gif)
113
- }
114
-
115
-
116
- #vlb1imageDataContainer{
117
- font:10px Verdana, Helvetica, sans-serif;
118
- font-family:"Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif;
119
- font-size:12px;
120
- background-color:#fff;
121
- width:100%;
122
- }
123
-
124
- #vlb1imageData{
125
- overflow:hidden;
126
- width:100%;
127
- }
128
- #vlb1imageDetails{ width:70%; float:left; text-align:left; padding:10px 10px 0 0;}
129
- #vlb1caption{ font-weight:bold; display:block;}
130
- #vlb1numberDisplay{ display:block; float:left; padding:3px 10px 0 0;}
131
- #vlb1detailsNav{display:block; float:left; padding:0; }
132
- #vlb1prevLinkDetails, #vlb1nextLinkDetails, #vlb1slideShowControl{ background-repeat:no-repeat; outline-style:none; display:block; float:left;}
133
- #vlb1prevLinkDetails { margin:3px; margin-top:0px; width:24px;height:24px; background:url(../images/prevlabel.gif) left center;}
134
- #vlb1nextLinkDetails { margin:3px; margin-top:0px; width:24px;height:24px; background:url(../images/nextlabel.gif) right center;}
135
- }
136
-
137
- #vlb1slideShowControl{
138
- display:block;
139
- width:24px;
140
- height:24px;
141
- float:left;
142
- background:url(../images/start.gif);
143
- background-position:center center;
144
- background-repeat:no-repeat;
145
- }
146
-
147
- #vlb1close{
148
- padding:20px 0 0;
149
- float:right;
150
- }
151
- #vlb1closeLink {
152
- display:block; outline-style:none; margin:0; padding:0; text-decoration:none;
153
- width:32px;
154
- height:32px;
155
- background:url(../images/close.gif) no-repeat;
156
- }
157
-
158
-
159
- .clearfix:after { content:"."; display:block; height:0; clear:both; visibility:hidden;}
160
- * html>body .clearfix {display:inline-block; width:100%;}
161
-
162
- * html .clearfix {
163
- /* Hides from IE-mac \*/
164
- height:1%;
165
- /* End hide from IE-mac */
166
- }
167
-
168
-
169
- #vlb1outerImageFrame{
170
- border:solid 1px red;
171
- height:100%;
172
- width:100%;
173
- position:absolute;
174
- }
175
-
176
-
177
- #vlb1outerImageContainer{
178
- overflow:visible;
179
- }
180
- #vlb1outerImageContainer td{
181
- text-align:center;
182
- padding:0;
183
- }
184
-
185
- #vlb1lightboxFrameBody{
186
- background-color:#fff;
187
- border:solid 1px #fff; /* hack for opera table small cell width */
188
- }
189
-
190
- #vlb1outerImageContainer td, #vlb1outerImageContainer tr{
191
- font-size:0;
192
- border:0 none !important;
193
- }
194
- /* frame style */
195
- #vlb1outerImageContainer td.tl, #vlb1outerImageContainer td.br{
196
- height:38px;
197
- width:38px;
198
- }
199
- .vlb{display:none;}
200
- #vlb1outerImageContainer td.tl{
201
- background-image:url(../images/borderTopLeft.png);
202
- _background-image:none;
203
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='index_files/vlb_files1/borderTopLeft.png', sizingMethod='scale');
204
- }
205
- #vlb1outerImageContainer td.tc{
206
- background-image:url(../images/borderTopCenter.png);
207
- _background-image:none;
208
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='index_files/vlb_files1/borderTopCenter.png', sizingMethod='scale');
209
- }
210
- #vlb1outerImageContainer td.tr{
211
- background-image:url(../images/borderTopRight.png);
212
- _background-image:none;
213
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='index_files/vlb_files1/borderTopRight.png', sizingMethod='scale');
214
- }
215
- #vlb1outerImageContainer td.ml{
216
- background-image:url(../images/borderMiddleLeft.png);
217
- _background-image:none;
218
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='index_files/vlb_files1/borderMiddleLeft.png', sizingMethod='scale');
219
- }
220
- #vlb1outerImageContainer td.mr{
221
- background-image:url(../images/borderMiddleRight.png);
222
- _background-image:none;
223
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='index_files/vlb_files1/borderMiddleRight.png', sizingMethod='scale');
224
- }
225
- #vlb1outerImageContainer td.bl{
226
- background-image:url(../images/borderBottomLeft.png);
227
- _background-image:none;
228
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='index_files/vlb_files1/borderBottomLeft.png', sizingMethod='scale');
229
- }
230
- #vlb1outerImageContainer td.bc{
231
- background-image:url(../images/borderBottomCenter.png);
232
- _background-image:none;
233
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='index_files/vlb_files1/borderBottomCenter.png', sizingMethod='scale');
234
- }
235
- #vlb1outerImageContainer td.br{
236
- background-image:url(../images/borderBottomRight.png);
237
- _background-image:none;
238
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='index_files/vlb_files1/borderBottomRight.png', sizingMethod='scale');
239
- }
240
-
 
1
+ #vlb1overlay{
2
+ position:absolute;
3
+ top:0;
4
+ left:0;
5
+ z-index:190;
6
+ width:100%;
7
+ height:auto;
8
+ background-color:#ffffff;
9
+ }
10
+
11
+ #vlb1lightbox{
12
+ position:absolute;
13
+ top:20px;
14
+ left:0;
15
+ width:100%;
16
+ z-index:200;
17
+ text-align:center;
18
+ color:#151410;
19
+ line-height:0;
20
+ z-index:99999;
21
+ }
22
+ #vlb1lightbox td{
23
+ vertical-align:top;
24
+ }
25
+ #vlb1lightbox a, #vlb1lightbox a:hover {
26
+ border-bottom:none;
27
+ color:#151410;
28
+ text-decoration:underline;
29
+ }
30
+
31
+ #vlb1lightbox a img{ border:none; }
32
+
33
+ #vlb1outerImageContainer{
34
+ width:auto;
35
+ height:auto; /* without this line error in IE8 detected */
36
+ margin:0 auto;
37
+ position:relative;
38
+ border: none !important;
39
+ }
40
+
41
+ #vlb1lightboxImage{
42
+ width:100%;
43
+ height:100%;
44
+ }
45
+
46
+ #vlb1imageContainerMain{
47
+ margin:0 auto;
48
+ overflow:visible;
49
+ position:relative;
50
+ font-size:0;/* ie fix - big info bar*/
51
+ }
52
+
53
+ #vlb1imageContainer{
54
+ width:10px;
55
+ height:10px;
56
+ margin:0 auto;
57
+ overflow:hidden;
58
+ background-color:#fff;
59
+ position:relative;
60
+ font-size:0;/* ie fix - big info bar*/
61
+ }
62
+
63
+ #vlb1loading{
64
+ position:absolute;
65
+ top:40%;
66
+ left:0%;
67
+ height:25%;
68
+ width:100%;
69
+ text-align:center;
70
+ font-size:10px;
71
+ z-index:1;
72
+ }
73
+ #vlb1loadingLink {
74
+ display:block;
75
+ margin:0 auto;
76
+ padding:0;
77
+ width:32px;
78
+ height:32px;
79
+ background:url(../images/loading.gif) center center no-repeat;
80
+ text-indent:-9999px;
81
+ }
82
+ #vlb1hoverNav{
83
+ position:absolute;
84
+ top:0;
85
+ left:0;
86
+ height:100%;
87
+ width:100%;
88
+ z-index:10;
89
+ }
90
+ #vlb1imageContainer>#hoverNav{ left:0;}
91
+ #vlb1prevLinkImg, #vlb1nextLinkImg{
92
+ top:0;
93
+ width:48px;
94
+ height:100%;
95
+ position:absolute;
96
+ z-index:20;
97
+ outline-style:none;
98
+ display:block;
99
+ text-indent:-9999px;
100
+ background:none;
101
+ }
102
+ * html #vlb1prevLinkImg,* html #vlb1nextLinkImg{
103
+ background-image:url(data:image/gif;base64,AAAA); /* Trick IE into showing hover */
104
+ }
105
+ #vlb1prevLinkImg { left: 0; }
106
+ #vlb1nextLinkImg { right: 0; }
107
+ #vlb1prevLinkImg:hover, #vlb1prevLinkImg.hover, #vlb1prevLinkImg:visited:hover {
108
+ background:url(../images/prev.png) 5% center no-repeat;
109
+ _background-image:url(../images/prev_ie6.gif)
110
+ }
111
+ #vlb1nextLinkImg:hover, #vlb1nextLinkImg.hover, #vlb1nextLinkImg:visited:hover {
112
+ background:url(../images/next.png) 97% center no-repeat;
113
+ _background-image:url(../images/next_ie6.gif)
114
+ }
115
+
116
+
117
+ #vlb1imageDataContainer{
118
+ font:10px Verdana, Helvetica, sans-serif;
119
+ font-family:"Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif;
120
+ font-size:12px;
121
+ background-color:#fff;
122
+ width:100%;
123
+ }
124
+
125
+ #vlb1imageData{
126
+ overflow:hidden;
127
+ width:100%;
128
+ }
129
+ #vlb1imageDetails{ width:70%; float:left; text-align:left; padding:10px 10px 0 0;}
130
+ #vlb1caption{ font-weight:bold; display:block;}
131
+ #vlb1numberDisplay{ display:block; float:left; padding:3px 10px 0 0;}
132
+ #vlb1detailsNav{display:block; float:left; padding:0; }
133
+ #vlb1prevLinkDetails, #vlb1nextLinkDetails, #vlb1slideShowControl{ background-repeat:no-repeat; outline-style:none; display:block; float:left;}
134
+ #vlb1prevLinkDetails { margin:3px; margin-top:0px; width:24px;height:24px; background:url(../images/prevlabel.gif) left center;}
135
+ #vlb1nextLinkDetails { margin:3px; margin-top:0px; width:24px;height:24px; background:url(../images/nextlabel.gif) right center;}
136
+ }
137
+
138
+ #vlb1slideShowControl{
139
+ display:block;
140
+ width:24px;
141
+ height:24px;
142
+ float:left;
143
+ background:url(../images/start.gif);
144
+ background-position:center center;
145
+ background-repeat:no-repeat;
146
+ }
147
+
148
+ #vlb1close{
149
+ padding:20px 0 0;
150
+ float:right;
151
+ }
152
+ #vlb1closeLink {
153
+ display:block; outline-style:none; margin:0; padding:0; text-decoration:none;
154
+ width:32px;
155
+ height:32px;
156
+ background:url(../images/close.gif) no-repeat;
157
+ }
158
+
159
+
160
+ .clearfix:after { content:"."; display:block; height:0; clear:both; visibility:hidden;}
161
+ * html>body .clearfix {display:inline-block; width:100%;}
162
+
163
+ * html .clearfix {
164
+ /* Hides from IE-mac \*/
165
+ height:1%;
166
+ /* End hide from IE-mac */
167
+ }
168
+
169
+
170
+ #vlb1outerImageFrame{
171
+ border:solid 1px red;
172
+ height:100%;
173
+ width:100%;
174
+ position:absolute;
175
+ }
176
+
177
+
178
+ #vlb1outerImageContainer{
179
+ overflow:visible;
180
+ }
181
+ #vlb1outerImageContainer td{
182
+ text-align:center;
183
+ padding:0;
184
+ }
185
+
186
+ #vlb1lightboxFrameBody{
187
+ background-color:#fff;
188
+ border:solid 1px #fff; /* hack for opera table small cell width */
189
+ }
190
+
191
+ #vlb1outerImageContainer td, #vlb1outerImageContainer tr{
192
+ font-size:0;
193
+ border:0 none !important;
194
+ }
195
+ /* frame style */
196
+ #vlb1outerImageContainer td.tl, #vlb1outerImageContainer td.br{
197
+ height:38px;
198
+ width:38px;
199
+ }
200
+ .vlb{display:none;}
201
+ #vlb1outerImageContainer td.tl{
202
+ background-image:url(../images/borderTopLeft.png);
203
+ _background-image:none;
204
+ _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='index_files/vlb_files1/borderTopLeft.png', sizingMethod='scale');
205
+ }
206
+ #vlb1outerImageContainer td.tc{
207
+ background-image:url(../images/borderTopCenter.png);
208
+ _background-image:none;
209
+ _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='index_files/vlb_files1/borderTopCenter.png', sizingMethod='scale');
210
+ }
211
+ #vlb1outerImageContainer td.tr{
212
+ background-image:url(../images/borderTopRight.png);
213
+ _background-image:none;
214
+ _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='index_files/vlb_files1/borderTopRight.png', sizingMethod='scale');
215
+ }
216
+ #vlb1outerImageContainer td.ml{
217
+ background-image:url(../images/borderMiddleLeft.png);
218
+ _background-image:none;
219
+ _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='index_files/vlb_files1/borderMiddleLeft.png', sizingMethod='scale');
220
+ }
221
+ #vlb1outerImageContainer td.mr{
222
+ background-image:url(../images/borderMiddleRight.png);
223
+ _background-image:none;
224
+ _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='index_files/vlb_files1/borderMiddleRight.png', sizingMethod='scale');
225
+ }
226
+ #vlb1outerImageContainer td.bl{
227
+ background-image:url(../images/borderBottomLeft.png);
228
+ _background-image:none;
229
+ _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='index_files/vlb_files1/borderBottomLeft.png', sizingMethod='scale');
230
+ }
231
+ #vlb1outerImageContainer td.bc{
232
+ background-image:url(../images/borderBottomCenter.png);
233
+ _background-image:none;
234
+ _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='index_files/vlb_files1/borderBottomCenter.png', sizingMethod='scale');
235
+ }
236
+ #vlb1outerImageContainer td.br{
237
+ background-image:url(../images/borderBottomRight.png);
238
+ _background-image:none;
239
+ _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='index_files/vlb_files1/borderBottomRight.png', sizingMethod='scale');
240
+ }
241
+
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.5
8
  Author URI: http://gallery-bank.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -30,10 +30,7 @@ function plugin_install_script_for_gallery_bank()
30
  {
31
  include_once GALLERY_BK_PLUGIN_DIR .'/install-script.php';
32
  }
33
- function plugin_delete_script_for_gallery_bank()
34
- {
35
- include_once GALLERY_BK_PLUGIN_DIR .'/uninstall-script.php';
36
- }
37
  function plugin_load_textdomain()
38
  {
39
  if( function_exists( 'load_plugin_textdomain' ) )
@@ -44,6 +41,5 @@ function plugin_load_textdomain()
44
  add_action('plugins_loaded', 'plugin_load_textdomain');
45
 
46
  register_activation_hook(__FILE__,'plugin_install_script_for_gallery_bank');
47
- register_uninstall_hook(__FILE__,'plugin_delete_script_for_gallery_bank');
48
 
49
  ?>
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.6
8
  Author URI: http://gallery-bank.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
30
  {
31
  include_once GALLERY_BK_PLUGIN_DIR .'/install-script.php';
32
  }
33
+
 
 
 
34
  function plugin_load_textdomain()
35
  {
36
  if( function_exists( 'load_plugin_textdomain' ) )
41
  add_action('plugins_loaded', 'plugin_load_textdomain');
42
 
43
  register_activation_hook(__FILE__,'plugin_install_script_for_gallery_bank');
 
44
 
45
  ?>
lib/front-view-album-class.php CHANGED
@@ -1,11 +1,4 @@
1
  <?php
2
- global $wpdb;
3
- if (!current_user_can("edit_posts") && ! current_user_can("edit_pages"))
4
- {
5
- return;
6
- }
7
- else
8
- {
9
  if(isset($_REQUEST["param"]))
10
  {
11
  if($_REQUEST["param"] == "show_images")
@@ -42,7 +35,7 @@ else
42
  <br/>
43
  <div id="bank_pics_<?php echo $flag; ?>" style="padding:10px; display: inline-block;">
44
  <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; ?>">
45
- <img src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" style="border: <?php echo $album->border_width;?>px solid <?php echo $album->border_color;?>; height: <?php echo $album->image_height; ?>px; width: <?php echo $album->image_width; ?>px;" /></a>
46
  </div>
47
  <?php
48
  }
@@ -51,7 +44,7 @@ else
51
  ?>
52
  <div id="bank_pics_<?php echo $flag; ?>" style="padding: 10px; display: inline-block;">
53
  <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; ?>">
54
- <img src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" style="border: <?php echo $album->border_width;?>px solid <?php echo $album->border_color;?>; height: <?php echo $album->image_height; ?>px; width: <?php echo $album->image_width; ?>px;" /></a>
55
  </div>
56
  <?php
57
  }
@@ -64,7 +57,7 @@ else
64
  <br/>
65
  <div id="bank_pics_<?php echo $flag; ?>" style="padding: 10px; display: inline-block;">
66
  <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; ?>)">
67
- <img src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" style="border: <?php echo $album->border_width;?>px solid <?php echo $album->border_color;?>; height: <?php echo $album->image_height; ?>px; width: <?php echo $album->image_width; ?>px;" /></a>
68
  </div>
69
  <?php
70
  }
@@ -73,7 +66,7 @@ else
73
  ?>
74
  <div id="bank_pics_<?php echo $flag; ?>" style="padding: 10px; display: inline-block;">
75
  <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; ?>)">
76
- <img src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" style="border: <?php echo $album->border_width;?>px solid <?php echo $album->border_color;?>; height: <?php echo $album->image_height; ?>px; width: <?php echo $album->image_width; ?>px;" /></a>
77
  </div>
78
  <?php
79
  }
@@ -140,5 +133,5 @@ else
140
  die();
141
  }
142
  }
143
- }
144
  ?>
1
  <?php
 
 
 
 
 
 
 
2
  if(isset($_REQUEST["param"]))
3
  {
4
  if($_REQUEST["param"] == "show_images")
35
  <br/>
36
  <div id="bank_pics_<?php echo $flag; ?>" style="padding:10px; display: inline-block;">
37
  <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; ?>">
38
+ <img src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" style="border: <?php echo $album->border_width;?>px solid <?php echo $album->border_color;?>;" width="150px" /></a>
39
  </div>
40
  <?php
41
  }
44
  ?>
45
  <div id="bank_pics_<?php echo $flag; ?>" style="padding: 10px; display: inline-block;">
46
  <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; ?>">
47
+ <img src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" style="border: <?php echo $album->border_width;?>px solid <?php echo $album->border_color;?>;" width="150px" /></a>
48
  </div>
49
  <?php
50
  }
57
  <br/>
58
  <div id="bank_pics_<?php echo $flag; ?>" style="padding: 10px; display: inline-block;">
59
  <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; ?>)">
60
+ <img src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" style="border: <?php echo $album->border_width;?>px solid <?php echo $album->border_color;?>;" width="150px" /></a>
61
  </div>
62
  <?php
63
  }
66
  ?>
67
  <div id="bank_pics_<?php echo $flag; ?>" style="padding: 10px; display: inline-block;">
68
  <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; ?>)">
69
+ <img src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" style="border: <?php echo $album->border_width;?>px solid <?php echo $album->border_color;?>;" width="150px" /></a>
70
  </div>
71
  <?php
72
  }
133
  die();
134
  }
135
  }
136
+
137
  ?>
lib/gallery-bank-class.php CHANGED
@@ -76,7 +76,6 @@ function view_album()
76
  global $wpdb;
77
  include_once GALLERY_BK_PLUGIN_DIR .'/views/header.php';
78
  include_once GALLERY_BK_PLUGIN_DIR .'/views/menus-gallery-bank.php';
79
-
80
  include_once GALLERY_BK_PLUGIN_DIR .'/views/view-album.php';
81
  }
82
  function edit_album()
@@ -84,7 +83,6 @@ function edit_album()
84
  global $wpdb;
85
  include_once GALLERY_BK_PLUGIN_DIR .'/views/header.php';
86
  include_once GALLERY_BK_PLUGIN_DIR .'/views/menus-gallery-bank.php';
87
-
88
  include_once GALLERY_BK_PLUGIN_DIR .'/views/edit-album.php';
89
  }
90
 
76
  global $wpdb;
77
  include_once GALLERY_BK_PLUGIN_DIR .'/views/header.php';
78
  include_once GALLERY_BK_PLUGIN_DIR .'/views/menus-gallery-bank.php';
 
79
  include_once GALLERY_BK_PLUGIN_DIR .'/views/view-album.php';
80
  }
81
  function edit_album()
83
  global $wpdb;
84
  include_once GALLERY_BK_PLUGIN_DIR .'/views/header.php';
85
  include_once GALLERY_BK_PLUGIN_DIR .'/views/menus-gallery-bank.php';
 
86
  include_once GALLERY_BK_PLUGIN_DIR .'/views/edit-album.php';
87
  }
88
 
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.5
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -95,6 +95,12 @@ Visit [here](http://gallery-bank.com) to upgrade to Pro Version now.
95
 
96
  == Changelog ==
97
 
 
 
 
 
 
 
98
  = 1.5 =
99
 
100
  * Album Covers Introduced
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.6
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
95
 
96
  == Changelog ==
97
 
98
+ = 1.6 =
99
+
100
+ * Bug of Thumbnail Disorted Images fixed
101
+ * Bug of No Album images shown in case of admin not logged in fixed.
102
+ * Uninstall Hook Removed
103
+
104
  = 1.5 =
105
 
106
  * Album Covers Introduced
views/front-view-albums.php CHANGED
@@ -34,7 +34,7 @@
34
  <div id="main_div<?php echo $album_id;?>" style="display: block;" class="album-cover">
35
  <div class="box" style=" margin-top: 10px;">
36
  <div id="view_bank_album_<?php echo $album_id;?>" style=" margin-top: 10px; padding: 10px;" >
37
- <img class="imgHolder" src="<?php echo $album_cover->thumbnail_url; ?>" onclick="view_images(<?php echo $album_id;?>);" style="display:inline-block;border:5px solid #000; cursor:pointer; height: <?php echo $album->image_height; ?>px; width: <?php echo $album->image_width; ?>px;" />
38
  <div style="text-align: justify;display:inline-block;vertical-align:middle;margin-left:20px;">
39
  <div>
40
  <h3><?php echo $album->album_name; ?>&nbsp;</h3>
34
  <div id="main_div<?php echo $album_id;?>" style="display: block;" class="album-cover">
35
  <div class="box" style=" margin-top: 10px;">
36
  <div id="view_bank_album_<?php echo $album_id;?>" style=" margin-top: 10px; padding: 10px;" >
37
+ <img class="imgHolder" src="<?php echo $album_cover->thumbnail_url; ?>" onclick="view_images(<?php echo $album_id;?>);" style="display:inline-block;border:5px solid #000; cursor:pointer;" width="150px" />
38
  <div style="text-align: justify;display:inline-block;vertical-align:middle;margin-left:20px;">
39
  <div>
40
  <h3><?php echo $album->album_name; ?>&nbsp;</h3>
views/front_view.php CHANGED
@@ -33,7 +33,7 @@
33
  <br/>
34
  <div id="bank_pics_<?php echo $flag; ?>" style="padding: 10px; display: inline-block;">
35
  <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; ?>">
36
- <img src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" style="border: <?php echo $album->border_width;?>px solid <?php echo $album->border_color;?>; height: <?php echo $album->image_height; ?>px; width: <?php echo $album->image_width; ?>px;" /></a>
37
  </div>
38
  <?php
39
  }
@@ -42,7 +42,7 @@
42
  ?>
43
  <div id="bank_pics_<?php echo $flag; ?>" style="padding: 10px; display: inline-block;">
44
  <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; ?>">
45
- <img src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" style="border: <?php echo $album->border_width;?>px solid <?php echo $album->border_color;?>; height: <?php echo $album->image_height; ?>px; width: <?php echo $album->image_width; ?>px;" /></a>
46
  </div>
47
  <?php
48
  }
@@ -55,7 +55,7 @@
55
  <br/>
56
  <div id="bank_pics_<?php echo $flag; ?>" style="padding: 10px; display: inline-block;">
57
  <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; ?>)">
58
- <img src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" style="border: <?php echo $album->border_width;?>px solid <?php echo $album->border_color;?>; height: <?php echo $album->image_height; ?>px; width: <?php echo $album->image_width; ?>px;" /></a>
59
  </div>
60
  <?php
61
  }
@@ -64,7 +64,7 @@
64
  ?>
65
  <div id="bank_pics_<?php echo $flag; ?>" style="padding: 10px; display: inline-block;">
66
  <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; ?>)">
67
- <img src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" style="border: <?php echo $album->border_width;?>px solid <?php echo $album->border_color;?>; height: <?php echo $album->image_height; ?>px; width: <?php echo $album->image_width; ?>px;" /></a>
68
  </div>
69
  <?php
70
  }
33
  <br/>
34
  <div id="bank_pics_<?php echo $flag; ?>" style="padding: 10px; display: inline-block;">
35
  <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; ?>">
36
+ <img src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" style="border: <?php echo $album->border_width;?>px solid <?php echo $album->border_color;?>;" width="150px" /></a>
37
  </div>
38
  <?php
39
  }
42
  ?>
43
  <div id="bank_pics_<?php echo $flag; ?>" style="padding: 10px; display: inline-block;">
44
  <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; ?>">
45
+ <img src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" style="border: <?php echo $album->border_width;?>px solid <?php echo $album->border_color;?>;" width="150px" /></a>
46
  </div>
47
  <?php
48
  }
55
  <br/>
56
  <div id="bank_pics_<?php echo $flag; ?>" style="padding: 10px; display: inline-block;">
57
  <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; ?>)">
58
+ <img src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" style="border: <?php echo $album->border_width;?>px solid <?php echo $album->border_color;?>;" width="150px" /></a>
59
  </div>
60
  <?php
61
  }
64
  ?>
65
  <div id="bank_pics_<?php echo $flag; ?>" style="padding: 10px; display: inline-block;">
66
  <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; ?>)">
67
+ <img src="<?php echo $pic_detail[$flag]->thumbnail_url; ?>" style="border: <?php echo $album->border_width;?>px solid <?php echo $album->border_color;?>;" width="150px" /></a>
68
  </div>
69
  <?php
70
  }