Gallery Bank: WordPress Photo Gallery Plugin - Version 2.0.24

Version Description

  • Fixed Bugs Related to Front View
  • Fixed Bugs Related to Front View Albums
  • Fixed Bugs Related to Front View Albums with Images
  • Fixed Bugs Related to Css Display
  • Lightbox Updated
Download this release

Release Info

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

Code changes from version 2.0.23 to 2.0.24

assets/js/imagesloaded.js ADDED
@@ -0,0 +1,283 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * imagesLoaded v3.0.2
3
+ * JavaScript is all like "You images are done yet or what?"
4
+ */
5
+
6
+ ( function( window ) {
7
+
8
+ 'use strict';
9
+
10
+ var $ = window.jQuery;
11
+ var console = window.console;
12
+ var hasConsole = typeof console !== 'undefined';
13
+
14
+ // -------------------------- helpers -------------------------- //
15
+
16
+ // extend objects
17
+ function extend( a, b ) {
18
+ for ( var prop in b ) {
19
+ a[ prop ] = b[ prop ];
20
+ }
21
+ return a;
22
+ }
23
+
24
+ var objToString = Object.prototype.toString;
25
+ function isArray( obj ) {
26
+ return objToString.call( obj ) === '[object Array]';
27
+ }
28
+
29
+ // turn element or nodeList into an array
30
+ function makeArray( obj ) {
31
+ var ary = [];
32
+ if ( isArray( obj ) ) {
33
+ // use object if already an array
34
+ ary = obj;
35
+ } else if ( typeof obj.length === 'number' ) {
36
+ // convert nodeList to array
37
+ for ( var i=0, len = obj.length; i < len; i++ ) {
38
+ ary.push( obj[i] );
39
+ }
40
+ } else {
41
+ // array of single index
42
+ ary.push( obj );
43
+ }
44
+ return ary;
45
+ }
46
+
47
+ // -------------------------- -------------------------- //
48
+
49
+ function defineImagesLoaded( EventEmitter, eventie ) {
50
+
51
+ /**
52
+ * @param {Array, Element, NodeList, String} elem
53
+ * @param {Object or Function} options - if function, use as callback
54
+ * @param {Function} onAlways - callback function
55
+ */
56
+ function ImagesLoaded( elem, options, onAlways ) {
57
+ // coerce ImagesLoaded() without new, to be new ImagesLoaded()
58
+ if ( !( this instanceof ImagesLoaded ) ) {
59
+ return new ImagesLoaded( elem, options );
60
+ }
61
+ // use elem as selector string
62
+ if ( typeof elem === 'string' ) {
63
+ elem = document.querySelectorAll( elem );
64
+ }
65
+
66
+ this.elements = makeArray( elem );
67
+ this.options = extend( {}, this.options );
68
+
69
+ if ( typeof options === 'function' ) {
70
+ onAlways = options;
71
+ } else {
72
+ extend( this.options, options );
73
+ }
74
+
75
+ if ( onAlways ) {
76
+ this.on( 'always', onAlways );
77
+ }
78
+
79
+ this.getImages();
80
+
81
+ if ( $ ) {
82
+ // add jQuery Deferred object
83
+ this.jqDeferred = new $.Deferred();
84
+ }
85
+
86
+ // HACK check async to allow time to bind listeners
87
+ var _this = this;
88
+ setTimeout( function() {
89
+ _this.check();
90
+ });
91
+ }
92
+
93
+ ImagesLoaded.prototype = new EventEmitter();
94
+
95
+ ImagesLoaded.prototype.options = {};
96
+
97
+ ImagesLoaded.prototype.getImages = function() {
98
+ this.images = [];
99
+
100
+ // filter & find items if we have an item selector
101
+ for ( var i=0, len = this.elements.length; i < len; i++ ) {
102
+ var elem = this.elements[i];
103
+ // filter siblings
104
+ if ( elem.nodeName === 'IMG' ) {
105
+ this.addImage( elem );
106
+ }
107
+ // find children
108
+ var childElems = elem.querySelectorAll('img');
109
+ // concat childElems to filterFound array
110
+ for ( var j=0, jLen = childElems.length; j < jLen; j++ ) {
111
+ var img = childElems[j];
112
+ this.addImage( img );
113
+ }
114
+ }
115
+ };
116
+
117
+ /**
118
+ * @param {Image} img
119
+ */
120
+ ImagesLoaded.prototype.addImage = function( img ) {
121
+ var loadingImage = new LoadingImage( img );
122
+ this.images.push( loadingImage );
123
+ };
124
+
125
+ ImagesLoaded.prototype.check = function() {
126
+ var _this = this;
127
+ var checkedCount = 0;
128
+ var length = this.images.length;
129
+ this.hasAnyBroken = false;
130
+ // complete if no images
131
+ if ( !length ) {
132
+ this.complete();
133
+ return;
134
+ }
135
+
136
+ function onConfirm( image, message ) {
137
+ if ( _this.options.debug && hasConsole ) {
138
+ console.log( 'confirm', image, message );
139
+ }
140
+
141
+ _this.progress( image );
142
+ checkedCount++;
143
+ if ( checkedCount === length ) {
144
+ _this.complete();
145
+ }
146
+ return true; // bind once
147
+ }
148
+
149
+ for ( var i=0; i < length; i++ ) {
150
+ var loadingImage = this.images[i];
151
+ loadingImage.on( 'confirm', onConfirm );
152
+ loadingImage.check();
153
+ }
154
+ };
155
+
156
+ ImagesLoaded.prototype.progress = function( image ) {
157
+ this.hasAnyBroken = this.hasAnyBroken || !image.isLoaded;
158
+ this.emit( 'progress', this, image );
159
+ if ( this.jqDeferred ) {
160
+ this.jqDeferred.notify( this, image );
161
+ }
162
+ };
163
+
164
+ ImagesLoaded.prototype.complete = function() {
165
+ var eventName = this.hasAnyBroken ? 'fail' : 'done';
166
+ this.isComplete = true;
167
+ this.emit( eventName, this );
168
+ this.emit( 'always', this );
169
+ if ( this.jqDeferred ) {
170
+ var jqMethod = this.hasAnyBroken ? 'reject' : 'resolve';
171
+ this.jqDeferred[ jqMethod ]( this );
172
+ }
173
+ };
174
+
175
+ // -------------------------- jquery -------------------------- //
176
+
177
+ if ( $ ) {
178
+ $.fn.imagesLoaded = function( options, callback ) {
179
+ var instance = new ImagesLoaded( this, options, callback );
180
+ return instance.jqDeferred.promise( $(this) );
181
+ };
182
+ }
183
+
184
+
185
+ // -------------------------- -------------------------- //
186
+
187
+ var cache = {};
188
+
189
+ function LoadingImage( img ) {
190
+ this.img = img;
191
+ }
192
+
193
+ LoadingImage.prototype = new EventEmitter();
194
+
195
+ LoadingImage.prototype.check = function() {
196
+ // first check cached any previous images that have same src
197
+ var cached = cache[ this.img.src ];
198
+ if ( cached ) {
199
+ this.useCached( cached );
200
+ return;
201
+ }
202
+ // add this to cache
203
+ cache[ this.img.src ] = this;
204
+
205
+ // If complete is true and browser supports natural sizes,
206
+ // try to check for image status manually.
207
+ if ( this.img.complete && this.img.naturalWidth !== undefined ) {
208
+ // report based on naturalWidth
209
+ this.confirm( this.img.naturalWidth !== 0, 'naturalWidth' );
210
+ return;
211
+ }
212
+
213
+ // If none of the checks above matched, simulate loading on detached element.
214
+ var proxyImage = this.proxyImage = new Image();
215
+ eventie.bind( proxyImage, 'load', this );
216
+ eventie.bind( proxyImage, 'error', this );
217
+ proxyImage.src = this.img.src;
218
+ };
219
+
220
+ LoadingImage.prototype.useCached = function( cached ) {
221
+ if ( cached.isConfirmed ) {
222
+ this.confirm( cached.isLoaded, 'cached was confirmed' );
223
+ } else {
224
+ var _this = this;
225
+ cached.on( 'confirm', function( image ) {
226
+ _this.confirm( image.isLoaded, 'cache emitted confirmed' );
227
+ return true; // bind once
228
+ });
229
+ }
230
+ };
231
+
232
+ LoadingImage.prototype.confirm = function( isLoaded, message ) {
233
+ this.isConfirmed = true;
234
+ this.isLoaded = isLoaded;
235
+ this.emit( 'confirm', this, message );
236
+ };
237
+
238
+ // trigger specified handler for event type
239
+ LoadingImage.prototype.handleEvent = function( event ) {
240
+ var method = 'on' + event.type;
241
+ if ( this[ method ] ) {
242
+ this[ method ]( event );
243
+ }
244
+ };
245
+
246
+ LoadingImage.prototype.onload = function() {
247
+ this.confirm( true, 'onload' );
248
+ this.unbindProxyEvents();
249
+ };
250
+
251
+ LoadingImage.prototype.onerror = function() {
252
+ this.confirm( false, 'onerror' );
253
+ this.unbindProxyEvents();
254
+ };
255
+
256
+ LoadingImage.prototype.unbindProxyEvents = function() {
257
+ eventie.unbind( this.proxyImage, 'load', this );
258
+ eventie.unbind( this.proxyImage, 'error', this );
259
+ };
260
+
261
+ // ----- ----- //
262
+
263
+ return ImagesLoaded;
264
+ }
265
+
266
+ // -------------------------- transport -------------------------- //
267
+
268
+ if ( typeof define === 'function' && define.amd ) {
269
+ // AMD
270
+ define( [
271
+ 'eventEmitter',
272
+ 'eventie'
273
+ ],
274
+ defineImagesLoaded );
275
+ } else {
276
+ // browser global
277
+ window.imagesLoaded = defineImagesLoaded(
278
+ window.EventEmitter,
279
+ window.eventie
280
+ );
281
+ }
282
+
283
+ })( window );
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: 2.0.23
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: 2.0.24
8
  Author URI: http://gallery-bank.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
lib/front-view-album-class.php CHANGED
@@ -1,341 +1,253 @@
1
  <?php
2
- if(isset($_REQUEST["param"]))
 
 
3
  {
4
- if($_REQUEST["param"] == "show_images")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  {
6
- global $wpdb;
7
- $album_id = intval($_REQUEST['album_id']);
8
- $pic_detail = $wpdb->get_results
9
- (
10
- $wpdb->prepare
11
- (
12
- "SELECT * FROM ". gallery_bank_pics(). " WHERE album_id = %d order by sorting_order asc",
13
- $album_id
14
- )
15
- );
16
- $album = $wpdb->get_row
17
  (
18
  $wpdb->prepare
19
  (
20
- "SELECT * FROM ".gallery_bank_albums()." where album_id = %d",
21
- $album_id
 
22
  )
23
  );
24
- $get_settings = $wpdb->get_var
 
 
 
25
  (
26
  $wpdb->prepare
27
  (
28
- "SELECT album_settings FROM ". gallery_bank_settings(). " WHERE album_id = %d ",
 
29
  $album_id
30
  )
31
  );
32
- if($get_settings == 1)
33
- {
34
- $album_css = $wpdb->get_row
35
- (
36
- $wpdb->prepare
37
- (
38
- "SELECT * FROM ". gallery_bank_settings(). " WHERE album_settings = %d and album_id = %d",
39
- $get_settings,
40
- 0
41
- )
42
- );
43
- }
44
- else
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  {
46
- $album_css = $wpdb->get_row
47
- (
48
- $wpdb->prepare
49
- (
50
- "SELECT * FROM ". gallery_bank_settings(). " WHERE album_settings = %d and album_id = %d",
51
- $get_settings,
52
- $album_id
53
- )
54
- );
 
 
 
 
55
  }
56
- $unique_id = rand(100,10000);
57
- $content = explode("/", $album_css->setting_content);
58
- $image_settings = explode(";", $content[0]);
59
- $image_content = explode(":", $image_settings[0]);
60
- $image_width = explode(":", $image_settings[1]);
61
- $image_height = explode(":", $image_settings[2]);
62
- $images_in_row = explode(":", $image_settings[3]);
63
- $image_opacity = explode(":", $image_settings[4]);
64
- $image_border_size_value = explode(":", $image_settings[5]);
65
- $image_radius_value = explode(":", $image_settings[6]);
66
- $border_color = explode(":", $image_settings[7]);
67
-
68
- $lightbox_settings = explode(";", $content[2]);
69
- $overlay_opacity = explode(":", $lightbox_settings[0]);
70
- $overlay_border_size_value = explode(":", $lightbox_settings[1]);
71
- $overlay_border_radius = explode(":", $lightbox_settings[2]);
72
- $lightbox_text_color = explode(":", $lightbox_settings[3]);
73
- $overlay_border_color = explode(":", $lightbox_settings[4]);
74
- $lightbox_inline_bg_color = explode(":", $lightbox_settings[5]);
75
- $lightbox_bg_color = explode(":", $lightbox_settings[6]);
76
- $litebox_bg_color_substring = str_replace("rgb","rgba",substr($lightbox_bg_color[1], 0, -1));
77
- $litebox_bg_color_with_opacity = $litebox_bg_color_substring. "," . $overlay_opacity[1] . ")";
78
- $lightbox_bg_color_value= $overlay_border_size_value[1] . " solid " . $overlay_border_color[1];
79
- ?>
80
- <div id="view_bank_album_<?php echo $unique_id;?>">
81
  <?php
82
  for ($flag = 0; $flag <count($pic_detail); $flag++)
83
  {
84
- $css_image_thumbnail = "border:" . $image_border_size_value[1]. " solid " . $border_color[1] . ";border-radius:" . $image_radius_value[1]. ";-moz-border-radius:" . $image_radius_value[1]. ";-webkit-border-radius:" . $image_radius_value[1]. ";-khtml-border-radius:" . $image_radius_value[1]. ";-o-border-radius:" . $image_radius_value[1].";opacity:".$image_opacity[1].";filter:alpha(opacity=".$image_opacity[1] * 100 . ");-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=".$image_opacity[1] * 100 . ")';-moz-opacity:" . $image_opacity[1] . ";-khtml-opacity:".$image_opacity[1]. ";";
85
- if($pic_detail[$flag]->description == "")
86
  {
87
- if(($flag % $images_in_row[1] == 0) && $flag != 0)
 
88
  {
89
- if($pic_detail[$flag]->check_url == 1)
90
- {
91
- if($image_content[1] == 1)
92
- {
93
- ?>
94
- <div class="imgContainerSingle">
95
- <a href="<?php echo $pic_detail[$flag]->url;?>" target="_blank">
96
- <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:155px;<?php echo $css_image_thumbnail; ?>" />
97
- </a>
98
- </div>
99
- <?php
100
- }
101
-
102
- }
103
- else
104
- {
105
- ?>
106
  <div class="imgContainerSingle">
107
- <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?>">
108
- <?php
109
- if($image_content[1] == 1)
110
- {
111
- if($pic_detail[$flag]->video == 1)
112
- {
113
- ?>
114
- <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin-left:5px;width:155px;<?php echo $css_image_thumbnail; ?>" />
115
- <?php
116
- }
117
- else
118
- {
119
- ?>
120
- <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:155px;<?php echo $css_image_thumbnail; ?>" />
121
- <?php
122
- }
123
- ?>
124
- </a>
125
  </div>
126
- <?php
127
- }
128
- }
129
  }
130
  else
131
  {
132
-
133
- if($pic_detail[$flag]->check_url == 1)
134
  {
135
- if($image_content[1] == 1)
136
- {
137
- ?>
138
- <div class="imgContainerSingle">
139
- <a href="<?php echo $pic_detail[$flag]->url;?>" target="_blank">
140
-
141
- <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:155px;<?php echo $css_image_thumbnail; ?>" />
142
-
143
-
144
- </a>
145
- </div>
146
  <?php
147
- }
148
  }
149
- else
150
- {
151
- ?>
152
- <div class="imgContainerSingle">
153
- <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo $pic_detail[$flag]->pic_path; ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?>">
154
- <?php
155
- if($image_content[1] == 1)
156
  {
 
 
 
 
 
157
  if($pic_detail[$flag]->video == 1)
158
  {
159
  ?>
160
- <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin-left:5px;width:155px;<?php echo $css_image_thumbnail; ?>" />
161
  <?php
162
  }
163
- else
164
- {
165
  ?>
166
- <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:155px;<?php echo $css_image_thumbnail; ?>" />
167
- <?php
168
  }
169
- ?>
170
- </a>
171
  </div>
172
- <?php
173
- }
174
-
175
- }
176
  }
177
  }
178
- else
179
  {
180
- if(($flag % $images_in_row[1] == 0) && $flag != 0)
181
  {
182
-
183
- if($pic_detail[$flag]->check_url == 1)
184
- {
185
- if($image_content[1] == 1)
186
- {
187
- ?>
188
- <div class="imgContainerSingle">
189
- <a href="<?php echo $pic_detail[$flag]->url;?>" target="_blank">
190
- <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:155px;<?php echo $css_image_thumbnail; ?>" />
191
- </a>
192
- </div>
193
- <?php
194
- }
195
-
196
- }
197
- else
198
- {
199
- if($pic_detail[$flag]->description == "")
200
- {
201
- ?>
202
- <div class="imgContainerSingle">
203
- <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?>">
204
- <?php
205
- }
206
- else
207
- {
208
- ?>
209
- <div class="imgContainerSingle">
210
- <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?> (<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->description)); ?>)">
211
- <?php
212
- }
213
-
214
- if($image_content[1] == 1)
215
- {
216
-
217
-
218
- ?>
219
- <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:155px;<?php echo $css_image_thumbnail; ?>" />
220
-
221
- </a>
222
- </div>
223
- <?php
224
-
225
- }
226
-
227
- }
228
  }
229
- else
230
  {
231
-
232
-
233
- if($pic_detail[$flag]->check_url == 1)
234
  {
235
- if($image_content[1] == 1)
236
- {
237
- ?>
238
- <div class="imgContainerSingle">
239
- <a href="<?php echo $pic_detail[$flag]->url;?>" target="_blank">
240
-
241
- <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:155px;<?php echo $css_image_thumbnail; ?>" />
242
-
243
- </a>
244
- </div>
245
  <?php
246
- }
247
-
248
  }
249
  else
250
  {
251
- if($pic_detail[$flag]->description == "")
 
 
 
 
 
252
  {
253
  ?>
254
- <div class="imgContainerSingle">
255
- <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?>">
256
  <?php
257
  }
258
  else
259
  {
260
  ?>
261
- <div class="imgContainerSingle">
262
- <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?> (<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->description)); ?>)">
263
  <?php
264
  }
265
-
266
- if($image_content[1] == 1)
267
- {
268
- ?>
269
- <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:155px;<?php echo $css_image_thumbnail; ?>" />
270
-
271
- </a>
272
- </div>
273
- <?php
274
- }
275
-
276
- }
277
  }
278
  }
279
-
280
  }
281
-
282
  ?>
283
- </div>
284
-
285
- <script type="text/javascript">
286
-
287
- jQuery(document).ready(function(){
288
- jQuery("div.da-thumbs").hoverdir();
289
- jQuery(".titan-lb_<?php echo $unique_id;?>").lightbox({
290
- beforeShow: function(){
291
- jQuery(".lightbox-skin").css("background","<?php echo $lightbox_inline_bg_color[1]; ?>");
292
- jQuery(".lightbox-overlay").css("background","<?php echo $litebox_bg_color_with_opacity; ?>");
293
- jQuery(".lightbox-wrap").css("border-radius","<?php echo $overlay_border_radius[1]; ?>");
294
- jQuery(".lightbox-wrap").css("-moz-border-radius","<?php echo $overlay_border_radius[1]; ?>");
295
- jQuery(".lightbox-wrap").css("-webkit-border-radius","<?php echo $overlay_border_radius[1]; ?>");
296
- jQuery(".lightbox-wrap").css("-khtml-border-radius","<?php echo $overlay_border_radius[1]; ?>");
297
- jQuery(".lightbox-wrap").css("-o-border-radius","<?php echo $overlay_border_radius[1]; ?>");
298
- jQuery(".lightbox-wrap").css("border","<?php echo $lightbox_bg_color_value; ?>");
299
- },
300
- afterShow : function()
301
- {
302
- jQuery(".lightbox-title").css("color","<?php echo $lightbox_text_color[1]; ?>");
303
- }
304
- });
305
-
306
  });
307
-
308
- var $container_<?php echo $unique_id;?> = jQuery('#view_bank_album_<?php echo $unique_id;?>');
309
  $container_<?php echo $unique_id;?>.imagesLoaded( function(){
310
  $container_<?php echo $unique_id;?>.masonry({
311
 
312
- itemSelector : '.imgContainerSingle',
313
- isAnimated: true,
314
- animationOptions: {
315
- duration: 750,
316
- easing: 'linear',
317
- queue: false
318
  }
319
  });
320
- });
321
- $container_<?php echo $unique_id;?>.masonry('reload');
322
- </script>
323
- <?php
324
- die();
325
- }
326
- elseif($_REQUEST["param"] == "get_album_name")
327
- {
328
- $album_id = intval($_REQUEST['album_id']);
329
- $album_name = $wpdb->get_var
 
 
330
  (
331
- $wpdb->prepare
332
- (
333
- "SELECT album_name from ".gallery_bank_albums()." where album_id = %d",
334
- $album_id
335
- )
336
- );
337
- echo stripslashes(htmlspecialchars_decode($album_name));
338
- die();
339
- }
340
  }
 
341
  ?>
1
  <?php
2
+ if(isset($_REQUEST["param"]))
3
+ {
4
+ if($_REQUEST["param"] == "show_images")
5
  {
6
+ global $wpdb;
7
+ $album_id = intval($_REQUEST['album_id']);
8
+ $pic_detail = $wpdb->get_results
9
+ (
10
+ $wpdb->prepare
11
+ (
12
+ "SELECT * FROM ". gallery_bank_pics(). " WHERE album_id = %d order by sorting_order asc",
13
+ $album_id
14
+ )
15
+ );
16
+ $album = $wpdb->get_row
17
+ (
18
+ $wpdb->prepare
19
+ (
20
+ "SELECT * FROM ".gallery_bank_albums()." where album_id = %d",
21
+ $album_id
22
+ )
23
+ );
24
+ $get_settings = $wpdb->get_var
25
+ (
26
+ $wpdb->prepare
27
+ (
28
+ "SELECT album_settings FROM ". gallery_bank_settings(). " WHERE album_id = %d ",
29
+ $album_id
30
+ )
31
+ );
32
+ if($get_settings == 1)
33
  {
34
+ $album_css = $wpdb->get_row
 
 
 
 
 
 
 
 
 
 
35
  (
36
  $wpdb->prepare
37
  (
38
+ "SELECT * FROM ". gallery_bank_settings(). " WHERE album_settings = %d and album_id = %d",
39
+ $get_settings,
40
+ 0
41
  )
42
  );
43
+ }
44
+ else
45
+ {
46
+ $album_css = $wpdb->get_row
47
  (
48
  $wpdb->prepare
49
  (
50
+ "SELECT * FROM ". gallery_bank_settings(). " WHERE album_settings = %d and album_id = %d",
51
+ $get_settings,
52
  $album_id
53
  )
54
  );
55
+ }
56
+ $unique_id = rand(100,10000);
57
+ $content = explode("/", $album_css->setting_content);
58
+ $image_settings = explode(";", $content[0]);
59
+ $image_content = explode(":", $image_settings[0]);
60
+ $image_width = explode(":", $image_settings[1]);
61
+ $image_height = explode(":", $image_settings[2]);
62
+ $images_in_row = explode(":", $image_settings[3]);
63
+ $image_opacity = explode(":", $image_settings[4]);
64
+ $image_border_size_value = explode(":", $image_settings[5]);
65
+ $image_radius_value = explode(":", $image_settings[6]);
66
+ $border_color = explode(":", $image_settings[7]);
67
+ $img_border_value = $image_border_size_value[1]. " solid " . $border_color[1];
68
+ $filter_opacity = $image_opacity[1] * 100;
69
+
70
+ $lightbox_settings = explode(";", $content[2]);
71
+ $overlay_opacity = explode(":", $lightbox_settings[0]);
72
+ $overlay_border_size_value = explode(":", $lightbox_settings[1]);
73
+ $overlay_border_radius = explode(":", $lightbox_settings[2]);
74
+ $lightbox_text_color = explode(":", $lightbox_settings[3]);
75
+ $overlay_border_color = explode(":", $lightbox_settings[4]);
76
+ $lightbox_inline_bg_color = explode(":", $lightbox_settings[5]);
77
+ $lightbox_bg_color = explode(":", $lightbox_settings[6]);
78
+ $litebox_bg_color_substring = str_replace("rgb","rgba",substr($lightbox_bg_color[1], 0, -1));
79
+ $litebox_bg_color_with_opacity = $litebox_bg_color_substring. "," . $overlay_opacity[1] . ")";
80
+ $lightbox_bg_color_value= $overlay_border_size_value[1] . " solid " . $overlay_border_color[1];
81
+ ?>
82
+ <style>
83
+ .dynamic_css
84
  {
85
+ border:<?php echo $img_border_value; ?>;
86
+ border-radius:<?php echo $image_radius_value[1]; ?>;
87
+ -moz-border-radius:<?php echo $image_radius_value[1]; ?>;
88
+ -webkit-border-radius:<?php echo $image_radius_value[1];?>;
89
+ -khtml-border-radius:<?php echo $image_radius_value[1];?>;
90
+ -o-border-radius:<?php echo $image_radius_value[1];?>;
91
+ opacity:<?php echo $image_opacity[1];?>;
92
+ filter:alpha(opacity=<?php echo $filter_opacity;?>);
93
+ -ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=<?php echo $filter_opacity;?>)';
94
+ -moz-opacity:<?php echo $image_opacity[1]; ?>;
95
+ -khtml-opacity:<?php echo $image_opacity[1]; ?>;
96
+ width:155px !important;
97
+ /*margin-left:3px;*/
98
  }
99
+ </style>
100
+ <div id="view_bank_album_<?php echo $unique_id;?>">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
  <?php
102
  for ($flag = 0; $flag <count($pic_detail); $flag++)
103
  {
104
+ if(($flag % $images_in_row[1] == 0) && $flag != 0)
 
105
  {
106
+
107
+ if($pic_detail[$flag]->check_url == 1)
108
  {
109
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  <div class="imgContainerSingle">
111
+ <a href="<?php echo $pic_detail[$flag]->url;?>" target="_blank">
112
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" class="dynamic_css" />
113
+ </a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  </div>
115
+ <?php
 
 
116
  }
117
  else
118
  {
119
+ if($pic_detail[$flag]->description == "")
 
120
  {
121
+ ?>
122
+ <div class="imgContainerSingle">
123
+ <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?>">
 
 
 
 
 
 
 
 
124
  <?php
 
125
  }
126
+ else
 
 
 
 
 
 
127
  {
128
+ ?>
129
+ <div class="imgContainerSingle">
130
+ <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?> (<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->description)); ?>)">
131
+ <?php
132
+ }
133
  if($pic_detail[$flag]->video == 1)
134
  {
135
  ?>
136
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" class="dynamic_css" />
137
  <?php
138
  }
139
+ else
140
+ {
141
  ?>
142
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" class="dynamic_css" />
143
+ <?php
144
  }
145
+ ?>
146
+ </a>
147
  </div>
148
+ <?php
 
 
 
149
  }
150
  }
151
+ else
152
  {
153
+ if($pic_detail[$flag]->check_url == 1)
154
  {
155
+ ?>
156
+ <div class="imgContainerSingle">
157
+ <a href="<?php echo $pic_detail[$flag]->url;?>" target="_blank">
158
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" class="dynamic_css" />
159
+ </a>
160
+ </div>
161
+ <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  }
163
+ else
164
  {
165
+ if($pic_detail[$flag]->description == "")
 
 
166
  {
167
+ ?>
168
+ <div class="imgContainerSingle">
169
+ <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?>">
 
 
 
 
 
 
 
170
  <?php
 
 
171
  }
172
  else
173
  {
174
+ ?>
175
+ <div class="imgContainerSingle">
176
+ <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?> (<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->description)); ?>)">
177
+ <?php
178
+ }
179
+ if($pic_detail[$flag]->video == 1)
180
  {
181
  ?>
182
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" class="dynamic_css" />
 
183
  <?php
184
  }
185
  else
186
  {
187
  ?>
188
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" class="dynamic_css" />
 
189
  <?php
190
  }
191
+ ?>
192
+ </a>
193
+ </div>
194
+ <?php
 
 
 
 
 
 
 
 
195
  }
196
  }
 
197
  }
 
198
  ?>
199
+ </div>
200
+ <script type="text/javascript">
201
+ jQuery(document).ready(function(){
202
+ jQuery("div.da-thumbs").hoverdir();
203
+ jQuery(".titan-lb_<?php echo $unique_id;?>").lightbox({
204
+ beforeShow: function(){
205
+ jQuery(".lightbox-skin").css("background","<?php echo $lightbox_inline_bg_color[1]; ?>");
206
+ jQuery(".lightbox-overlay").css("background","<?php echo $litebox_bg_color_with_opacity; ?>");
207
+ jQuery(".lightbox-wrap").css("border-radius","<?php echo $overlay_border_radius[1]; ?>");
208
+ jQuery(".lightbox-wrap").css("-moz-border-radius","<?php echo $overlay_border_radius[1]; ?>");
209
+ jQuery(".lightbox-wrap").css("-webkit-border-radius","<?php echo $overlay_border_radius[1]; ?>");
210
+ jQuery(".lightbox-wrap").css("-khtml-border-radius","<?php echo $overlay_border_radius[1]; ?>");
211
+ jQuery(".lightbox-wrap").css("-o-border-radius","<?php echo $overlay_border_radius[1]; ?>");
212
+ jQuery(".lightbox-wrap").css("border","<?php echo $lightbox_bg_color_value; ?>");
213
+ },
214
+ afterShow : function()
215
+ {
216
+ jQuery(".lightbox-title").css("color","<?php echo $lightbox_text_color[1]; ?>");
217
+ }
 
 
 
 
218
  });
219
+ });
220
+ var $container_<?php echo $unique_id;?> = jQuery('#view_bank_album_<?php echo $unique_id;?>');
221
  $container_<?php echo $unique_id;?>.imagesLoaded( function(){
222
  $container_<?php echo $unique_id;?>.masonry({
223
 
224
+ itemSelector : '.imgContainerSingle',
225
+ isAnimated: true,
226
+ animationOptions: {
227
+ duration: 750,
228
+ easing: 'linear',
229
+ queue: false
230
  }
231
  });
232
+ });
233
+ $container_<?php echo $unique_id;?>.masonry('reload');
234
+ </script>
235
+ <?php
236
+ die();
237
+ }
238
+ elseif($_REQUEST["param"] == "get_album_name")
239
+ {
240
+ $album_id = intval($_REQUEST['album_id']);
241
+ $album_name = $wpdb->get_var
242
+ (
243
+ $wpdb->prepare
244
  (
245
+ "SELECT album_name from ".gallery_bank_albums()." where album_id = %d",
246
+ $album_id
247
+ )
248
+ );
249
+ echo stripslashes(htmlspecialchars_decode($album_name));
250
+ die();
 
 
 
251
  }
252
+ }
253
  ?>
lib/gallery-bank-class.php CHANGED
@@ -157,6 +157,7 @@ function frontend_plugin_js_scripts_gallery_bank()
157
  wp_enqueue_script('jquery.titanlighbox.js', GALLERY_BK_PLUGIN_URL .'/assets/js/jquery.titanlighbox.js');
158
  wp_enqueue_script('frontend.js', GALLERY_BK_PLUGIN_URL .'/assets/js/frontend.js');
159
  wp_enqueue_script('jquery.masonry.min.js', GALLERY_BK_PLUGIN_URL .'/assets/js/jquery.masonry.min.js');
 
160
  }
161
 
162
  //--------------------------------------------------------------------------------------------------------------//
157
  wp_enqueue_script('jquery.titanlighbox.js', GALLERY_BK_PLUGIN_URL .'/assets/js/jquery.titanlighbox.js');
158
  wp_enqueue_script('frontend.js', GALLERY_BK_PLUGIN_URL .'/assets/js/frontend.js');
159
  wp_enqueue_script('jquery.masonry.min.js', GALLERY_BK_PLUGIN_URL .'/assets/js/jquery.masonry.min.js');
160
+ //wp_enqueue_script('imagesloaded.js', GALLERY_BK_PLUGIN_URL .'/assets/js/imagesloaded.js');
161
  }
162
 
163
  //--------------------------------------------------------------------------------------------------------------//
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Gallery-Bank
3
  Tags: gallery, images, album, pictures, photos, photo album, photo gallery, media, photo albums, picture, pictures, thumbnails, slideshow, admin, best gallery plugin, filterable gallery, filterable portfolio, gallery, gallery wordpress plugin, grid gallery, image album, images, page, photo albums, plugin, portfolio, portfolio wordpress plugin, Post, Posts, widget, wordpress gallery plugin, wordpress portfolio plugin, videos, comments, widget, gallery bank
4
  Requires at least: 3.3
5
  Tested up to: 3.8
6
- Stable tag: 2.0.23
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -11,14 +11,15 @@ Gallery Bank is an easy to use Responsive WordPress Premium Gallery Plugin for g
11
 
12
  == Description ==
13
 
14
- Gallery Bank is the best WordPress plugin that allows you to create photo galleries with an ease in your WordPress websites.
15
 
 
16
 
17
  It has the ability to upload images, with options like adding, editing, re-order/sorting and deleting images in the Album.
18
 
19
  Gallery Bank is designed to adapt each portfolio to any situation and can be easily used on mobiles as it is a Responsive Plugin.
20
 
21
- **December 13, 2013: We're happy to announce that Gallery Bank reached 61,600+ plugin downloads in only 6 months. We frequently receive positive feedback from people using our gallery bank plugin for WordPress. Thanks so much for your support!**
22
 
23
  <a href="http://gallery-bank.com/forum/support-forum/" target="_blank">Support Desk - feel free to ask your queries</a>
24
 
@@ -146,7 +147,15 @@ With this bulk deletion feature, you can now delete the pictures you want in bul
146
 
147
  == Changelog ==
148
 
149
- = 2.0.22 =
 
 
 
 
 
 
 
 
150
 
151
  * Fixed few issues with Wordpress 3.8 compatibility
152
 
3
  Tags: gallery, images, album, pictures, photos, photo album, photo gallery, media, photo albums, picture, pictures, thumbnails, slideshow, admin, best gallery plugin, filterable gallery, filterable portfolio, gallery, gallery wordpress plugin, grid gallery, image album, images, page, photo albums, plugin, portfolio, portfolio wordpress plugin, Post, Posts, widget, wordpress gallery plugin, wordpress portfolio plugin, videos, comments, widget, gallery bank
4
  Requires at least: 3.3
5
  Tested up to: 3.8
6
+ Stable tag: 2.0.24
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
11
 
12
  == Description ==
13
 
14
+ ***Wishing you all, a very Happy New Year! Welcome 2014! from Gallery Bank***
15
 
16
+ Gallery Bank is the best WordPress plugin that allows you to create photo galleries with an ease in your WordPress websites.
17
 
18
  It has the ability to upload images, with options like adding, editing, re-order/sorting and deleting images in the Album.
19
 
20
  Gallery Bank is designed to adapt each portfolio to any situation and can be easily used on mobiles as it is a Responsive Plugin.
21
 
22
+ ***January 26, 2014: We're happy to announce that Gallery Bank reached 73,650+ plugin downloads in only 9 months. We frequently receive positive feedback from people using our gallery bank plugin for WordPress. Thanks so much for your support!***
23
 
24
  <a href="http://gallery-bank.com/forum/support-forum/" target="_blank">Support Desk - feel free to ask your queries</a>
25
 
147
 
148
  == Changelog ==
149
 
150
+ = 2.0.24 =
151
+
152
+ * Fixed Bugs Related to Front View
153
+ * Fixed Bugs Related to Front View Albums
154
+ * Fixed Bugs Related to Front View Albums with Images
155
+ * Fixed Bugs Related to Css Display
156
+ * Lightbox Updated
157
+
158
+ = 2.0.23 =
159
 
160
  * Fixed few issues with Wordpress 3.8 compatibility
161
 
views/front-view-albums.php CHANGED
@@ -70,103 +70,74 @@ global $wpdb;
70
  $cover_border_radius = explode(":", $cover_settings[5]);
71
  $cover_border_color = explode(":", $cover_settings[6]);
72
  $cover_border_value = $cover_border_size[1] ." solid " . $cover_border_color[1];
 
73
  $pagination_settings = explode(";", $content[4]);
74
  $pagination = explode(":", $pagination_settings[0]);
75
 
76
- $default_height = 151 + "px;" . "-moz-border-radius:". $cover_border_radius[1] ."; -webkit-border-radius:". $cover_border_radius[1] . ";-khtml-border-radius:". $cover_border_radius[1] . ";-o-border-radius:" . $cover_border_radius[1] . ";border-radius:" . $cover_border_radius[1];
77
- $default_width = 155 + "px;" ."-moz-border-radius:". $cover_border_radius[1] ."; -webkit-border-radius:". $cover_border_radius[1] . ";-khtml-border-radius:". $cover_border_radius[1] . ";-o-border-radius:" . $cover_border_radius[1] . ";border-radius:" . $cover_border_radius[1];
78
- $custom_height = $cover_height[1] + 1 +"px;" . "-moz-border-radius:". $cover_border_radius[1] ."; -webkit-border-radius:". $cover_border_radius[1] . ";-khtml-border-radius:". $cover_border_radius[1] . ";-o-border-radius:" . $cover_border_radius[1] . ";border-radius:" . $cover_border_radius[1];
79
- $custom_width = $cover_width[1] + 5 +"px;" . "-moz-border-radius:". $cover_border_radius[1] ."; -webkit-border-radius:". $cover_border_radius[1] . ";-khtml-border-radius:". $cover_border_radius[1] . ";-o-border-radius:" . $cover_border_radius[1] . ";border-radius:" . $cover_border_radius[1];
80
- $radius_for_shutter = "-moz-border-radius:". $cover_border_radius[1] ."; -webkit-border-radius:". $cover_border_radius[1] . ";-khtml-border-radius:". $cover_border_radius[1] . ";-o-border-radius:" . $cover_border_radius[1] . ";border-radius:" . $cover_border_radius[1];
81
-
82
  ?>
83
- <button id="back_button<?php echo $unique_id;?>" style="margin-top:10px; display: none;" onclick="view_albums<?php echo $unique_id;?>();">
84
- <span style="color: #000;"> &laquo <?php _e('Back to Albums', gallery_bank); ?></span>
85
- </button>
86
- <table style="width: 100%;margin:0px;border:0px;" class="album-cover" id="tbl_<?php echo $unique_id;?>"><tr><td style="border:0px">
87
- <?php
88
-
89
- if(($setting_cover->album_cover == "undefined") || ($setting_cover->album_cover == "") )
90
- {
91
- $url = GALLERY_BK_PLUGIN_URL."/album-cover.png";
92
- ?>
93
- <div id="main_div<?php echo $unique_id;?>" style="display: block;" class="album-cover">
94
- <?php
95
- $album_custom_cover_css = "Height:150px;Width:150px;". "border:" . $cover_border_value . ";-moz-border-radius:". $cover_border_radius[1] ."; -webkit-border-radius:". $cover_border_radius[1] . ";-khtml-border-radius:". $cover_border_radius[1] . ";-o-border-radius:" . $cover_border_radius[1] . ";border-radius:" . $cover_border_radius[1].";-moz-opacity:".$cover_opacity[1]. ";-khtml-opacity:".$cover_opacity[1]. ";-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=".($cover_opacity[1]* 100).")'". ";filter:alpha(opacity=".$cover_opacity[1] * 100 . ");opacity:". $cover_opacity[1]. ";";
96
- ?>
97
-
98
- <a onclick="view_images_<?php echo $unique_id;?>(<?php echo $album_id;?>);" style="cursor: pointer" >
99
- <img class="imgHolder" src="<?php echo stripcslashes($url); ?>" style="cursor:pointer;margin-left:5px;;margin-top:3px;<?php echo $album_custom_cover_css; ?>" />
100
-
101
- </a>
102
-
103
- <div style="text-align: justify;display:inline-block;vertical-align:top;margin-left:20px;">
104
- <h3><?php echo stripcslashes(htmlspecialchars_decode($album->album_name)); ?>&nbsp;</h3>
105
- <span><?php echo stripcslashes(htmlspecialchars_decode($album->description));?>&nbsp;</span><br/>
106
- <a style="cursor: pointer;" onclick="view_images_<?php echo $unique_id;?>(<?php echo $album_id;?>)">
107
- <?php _e("See Album images", gallery_bank); ?> &raquo
108
- </a>
109
- </div>
110
- </div>
111
- <?php
112
- }
113
- else
114
- {
115
- $domain = strstr($setting_cover->album_cover, '/wp-content');
116
- ?>
117
- <div id="main_div<?php echo $unique_id;?>" style="display: block;" class="album-cover">
118
- <?php
119
- if($cover_content[1] == 1)
120
  {
121
-
122
- $album_custom_cover_css = "border:" .$cover_border_value.";-moz-border-radius:". $cover_border_radius[1] ."; -webkit-border-radius:". $cover_border_radius[1] . ";-khtml-border-radius:". $cover_border_radius[1] .";-o-border-radius:" . $cover_border_radius[1] . ";border-radius:" . $cover_border_radius[1].";-moz-opacity:".$cover_opacity[1]. ";-khtml-opacity:".$cover_opacity[1]. ";-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=".($cover_opacity[1]* 100).")'". ";filter:alpha(opacity=".$cover_opacity[1] * 100 . ");opacity:". $cover_opacity[1]. ";";
123
- ?>
124
-
125
- <a onclick="view_images_<?php echo $unique_id;?>(<?php echo $album_id;?>);" style="cursor: pointer" >
126
-
127
- <img class="imgHolder" src="<?php echo stripcslashes($setting_cover->album_cover);?>" style="cursor:pointer;margin-left:5px;width:150px;height:155px;margin-top:3px;<?php echo $album_custom_cover_css; ?>" />
128
-
129
- </a>
130
-
131
-
132
- <?php
133
-
 
 
134
  }
135
- else
136
  {
137
- $album_cover_css = "border:" . $cover_border_value . ";-moz-border-radius:". $cover_border_radius[1] ."; -webkit-border-radius:". $cover_border_radius[1] . ";-khtml-border-radius:". $cover_border_radius[1] . ";-o-border-radius:" . $cover_border_radius[1] . ";border-radius:" . $cover_border_radius[1].";-moz-opacity:".$cover_opacity[1]. ";-khtml-opacity:".$cover_opacity[1]. ";-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=".($cover_opacity[1]* 100).")'". ";filter:alpha(opacity=".$cover_opacity[1] * 100 . ");opacity:". $cover_opacity[1]. ";";
138
- ?>
139
-
140
-
141
- <a onclick="view_images_<?php echo $unique_id;?>(<?php echo $album_id;?>);" style="cursor: pointer" >
142
-
143
- <img class="imgHolder" src="<?php echo stripcslashes($setting_cover->album_cover);?>";" style="margin-left:5px;margin-top:3px;cursor:pointer;width:<?php echo $cover_width[1];?>;height:<?php echo $cover_height[1];?>;<?php echo $album_cover_css;?>" />
144
-
145
- </a>
146
-
147
-
148
- <?php
149
-
150
  }
151
- ?>
152
- <div style="text-align: justify;display:inline-block;vertical-align:top;margin-left:20px;">
153
- <h3><?php echo stripcslashes(htmlspecialchars_decode($album->album_name)); ?>&nbsp;</h3>
154
- <span><?php echo stripcslashes(htmlspecialchars_decode($album->description));?>&nbsp;</span><br/>
155
- <a style="cursor: pointer;" onclick="view_images_<?php echo $unique_id;?>(<?php echo $album_id;?>)">
156
- <?php _e("See Album images", gallery_bank ); ?> &raquo
157
- </a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
  </div>
159
  </div>
160
- <?php
161
- }
162
- ?>
163
- </td></tr></table>
164
- <div id="image_show_div<?php echo $unique_id;?>" style="display: none;" class="images-cover">
165
- <h3 id="album_title<?php echo $unique_id;?>"></h3>
166
- <div id="show_images_<?php echo $unique_id;?>" >
167
- </div>
168
- </div>
169
-
170
  <script type="text/javascript">
171
  var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>";
172
  function view_images_<?php echo $unique_id;?>(album_id)
70
  $cover_border_radius = explode(":", $cover_settings[5]);
71
  $cover_border_color = explode(":", $cover_settings[6]);
72
  $cover_border_value = $cover_border_size[1] ." solid " . $cover_border_color[1];
73
+ $filter_cover_opacity = $cover_opacity[1]* 100;
74
  $pagination_settings = explode(";", $content[4]);
75
  $pagination = explode(":", $pagination_settings[0]);
76
 
 
 
 
 
 
 
77
  ?>
78
+ <style>
79
+ .dynamic_cover_css
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  {
81
+ border:<?php echo $cover_border_value;?>;
82
+ -moz-border-radius:<?php echo $cover_border_radius[1]; ?>;
83
+ -webkit-border-radius:<?php echo $cover_border_radius[1]; ?>;
84
+ -khtml-border-radius:<?php echo $cover_border_radius[1]; ?>;
85
+ -o-border-radius:<?php echo $cover_border_radius[1]; ?>;
86
+ border-radius:<?php echo $cover_border_radius[1];?>;
87
+ -moz-opacity:<?php echo $cover_opacity[1];?>;
88
+ -khtml-opacity:<?php echo $cover_opacity[1];?>;
89
+ -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=<?php echo $filter_cover_opacity; ?>)';
90
+ filter:alpha(opacity=<?php echo $filter_cover_opacity; ?>);
91
+ opacity:<?php echo $cover_opacity[1]; ?>;
92
+ cursor:pointer;
93
+ margin-left:5px;
94
+ margin-top:3px;
95
+ width:150px;
96
  }
97
+ .cover_div_css
98
  {
99
+ text-align: justify;
100
+ display:inline-block;
101
+ vertical-align:top;
102
+ margin-left:20px;
 
 
 
 
 
 
 
 
 
103
  }
104
+ </style>
105
+ <button id="back_button<?php echo $unique_id;?>" style="margin-top:10px; display: none;" onclick="view_albums<?php echo $unique_id;?>();">
106
+ <span style="color: #000;"> &laquo <?php _e('Back to Albums', gallery_bank); ?></span>
107
+ </button>
108
+ <table style="width: 100%;margin:0px;border:0px;" class="album-cover" id="tbl_<?php echo $unique_id;?>">
109
+ <tr>
110
+ <td style="border:0px">
111
+ <?php
112
+ if(($setting_cover->album_cover == "undefined") || ($setting_cover->album_cover == "") )
113
+ {
114
+ $url = GALLERY_BK_PLUGIN_URL."/album-cover.png";
115
+ }
116
+ else
117
+ {
118
+ $url = $setting_cover->album_cover;
119
+ }
120
+ ?>
121
+ <div id="main_div<?php echo $unique_id;?>" style="display: block;" class="album-cover">
122
+ <a onclick="view_images_<?php echo $unique_id;?>(<?php echo $album_id;?>);" style="cursor: pointer" >
123
+ <img class="imgHolder dynamic_cover_css" src="<?php echo stripcslashes($url); ?>" />
124
+ </a>
125
+ <div class="cover_div_css">
126
+ <h3><?php echo stripcslashes(htmlspecialchars_decode($album->album_name)); ?>&nbsp;</h3>
127
+ <span><?php echo stripcslashes(htmlspecialchars_decode($album->description));?>&nbsp;</span><br/>
128
+ <a style="cursor: pointer;" onclick="view_images_<?php echo $unique_id;?>(<?php echo $album_id;?>)">
129
+ <?php _e("See Album images", gallery_bank); ?> &raquo
130
+ </a>
131
+ </div>
132
+ </div>
133
+ </td>
134
+ </tr>
135
+ </table>
136
+ <div id="image_show_div<?php echo $unique_id;?>" style="display: none;" class="images-cover">
137
+ <h3 id="album_title<?php echo $unique_id;?>"></h3>
138
+ <div id="show_images_<?php echo $unique_id;?>" >
139
  </div>
140
  </div>
 
 
 
 
 
 
 
 
 
 
141
  <script type="text/javascript">
142
  var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>";
143
  function view_images_<?php echo $unique_id;?>(album_id)
views/front-view-all-albums.php CHANGED
@@ -21,7 +21,6 @@
21
  <button id="back_button<?php echo $unique_id;?>" style="margin-top:10px; display: none;" onclick="view_albums<?php echo $unique_id;?>();">
22
  <span style="color: #000;">&laquo <?php _e('Back to Albums', gallery_bank); ?></span>
23
  </button>
24
-
25
  <table style="width:100%;border:0px;" >
26
  <?php
27
  for($flag = 0; $flag < count($album); $flag++)
@@ -68,71 +67,61 @@
68
  $cover_border_radius = explode(":", $cover_settings[5]);
69
  $cover_border_color = explode(":", $cover_settings[6]);
70
  $cover_border_value = $cover_border_size[1] ." solid " . $cover_border_color[1];
71
-
72
-
73
-
74
-
75
  ?>
76
- <tr id="tr_<?php echo $album[$flag]->album_id;?>"><td style="border:0px;">
77
- <?php
78
- if(($get_settings->album_cover == "undefined") || ($get_settings->album_cover == "") )
79
- {
80
- $url = GALLERY_BK_PLUGIN_URL."/album-cover.png";
81
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  <div id="main_div<?php echo $unique_id;?>" style="display: block;" class="album-cover">
83
- <?php
84
- $album_custom_cover_css = "Height:150px;Width:150px;"."border:" . $cover_border_value . ";-moz-border-radius:". $cover_border_radius[1] ."; -webkit-border-radius:". $cover_border_radius[1] . ";-khtml-border-radius:". $cover_border_radius[1] . ";-o-border-radius:" . $cover_border_radius[1] . ";border-radius:" . $cover_border_radius[1].";-moz-opacity:".$cover_opacity[1]. ";-khtml-opacity:".$cover_opacity[1]. ";-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=".($cover_opacity[1]* 100).")'". ";filter:alpha(opacity=".$cover_opacity[1] * 100 . ");opacity:". $cover_opacity[1]. ";";
85
- ?>
86
-
87
-
88
- <a onclick="view_images<?php echo $unique_id;?>(<?php echo $album[$flag]->album_id;?>);" style="cursor: pointer" >
89
- <img class="imgHolder" src="<?php echo stripcslashes($url); ?>" style="cursor:pointer;margin-left:5px;;margin-top:3p;<?php echo $album_custom_cover_css; ?>" />
90
-
91
- </a>
92
-
93
- <div style="text-align: justify;display:inline-block;vertical-align:top;margin-left:20px;">
94
  <h3><?php echo stripcslashes(htmlspecialchars_decode($album[$flag]->album_name)); ?>&nbsp;</h3>
95
  <span><?php echo stripcslashes(htmlspecialchars_decode($album[$flag]->description));?>&nbsp;</span><br/>
96
  <a style="cursor: pointer;" onclick="view_images<?php echo $unique_id;?>(<?php echo $album[$flag]->album_id;?>)">
97
  <?php _e("See Album images", gallery_bank ); ?> &raquo
98
  </a>
99
  </div>
100
- </div>
101
- <?php
102
- }
103
- else
104
- {
105
- $domain = strstr($get_settings->album_cover, '/wp-content');
106
- ?>
107
- <div id="main_div<?php echo $unique_id;?>" style="display: block;" class="album-cover">
108
- <?php
109
- if($cover_content[1] == 1)
110
- {
111
- $album_custom_cover_css = "border:" .$cover_border_value. ";-moz-border-radius:". $cover_border_radius[1] ."; -webkit-border-radius:". $cover_border_radius[1] . ";-khtml-border-radius:". $cover_border_radius[1] .";-o-border-radius:" . $cover_border_radius[1] . ";border-radius:" . $cover_border_radius[1].";-moz-opacity:".$cover_opacity[1]. ";-khtml-opacity:".$cover_opacity[1]. ";-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=".($cover_opacity[1]* 100).")'". ";filter:alpha(opacity=".$cover_opacity[1] * 100 . ");opacity:". $cover_opacity[1]. ";";
112
- ?>
113
-
114
-
115
- <a onclick="view_images<?php echo $unique_id;?>(<?php echo $album[$flag]->album_id;?>);" style="cursor: pointer" >
116
- <img class="imgHolder" src="<?php echo stripcslashes($get_settings->album_cover);?>" style="cursor:pointer;margin-left:5px;width:150px;height:155px;margin-top:3px;<?php echo $album_custom_cover_css; ?>" />
117
- </a>
118
-
119
- <?php
120
- }
121
-
122
- ?>
123
- <div style="text-align: justify;display:inline-block;vertical-align:top;margin-left:20px;">
124
- <h3><?php echo stripcslashes(htmlspecialchars_decode($album[$flag]->album_name)); ?>&nbsp;</h3>
125
- <span><?php echo stripcslashes(htmlspecialchars_decode($album[$flag]->description));?>&nbsp;</span><br/>
126
- <a style="cursor: pointer;" onclick="view_images<?php echo $unique_id;?>(<?php echo $album[$flag]->album_id;?>)">
127
- <?php _e("See Album images", gallery_bank ); ?> &raquo
128
- </a>
129
  </div>
130
- </div>
131
- <?php
132
- }
133
- ?>
134
-
135
- </td></tr>
136
  <?php
137
  }
138
  ?>
@@ -146,7 +135,6 @@
146
  var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>";
147
  function view_images<?php echo $unique_id;?>(album_id)
148
  {
149
-
150
  jQuery(".album-cover").css('display','none');
151
  jQuery("#main_div<?php echo $unique_id;?>").css('display','none');
152
  jQuery("#back_button<?php echo $unique_id;?>").css('display','none');
21
  <button id="back_button<?php echo $unique_id;?>" style="margin-top:10px; display: none;" onclick="view_albums<?php echo $unique_id;?>();">
22
  <span style="color: #000;">&laquo <?php _e('Back to Albums', gallery_bank); ?></span>
23
  </button>
 
24
  <table style="width:100%;border:0px;" >
25
  <?php
26
  for($flag = 0; $flag < count($album); $flag++)
67
  $cover_border_radius = explode(":", $cover_settings[5]);
68
  $cover_border_color = explode(":", $cover_settings[6]);
69
  $cover_border_value = $cover_border_size[1] ." solid " . $cover_border_color[1];
70
+ $filter_cover_opacity = $cover_opacity[1]* 100;
 
 
 
71
  ?>
72
+ <style>
73
+ .dynamic_cover_css
74
+ {
75
+ border:<?php echo $cover_border_value;?>;
76
+ -moz-border-radius:<?php echo $cover_border_radius[1]; ?>;
77
+ -webkit-border-radius:<?php echo $cover_border_radius[1]; ?>;
78
+ -khtml-border-radius:<?php echo $cover_border_radius[1]; ?>;
79
+ -o-border-radius:<?php echo $cover_border_radius[1]; ?>;
80
+ border-radius:<?php echo $cover_border_radius[1];?>;
81
+ -moz-opacity:<?php echo $cover_opacity[1];?>;
82
+ -khtml-opacity:<?php echo $cover_opacity[1];?>;
83
+ -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=<?php echo $filter_cover_opacity; ?>)';
84
+ filter:alpha(opacity=<?php echo $filter_cover_opacity; ?>);
85
+ opacity:<?php echo $cover_opacity[1]; ?>;
86
+ cursor:pointer;
87
+ margin-left:5px;
88
+ margin-top:3px;
89
+ width:150px;
90
+ }
91
+ .cover_div_css
92
+ {
93
+ text-align: justify;
94
+ display:inline-block;
95
+ vertical-align:top;
96
+ margin-left:20px;
97
+ }
98
+ </style>
99
+ <tr id="tr_<?php echo $album[$flag]->album_id;?>">
100
+ <td style="border:0px;">
101
+ <?php
102
+ if(($get_settings->album_cover == "undefined") || ($get_settings->album_cover == "") )
103
+ {
104
+ $url = GALLERY_BK_PLUGIN_URL."/album-cover.png";
105
+ }
106
+ else
107
+ {
108
+ $url = $get_settings->album_cover;
109
+ }
110
+ ?>
111
  <div id="main_div<?php echo $unique_id;?>" style="display: block;" class="album-cover">
112
+ <a onclick="view_images<?php echo $unique_id;?>(<?php echo $album[$flag]->album_id;?>);" style="cursor: pointer" >
113
+ <img class="imgHolder dynamic_cover_css" src="<?php echo stripcslashes($url); ?>" />
114
+ </a>
115
+ <div class="cover_div_css">
 
 
 
 
 
 
 
116
  <h3><?php echo stripcslashes(htmlspecialchars_decode($album[$flag]->album_name)); ?>&nbsp;</h3>
117
  <span><?php echo stripcslashes(htmlspecialchars_decode($album[$flag]->description));?>&nbsp;</span><br/>
118
  <a style="cursor: pointer;" onclick="view_images<?php echo $unique_id;?>(<?php echo $album[$flag]->album_id;?>)">
119
  <?php _e("See Album images", gallery_bank ); ?> &raquo
120
  </a>
121
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  </div>
123
+ </td>
124
+ </tr>
 
 
 
 
125
  <?php
126
  }
127
  ?>
135
  var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>";
136
  function view_images<?php echo $unique_id;?>(album_id)
137
  {
 
138
  jQuery(".album-cover").css('display','none');
139
  jQuery("#main_div<?php echo $unique_id;?>").css('display','none');
140
  jQuery("#back_button<?php echo $unique_id;?>").css('display','none');
views/front_view.php CHANGED
@@ -70,6 +70,8 @@
70
  $image_border_size_value = explode(":", $image_settings[5]);
71
  $image_radius_value = explode(":", $image_settings[6]);
72
  $border_color = explode(":", $image_settings[7]);
 
 
73
 
74
  $lightbox_settings = explode(";", $content[2]);
75
  $overlay_opacity = explode(":", $lightbox_settings[0]);
@@ -84,198 +86,124 @@
84
  $lightbox_bg_color_value= $overlay_border_size_value[1] . " solid " . $overlay_border_color[1];
85
 
86
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  <h3><?php echo stripcslashes(htmlspecialchars_decode($album->album_name));?></h3>
88
  <div id="view_bank_album_<?php echo $unique_id;?>">
89
-
90
  <?php
91
  for ($flag = 0; $flag <count($pic_detail); $flag++)
92
  {
93
- $css_image_thumbnail = "border:" . $image_border_size_value[1]. " solid " . $border_color[1] . ";border-radius:" . $image_radius_value[1]. ";-moz-border-radius:" . $image_radius_value[1]. ";-webkit-border-radius:" . $image_radius_value[1]. ";-khtml-border-radius:" . $image_radius_value[1]. ";-o-border-radius:" . $image_radius_value[1].";opacity:".$image_opacity[1].";filter:alpha(opacity=".$image_opacity[1] * 100 . ");-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=".$image_opacity[1] * 100 . ")';-moz-opacity:" . $image_opacity[1] . ";-khtml-opacity:".$image_opacity[1]. ";";
94
- if($pic_detail[$flag]->description == "")
95
  {
96
- if(($flag % $images_in_row[1] == 0) && $flag != 0)
97
  {
98
- ?>
99
-
100
- <?php
101
- if($pic_detail[$flag]->check_url == 1)
102
- {
103
- if($image_content[1] == 1)
104
- {
105
- ?>
106
- <div class="imgContainerSingle">
107
- <a href="<?php echo $pic_detail[$flag]->url;?>" target="_blank">
108
- <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:146px;<?php echo $css_image_thumbnail; ?>" />
109
- </a>
110
- </div>
111
- <?php
112
- }
113
- }
114
- else
115
- {
116
  ?>
117
  <div class="imgContainerSingle">
118
- <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?>">
119
- <?php
120
- if($image_content[1] == 1)
121
- {
122
- if($pic_detail[$flag]->video == 1)
123
- {
124
- ?>
125
- <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin-left:5px;width:146px;<?php echo $css_image_thumbnail; ?>" />
126
- <?php
127
- }
128
- else
129
- {
130
- ?>
131
- <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:146px;<?php echo $css_image_thumbnail; ?>" />
132
- <?php
133
- }
134
- ?>
135
  </a>
136
  </div>
137
  <?php
138
- }
139
- }
140
  }
141
  else
142
  {
143
-
144
- if($pic_detail[$flag]->check_url == 1)
145
- {
146
- if($image_content[1] == 1)
147
- {
148
- ?>
149
- <div class="imgContainerSingle">
150
- <a href="<?php echo $pic_detail[$flag]->url;?>" target="_blank">
151
- <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:146px;<?php echo $css_image_thumbnail; ?>" />
152
- </a>
153
- </div>
154
- <?php
155
- }
156
- }
157
- else
158
  {
159
- ?>
160
- <div class="imgContainerSingle">
161
- <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo $pic_detail[$flag]->pic_path; ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?>">
162
- <?php
163
- if($image_content[1] == 1)
164
- {
165
- if($pic_detail[$flag]->video == 1)
166
- {
167
- ?>
168
- <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin-left:5px;width:146px;<?php echo $css_image_thumbnail; ?>" />
169
- <?php
170
- }
171
- else
172
- {
173
- ?>
174
- <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:146px;<?php echo $css_image_thumbnail; ?>" />
175
- <?php
176
- }
177
- ?>
178
- </a>
179
- </div>
180
  <?php
181
- }
182
- }
183
- }
184
- }
185
- else
186
- {
187
- if(($flag % $images_in_row[1] == 0) && $flag != 0)
188
- {
189
- ?>
190
-
191
- <?php
192
-
193
- if($pic_detail[$flag]->check_url == 1)
194
- {
195
- if($image_content[1] == 1)
196
- {
197
- ?>
198
- <div class="imgContainerSingle">
199
- <a href="<?php echo $pic_detail[$flag]->url;?>" target="_blank">
200
- <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:146px;<?php echo $css_image_thumbnail; ?>" />
201
- </a>
202
- </div>
203
- <?php
204
- }
205
  }
206
  else
207
  {
208
- if($pic_detail[$flag]->description == "")
 
 
 
 
 
209
  {
210
  ?>
211
- <div class="imgContainerSingle">
212
- <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?>">
213
  <?php
214
  }
215
  else
216
  {
217
  ?>
218
- <div class="imgContainerSingle">
219
- <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?> (<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->description)); ?>)">
220
  <?php
221
  }
222
- if($image_content[1] == 1)
223
- {
224
- ?>
225
- <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:146px;<?php echo $css_image_thumbnail; ?>" />
226
- </a>
 
 
 
 
 
 
 
 
 
 
 
227
  </div>
228
- <?php
229
- }
230
- }
231
  }
232
  else
233
  {
234
-
235
- if($pic_detail[$flag]->check_url == 1)
236
  {
237
- if($image_content[1] == 1)
238
- {
239
- ?>
240
- <div class="imgContainerSingle">
241
- <a href="<?php echo $pic_detail[$flag]->url;?>" target="_blank">
242
- <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:146px;<?php echo $css_image_thumbnail; ?>" />
243
- </a>
244
- </div>
245
- <?php
246
- }
247
  }
248
- else
249
  {
250
- if($pic_detail[$flag]->description == "")
 
 
 
 
 
251
  {
252
  ?>
253
- <div class="imgContainerSingle">
254
- <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?>">
255
  <?php
256
  }
257
  else
258
  {
259
  ?>
260
- <div class="imgContainerSingle">
261
- <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?> (<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->description)); ?>)">
262
- <?php
263
- }
264
- if($image_content[1] == 1)
265
- {
266
- ?>
267
- <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:146px;<?php echo $css_image_thumbnail; ?>" />
268
- </a>
269
- </div>
270
  <?php
271
  }
272
- }
 
 
 
 
273
  }
274
  }
275
  }
276
  ?>
277
  </div>
278
-
279
  <script type="text/javascript">
280
  jQuery(document).ready(function() {
281
  jQuery('.titan-lb_<?php echo $unique_id;?>').lightbox({
@@ -296,19 +224,18 @@
296
  });
297
  });
298
  var $container_<?php echo $unique_id;?> = jQuery('#view_bank_album_<?php echo $unique_id;?>');
299
- $container_<?php echo $unique_id;?>.imagesLoaded( function(){
300
- $container_<?php echo $unique_id;?>.masonry({
301
-
302
- itemSelector : '.imgContainerSingle',
303
- isAnimated: true,
304
- animationOptions: {
305
- duration: 750,
306
- easing: 'linear',
307
- queue: false
308
- }
309
- });
310
- });
311
 
 
 
 
 
 
 
 
 
 
312
  </script>
313
  <?php
314
  }
70
  $image_border_size_value = explode(":", $image_settings[5]);
71
  $image_radius_value = explode(":", $image_settings[6]);
72
  $border_color = explode(":", $image_settings[7]);
73
+ $img_border_value = $image_border_size_value[1]. " solid " . $border_color[1];
74
+ $filter_opacity = $image_opacity[1] * 100;
75
 
76
  $lightbox_settings = explode(";", $content[2]);
77
  $overlay_opacity = explode(":", $lightbox_settings[0]);
86
  $lightbox_bg_color_value= $overlay_border_size_value[1] . " solid " . $overlay_border_color[1];
87
 
88
  ?>
89
+ <style>
90
+ .dynamic_css
91
+ {
92
+ border:<?php echo $img_border_value; ?>;
93
+ border-radius:<?php echo $image_radius_value[1]; ?>;
94
+ -moz-border-radius:<?php echo $image_radius_value[1]; ?>;
95
+ -webkit-border-radius:<?php echo $image_radius_value[1];?>;
96
+ -khtml-border-radius:<?php echo $image_radius_value[1];?>;
97
+ -o-border-radius:<?php echo $image_radius_value[1];?>;
98
+ opacity:<?php echo $image_opacity[1];?>;
99
+ filter:alpha(opacity=<?php echo $filter_opacity;?>);
100
+ -ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=<?php echo $filter_opacity;?>)';
101
+ -moz-opacity:<?php echo $image_opacity[1]; ?>;
102
+ -khtml-opacity:<?php echo $image_opacity[1]; ?>;
103
+ }
104
+ </style>
105
  <h3><?php echo stripcslashes(htmlspecialchars_decode($album->album_name));?></h3>
106
  <div id="view_bank_album_<?php echo $unique_id;?>">
 
107
  <?php
108
  for ($flag = 0; $flag <count($pic_detail); $flag++)
109
  {
110
+ if(($flag % $images_in_row[1] == 0) && $flag != 0)
 
111
  {
112
+ if($pic_detail[$flag]->check_url == 1)
113
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  ?>
115
  <div class="imgContainerSingle">
116
+ <a href="<?php echo $pic_detail[$flag]->url;?>" target="_blank">
117
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" class="dynamic_css" style="margin-left:5px;width:146px !important;" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  </a>
119
  </div>
120
  <?php
 
 
121
  }
122
  else
123
  {
124
+ if($pic_detail[$flag]->description == "")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  {
126
+ ?>
127
+ <div class="imgContainerSingle">
128
+ <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?>">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  }
131
  else
132
  {
133
+ ?>
134
+ <div class="imgContainerSingle">
135
+ <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?> (<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->description)); ?>)">
136
+ <?php
137
+ }
138
+ if($pic_detail[$flag]->video == 1)
139
  {
140
  ?>
141
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" class="dynamic_css" style="margin-left:5px;width:146px !important;" />
 
142
  <?php
143
  }
144
  else
145
  {
146
  ?>
147
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" class="dynamic_css" style="margin-left:5px;width:146px !important;" />
 
148
  <?php
149
  }
150
+ ?>
151
+ </a>
152
+ </div>
153
+ <?php
154
+ }
155
+ }
156
+ else
157
+ {
158
+
159
+ if($pic_detail[$flag]->check_url == 1)
160
+ {
161
+ ?>
162
+ <div class="imgContainerSingle">
163
+ <a href="<?php echo $pic_detail[$flag]->url;?>" target="_blank">
164
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" class="dynamic_css" style="margin-left:5px;width:146px !important;" />
165
+ </a>
166
  </div>
167
+ <?php
 
 
168
  }
169
  else
170
  {
171
+ if($pic_detail[$flag]->description == "")
 
172
  {
173
+ ?>
174
+ <div class="imgContainerSingle">
175
+ <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?>">
176
+ <?php
 
 
 
 
 
 
177
  }
178
+ else
179
  {
180
+ ?>
181
+ <div class="imgContainerSingle">
182
+ <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?> (<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->description)); ?>)">
183
+ <?php
184
+ }
185
+ if($pic_detail[$flag]->video == 1)
186
  {
187
  ?>
188
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" class="dynamic_css" style="margin-left:5px;width:146px !important;" />
 
189
  <?php
190
  }
191
  else
192
  {
193
  ?>
194
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" class="dynamic_css" style="margin-left:5px;width:146px !important;" />
 
 
 
 
 
 
 
 
 
195
  <?php
196
  }
197
+ ?>
198
+
199
+ </a>
200
+ </div>
201
+ <?php
202
  }
203
  }
204
  }
205
  ?>
206
  </div>
 
207
  <script type="text/javascript">
208
  jQuery(document).ready(function() {
209
  jQuery('.titan-lb_<?php echo $unique_id;?>').lightbox({
224
  });
225
  });
226
  var $container_<?php echo $unique_id;?> = jQuery('#view_bank_album_<?php echo $unique_id;?>');
227
+ $container_<?php echo $unique_id;?>.imagesLoaded( function(){
228
+ $container_<?php echo $unique_id;?>.masonry({
 
 
 
 
 
 
 
 
 
 
229
 
230
+ itemSelector : '.imgContainerSingle',
231
+ isAnimated: true,
232
+ animationOptions: {
233
+ duration: 750,
234
+ easing: 'linear',
235
+ queue: false
236
+ }
237
+ });
238
+ });
239
  </script>
240
  <?php
241
  }