Gallery Bank: WordPress Photo Gallery Plugin - Version 3.0.102

Version Description

  • Minor Vulnerability Bug fixed related to shortcode as pointed by Goblin Research.
Download this release

Release Info

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

Code changes from version 3.0.101 to 3.0.102

front_views/gallery-bank-shortcode.php CHANGED
@@ -8,218 +8,213 @@
8
  </div>
9
  <div class="layout-span12" style="padding:15px 15px 0 0;">
10
  <div class="layout-control-group">
11
- <label class="custom-layout-label" for="ux_gallery"><?php _e("Gallery Type", gallery_bank); ?> : </label>
12
- <input type="radio" name="ux_gallery" value="1" onclick="check_gallery_type();"/>
13
- <label><?php _e("Albums with Images", gallery_bank); ?></label>
14
- <input type="radio" style="margin-left: 10px;" checked="checked" name="ux_gallery" value="0"
15
- onclick="check_gallery_type();"/> <label><?php _e("Only Images", gallery_bank); ?> </label>
16
  </div>
17
  <div class="layout-control-group" id="album_format" style="display: none;">
18
- <label class="custom-layout-label" for="ux_album_format"><?php _e("Album Format", gallery_bank); ?> : </label>
19
- <select id="ux_album_format" class="layout-span9" onclick="check_gallery_type();" onchange="select_album();">
20
- <option value=""> <?php _e("Select Album Format", gallery_bank); ?> </option>
21
- <option value="grid">Grid Albums</option>
22
- <option value="list">List Albums</option>
23
- <option value="individual">Individual Album</option>
24
- </select>
25
  </div>
26
  <div class="layout-control-group" id="ux_show_multiple_albums" style="display: none;">
27
- <label class="custom-layout-label"><?php _e("Choose Type", gallery_bank); ?> : </label>
28
- <select id="ddl_show_albums" class="layout-span9" onchange="show_gallery_albums();" onchange="select_album();">
29
- <option value="all">All Albums</option>
30
- <option value="selected">Only Selected Albums</option>
31
- </select>
32
  </div>
33
  <div class="layout-control-group" id="ux_select_multiple_albums" style="display: none;">
34
- <label class="custom-layout-label"><?php _e("Choose Albums", gallery_bank); ?> : </label>
35
- <select id="ddl_add_multi_album" class="layout-span9" multiple="multiple">
36
- <?php
37
- global $wpdb;
38
- $albums = $wpdb->get_results
39
- (
40
- "SELECT * FROM ".gallery_bank_albums()." order by album_order asc "
41
- );
42
- for ($flag = 0; $flag < count($albums); $flag++) {
43
- ?>
44
- <option value="<?php echo intval($albums[$flag]->album_id); ?>"><?php echo esc_html($albums[$flag]->album_name) ?></option>
45
- <?php
46
- }
47
- ?>
48
- </select>
49
  </div>
50
  <div class="layout-control-group" id="ux_select_album" style="display: block;">
51
- <label class="custom-layout-label"><?php _e("Select Album", gallery_bank); ?> : </label>
52
- <select id="ux_ddl_select_album" class="layout-span9">
53
- <option value=""> <?php _e("Select an Album", gallery_bank); ?> </option>
54
- <?php
55
- global $wpdb,$current_user;
56
-
57
- $gb_role = $wpdb->prefix . "capabilities";
58
- $current_user->role = array_keys($current_user->$gb_role);
59
- $gb_role = $current_user->role[0];
60
- if($gb_role == "administrator")
61
- {
62
- $albums = $wpdb->get_results
63
- (
64
- "SELECT * FROM ".gallery_bank_albums()." order by album_order asc "
65
- );
66
- }
67
- else
68
- {
69
- $albums = $wpdb->get_results
70
- (
71
- $wpdb->prepare
72
- (
73
- "SELECT * FROM ".gallery_bank_albums()." where author = %s order by album_order asc ",
74
- $current_user->display_name
75
- )
76
- );
77
- }
78
- for ($flag = 0; $flag < count($albums); $flag++) {
79
- ?>
80
- <option value="<?php echo intval($albums[$flag]->album_id); ?>"><?php echo esc_html($albums[$flag]->album_name) ?></option>
81
- <?php
82
- }
83
- ?>
84
- </select>
85
  </div>
86
  <div class="layout-control-group">
87
- <label class="custom-layout-label"><?php _e("Gallery Format", gallery_bank); ?> : </label>
88
- <select id="ux_gallery_format" class="layout-span9" onchange="select_images_in_row();">
89
- <option value=""> <?php _e("Select Gallery Format ", gallery_bank); ?> </option>
90
- <option value="masonry">Masonry Gallery</option>
91
- <option value="filmstrip" disabled="disabled" style="color: #FF0000;">Filmstrip Gallery (Available only in Premium Versions)</option>
92
- <option value="blog" disabled="disabled" style="color: #FF0000;">Blog Style Gallery (Available only in Premium Versions)</option>
93
- <option id="slide_show" disabled="disabled" value="slideshow" style="color: #FF0000;">Slideshow Gallery (Available only in Premium Versions)</option>
94
- <option value="thumbnail">Thumbnail Gallery</option>
95
- </select>
96
  </div>
97
  <div class="layout-control-group" id="div_img_in_row" style="display: none;">
98
- <label class="custom-layout-label"><?php _e("Images in Row", gallery_bank); ?> : </label>
99
- <input type="text" class="layout-span9" name="ux_img_in_row" id="ux_img_in_row"
100
- onkeyup="set_text_value(\"img_in_row\");" onkeypress="return OnlyNumbers(event);" value="3"/>
101
  </div>
102
  <div class="layout-control-group" id="div_img_width" style="display: none;">
103
- <label class="custom-layout-label"><?php _e("Image Width", gallery_bank); ?> : </label>
104
- <input readonly="readonly" type="text" class="layout-span9" name="ux_img_width" id="ux_img_width" onkeypress="return OnlyNumbers(event);"
105
- value="600"/>
106
- <label class="custom-layout-label"></label>
107
- <i class="widget_premium_feature">(Available only in Premium Versions)</i>
108
  </div>
109
  <div class="layout-control-group" id="div_albums_in_row" style="display: none;">
110
- <label class="custom-layout-label"><?php _e("Albums in Row", gallery_bank); ?> : </label>
111
- <input type="text" class="layout-span9" name="ux_album_in_row" id="ux_album_in_row"
112
- onkeyup="set_text_value(\"album_in_row\");" onkeypress="return OnlyNumbers(event);" value="3"/>
113
  </div>
114
  <div class="layout-control-group" id="gb_gallery_format">
115
- <label class="custom-layout-label"><?php _e("Text Format", gallery_bank); ?> : </label>
116
- <select id="ux_text_format" class="layout-span9" onchange="show_special_effect();">
117
- <option value=""><?php _e("Select Format ", gallery_bank); ?></option>
118
- <option value="title_only">With Title only</option>
119
- <option value="title_desc">With Title and Description</option>
120
- <option value="no_text">Without Title and Description</option>
121
- </select>
122
  </div>
123
  <div class="layout-control-group" id="div_special_effects" >
124
- <label class="custom-layout-label"><?php _e("Special Effects", gallery_bank); ?> : </label>
125
- <select id="ux_special_effects" class="layout-span9" onchange="effects_settings();" disabled= "disabled">
126
- <option value="blur">Blur</option>
127
- <option id="option_cornor_ribbons" value="corner_ribbons">Corner Ribbons</option>
128
- <option value="grayscale">Grayscale</option>
129
- <option id="option_hover_rotation" value="hover_rotation">Hover Rotation</option>
130
- <option id="option_levitation_shadow" value="levitation_shadow">Levitation Shadow</option>
131
- <option id="option_lomo_effect" value="lomo_effect">Lomo Effect</option>
132
- <option id="option_overlay_fade" value="overlay_fade" selected="selected">Overlay Fade</option>
133
- <option id="option_overlay_join" value="overlay_join">Overlay Join</option>
134
- <option id="option_overlay_slide" value="overlay_slide">Overlay Slide</option>
135
- <option id="option_overlay_split" value="overlay_split">Overlay Split</option>
136
- <option id="option_perspective_images" value="perspective_images">Perspective Images</option>
137
- <option id="option_pulse" value="pulse">Pulse</option>
138
- <option id="option_rounded_images" value="rounded_images">Rounded Images</option>
139
- <option value="sepia">Sepia</option>
140
- <option value="none">None</option>
141
- </select>
142
- <label class="custom-layout-label"></label>
143
- <i class="widget_premium_feature">(Available only in Premium Versions)</i>
144
  </div>
145
  <div class="layout-control-group" id="div_animation_effects">
146
- <label class="custom-layout-label"><?php _e("Animation Effects", gallery_bank); ?> : </label>
147
- <select id="ux_animation_effects" class="layout-span9" disabled= "disabled">
148
- <optgroup label="Attention Seekers">
149
- <option value="bounce">Bounce</option>
150
- <option value="flash">Flash</option>
151
- <option value="pulse">Pulse</option>
152
- <option value="shake">Shake</option>
153
- <option value="swing">Swing</option>
154
- <option value="tada">Tada</option>
155
- <option value="wobble">Wobble</option>
156
- <option value="lightSpeedIn">Light Speed-In</option>
157
- <option value="rollIn">Roll-In</option>
158
- </optgroup>
159
- <optgroup label="Bouncing Entrances">
160
- <option value="bounceIn">Bounce-In</option>
161
- <option value="bounceInDown">Bounce-In Down</option>
162
- <option value="bounceInLeft">Bounce-In Left</option>
163
- <option value="bounceInRight">Bounce-In Right</option>
164
- <option value="bounceInUp">Bounce-In Up</option>
165
- </optgroup>
166
- <optgroup label="Fading Entrances">
167
- <option value="fadeIn">Fade-In</option>
168
- <option value="fadeInDown">Fade-In Down</option>
169
- <option value="fadeInDownBig">Fade-In Down (Big)</option>
170
- <option value="fadeInLeft">Fade-In Left</option>
171
- <option value="fadeInLeftBig">Fade-In Left (Big)</option>
172
- <option value="fadeInRight">Fade-In Right</option>
173
- <option value="fadeInRightBig">Fade-In Right (Big)</option>
174
- <option value="fadeInUp">Fade-In Up</option>
175
- <option value="fadeInUpBig">Fade-In Up (Big)</option>
176
- </optgroup>
177
- <optgroup label="Flippers">
178
- <option value="flip">Flip</option>
179
- <option value="flipInX">Flip-In X</option>
180
- <option value="flipInY">Flip-In Y</option>
181
- </optgroup>
182
- <optgroup label="Rotating Entrances">
183
- <option value="rotateIn">Rotate-In</option>
184
- <option value="rotateInDownLeft">Rotate-In Down Left</option>
185
- <option value="rotateInDownRight">Rotate-In Down Right</option>
186
- <option value="rotateInUpLeft">Rotate-In Up Left</option>
187
- <option value="rotateInUpRight">Rotate-In Up Right</option>
188
- </optgroup>
189
- <optgroup label="Sliders">
190
- <option value="slideInDown">Slide-In Down</option>
191
- <option value="slideInLeft">Slide-In Left</option>
192
- <option value="slideInRight">Slide-In Right</option>
193
- </optgroup>
194
- </select>
195
- <label class="custom-layout-label"></label>
196
- <i class="widget_premium_feature">(Available only in Premium Versions)</i>
197
  </div>
198
  <div class="layout-control-group">
199
- <label class="custom-layout-label"><?php _e("Show Responsive Gallery", gallery_bank); ?> : </label>
200
- <input type="checkbox" checked="checked" onclick="show_images_in_row();" name="ux_responsive_gallery" id="ux_responsive_gallery"/>
201
  </div>
202
  <div class="layout-control-group">
203
- <label class="custom-layout-label"><?php _e("Show Album Title", gallery_bank); ?> : </label>
204
- <input type="checkbox" checked="checked" name="ux_album_title" id="ux_album_title"/>
205
  </div>
206
  <div class="layout-control-group">
207
- <label class="custom-layout-label"></label>
208
- <input type="button" class="button-primary" value="<?php _e("Insert Album", gallery_bank); ?>"
209
- onclick="InsertGallery();"/>&nbsp;&nbsp;&nbsp;
210
- <a class="button" style="color:#bbb;" href="#"
211
- onclick="tb_remove(); return false;"><?php _e("Cancel", gallery_bank); ?></a>
212
  </div>
213
  </div>
214
  </div>
215
  </div>
216
  <script type="text/javascript">
217
  jQuery(document).ready(function () {
218
- check_gallery_type();
219
- select_images_in_row();
220
- effects_settings();
221
- show_special_effect();
222
- show_images_in_row();
223
  });
224
  function show_images_in_row()
225
  {
@@ -235,225 +230,225 @@ function show_images_in_row()
235
  }
236
  }
237
  function select_images_in_row() {
238
- var gallery_format = jQuery("#ux_gallery_format").val();
239
- switch(gallery_format)
240
- {
241
- case "thumbnail":
242
- jQuery("#div_img_in_row").css("display", "block");
243
- jQuery("#gb_gallery_format").css("display", "block");
244
- jQuery("#div_img_width").css("display", "none");
245
- jQuery("#div_special_effects").css("display", "block");
246
- jQuery("#div_animation_effects").css("display", "block");
247
- jQuery("#option_cornor_ribbons").css("display", "block");
248
- jQuery("#option_hover_rotation").css("display", "block");
249
- jQuery("#option_levitation_shadow").css("display", "block");
250
- jQuery("#option_lomo_effect").css("display", "block");
251
- jQuery("#option_overlay_fade").css("display", "block");
252
- jQuery("#option_overlay_join").css("display", "block");
253
- jQuery("#option_overlay_slide").css("display", "block");
254
- jQuery("#option_overlay_split").css("display", "block");
255
- jQuery("#option_perspective_images").css("display", "block");
256
- jQuery("#option_rounded_images").css("display", "block");
257
- jQuery("#option_pulse").css("display", "block");
258
- break;
259
- case "filmstrip":
260
- jQuery("#div_img_in_row").css("display", "block");
261
- jQuery("#gb_gallery_format").css("display", "block");
262
- jQuery("#div_img_width").css("display", "block");
263
- jQuery("#div_special_effects").css("display", "none");
264
- jQuery("#div_animation_effects").css("display", "block");
265
- break;
266
- case "masonry":
267
- jQuery("#div_img_in_row").css("display", "block");
268
- jQuery("#gb_gallery_format").css("display", "block");
269
- jQuery("#div_img_width").css("display", "none");
270
- jQuery("#div_special_effects").css("display", "block");
271
- jQuery("#div_animation_effects").css("display", "block");
272
- jQuery("#ux_special_effects").val("grayscale");
273
- jQuery("#option_cornor_ribbons").css("display", "none");
274
- jQuery("#option_hover_rotation").css("display", "none");
275
- jQuery("#option_levitation_shadow").css("display", "none");
276
- jQuery("#option_lomo_effect").css("display", "none");
277
- jQuery("#option_overlay_fade").css("display", "none");
278
- jQuery("#option_overlay_join").css("display", "none");
279
- jQuery("#option_overlay_slide").css("display", "none");
280
- jQuery("#option_overlay_split").css("display", "none");
281
- jQuery("#option_perspective_images").css("display", "none");
282
- jQuery("#option_rounded_images").css("display", "none");
283
- jQuery("#option_pulse").css("display", "none");
284
- break;
285
- case "slideshow":
286
- jQuery("#gb_gallery_format").css("display", "block");
287
- jQuery("#div_img_in_row").css("display", "none");
288
- jQuery("#div_img_width").css("display", "none");
289
- jQuery("#div_special_effects").css("display", "none");
290
- jQuery("#div_animation_effects").css("display", "none");
291
- break;
292
- case "blog":
293
- jQuery("#gb_gallery_format").css("display", "block");
294
- jQuery("#div_img_in_row").css("display", "none");
295
- jQuery("#div_img_width").css("display", "none");
296
- jQuery("#div_special_effects").css("display", "block");
297
- jQuery("#div_animation_effects").css("display", "block");
298
- jQuery("#ux_special_effects").val("grayscale");
299
- jQuery("#option_cornor_ribbons").css("display", "none");
300
- jQuery("#option_hover_rotation").css("display", "none");
301
- jQuery("#option_levitation_shadow").css("display", "none");
302
- jQuery("#option_lomo_effect").css("display", "none");
303
- jQuery("#option_overlay_fade").css("display", "none");
304
- jQuery("#option_overlay_join").css("display", "none");
305
- jQuery("#option_overlay_slide").css("display", "none");
306
- jQuery("#option_overlay_split").css("display", "none");
307
- jQuery("#option_perspective_images").css("display", "none");
308
- jQuery("#option_rounded_images").css("display", "none");
309
- jQuery("#option_pulse").css("display", "none");
310
- break;
311
- default:
312
- jQuery("#gb_gallery_format").css("display", "block");
313
- jQuery("#div_img_in_row").css("display", "none");
314
- jQuery("#div_img_width").css("display", "none");
315
- jQuery("#div_special_effects").css("display", "block");
316
- jQuery("#div_animation_effects").css("display", "block");
317
- jQuery("#option_cornor_ribbons").css("display", "block");
318
- jQuery("#option_hover_rotation").css("display", "block");
319
- jQuery("#option_levitation_shadow").css("display", "block");
320
- jQuery("#option_lomo_effect").css("display", "block");
321
- jQuery("#option_overlay_fade").css("display", "block");
322
- jQuery("#option_overlay_join").css("display", "block");
323
- jQuery("#option_overlay_slide").css("display", "block");
324
- jQuery("#option_overlay_split").css("display", "block");
325
- jQuery("#option_perspective_images").css("display", "block");
326
- jQuery("#option_rounded_images").css("display", "block");
327
- jQuery("#option_pulse").css("display", "block");
328
- break;
329
- }
330
- show_images_in_row();
331
  }
332
  function effects_settings() {
333
- var special_effects = jQuery("#ux_special_effects").val();
334
- switch (special_effects) {
335
- case "hover_rotation":
336
- jQuery("#rotation_setting").css("display", "block");
337
- jQuery("#overlay_color").css("display", "none");
338
- jQuery("#overlay_color_with_direction").css("display", "none");
339
- jQuery("#ribbon_color_with_direction").css("display", "none");
340
- jQuery("#levitation_shadow_div").css("display", "none");
341
- jQuery("#lomo_effect_div").css("display", "none");
342
- jQuery("#rounded_images_div").css("display", "none");
343
- break;
344
- case "overlay_fade":
345
- jQuery("#rotation_setting").css("display", "none");
346
- jQuery("#overlay_color").css("display", "block");
347
- jQuery("#overlay_color_with_direction").css("display", "none");
348
- jQuery("#ribbon_color_with_direction").css("display", "none");
349
- jQuery("#levitation_shadow_div").css("display", "none");
350
- jQuery("#lomo_effect_div").css("display", "none");
351
- jQuery("#rounded_images_div").css("display", "none");
352
- break;
353
- case "overlay_slide":
354
- jQuery("#rotation_setting").css("display", "none");
355
- jQuery("#overlay_color").css("display", "block");
356
- jQuery("#overlay_color_with_direction").css("display", "none");
357
- jQuery("#ribbon_color_with_direction").css("display", "none");
358
- jQuery("#levitation_shadow_div").css("display", "none");
359
- jQuery("#lomo_effect_div").css("display", "none");
360
- jQuery("#rounded_images_div").css("display", "none");
361
- break;
362
- case "overlay_split":
363
- jQuery("#rotation_setting").css("display", "none");
364
- jQuery("#overlay_color").css("display", "none");
365
- jQuery("#overlay_color_with_direction").css("display", "block");
366
- jQuery("#ribbon_color_with_direction").css("display", "none");
367
- jQuery("#levitation_shadow_div").css("display", "none");
368
- jQuery("#lomo_effect_div").css("display", "none");
369
- jQuery("#rounded_images_div").css("display", "none");
370
- break;
371
- case "overlay_join":
372
- jQuery("#rotation_setting").css("display", "none");
373
- jQuery("#overlay_color").css("display", "none");
374
- jQuery("#overlay_color_with_direction").css("display", "block");
375
- jQuery("#ribbon_color_with_direction").css("display", "none");
376
- jQuery("#levitation_shadow_div").css("display", "none");
377
- jQuery("#lomo_effect_div").css("display", "none");
378
- jQuery("#rounded_images_div").css("display", "none");
379
- break;
380
- case "corner_ribbons":
381
- jQuery("#rotation_setting").css("display", "none");
382
- jQuery("#overlay_color").css("display", "none");
383
- jQuery("#overlay_color_with_direction").css("display", "none");
384
- jQuery("#ribbon_color_with_direction").css("display", "block");
385
- jQuery("#levitation_shadow_div").css("display", "none");
386
- jQuery("#lomo_effect_div").css("display", "none");
387
- jQuery("#rounded_images_div").css("display", "none");
388
- break;
389
- case "levitation_shadow":
390
- jQuery("#rotation_setting").css("display", "none");
391
- jQuery("#overlay_color").css("display", "none");
392
- jQuery("#overlay_color_with_direction").css("display", "none");
393
- jQuery("#ribbon_color_with_direction").css("display", "none");
394
- jQuery("#levitation_shadow_div").css("display", "block");
395
- jQuery("#lomo_effect_div").css("display", "none");
396
- jQuery("#rounded_images_div").css("display", "none");
397
- break;
398
- case "lomo_effect":
399
- jQuery("#rotation_setting").css("display", "none");
400
- jQuery("#overlay_color").css("display", "none");
401
- jQuery("#overlay_color_with_direction").css("display", "none");
402
- jQuery("#ribbon_color_with_direction").css("display", "none");
403
- jQuery("#levitation_shadow_div").css("display", "none");
404
- jQuery("#lomo_effect_div").css("display", "block");
405
- jQuery("#rounded_images_div").css("display", "none");
406
- break;
407
- case "rounded_images":
408
- jQuery("#rotation_setting").css("display", "none");
409
- jQuery("#overlay_color").css("display", "none");
410
- jQuery("#overlay_color_with_direction").css("display", "none");
411
- jQuery("#ribbon_color_with_direction").css("display", "none");
412
- jQuery("#levitation_shadow_div").css("display", "none");
413
- jQuery("#lomo_effect_div").css("display", "none");
414
- jQuery("#rounded_images_div").css("display", "block");
415
- break;
416
- case "perspective_images":
417
- jQuery("#rotation_setting").css("display", "block");
418
- jQuery("#overlay_color").css("display", "none");
419
- jQuery("#overlay_color_with_direction").css("display", "none");
420
- jQuery("#ribbon_color_with_direction").css("display", "none");
421
- jQuery("#levitation_shadow_div").css("display", "none");
422
- jQuery("#lomo_effect_div").css("display", "none");
423
- jQuery("#rounded_images_div").css("display", "none");
424
- break;
425
- default:
426
- jQuery("#rotation_setting").css("display", "none");
427
- jQuery("#overlay_color").css("display", "none");
428
- jQuery("#overlay_color_with_direction").css("display", "none");
429
- jQuery("#ribbon_color_with_direction").css("display", "none");
430
- jQuery("#levitation_shadow_div").css("display", "none");
431
- jQuery("#lomo_effect_div").css("display", "none");
432
- jQuery("#rounded_images_div").css("display", "none");
433
- break;
434
- }
435
  }
436
  function show_special_effect() {
437
- var text_format = jQuery("#ux_text_format").val();
438
- var gallery_format = jQuery("#ux_gallery_format").val();
439
- if (text_format == "no_text" && (gallery_format != "slideshow" && gallery_format != "filmstrip" )) {
440
- jQuery("#div_special_effects").css("display", "block");
441
- effects_settings();
442
- }
443
- else if(gallery_format == "blog")
444
- {
445
- jQuery("#div_special_effects").css("display", "block");
446
- }
447
- else {
448
- jQuery("#div_special_effects").css("display", "none");
449
- jQuery("#rotation_setting").css("display", "none");
450
- jQuery("#overlay_color").css("display", "none");
451
- jQuery("#overlay_color_with_direction").css("display", "none");
452
- jQuery("#ribbon_color_with_direction").css("display", "none");
453
- jQuery("#levitation_shadow_div").css("display", "none");
454
- jQuery("#lomo_effect_div").css("display", "none");
455
- jQuery("#rounded_images_div").css("display", "none");
456
- }
457
  }
458
  function show_gallery_albums()
459
  {
@@ -468,103 +463,103 @@ function show_gallery_albums()
468
  }
469
  }
470
  function check_gallery_type() {
471
- var gallery_type = jQuery("input:radio[name=ux_gallery]:checked").val();
472
- var album_format = jQuery("#ux_album_format").val();
473
- if (gallery_type == 0) {
474
- jQuery("#album_format").css("display", "none");
475
- jQuery("#div_albums_in_row").css("display", "none");
476
- jQuery("#ux_select_album").css("display", "block");
477
- jQuery("#slide_show").css("display", "none");
478
- jQuery("#ux_show_multiple_albums").css("display", "none");
479
- jQuery("#ux_select_multiple_albums").css("display", "none");
480
- }
481
- else {
482
- jQuery("#album_format").css("display", "block");
483
- if (album_format != "individual") {
484
- jQuery("#ux_select_album").css("display", "none");
485
- if (album_format == "grid") {
486
- jQuery("#div_albums_in_row").css("display", "block");
487
- jQuery("#slide_show").css("display", "block");
488
- jQuery("#ux_show_multiple_albums").css("display", "block");
489
- }
490
- else {
491
- jQuery("#div_albums_in_row").css("display", "none");
492
- jQuery("#slide_show").css("display", "block");
493
- jQuery("#ux_show_multiple_albums").css("display", "block");
494
- }
495
- show_gallery_albums();
496
- }
497
- else {
498
- jQuery("#div_albums_in_row").css("display", "none");
499
- jQuery("#slide_show").css("display", "block");
500
- jQuery("#ux_show_multiple_albums").css("display", "none");
501
- jQuery("#ux_select_multiple_albums").css("display", "none");
502
- }
503
- }
504
  }
505
  function select_album() {
506
- var album_format = jQuery("#ux_album_format").val();
507
- if (album_format == "individual") {
508
- jQuery("#ux_select_album").css("display", "block");
509
- }
510
- else {
511
- jQuery("#ux_select_album").css("display", "none");
512
- }
513
  }
514
  function InsertGallery() {
515
- var gallery_effect;
516
- var album_id = jQuery("#ux_ddl_select_album").val();
517
- var album_format = jQuery("#ux_album_format").val();
518
- var gallery_format = jQuery("#ux_gallery_format").val();
519
- var text_format = jQuery("#ux_text_format").val();
520
- var images_in_row = jQuery("#ux_img_in_row").val();
521
- var album_in_row = jQuery("#ux_album_in_row").val();
522
- var filmstrip_width = jQuery("#ux_img_width").val();
523
- var gallery_type = jQuery("input:radio[name=ux_gallery]:checked").val();
524
- var album_type = jQuery("#ddl_show_albums").val();
525
- var selected_albums = jQuery("#ddl_add_multi_album").val();
526
 
527
- var special_effect = jQuery("#ux_special_effects").val();
528
- var rotation = jQuery("#ux_rotation").val();
529
- var overlay_color = jQuery("#ux_overlay_color").val();
530
- var overlay_color_with_dir = jQuery("#ux_overlay_color_with_dir").val();
531
- var overlay_dir = jQuery("#ux_overlay_dir").val();
532
- var ribbon_color = jQuery("#ux_ribbon_color").val();
533
- var ribbon_dir = jQuery("#ux_ribbon_dir").val();
534
- var shadow = jQuery("#ux_shadow").val();
535
- var lomo_color = jQuery("#ux_lomo_color").val();
536
- var lomo_dir = jQuery("#ux_lomo_dir").val();
537
- var rounded_images = jQuery("#ux_rounded_images").val();
538
- var animation_effects = jQuery("#ux_animation_effects").val();
539
- var displayAlbumTitle = jQuery("#ux_album_title").prop("checked");
540
- var responsiveGallery = jQuery("#ux_responsive_gallery").prop("checked");
541
- var responsive;
542
 
543
- if (album_id == "" && (album_format == "individual" || gallery_type == 0)) {
544
- alert("<?php _e("Please select an Album", gallery_bank) ?>");
545
- return;
546
- }
547
- else if (gallery_type == 1 && album_format == "") {
548
- alert("<?php _e("Please select an Album Format", gallery_bank) ?>");
549
- return;
550
- }
551
- else if(gallery_type == 1 && ((album_format == "grid" || album_format == "list") && selected_albums == ""))
552
- {
553
- alert("<?php _e("Please select Albums", gallery_bank) ?>");
554
- return;
555
- }
556
- else if (gallery_format == "") {
557
- alert("<?php _e("Please select a Gallery Images Format", gallery_bank) ?>");
558
- return;
559
- }
560
- else if (text_format == "" && gallery_format != "slideshow") {
561
- alert("<?php _e("Please select a Text Format for the Gallery", gallery_bank) ?>");
562
- return;
563
- }
564
- else if (gallery_format == "slideshow" || gallery_format == "filmstrip" || gallery_format == "blog") {
565
- alert("This Feature is only available in Paid Premium Version!");
566
- return;
567
- }
568
 
569
  if(responsiveGallery == true)
570
  {
@@ -580,85 +575,83 @@ function InsertGallery() {
580
  }
581
  else
582
  {
583
- var display_selected_albums = "show_albums=\""+ selected_albums+"\"";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
584
  }
585
- if (gallery_type == 1) {
586
- if (album_format == "individual") {
587
- if (gallery_format == "thumbnail" || gallery_format == "masonry") {
588
- if (text_format == "title_only") {
589
- window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" title=\"true\" desc=\"false\" "+responsive+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
590
- }
591
- else if (text_format == "title_desc") {
592
- window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" title=\"true\" desc=\"true\" "+responsive+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
593
- }
594
- else if (text_format == "no_text") {
595
- window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" title=\"false\" desc=\"false\" "+responsive+" special_effect=\"\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
596
- }
597
- }
598
- }
599
- else if (album_format == "grid") {
600
- if (gallery_format == "thumbnail" || gallery_format == "masonry") {
601
- if (text_format == "title_only") {
602
- window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"true\" desc=\"false\" "+responsive+" albums_in_row=\"" + album_in_row + "\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
603
- }
604
- else if (text_format == "title_desc") {
605
- window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"true\" desc=\"true\" "+responsive+" albums_in_row=\"" + album_in_row + "\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
606
- }
607
- else if (text_format == "no_text") {
608
- window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"false\" desc=\"false\" "+responsive+" albums_in_row=\"" + album_in_row + "\" special_effect=\"\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
609
- }
610
- }
611
- }
612
- else {
613
- if (gallery_format == "thumbnail" || gallery_format == "masonry") {
614
- if (text_format == "title_only") {
615
- window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"true\" desc=\"false\" "+responsive+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
616
- }
617
- else if (text_format == "title_desc") {
618
- window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"true\" desc=\"true\" "+responsive+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
619
- }
620
- else if (text_format == "no_text") {
621
- window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"false\" desc=\"false\" "+responsive+" special_effect=\"\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
622
- }
623
- }
624
- }
625
- }
626
- else {
627
- if (gallery_format == "thumbnail" || gallery_format == "masonry") {
628
- if (text_format == "title_only") {
629
- window.send_to_editor("[gallery_bank type=\"images\" format=\"" + gallery_format + "\" title=\"true\" desc=\"false\" "+responsive+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
630
- }
631
- else if (text_format == "title_desc") {
632
- window.send_to_editor("[gallery_bank type=\"images\" format=\"" + gallery_format + "\" title=\"true\" desc=\"true\" "+responsive+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
633
- }
634
- else if (text_format == "no_text") {
635
- window.send_to_editor("[gallery_bank type=\"images\" format=\"" + gallery_format + "\" title=\"false\" desc=\"false\" "+responsive+" special_effect=\"\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
636
- }
637
- }
638
- }
639
  }
640
  /**
641
  * @return {boolean}
642
  */
643
  function OnlyNumbers(evt) {
644
- var charCode = (evt.which) ? evt.which : event.keyCode;
645
- return (charCode > 47 && charCode < 58) || charCode == 127 || charCode == 8;
646
  }
647
  function set_text_value(text_type) {
648
- var val = "";
649
- switch (text_type) {
650
- case "img_in_row":
651
- val = jQuery("#ux_img_in_row").val();
652
- if (val < 1)
653
- jQuery("#ux_img_in_row").val(1);
654
-
655
-
656
- break;
657
- case "album_in_row":
658
- val = jQuery("#ux_album_in_row").val();
659
- if (val < 1)
660
- jQuery("#ux_album_in_row").val(1);
661
- break;
662
- }
663
  }
664
  </script>
8
  </div>
9
  <div class="layout-span12" style="padding:15px 15px 0 0;">
10
  <div class="layout-control-group">
11
+ <label class="custom-layout-label" for="ux_gallery"><?php _e("Gallery Type", gallery_bank); ?> : </label>
12
+ <input type="radio" name="ux_gallery" value="1" onclick="check_gallery_type();"/>
13
+ <label><?php _e("Albums with Images", gallery_bank); ?></label>
14
+ <input type="radio" style="margin-left: 10px;" checked="checked" name="ux_gallery" value="0" onclick="check_gallery_type();"/> <label><?php _e("Only Images", gallery_bank); ?> </label>
 
15
  </div>
16
  <div class="layout-control-group" id="album_format" style="display: none;">
17
+ <label class="custom-layout-label" for="ux_album_format"><?php _e("Album Format", gallery_bank); ?> : </label>
18
+ <select id="ux_album_format" class="layout-span9" onclick="check_gallery_type();" onchange="select_album();">
19
+ <option value=""> <?php _e("Select Album Format", gallery_bank); ?> </option>
20
+ <option value="grid">Grid Albums</option>
21
+ <option value="list">List Albums</option>
22
+ <option value="individual">Individual Album</option>
23
+ </select>
24
  </div>
25
  <div class="layout-control-group" id="ux_show_multiple_albums" style="display: none;">
26
+ <label class="custom-layout-label"><?php _e("Choose Type", gallery_bank); ?> : </label>
27
+ <select id="ddl_show_albums" class="layout-span9" onchange="show_gallery_albums();" onchange="select_album();">
28
+ <option value="all">All Albums</option>
29
+ <option value="selected">Only Selected Albums</option>
30
+ </select>
31
  </div>
32
  <div class="layout-control-group" id="ux_select_multiple_albums" style="display: none;">
33
+ <label class="custom-layout-label"><?php _e("Choose Albums", gallery_bank); ?> : </label>
34
+ <select id="ddl_add_multi_album" class="layout-span9" multiple="multiple">
35
+ <?php
36
+ global $wpdb;
37
+ $albums = $wpdb->get_results
38
+ (
39
+ "SELECT * FROM ".gallery_bank_albums()." order by album_order asc "
40
+ );
41
+ for ($flag = 0; $flag < count($albums); $flag++) {
42
+ ?>
43
+ <option value="<?php echo intval($albums[$flag]->album_id); ?>"><?php echo esc_html($albums[$flag]->album_name) ?></option>
44
+ <?php
45
+ }
46
+ ?>
47
+ </select>
48
  </div>
49
  <div class="layout-control-group" id="ux_select_album" style="display: block;">
50
+ <label class="custom-layout-label"><?php _e("Select Album", gallery_bank); ?> : </label>
51
+ <select id="ux_ddl_select_album" class="layout-span9">
52
+ <option value=""> <?php _e("Select an Album", gallery_bank); ?> </option>
53
+ <?php
54
+ global $wpdb,$current_user;
55
+
56
+ $gb_role = $wpdb->prefix . "capabilities";
57
+ $current_user->role = array_keys($current_user->$gb_role);
58
+ $gb_role = $current_user->role[0];
59
+ if($gb_role == "administrator")
60
+ {
61
+ $albums = $wpdb->get_results
62
+ (
63
+ "SELECT * FROM ".gallery_bank_albums()." order by album_order asc "
64
+ );
65
+ }
66
+ else
67
+ {
68
+ $albums = $wpdb->get_results
69
+ (
70
+ $wpdb->prepare
71
+ (
72
+ "SELECT * FROM ".gallery_bank_albums()." where author = %s order by album_order asc ",
73
+ $current_user->display_name
74
+ )
75
+ );
76
+ }
77
+ for ($flag = 0; $flag < count($albums); $flag++) {
78
+ ?>
79
+ <option value="<?php echo intval($albums[$flag]->album_id); ?>"><?php echo esc_html($albums[$flag]->album_name) ?></option>
80
+ <?php
81
+ }
82
+ ?>
83
+ </select>
84
  </div>
85
  <div class="layout-control-group">
86
+ <label class="custom-layout-label"><?php _e("Gallery Format", gallery_bank); ?> : </label>
87
+ <select id="ux_gallery_format" class="layout-span9" onchange="select_images_in_row();">
88
+ <option value=""> <?php _e("Select Gallery Format ", gallery_bank); ?> </option>
89
+ <option value="masonry">Masonry Gallery</option>
90
+ <option value="filmstrip" disabled="disabled" style="color: #FF0000;">Filmstrip Gallery (Available only in Premium Versions)</option>
91
+ <option value="blog" disabled="disabled" style="color: #FF0000;">Blog Style Gallery (Available only in Premium Versions)</option>
92
+ <option id="slide_show" disabled="disabled" value="slideshow" style="color: #FF0000;">Slideshow Gallery (Available only in Premium Versions)</option>
93
+ <option value="thumbnail">Thumbnail Gallery</option>
94
+ </select>
95
  </div>
96
  <div class="layout-control-group" id="div_img_in_row" style="display: none;">
97
+ <label class="custom-layout-label"><?php _e("Images in Row", gallery_bank); ?> : </label>
98
+ <input type="text" class="layout-span9" name="ux_img_in_row" id="ux_img_in_row"
99
+ onkeyup="set_text_value(\"img_in_row\");" onkeypress="return OnlyNumbers(event);" value="3"/>
100
  </div>
101
  <div class="layout-control-group" id="div_img_width" style="display: none;">
102
+ <label class="custom-layout-label"><?php _e("Image Width", gallery_bank); ?> : </label>
103
+ <input readonly="readonly" type="text" class="layout-span9" name="ux_img_width" id="ux_img_width" onkeypress="return OnlyNumbers(event);" value="600"/>
104
+ <label class="custom-layout-label"></label>
105
+ <i class="widget_premium_feature">(Available only in Premium Versions)</i>
 
106
  </div>
107
  <div class="layout-control-group" id="div_albums_in_row" style="display: none;">
108
+ <label class="custom-layout-label"><?php _e("Albums in Row", gallery_bank); ?> : </label>
109
+ <input type="text" class="layout-span9" name="ux_album_in_row" id="ux_album_in_row" onkeyup="set_text_value(\"album_in_row\");" onkeypress="return OnlyNumbers(event);" value="3"/>
 
110
  </div>
111
  <div class="layout-control-group" id="gb_gallery_format">
112
+ <label class="custom-layout-label"><?php _e("Text Format", gallery_bank); ?> : </label>
113
+ <select id="ux_text_format" class="layout-span9" onchange="show_special_effect();">
114
+ <option value=""><?php _e("Select Format ", gallery_bank); ?></option>
115
+ <option value="title_only">With Title only</option>
116
+ <option value="title_desc">With Title and Description</option>
117
+ <option value="no_text">Without Title and Description</option>
118
+ </select>
119
  </div>
120
  <div class="layout-control-group" id="div_special_effects" >
121
+ <label class="custom-layout-label"><?php _e("Special Effects", gallery_bank); ?> : </label>
122
+ <select id="ux_special_effects" class="layout-span9" onchange="effects_settings();" disabled= "disabled">
123
+ <option value="blur">Blur</option>
124
+ <option id="option_cornor_ribbons" value="corner_ribbons">Corner Ribbons</option>
125
+ <option value="grayscale">Grayscale</option>
126
+ <option id="option_hover_rotation" value="hover_rotation">Hover Rotation</option>
127
+ <option id="option_levitation_shadow" value="levitation_shadow">Levitation Shadow</option>
128
+ <option id="option_lomo_effect" value="lomo_effect">Lomo Effect</option>
129
+ <option id="option_overlay_fade" value="overlay_fade" selected="selected">Overlay Fade</option>
130
+ <option id="option_overlay_join" value="overlay_join">Overlay Join</option>
131
+ <option id="option_overlay_slide" value="overlay_slide">Overlay Slide</option>
132
+ <option id="option_overlay_split" value="overlay_split">Overlay Split</option>
133
+ <option id="option_perspective_images" value="perspective_images">Perspective Images</option>
134
+ <option id="option_pulse" value="pulse">Pulse</option>
135
+ <option id="option_rounded_images" value="rounded_images">Rounded Images</option>
136
+ <option value="sepia">Sepia</option>
137
+ <option value="none">None</option>
138
+ </select>
139
+ <label class="custom-layout-label"></label>
140
+ <i class="widget_premium_feature">(Available only in Premium Versions)</i>
141
  </div>
142
  <div class="layout-control-group" id="div_animation_effects">
143
+ <label class="custom-layout-label"><?php _e("Animation Effects", gallery_bank); ?> : </label>
144
+ <select id="ux_animation_effects" class="layout-span9" disabled= "disabled">
145
+ <optgroup label="Attention Seekers">
146
+ <option value="bounce">Bounce</option>
147
+ <option value="flash">Flash</option>
148
+ <option value="pulse">Pulse</option>
149
+ <option value="shake">Shake</option>
150
+ <option value="swing">Swing</option>
151
+ <option value="tada">Tada</option>
152
+ <option value="wobble">Wobble</option>
153
+ <option value="lightSpeedIn">Light Speed-In</option>
154
+ <option value="rollIn">Roll-In</option>
155
+ </optgroup>
156
+ <optgroup label="Bouncing Entrances">
157
+ <option value="bounceIn">Bounce-In</option>
158
+ <option value="bounceInDown">Bounce-In Down</option>
159
+ <option value="bounceInLeft">Bounce-In Left</option>
160
+ <option value="bounceInRight">Bounce-In Right</option>
161
+ <option value="bounceInUp">Bounce-In Up</option>
162
+ </optgroup>
163
+ <optgroup label="Fading Entrances">
164
+ <option value="fadeIn">Fade-In</option>
165
+ <option value="fadeInDown">Fade-In Down</option>
166
+ <option value="fadeInDownBig">Fade-In Down (Big)</option>
167
+ <option value="fadeInLeft">Fade-In Left</option>
168
+ <option value="fadeInLeftBig">Fade-In Left (Big)</option>
169
+ <option value="fadeInRight">Fade-In Right</option>
170
+ <option value="fadeInRightBig">Fade-In Right (Big)</option>
171
+ <option value="fadeInUp">Fade-In Up</option>
172
+ <option value="fadeInUpBig">Fade-In Up (Big)</option>
173
+ </optgroup>
174
+ <optgroup label="Flippers">
175
+ <option value="flip">Flip</option>
176
+ <option value="flipInX">Flip-In X</option>
177
+ <option value="flipInY">Flip-In Y</option>
178
+ </optgroup>
179
+ <optgroup label="Rotating Entrances">
180
+ <option value="rotateIn">Rotate-In</option>
181
+ <option value="rotateInDownLeft">Rotate-In Down Left</option>
182
+ <option value="rotateInDownRight">Rotate-In Down Right</option>
183
+ <option value="rotateInUpLeft">Rotate-In Up Left</option>
184
+ <option value="rotateInUpRight">Rotate-In Up Right</option>
185
+ </optgroup>
186
+ <optgroup label="Sliders">
187
+ <option value="slideInDown">Slide-In Down</option>
188
+ <option value="slideInLeft">Slide-In Left</option>
189
+ <option value="slideInRight">Slide-In Right</option>
190
+ </optgroup>
191
+ </select>
192
+ <label class="custom-layout-label"></label>
193
+ <i class="widget_premium_feature">(Available only in Premium Versions)</i>
194
  </div>
195
  <div class="layout-control-group">
196
+ <label class="custom-layout-label"><?php _e("Show Responsive Gallery", gallery_bank); ?> : </label>
197
+ <input type="checkbox" checked="checked" onclick="show_images_in_row();" name="ux_responsive_gallery" id="ux_responsive_gallery"/>
198
  </div>
199
  <div class="layout-control-group">
200
+ <label class="custom-layout-label"><?php _e("Show Album Title", gallery_bank); ?> : </label>
201
+ <input type="checkbox" checked="checked" name="ux_album_title" id="ux_album_title"/>
202
  </div>
203
  <div class="layout-control-group">
204
+ <label class="custom-layout-label"></label>
205
+ <input type="button" class="button-primary" value="<?php _e("Insert Album", gallery_bank); ?>" onclick="InsertGallery();"/>&nbsp;&nbsp;&nbsp;
206
+ <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;"><?php _e("Cancel", gallery_bank); ?></a>
 
 
207
  </div>
208
  </div>
209
  </div>
210
  </div>
211
  <script type="text/javascript">
212
  jQuery(document).ready(function () {
213
+ check_gallery_type();
214
+ select_images_in_row();
215
+ effects_settings();
216
+ show_special_effect();
217
+ show_images_in_row();
218
  });
219
  function show_images_in_row()
220
  {
230
  }
231
  }
232
  function select_images_in_row() {
233
+ var gallery_format = jQuery("#ux_gallery_format").val();
234
+ switch(gallery_format)
235
+ {
236
+ case "thumbnail":
237
+ jQuery("#div_img_in_row").css("display", "block");
238
+ jQuery("#gb_gallery_format").css("display", "block");
239
+ jQuery("#div_img_width").css("display", "none");
240
+ jQuery("#div_special_effects").css("display", "block");
241
+ jQuery("#div_animation_effects").css("display", "block");
242
+ jQuery("#option_cornor_ribbons").css("display", "block");
243
+ jQuery("#option_hover_rotation").css("display", "block");
244
+ jQuery("#option_levitation_shadow").css("display", "block");
245
+ jQuery("#option_lomo_effect").css("display", "block");
246
+ jQuery("#option_overlay_fade").css("display", "block");
247
+ jQuery("#option_overlay_join").css("display", "block");
248
+ jQuery("#option_overlay_slide").css("display", "block");
249
+ jQuery("#option_overlay_split").css("display", "block");
250
+ jQuery("#option_perspective_images").css("display", "block");
251
+ jQuery("#option_rounded_images").css("display", "block");
252
+ jQuery("#option_pulse").css("display", "block");
253
+ break;
254
+ case "filmstrip":
255
+ jQuery("#div_img_in_row").css("display", "block");
256
+ jQuery("#gb_gallery_format").css("display", "block");
257
+ jQuery("#div_img_width").css("display", "block");
258
+ jQuery("#div_special_effects").css("display", "none");
259
+ jQuery("#div_animation_effects").css("display", "block");
260
+ break;
261
+ case "masonry":
262
+ jQuery("#div_img_in_row").css("display", "block");
263
+ jQuery("#gb_gallery_format").css("display", "block");
264
+ jQuery("#div_img_width").css("display", "none");
265
+ jQuery("#div_special_effects").css("display", "block");
266
+ jQuery("#div_animation_effects").css("display", "block");
267
+ jQuery("#ux_special_effects").val("grayscale");
268
+ jQuery("#option_cornor_ribbons").css("display", "none");
269
+ jQuery("#option_hover_rotation").css("display", "none");
270
+ jQuery("#option_levitation_shadow").css("display", "none");
271
+ jQuery("#option_lomo_effect").css("display", "none");
272
+ jQuery("#option_overlay_fade").css("display", "none");
273
+ jQuery("#option_overlay_join").css("display", "none");
274
+ jQuery("#option_overlay_slide").css("display", "none");
275
+ jQuery("#option_overlay_split").css("display", "none");
276
+ jQuery("#option_perspective_images").css("display", "none");
277
+ jQuery("#option_rounded_images").css("display", "none");
278
+ jQuery("#option_pulse").css("display", "none");
279
+ break;
280
+ case "slideshow":
281
+ jQuery("#gb_gallery_format").css("display", "block");
282
+ jQuery("#div_img_in_row").css("display", "none");
283
+ jQuery("#div_img_width").css("display", "none");
284
+ jQuery("#div_special_effects").css("display", "none");
285
+ jQuery("#div_animation_effects").css("display", "none");
286
+ break;
287
+ case "blog":
288
+ jQuery("#gb_gallery_format").css("display", "block");
289
+ jQuery("#div_img_in_row").css("display", "none");
290
+ jQuery("#div_img_width").css("display", "none");
291
+ jQuery("#div_special_effects").css("display", "block");
292
+ jQuery("#div_animation_effects").css("display", "block");
293
+ jQuery("#ux_special_effects").val("grayscale");
294
+ jQuery("#option_cornor_ribbons").css("display", "none");
295
+ jQuery("#option_hover_rotation").css("display", "none");
296
+ jQuery("#option_levitation_shadow").css("display", "none");
297
+ jQuery("#option_lomo_effect").css("display", "none");
298
+ jQuery("#option_overlay_fade").css("display", "none");
299
+ jQuery("#option_overlay_join").css("display", "none");
300
+ jQuery("#option_overlay_slide").css("display", "none");
301
+ jQuery("#option_overlay_split").css("display", "none");
302
+ jQuery("#option_perspective_images").css("display", "none");
303
+ jQuery("#option_rounded_images").css("display", "none");
304
+ jQuery("#option_pulse").css("display", "none");
305
+ break;
306
+ default:
307
+ jQuery("#gb_gallery_format").css("display", "block");
308
+ jQuery("#div_img_in_row").css("display", "none");
309
+ jQuery("#div_img_width").css("display", "none");
310
+ jQuery("#div_special_effects").css("display", "block");
311
+ jQuery("#div_animation_effects").css("display", "block");
312
+ jQuery("#option_cornor_ribbons").css("display", "block");
313
+ jQuery("#option_hover_rotation").css("display", "block");
314
+ jQuery("#option_levitation_shadow").css("display", "block");
315
+ jQuery("#option_lomo_effect").css("display", "block");
316
+ jQuery("#option_overlay_fade").css("display", "block");
317
+ jQuery("#option_overlay_join").css("display", "block");
318
+ jQuery("#option_overlay_slide").css("display", "block");
319
+ jQuery("#option_overlay_split").css("display", "block");
320
+ jQuery("#option_perspective_images").css("display", "block");
321
+ jQuery("#option_rounded_images").css("display", "block");
322
+ jQuery("#option_pulse").css("display", "block");
323
+ break;
324
+ }
325
+ show_images_in_row();
326
  }
327
  function effects_settings() {
328
+ var special_effects = jQuery("#ux_special_effects").val();
329
+ switch (special_effects) {
330
+ case "hover_rotation":
331
+ jQuery("#rotation_setting").css("display", "block");
332
+ jQuery("#overlay_color").css("display", "none");
333
+ jQuery("#overlay_color_with_direction").css("display", "none");
334
+ jQuery("#ribbon_color_with_direction").css("display", "none");
335
+ jQuery("#levitation_shadow_div").css("display", "none");
336
+ jQuery("#lomo_effect_div").css("display", "none");
337
+ jQuery("#rounded_images_div").css("display", "none");
338
+ break;
339
+ case "overlay_fade":
340
+ jQuery("#rotation_setting").css("display", "none");
341
+ jQuery("#overlay_color").css("display", "block");
342
+ jQuery("#overlay_color_with_direction").css("display", "none");
343
+ jQuery("#ribbon_color_with_direction").css("display", "none");
344
+ jQuery("#levitation_shadow_div").css("display", "none");
345
+ jQuery("#lomo_effect_div").css("display", "none");
346
+ jQuery("#rounded_images_div").css("display", "none");
347
+ break;
348
+ case "overlay_slide":
349
+ jQuery("#rotation_setting").css("display", "none");
350
+ jQuery("#overlay_color").css("display", "block");
351
+ jQuery("#overlay_color_with_direction").css("display", "none");
352
+ jQuery("#ribbon_color_with_direction").css("display", "none");
353
+ jQuery("#levitation_shadow_div").css("display", "none");
354
+ jQuery("#lomo_effect_div").css("display", "none");
355
+ jQuery("#rounded_images_div").css("display", "none");
356
+ break;
357
+ case "overlay_split":
358
+ jQuery("#rotation_setting").css("display", "none");
359
+ jQuery("#overlay_color").css("display", "none");
360
+ jQuery("#overlay_color_with_direction").css("display", "block");
361
+ jQuery("#ribbon_color_with_direction").css("display", "none");
362
+ jQuery("#levitation_shadow_div").css("display", "none");
363
+ jQuery("#lomo_effect_div").css("display", "none");
364
+ jQuery("#rounded_images_div").css("display", "none");
365
+ break;
366
+ case "overlay_join":
367
+ jQuery("#rotation_setting").css("display", "none");
368
+ jQuery("#overlay_color").css("display", "none");
369
+ jQuery("#overlay_color_with_direction").css("display", "block");
370
+ jQuery("#ribbon_color_with_direction").css("display", "none");
371
+ jQuery("#levitation_shadow_div").css("display", "none");
372
+ jQuery("#lomo_effect_div").css("display", "none");
373
+ jQuery("#rounded_images_div").css("display", "none");
374
+ break;
375
+ case "corner_ribbons":
376
+ jQuery("#rotation_setting").css("display", "none");
377
+ jQuery("#overlay_color").css("display", "none");
378
+ jQuery("#overlay_color_with_direction").css("display", "none");
379
+ jQuery("#ribbon_color_with_direction").css("display", "block");
380
+ jQuery("#levitation_shadow_div").css("display", "none");
381
+ jQuery("#lomo_effect_div").css("display", "none");
382
+ jQuery("#rounded_images_div").css("display", "none");
383
+ break;
384
+ case "levitation_shadow":
385
+ jQuery("#rotation_setting").css("display", "none");
386
+ jQuery("#overlay_color").css("display", "none");
387
+ jQuery("#overlay_color_with_direction").css("display", "none");
388
+ jQuery("#ribbon_color_with_direction").css("display", "none");
389
+ jQuery("#levitation_shadow_div").css("display", "block");
390
+ jQuery("#lomo_effect_div").css("display", "none");
391
+ jQuery("#rounded_images_div").css("display", "none");
392
+ break;
393
+ case "lomo_effect":
394
+ jQuery("#rotation_setting").css("display", "none");
395
+ jQuery("#overlay_color").css("display", "none");
396
+ jQuery("#overlay_color_with_direction").css("display", "none");
397
+ jQuery("#ribbon_color_with_direction").css("display", "none");
398
+ jQuery("#levitation_shadow_div").css("display", "none");
399
+ jQuery("#lomo_effect_div").css("display", "block");
400
+ jQuery("#rounded_images_div").css("display", "none");
401
+ break;
402
+ case "rounded_images":
403
+ jQuery("#rotation_setting").css("display", "none");
404
+ jQuery("#overlay_color").css("display", "none");
405
+ jQuery("#overlay_color_with_direction").css("display", "none");
406
+ jQuery("#ribbon_color_with_direction").css("display", "none");
407
+ jQuery("#levitation_shadow_div").css("display", "none");
408
+ jQuery("#lomo_effect_div").css("display", "none");
409
+ jQuery("#rounded_images_div").css("display", "block");
410
+ break;
411
+ case "perspective_images":
412
+ jQuery("#rotation_setting").css("display", "block");
413
+ jQuery("#overlay_color").css("display", "none");
414
+ jQuery("#overlay_color_with_direction").css("display", "none");
415
+ jQuery("#ribbon_color_with_direction").css("display", "none");
416
+ jQuery("#levitation_shadow_div").css("display", "none");
417
+ jQuery("#lomo_effect_div").css("display", "none");
418
+ jQuery("#rounded_images_div").css("display", "none");
419
+ break;
420
+ default:
421
+ jQuery("#rotation_setting").css("display", "none");
422
+ jQuery("#overlay_color").css("display", "none");
423
+ jQuery("#overlay_color_with_direction").css("display", "none");
424
+ jQuery("#ribbon_color_with_direction").css("display", "none");
425
+ jQuery("#levitation_shadow_div").css("display", "none");
426
+ jQuery("#lomo_effect_div").css("display", "none");
427
+ jQuery("#rounded_images_div").css("display", "none");
428
+ break;
429
+ }
430
  }
431
  function show_special_effect() {
432
+ var text_format = jQuery("#ux_text_format").val();
433
+ var gallery_format = jQuery("#ux_gallery_format").val();
434
+ if (text_format == "no_text" && (gallery_format != "slideshow" && gallery_format != "filmstrip" )) {
435
+ jQuery("#div_special_effects").css("display", "block");
436
+ effects_settings();
437
+ }
438
+ else if(gallery_format == "blog")
439
+ {
440
+ jQuery("#div_special_effects").css("display", "block");
441
+ }
442
+ else {
443
+ jQuery("#div_special_effects").css("display", "none");
444
+ jQuery("#rotation_setting").css("display", "none");
445
+ jQuery("#overlay_color").css("display", "none");
446
+ jQuery("#overlay_color_with_direction").css("display", "none");
447
+ jQuery("#ribbon_color_with_direction").css("display", "none");
448
+ jQuery("#levitation_shadow_div").css("display", "none");
449
+ jQuery("#lomo_effect_div").css("display", "none");
450
+ jQuery("#rounded_images_div").css("display", "none");
451
+ }
452
  }
453
  function show_gallery_albums()
454
  {
463
  }
464
  }
465
  function check_gallery_type() {
466
+ var gallery_type = jQuery("input:radio[name=ux_gallery]:checked").val();
467
+ var album_format = jQuery("#ux_album_format").val();
468
+ if (gallery_type == 0) {
469
+ jQuery("#album_format").css("display", "none");
470
+ jQuery("#div_albums_in_row").css("display", "none");
471
+ jQuery("#ux_select_album").css("display", "block");
472
+ jQuery("#slide_show").css("display", "none");
473
+ jQuery("#ux_show_multiple_albums").css("display", "none");
474
+ jQuery("#ux_select_multiple_albums").css("display", "none");
475
+ }
476
+ else {
477
+ jQuery("#album_format").css("display", "block");
478
+ if (album_format != "individual") {
479
+ jQuery("#ux_select_album").css("display", "none");
480
+ if (album_format == "grid") {
481
+ jQuery("#div_albums_in_row").css("display", "block");
482
+ jQuery("#slide_show").css("display", "block");
483
+ jQuery("#ux_show_multiple_albums").css("display", "block");
484
+ }
485
+ else {
486
+ jQuery("#div_albums_in_row").css("display", "none");
487
+ jQuery("#slide_show").css("display", "block");
488
+ jQuery("#ux_show_multiple_albums").css("display", "block");
489
+ }
490
+ show_gallery_albums();
491
+ }
492
+ else {
493
+ jQuery("#div_albums_in_row").css("display", "none");
494
+ jQuery("#slide_show").css("display", "block");
495
+ jQuery("#ux_show_multiple_albums").css("display", "none");
496
+ jQuery("#ux_select_multiple_albums").css("display", "none");
497
+ }
498
+ }
499
  }
500
  function select_album() {
501
+ var album_format = jQuery("#ux_album_format").val();
502
+ if (album_format == "individual") {
503
+ jQuery("#ux_select_album").css("display", "block");
504
+ }
505
+ else {
506
+ jQuery("#ux_select_album").css("display", "none");
507
+ }
508
  }
509
  function InsertGallery() {
510
+ var gallery_effect;
511
+ var album_id = jQuery("#ux_ddl_select_album").val();
512
+ var album_format = jQuery("#ux_album_format").val();
513
+ var gallery_format = jQuery("#ux_gallery_format").val();
514
+ var text_format = jQuery("#ux_text_format").val();
515
+ var images_in_row = jQuery("#ux_img_in_row").val();
516
+ var album_in_row = jQuery("#ux_album_in_row").val();
517
+ var filmstrip_width = jQuery("#ux_img_width").val();
518
+ var gallery_type = jQuery("input:radio[name=ux_gallery]:checked").val();
519
+ var album_type = jQuery("#ddl_show_albums").val();
520
+ var selected_albums = jQuery("#ddl_add_multi_album").val();
521
 
522
+ var special_effect = jQuery("#ux_special_effects").val();
523
+ var rotation = jQuery("#ux_rotation").val();
524
+ var overlay_color = jQuery("#ux_overlay_color").val();
525
+ var overlay_color_with_dir = jQuery("#ux_overlay_color_with_dir").val();
526
+ var overlay_dir = jQuery("#ux_overlay_dir").val();
527
+ var ribbon_color = jQuery("#ux_ribbon_color").val();
528
+ var ribbon_dir = jQuery("#ux_ribbon_dir").val();
529
+ var shadow = jQuery("#ux_shadow").val();
530
+ var lomo_color = jQuery("#ux_lomo_color").val();
531
+ var lomo_dir = jQuery("#ux_lomo_dir").val();
532
+ var rounded_images = jQuery("#ux_rounded_images").val();
533
+ var animation_effects = jQuery("#ux_animation_effects").val();
534
+ var displayAlbumTitle = jQuery("#ux_album_title").prop("checked");
535
+ var responsiveGallery = jQuery("#ux_responsive_gallery").prop("checked");
536
+ var responsive;
537
 
538
+ if (album_id == "" && (album_format == "individual" || gallery_type == 0)) {
539
+ alert("<?php _e("Please select an Album", gallery_bank) ?>");
540
+ return;
541
+ }
542
+ else if (gallery_type == 1 && album_format == "") {
543
+ alert("<?php _e("Please select an Album Format", gallery_bank) ?>");
544
+ return;
545
+ }
546
+ else if(gallery_type == 1 && ((album_format == "grid" || album_format == "list") && selected_albums == ""))
547
+ {
548
+ alert("<?php _e("Please select Albums", gallery_bank) ?>");
549
+ return;
550
+ }
551
+ else if (gallery_format == "") {
552
+ alert("<?php _e("Please select a Gallery Images Format", gallery_bank) ?>");
553
+ return;
554
+ }
555
+ else if (text_format == "" && gallery_format != "slideshow") {
556
+ alert("<?php _e("Please select a Text Format for the Gallery", gallery_bank) ?>");
557
+ return;
558
+ }
559
+ else if (gallery_format == "slideshow" || gallery_format == "filmstrip" || gallery_format == "blog") {
560
+ alert("This Feature is only available in Paid Premium Version!");
561
+ return;
562
+ }
563
 
564
  if(responsiveGallery == true)
565
  {
575
  }
576
  else
577
  {
578
+ var display_selected_albums = "show_albums=\""+ encodeURIComponent(selected_albums)+"\"";
579
+ }
580
+ if (gallery_type == 1) {
581
+ if (album_format == "individual") {
582
+ if (gallery_format == "thumbnail" || gallery_format == "masonry") {
583
+ if (text_format == "title_only") {
584
+ window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" title=\"true\" desc=\"false\" "+responsive+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
585
+ }
586
+ else if (text_format == "title_desc") {
587
+ window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" title=\"true\" desc=\"true\" "+responsive+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
588
+ }
589
+ else if (text_format == "no_text") {
590
+ window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" title=\"false\" desc=\"false\" "+responsive+" special_effect=\"\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
591
+ }
592
+ }
593
+ }
594
+ else if (album_format == "grid") {
595
+ if (gallery_format == "thumbnail" || gallery_format == "masonry") {
596
+ if (text_format == "title_only") {
597
+ window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"true\" desc=\"false\" "+responsive+" albums_in_row=\"" + album_in_row + "\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
598
+ }
599
+ else if (text_format == "title_desc") {
600
+ window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"true\" desc=\"true\" "+responsive+" albums_in_row=\"" + album_in_row + "\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
601
+ }
602
+ else if (text_format == "no_text") {
603
+ window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"false\" desc=\"false\" "+responsive+" albums_in_row=\"" + album_in_row + "\" special_effect=\"\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
604
+ }
605
+ }
606
+ }
607
+ else {
608
+ if (gallery_format == "thumbnail" || gallery_format == "masonry") {
609
+ if (text_format == "title_only") {
610
+ window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"true\" desc=\"false\" "+responsive+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
611
+ }
612
+ else if (text_format == "title_desc") {
613
+ window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"true\" desc=\"true\" "+responsive+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
614
+ }
615
+ else if (text_format == "no_text") {
616
+ window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"false\" desc=\"false\" "+responsive+" special_effect=\"\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
617
+ }
618
+ }
619
+ }
620
+ }
621
+ else {
622
+ if (gallery_format == "thumbnail" || gallery_format == "masonry") {
623
+ if (text_format == "title_only") {
624
+ window.send_to_editor("[gallery_bank type=\"images\" format=\"" + gallery_format + "\" title=\"true\" desc=\"false\" "+responsive+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
625
+ }
626
+ else if (text_format == "title_desc") {
627
+ window.send_to_editor("[gallery_bank type=\"images\" format=\"" + gallery_format + "\" title=\"true\" desc=\"true\" "+responsive+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
628
+ }
629
+ else if (text_format == "no_text") {
630
+ window.send_to_editor("[gallery_bank type=\"images\" format=\"" + gallery_format + "\" title=\"false\" desc=\"false\" "+responsive+" special_effect=\"\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
631
+ }
632
+ }
633
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
634
  }
635
  /**
636
  * @return {boolean}
637
  */
638
  function OnlyNumbers(evt) {
639
+ var charCode = (evt.which) ? evt.which : event.keyCode;
640
+ return (charCode > 47 && charCode < 58) || charCode == 127 || charCode == 8;
641
  }
642
  function set_text_value(text_type) {
643
+ var val = "";
644
+ switch (text_type) {
645
+ case "img_in_row":
646
+ val = jQuery("#ux_img_in_row").val();
647
+ if (val < 1)
648
+ jQuery("#ux_img_in_row").val(1);
649
+ break;
650
+ case "album_in_row":
651
+ val = jQuery("#ux_album_in_row").val();
652
+ if (val < 1)
653
+ jQuery("#ux_album_in_row").val(1);
654
+ break;
655
+ }
 
 
656
  }
657
  </script>
front_views/includes_common_before.php CHANGED
@@ -8,87 +8,88 @@ $album_css = $wpdb->get_results
8
  "SELECT * FROM " . gallery_bank_settings()
9
  );
10
  if (count($album_css) != 0) {
11
- $setting_keys = array();
12
- for ($flag = 0; $flag < count($album_css); $flag++) {
13
- array_push($setting_keys, $album_css[$flag]->setting_key);
14
- }
15
  }
16
  switch ($album_type) {
17
- case "images":
18
- $album = $wpdb->get_var
19
- (
20
- $wpdb->prepare
21
- (
22
- "SELECT album_name FROM " . gallery_bank_albums() . " where album_id = %d",
23
- $album_id
24
- )
25
- );
26
- $pics = $wpdb->get_results
27
- (
28
- $wpdb->prepare
29
- (
30
- "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by sorting_order asc",
31
- $album_id
32
- )
33
- );
34
  break;
35
- case "individual":
36
- if (isset($widget)) {
37
- $galleryWidget = $widget;
38
- } else {
39
- $galleryWidget = "";
40
- }
41
- if ($img_in_row == "") {
42
- $img_in_row = 0;
43
- }
44
- $album = $wpdb->get_row
45
- (
46
- $wpdb->prepare
47
- (
48
- "SELECT * FROM " . gallery_bank_albums() . " WHERE album_id = %d",
49
- $album_id
50
- )
51
- );
52
- $albumCover = $wpdb->get_row
53
- (
54
- $wpdb->prepare
55
- (
56
- "SELECT album_cover,thumbnail_url,video FROM " . gallery_bank_pics() . " WHERE album_cover=1 and album_id = %d",
57
- $album_id
58
- )
59
- );
60
  break;
61
- case "grid" || "list":
62
- if (isset($widget)) {
63
- $galleryWidget = $widget;
64
- } else {
65
- $galleryWidget = "";
66
- }
67
- if ($img_in_row == "") {
68
- $img_in_row = 0;
69
- }
70
- if($show_albums == "all" || $show_albums == "")
71
- {
72
- $album = $wpdb->get_results
73
- (
74
- "SELECT * FROM " . gallery_bank_albums() . " order by album_order asc"
75
- );
76
- }
77
- else
78
- {
79
- $album = $wpdb->get_results
80
- (
81
- "SELECT * FROM " . gallery_bank_albums() . " where album_id in ($show_albums) order by album_order asc"
82
- );
83
- }
 
 
 
84
  break;
85
  }
86
-
87
  /** Switch for global settings **/
88
-
89
  switch ($album_type) {
90
- case "images":
91
- $index = array_search("thumbnails_width", $setting_keys);
92
  if($widget == "true")
93
  {
94
  $thumbnails_width = intval($thumb_width);
@@ -98,7 +99,7 @@ switch ($album_type) {
98
  $thumbnails_width = intval($album_css[$index]->setting_value);
99
  }
100
 
101
- $index = array_search("thumbnails_height", $setting_keys);
102
  if($widget == "true")
103
  {
104
  $thumbnails_height = intval($thumb_height);
@@ -107,183 +108,182 @@ switch ($album_type) {
107
  {
108
  $thumbnails_height = intval($album_css[$index]->setting_value);
109
  }
110
-
111
 
112
- $index = array_search("thumbnails_opacity", $setting_keys);
113
- $thumbnails_opacity = doubleval($album_css[$index]->setting_value);
114
 
115
- $index = array_search("thumbnails_border_size", $setting_keys);
116
- $thumbnails_border_size = intval($album_css[$index]->setting_value);
117
 
118
- $index = array_search("thumbnails_border_radius", $setting_keys);
119
- $thumbnails_border_radius = intval($album_css[$index]->setting_value);
120
 
121
- $index = array_search("thumbnails_border_color", $setting_keys);
122
- $thumbnails_border_color = $album_css[$index]->setting_value;
123
 
124
- $index = array_search("margin_btw_thumbnails", $setting_keys);
125
- $margin_btw_thumbnails = intval($album_css[$index]->setting_value);
126
- $newMargin = $margin_btw_thumbnails * 2;
127
 
128
- $perspective_margin_right = $margin_btw_thumbnails + 20;
129
- $perspective_margin_bottom = $margin_btw_thumbnails + 50;
130
 
131
- $index = array_search("thumbnail_text_color", $setting_keys);
132
- $thumbnail_text_color = $album_css[$index]->setting_value;
133
 
134
- $index = array_search("thumbnail_text_align", $setting_keys);
135
- $thumbnail_text_align = $album_css[$index]->setting_value;
136
 
137
- $index = array_search("thumbnail_font_family", $setting_keys);
138
- $thumbnail_font_family = $album_css[$index]->setting_value;
139
 
140
- $index = array_search("heading_font_size", $setting_keys);
141
- $heading_font_size = intval($album_css[$index]->setting_value);
142
 
143
- $index = array_search("text_font_size", $setting_keys);
144
- $text_font_size = intval($album_css[$index]->setting_value);
145
 
146
- $index = array_search("thumbnail_desc_length", $setting_keys);
147
- $thumbnail_desc_length = intval($album_css[$index]->setting_value);
148
 
149
- $index = array_search("lightbox_type", $setting_keys);
150
- $lightbox_type = $album_css[$index]->setting_value;
151
 
152
- $index = array_search("lightbox_overlay_opacity", $setting_keys);
153
- $lightbox_overlay_opacity = doubleval($album_css[$index]->setting_value);
154
 
155
- $index = array_search("lightbox_overlay_border_size", $setting_keys);
156
- $lightbox_overlay_border_size = intval($album_css[$index]->setting_value);
157
 
158
- $index = array_search("lightbox_overlay_border_radius", $setting_keys);
159
- $lightbox_overlay_border_radius = intval($album_css[$index]->setting_value);
160
 
161
- $index = array_search("lightbox_text_color", $setting_keys);
162
- $lightbox_text_color = $album_css[$index]->setting_value;
163
 
164
- $index = array_search("lightbox_overlay_border_color", $setting_keys);
165
- $lightbox_overlay_border_color = $album_css[$index]->setting_value;
166
- $lightbox_border_color_value = $lightbox_overlay_border_size . "px solid " . $lightbox_overlay_border_color;
167
 
168
- $index = array_search("lightbox_inline_bg_color", $setting_keys);
169
- $lightbox_inline_bg_color = $album_css[$index]->setting_value;
170
 
171
- $index = array_search("lightbox_overlay_bg_color", $setting_keys);
172
- $lightbox_overlay_bg_color = $album_css[$index]->setting_value;
173
-
174
 
175
- $index = array_search("lightbox_fade_in_time", $setting_keys);
176
- $lightbox_fade_in_time = intval($album_css[$index]->setting_value);
177
 
178
- $index = array_search("lightbox_fade_out_time", $setting_keys);
179
- $lightbox_fade_out_time = intval($album_css[$index]->setting_value);
180
 
181
- $index = array_search("lightbox_text_align", $setting_keys);
182
- $lightbox_text_align = $album_css[$index]->setting_value;
183
 
184
- $index = array_search("lightbox_font_family", $setting_keys);
185
- $lightbox_font_family = $album_css[$index]->setting_value;
186
 
187
- $index = array_search("lightbox_heading_font_size", $setting_keys);
188
- $lightbox_heading_font_size = intval($album_css[$index]->setting_value);
189
 
190
- $index = array_search("lightbox_text_font_size", $setting_keys);
191
- $lightbox_text_font_size = intval($album_css[$index]->setting_value);
192
 
193
- $index = array_search("image_title_setting", $setting_keys);
194
- $image_title_setting = intval($album_css[$index]->setting_value);
195
 
196
- $index = array_search("image_desc_setting", $setting_keys);
197
- $image_desc_setting = intval($album_css[$index]->setting_value);
198
 
199
- $index = array_search("autoplay_setting", $setting_keys);
200
- $autoplay_setting = intval($album_css[$index]->setting_value);
201
- $autoplay = ($autoplay_setting == 1) ? "true" : "false";
202
 
203
- $index = array_search("slide_interval", $setting_keys);
204
- $slide_interval = intval($album_css[$index]->setting_value);
205
 
206
- $index = array_search("album_seperator", $setting_keys);
207
- $album_seperator = intval($album_css[$index]->setting_value);
208
 
209
- $index = array_search("language_direction", $setting_keys);
210
- $lang_dir_setting = $album_css[$index]->setting_value;
 
 
211
 
212
- $video_thumb_url = plugins_url("/assets/images/video.jpg",dirname(__FILE__));
213
-
214
 
215
  break;
216
- case "grid" || "list" || "individual":
217
- $index = array_search("cover_thumbnail_width", $setting_keys);
218
- $cover_thumbnail_width = $album_css[$index]->setting_value;
219
 
220
- $index = array_search("cover_thumbnail_height", $setting_keys);
221
- $cover_thumbnail_height = $album_css[$index]->setting_value;
222
 
223
- $index = array_search("cover_thumbnail_opacity", $setting_keys);
224
- $cover_thumbnail_opacity = $album_css[$index]->setting_value;
225
 
226
- $index = array_search("cover_thumbnail_border_size", $setting_keys);
227
- $cover_thumbnail_border_size = $album_css[$index]->setting_value;
228
 
229
 
230
- $index = array_search("cover_thumbnail_border_radius", $setting_keys);
231
- $cover_thumbnail_border_radius = $album_css[$index]->setting_value;
232
 
233
- $index = array_search("cover_thumbnail_border_color", $setting_keys);
234
- $cover_thumbnail_border_color = $album_css[$index]->setting_value;
235
 
236
- $index = array_search("margin_btw_cover_thumbnails", $setting_keys);
237
- $margin_btw_cover_thumbnails = $album_css[$index]->setting_value;
238
- $margin = $margin_btw_cover_thumbnails + 10;
239
 
240
- $index = array_search("album_text_align", $setting_keys);
241
- $album_text_align = $album_css[$index]->setting_value;
242
 
243
- $index = array_search("album_font_family", $setting_keys);
244
- $album_font_family = $album_css[$index]->setting_value;
245
 
246
- $index = array_search("album_heading_font_size", $setting_keys);
247
- $album_heading_font_size = intval($album_css[$index]->setting_value);
248
 
249
- $index = array_search("album_text_font_size", $setting_keys);
250
- $album_text_font_size = intval($album_css[$index]->setting_value);
251
 
252
- $index = array_search("album_click_text", $setting_keys);
253
- $album_click_text = $album_css[$index]->setting_value;
254
 
255
- $index = array_search("album_text_color", $setting_keys);
256
- $album_text_color = $album_css[$index]->setting_value;
257
 
258
- $index = array_search("album_desc_length", $setting_keys);
259
- $album_desc_length = $album_css[$index]->setting_value;
260
 
261
- $index = array_search("back_button_text", $setting_keys);
262
- $back_button_text = $album_css[$index]->setting_value;
263
 
264
- $index = array_search("button_color", $setting_keys);
265
- $button_color = $album_css[$index]->setting_value;
266
 
267
- $index = array_search("button_text_color", $setting_keys);
268
- $button_text_color = $album_css[$index]->setting_value;
269
 
270
- $index = array_search("album_seperator", $setting_keys);
271
- $album_seperator = intval($album_css[$index]->setting_value);
272
 
273
- $index = array_search("language_direction", $setting_keys);
274
- $lang_dir_setting = $album_css[$index]->setting_value;
275
 
276
  break;
277
  }
278
 
279
  ?>
280
- <!-- Switch for global css -->
281
  <style type="text/css">
282
- <?php
283
- switch($album_type)
284
- {
285
- case "images":
286
- ?>
287
  /*noinspection ALL*/
288
  .dynamic_css {
289
  border: <?php echo $thumbnails_border_size;?>px solid <?php echo $thumbnails_border_color;?> !important;
8
  "SELECT * FROM " . gallery_bank_settings()
9
  );
10
  if (count($album_css) != 0) {
11
+ $setting_keys = array();
12
+ for ($flag = 0; $flag < count($album_css); $flag++) {
13
+ array_push($setting_keys, $album_css[$flag]->setting_key);
14
+ }
15
  }
16
  switch ($album_type) {
17
+ case "images":
18
+ $album = $wpdb->get_var
19
+ (
20
+ $wpdb->prepare
21
+ (
22
+ "SELECT album_name FROM " . gallery_bank_albums() . " where album_id = %d",
23
+ $album_id
24
+ )
25
+ );
26
+ $pics = $wpdb->get_results
27
+ (
28
+ $wpdb->prepare
29
+ (
30
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by sorting_order asc",
31
+ $album_id
32
+ )
33
+ );
34
  break;
35
+ case "individual":
36
+ if (isset($widget)) {
37
+ $galleryWidget = $widget;
38
+ } else {
39
+ $galleryWidget = "";
40
+ }
41
+ if ($img_in_row == "") {
42
+ $img_in_row = 0;
43
+ }
44
+ $album = $wpdb->get_row
45
+ (
46
+ $wpdb->prepare
47
+ (
48
+ "SELECT * FROM " . gallery_bank_albums() . " WHERE album_id = %d",
49
+ $album_id
50
+ )
51
+ );
52
+ $albumCover = $wpdb->get_row
53
+ (
54
+ $wpdb->prepare
55
+ (
56
+ "SELECT album_cover,thumbnail_url,video FROM " . gallery_bank_pics() . " WHERE album_cover=1 and album_id = %d",
57
+ $album_id
58
+ )
59
+ );
60
  break;
61
+ case "grid" || "list":
62
+ if (isset($widget)) {
63
+ $galleryWidget = $widget;
64
+ } else {
65
+ $galleryWidget = "";
66
+ }
67
+ if ($img_in_row == "") {
68
+ $img_in_row = 0;
69
+ }
70
+ if($show_albums == "all" || $show_albums == "")
71
+ {
72
+ $album = $wpdb->get_results
73
+ (
74
+ "SELECT * FROM " . gallery_bank_albums() . " order by album_order asc"
75
+ );
76
+ }
77
+ else
78
+ {
79
+ if(preg_match("/^\d+(?:,\d+)*$/", $show_albums))
80
+ {
81
+ $album = $wpdb->get_results
82
+ (
83
+ "SELECT * FROM " . gallery_bank_albums() . " where album_id in ($show_albums) order by album_order asc"
84
+ );
85
+ }
86
+ }
87
  break;
88
  }
 
89
  /** Switch for global settings **/
 
90
  switch ($album_type) {
91
+ case "images":
92
+ $index = array_search("thumbnails_width", $setting_keys);
93
  if($widget == "true")
94
  {
95
  $thumbnails_width = intval($thumb_width);
99
  $thumbnails_width = intval($album_css[$index]->setting_value);
100
  }
101
 
102
+ $index = array_search("thumbnails_height", $setting_keys);
103
  if($widget == "true")
104
  {
105
  $thumbnails_height = intval($thumb_height);
108
  {
109
  $thumbnails_height = intval($album_css[$index]->setting_value);
110
  }
 
111
 
112
+ $index = array_search("thumbnails_opacity", $setting_keys);
113
+ $thumbnails_opacity = doubleval($album_css[$index]->setting_value);
114
 
115
+ $index = array_search("thumbnails_border_size", $setting_keys);
116
+ $thumbnails_border_size = intval($album_css[$index]->setting_value);
117
 
118
+ $index = array_search("thumbnails_border_radius", $setting_keys);
119
+ $thumbnails_border_radius = intval($album_css[$index]->setting_value);
120
 
121
+ $index = array_search("thumbnails_border_color", $setting_keys);
122
+ $thumbnails_border_color = $album_css[$index]->setting_value;
123
 
124
+ $index = array_search("margin_btw_thumbnails", $setting_keys);
125
+ $margin_btw_thumbnails = intval($album_css[$index]->setting_value);
126
+ $newMargin = $margin_btw_thumbnails * 2;
127
 
128
+ $perspective_margin_right = $margin_btw_thumbnails + 20;
129
+ $perspective_margin_bottom = $margin_btw_thumbnails + 50;
130
 
131
+ $index = array_search("thumbnail_text_color", $setting_keys);
132
+ $thumbnail_text_color = $album_css[$index]->setting_value;
133
 
134
+ $index = array_search("thumbnail_text_align", $setting_keys);
135
+ $thumbnail_text_align = $album_css[$index]->setting_value;
136
 
137
+ $index = array_search("thumbnail_font_family", $setting_keys);
138
+ $thumbnail_font_family = $album_css[$index]->setting_value;
139
 
140
+ $index = array_search("heading_font_size", $setting_keys);
141
+ $heading_font_size = intval($album_css[$index]->setting_value);
142
 
143
+ $index = array_search("text_font_size", $setting_keys);
144
+ $text_font_size = intval($album_css[$index]->setting_value);
145
 
146
+ $index = array_search("thumbnail_desc_length", $setting_keys);
147
+ $thumbnail_desc_length = intval($album_css[$index]->setting_value);
148
 
149
+ $index = array_search("lightbox_type", $setting_keys);
150
+ $lightbox_type = $album_css[$index]->setting_value;
151
 
152
+ $index = array_search("lightbox_overlay_opacity", $setting_keys);
153
+ $lightbox_overlay_opacity = doubleval($album_css[$index]->setting_value);
154
 
155
+ $index = array_search("lightbox_overlay_border_size", $setting_keys);
156
+ $lightbox_overlay_border_size = intval($album_css[$index]->setting_value);
157
 
158
+ $index = array_search("lightbox_overlay_border_radius", $setting_keys);
159
+ $lightbox_overlay_border_radius = intval($album_css[$index]->setting_value);
160
 
161
+ $index = array_search("lightbox_text_color", $setting_keys);
162
+ $lightbox_text_color = $album_css[$index]->setting_value;
163
 
164
+ $index = array_search("lightbox_overlay_border_color", $setting_keys);
165
+ $lightbox_overlay_border_color = $album_css[$index]->setting_value;
166
+ $lightbox_border_color_value = $lightbox_overlay_border_size . "px solid " . $lightbox_overlay_border_color;
167
 
168
+ $index = array_search("lightbox_inline_bg_color", $setting_keys);
169
+ $lightbox_inline_bg_color = $album_css[$index]->setting_value;
170
 
171
+ $index = array_search("lightbox_overlay_bg_color", $setting_keys);
172
+ $lightbox_overlay_bg_color = $album_css[$index]->setting_value;
173
+
174
 
175
+ $index = array_search("lightbox_fade_in_time", $setting_keys);
176
+ $lightbox_fade_in_time = intval($album_css[$index]->setting_value);
177
 
178
+ $index = array_search("lightbox_fade_out_time", $setting_keys);
179
+ $lightbox_fade_out_time = intval($album_css[$index]->setting_value);
180
 
181
+ $index = array_search("lightbox_text_align", $setting_keys);
182
+ $lightbox_text_align = $album_css[$index]->setting_value;
183
 
184
+ $index = array_search("lightbox_font_family", $setting_keys);
185
+ $lightbox_font_family = $album_css[$index]->setting_value;
186
 
187
+ $index = array_search("lightbox_heading_font_size", $setting_keys);
188
+ $lightbox_heading_font_size = intval($album_css[$index]->setting_value);
189
 
190
+ $index = array_search("lightbox_text_font_size", $setting_keys);
191
+ $lightbox_text_font_size = intval($album_css[$index]->setting_value);
192
 
193
+ $index = array_search("image_title_setting", $setting_keys);
194
+ $image_title_setting = intval($album_css[$index]->setting_value);
195
 
196
+ $index = array_search("image_desc_setting", $setting_keys);
197
+ $image_desc_setting = intval($album_css[$index]->setting_value);
198
 
199
+ $index = array_search("autoplay_setting", $setting_keys);
200
+ $autoplay_setting = intval($album_css[$index]->setting_value);
201
+ $autoplay = ($autoplay_setting == 1) ? "true" : "false";
202
 
203
+ $index = array_search("slide_interval", $setting_keys);
204
+ $slide_interval = intval($album_css[$index]->setting_value);
205
 
206
+ $index = array_search("album_seperator", $setting_keys);
207
+ $album_seperator = intval($album_css[$index]->setting_value);
208
 
209
+ $index = array_search("language_direction", $setting_keys);
210
+ $lang_dir_setting = $album_css[$index]->setting_value;
211
+
212
+ $video_thumb_url = plugins_url("/assets/images/video.jpg",dirname(__FILE__));
213
 
 
 
214
 
215
  break;
216
+ case "grid" || "list" || "individual":
217
+ $index = array_search("cover_thumbnail_width", $setting_keys);
218
+ $cover_thumbnail_width = $album_css[$index]->setting_value;
219
 
220
+ $index = array_search("cover_thumbnail_height", $setting_keys);
221
+ $cover_thumbnail_height = $album_css[$index]->setting_value;
222
 
223
+ $index = array_search("cover_thumbnail_opacity", $setting_keys);
224
+ $cover_thumbnail_opacity = $album_css[$index]->setting_value;
225
 
226
+ $index = array_search("cover_thumbnail_border_size", $setting_keys);
227
+ $cover_thumbnail_border_size = $album_css[$index]->setting_value;
228
 
229
 
230
+ $index = array_search("cover_thumbnail_border_radius", $setting_keys);
231
+ $cover_thumbnail_border_radius = $album_css[$index]->setting_value;
232
 
233
+ $index = array_search("cover_thumbnail_border_color", $setting_keys);
234
+ $cover_thumbnail_border_color = $album_css[$index]->setting_value;
235
 
236
+ $index = array_search("margin_btw_cover_thumbnails", $setting_keys);
237
+ $margin_btw_cover_thumbnails = $album_css[$index]->setting_value;
238
+ $margin = $margin_btw_cover_thumbnails + 10;
239
 
240
+ $index = array_search("album_text_align", $setting_keys);
241
+ $album_text_align = $album_css[$index]->setting_value;
242
 
243
+ $index = array_search("album_font_family", $setting_keys);
244
+ $album_font_family = $album_css[$index]->setting_value;
245
 
246
+ $index = array_search("album_heading_font_size", $setting_keys);
247
+ $album_heading_font_size = intval($album_css[$index]->setting_value);
248
 
249
+ $index = array_search("album_text_font_size", $setting_keys);
250
+ $album_text_font_size = intval($album_css[$index]->setting_value);
251
 
252
+ $index = array_search("album_click_text", $setting_keys);
253
+ $album_click_text = $album_css[$index]->setting_value;
254
 
255
+ $index = array_search("album_text_color", $setting_keys);
256
+ $album_text_color = $album_css[$index]->setting_value;
257
 
258
+ $index = array_search("album_desc_length", $setting_keys);
259
+ $album_desc_length = $album_css[$index]->setting_value;
260
 
261
+ $index = array_search("back_button_text", $setting_keys);
262
+ $back_button_text = $album_css[$index]->setting_value;
263
 
264
+ $index = array_search("button_color", $setting_keys);
265
+ $button_color = $album_css[$index]->setting_value;
266
 
267
+ $index = array_search("button_text_color", $setting_keys);
268
+ $button_text_color = $album_css[$index]->setting_value;
269
 
270
+ $index = array_search("album_seperator", $setting_keys);
271
+ $album_seperator = intval($album_css[$index]->setting_value);
272
 
273
+ $index = array_search("language_direction", $setting_keys);
274
+ $lang_dir_setting = $album_css[$index]->setting_value;
275
 
276
  break;
277
  }
278
 
279
  ?>
280
+ <!-- Switch for global css -->
281
  <style type="text/css">
282
+ <?php
283
+ switch($album_type)
284
+ {
285
+ case "images":
286
+ ?>
287
  /*noinspection ALL*/
288
  .dynamic_css {
289
  border: <?php echo $thumbnails_border_size;?>px solid <?php echo $thumbnails_border_color;?> !important;
gallery-bank.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://tech-banker.com
5
  Description: Gallery Bank is an easy to use Responsive WordPress Gallery Plugin for photos, videos, galleries and albums.
6
  Author: Tech Banker
7
- Version: 3.0.101
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4
  Plugin URI: http://tech-banker.com
5
  Description: Gallery Bank is an easy to use Responsive WordPress Gallery Plugin for photos, videos, galleries and albums.
6
  Author: Tech Banker
7
+ Version: 3.0.102
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
lib/gallery-bank-class.php CHANGED
@@ -73,20 +73,20 @@ function create_global_menus_for_gallery_bank()
73
 
74
  function gallery_bank_albums()
75
  {
76
- global $wpdb;
77
- return $wpdb->prefix . "gallery_albums";
78
  }
79
 
80
  function gallery_bank_pics()
81
  {
82
- global $wpdb;
83
- return $wpdb->prefix . "gallery_pics";
84
  }
85
 
86
  function gallery_bank_settings()
87
  {
88
- global $wpdb;
89
- return $wpdb->prefix . "gallery_settings";
90
  }
91
 
92
  //--------------------------------------------------------------------------------------------------------------//
@@ -105,8 +105,8 @@ function gallery_bank()
105
  $current_user->role = array_keys($current_user->$gb_role);
106
  $gb_role = $current_user->role[0];
107
  }
108
- include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
109
- include_once GALLERY_BK_PLUGIN_DIR . "/views/dashboard.php";
110
  }
111
 
112
 
@@ -150,7 +150,7 @@ function save_album()
150
  }
151
  else
152
  {
153
- header("Location:admin.php?page=gallery_bank");
154
  }
155
  }
156
 
@@ -167,8 +167,8 @@ function global_settings()
167
  $current_user->role = array_keys($current_user->$gb_role);
168
  $gb_role = $current_user->role[0];
169
  }
170
- include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
171
- include_once GALLERY_BK_PLUGIN_DIR . "/views/settings.php";
172
  }
173
 
174
  function gallery_album_sorting()
@@ -184,8 +184,8 @@ function gallery_album_sorting()
184
  $current_user->role = array_keys($current_user->$gb_role);
185
  $gb_role = $current_user->role[0];
186
  }
187
- include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
188
- include_once GALLERY_BK_PLUGIN_DIR . "/views/album-sorting.php";
189
  }
190
 
191
  function images_sorting()
@@ -201,8 +201,8 @@ function images_sorting()
201
  $current_user->role = array_keys($current_user->$gb_role);
202
  $gb_role = $current_user->role[0];
203
  }
204
- include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
205
- include_once GALLERY_BK_PLUGIN_DIR . "/views/images-sorting.php";
206
  }
207
 
208
  function album_preview()
@@ -218,8 +218,8 @@ function album_preview()
218
  $current_user->role = array_keys($current_user->$gb_role);
219
  $gb_role = $current_user->role[0];
220
  }
221
- include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
222
- include_once GALLERY_BK_PLUGIN_DIR . "/views/album-preview.php";
223
  }
224
 
225
 
@@ -236,8 +236,8 @@ function gallery_bank_system_status()
236
  $current_user->role = array_keys($current_user->$gb_role);
237
  $gb_role = $current_user->role[0];
238
  }
239
- include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
240
- include_once GALLERY_BK_PLUGIN_DIR . "/views/gallery-bank-system-report.php";
241
  }
242
 
243
  function gallery_bank_purchase()
@@ -254,7 +254,7 @@ function gallery_bank_purchase()
254
  $gb_role = $current_user->role[0];
255
  }
256
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
257
- include_once GALLERY_BK_PLUGIN_DIR . "/views/purchase_pro_version.php";
258
  }
259
 
260
  function gallery_bank_recommended_plugins()
@@ -312,43 +312,44 @@ function gallery_auto_plugin_update()
312
  //--------------------------------------------------------------------------------------------------------------//
313
  function backend_scripts_calls()
314
  {
315
- wp_enqueue_script("jquery");
316
- wp_enqueue_script("jquery-ui-draggable");
317
- wp_enqueue_script("jquery-ui-sortable");
318
- wp_enqueue_script("jquery-ui-dialog");
319
- wp_enqueue_script("farbtastic");
320
- wp_enqueue_script("imgLiquid.js", plugins_url("/assets/js/imgLiquid.js",dirname(__FILE__)));
321
- wp_enqueue_script("plupload.full.min.js", plugins_url("/assets/js/plupload.full.min.js",dirname(__FILE__)));
322
- wp_enqueue_script("jquery.dataTables.min.js", plugins_url("/assets/js/jquery.dataTables.min.js",dirname(__FILE__)), array("jquery-ui-widget","jquery-ui-progressbar"),false);
323
- wp_enqueue_script("jquery.validate.min.js", plugins_url("/assets/js/jquery.validate.min.js",dirname(__FILE__)));
324
- wp_enqueue_script("jquery.ui.plupload.js", plugins_url("/assets/js/jquery.ui.plupload.js",dirname(__FILE__)));
325
- wp_enqueue_script("jquery.Tooltip.js", plugins_url("/assets/js/jquery.Tooltip.js",dirname(__FILE__)));
326
- wp_enqueue_script("bootstrap.js", plugins_url("/assets/js/bootstrap.js",dirname(__FILE__)));
327
  wp_enqueue_script("jquery.prettyPhoto.js", plugins_url("/assets/js/jquery.prettyPhoto.js",dirname(__FILE__)));
328
  wp_enqueue_style("google-fonts-roboto", "http://fonts.googleapis.com/css?family=Roboto Condensed:300|Roboto Condensed:300|Roboto Condensed:300|Roboto Condensed:regular|Roboto Condensed:300");
329
  }
330
 
331
  function frontend_plugin_js_scripts_gallery_bank()
332
  {
333
- wp_enqueue_script("jquery");
334
- wp_enqueue_script("jquery.masonry.min.js", plugins_url("/assets/js/jquery.masonry.min.js",dirname(__FILE__)));
335
- wp_enqueue_script("isotope.pkgd.js", plugins_url("/assets/js/isotope.pkgd.js",dirname(__FILE__)));
336
- wp_enqueue_script("imgLiquid.js", plugins_url("/assets/js/imgLiquid.js",dirname(__FILE__)));
337
  wp_enqueue_script("jquery.prettyPhoto.js", plugins_url("/assets/js/jquery.prettyPhoto.js",dirname(__FILE__)));
338
  }
339
 
340
  //--------------------------------------------------------------------------------------------------------------//
341
  // CODE FOR CALLING STYLE SHEETS
 
342
  function backend_css_calls()
343
  {
344
- wp_enqueue_style("farbtastic");
345
  wp_enqueue_style("wp-jquery-ui-dialog");
346
  wp_enqueue_style("jquery-ui.css", plugins_url("/assets/css/jquery-ui.css",dirname(__FILE__)));
347
- wp_enqueue_style("jquery.ui.plupload.css", plugins_url("/assets/css/jquery.ui.plupload.css",dirname(__FILE__)));
348
- wp_enqueue_style("stylesheet.css", plugins_url("/assets/css/stylesheet.css",dirname(__FILE__)));
349
- wp_enqueue_style("font-awesome.css", plugins_url("/assets/css/font-awesome/css/font-awesome.css",dirname(__FILE__)));
350
- wp_enqueue_style("system-message.css", plugins_url("/assets/css/system-message.css",dirname(__FILE__)));
351
- wp_enqueue_style("gallery-bank.css", plugins_url("/assets/css/gallery-bank.css",dirname(__FILE__)));
352
  wp_enqueue_style("prettyPhoto.css", plugins_url("/assets/css/prettyPhoto.css",dirname(__FILE__)));
353
  wp_enqueue_style("premium-edition.css", plugins_url("/assets/css/premium-edition.css",dirname(__FILE__)));
354
  wp_enqueue_style("responsive.css", plugins_url("/assets/css/responsive.css",dirname(__FILE__)));
@@ -356,7 +357,7 @@ function backend_css_calls()
356
 
357
  function frontend_plugin_css_scripts_gallery_bank()
358
  {
359
- wp_enqueue_style("gallery-bank.css", plugins_url("/assets/css/gallery-bank.css",dirname(__FILE__)));
360
  wp_enqueue_style("prettyPhoto.css", plugins_url("/assets/css/prettyPhoto.css",dirname(__FILE__)));
361
  }
362
 
@@ -364,124 +365,126 @@ function frontend_plugin_css_scripts_gallery_bank()
364
  // REGISTER AJAX BASED FUNCTIONS TO BE CALLED ON ACTION TYPE AS PER WORDPRESS GUIDELINES
365
  //--------------------------------------------------------------------------------------------------------------//
366
  if (isset($_REQUEST["action"])) {
367
- switch ($_REQUEST["action"]) {
368
- case "add_new_album_library":
369
- add_action("admin_init", "album_gallery_library");
370
- function album_gallery_library()
371
- {
372
- global $wpdb,$current_user,$user_role_permission;
373
- if(is_super_admin())
374
- {
375
- $gb_role = "administrator";
376
- }
377
- else
378
- {
379
- $gb_role = $wpdb->prefix . "capabilities";
380
- $current_user->role = array_keys($current_user->$gb_role);
381
- $gb_role = $current_user->role[0];
382
- }
383
- include_once GALLERY_BK_PLUGIN_DIR . "/lib/add-new-album-class.php";
384
- }
385
- break;
386
- case "front_view_all_albums_library":
387
- add_action("admin_init", "front_view_all_albums_library");
388
- function front_view_all_albums_library()
389
- {
390
- include_once GALLERY_BK_PLUGIN_DIR . "/lib/front-view-all-albums-class.php";
391
- }
392
- break;
393
  case "upload_library":
394
- add_action("admin_init", "upload_library");
395
- function upload_library()
396
- {
397
- global $wpdb,$current_user,$user_role_permission;
398
- if(is_super_admin())
399
- {
400
- $gb_role = "administrator";
401
- }
402
- else
403
- {
404
- $gb_role = $wpdb->prefix . "capabilities";
405
- $current_user->role = array_keys($current_user->$gb_role);
406
- $gb_role = $current_user->role[0];
407
- }
408
  include_once GALLERY_BK_PLUGIN_DIR . "/lib/upload.php";
409
- }
410
- break;
411
- }
412
  }
413
 
414
  /**************************************************************************************************/
415
  add_action("media_buttons_context", "add_gallery_shortcode_button", 1);
416
  function add_gallery_shortcode_button($context)
417
  {
418
- add_thickbox();
419
- $context .= "<a href=\"#TB_inline?width=500&height=500&inlineId=my-gallery-content-id\" class=\"button thickbox\"
420
- title=\"" . __("Add Gallery using Gallery Bank", gallery_bank) . "\"><span class=\"gallery_icon\"></span> Gallery Bank</a>";
421
- return $context;
422
  }
423
 
424
  add_action("admin_footer", "add_gallery_bank_popup");
425
 
426
  function add_gallery_bank_popup()
427
  {
428
- add_thickbox();
429
- require_once GALLERY_BK_PLUGIN_DIR . "/front_views/gallery-bank-shortcode.php";
430
  }
431
 
432
  function gallery_bank_short_code($atts)
433
  {
434
- extract(shortcode_atts(array(
435
- "album_id" => "",
436
- "type" => "",
437
- "format" => "",
438
- "title" => "",
439
- "desc" => "",
440
- "img_in_row" => "",
441
- "responsive" => "",
442
- "albums_in_row" => "",
443
- "special_effect" => "",
444
- "animation_effect" => "",
445
- "image_width" => "",
446
- "album_title" => "",
447
- "show_albums" => "",
448
- "thumb_width" => "",
449
- "thumb_height" => "",
450
- "widget" => "",
451
- ), $atts));
452
- return extract_short_code_for_gallery_images($album_id, $type, $format, $title, $desc, $img_in_row, $responsive, $albums_in_row, $special_effect, $animation_effect, $image_width, $album_title, $show_albums, $thumb_width, $thumb_height, $widget);
453
  }
454
  function extract_short_code_for_gallery_images($album_id, $album_type, $gallery_type, $img_title, $img_desc, $img_in_row, $responsive, $albums_in_row, $special_effect, $animation_effect, $image_width, $album_title, $show_albums, $thumb_width, $thumb_height, $widget)
455
  {
456
- ob_start();
457
- global $wpdb;
458
- include GALLERY_BK_PLUGIN_DIR . "/front_views/includes_common_before.php";
459
-
460
- switch ($album_type) {
461
- case "images":
462
- switch ($gallery_type) {
463
- case "masonry":
464
- include GALLERY_BK_PLUGIN_DIR . "/front_views/masonry-gallery.php";
465
- break;
466
- case "thumbnail":
467
- include GALLERY_BK_PLUGIN_DIR . "/front_views/thumbnail-gallery.php";
468
- break;
469
- }
470
- break;
471
- case "grid":
472
- include GALLERY_BK_PLUGIN_DIR . "/front_views/grid-albums.php";
473
- break;
474
- case "list":
475
- include GALLERY_BK_PLUGIN_DIR . "/front_views/listed-album.php";
476
- break;
477
- case "individual":
478
- include GALLERY_BK_PLUGIN_DIR . "/front_views/single-album.php";
479
- break;
480
- }
481
- include GALLERY_BK_PLUGIN_DIR . "/front_views/includes_common_after.php";
482
- $gallery_bank_output_album = ob_get_clean();
483
- wp_reset_query();
484
- return $gallery_bank_output_album;
 
 
485
  }
486
 
487
  /*****************************************************************************************************************/
73
 
74
  function gallery_bank_albums()
75
  {
76
+ global $wpdb;
77
+ return $wpdb->prefix . "gallery_albums";
78
  }
79
 
80
  function gallery_bank_pics()
81
  {
82
+ global $wpdb;
83
+ return $wpdb->prefix . "gallery_pics";
84
  }
85
 
86
  function gallery_bank_settings()
87
  {
88
+ global $wpdb;
89
+ return $wpdb->prefix . "gallery_settings";
90
  }
91
 
92
  //--------------------------------------------------------------------------------------------------------------//
105
  $current_user->role = array_keys($current_user->$gb_role);
106
  $gb_role = $current_user->role[0];
107
  }
108
+ include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
109
+ include_once GALLERY_BK_PLUGIN_DIR . "/views/dashboard.php";
110
  }
111
 
112
 
150
  }
151
  else
152
  {
153
+ header("Location:admin.php?page=gallery_bank");
154
  }
155
  }
156
 
167
  $current_user->role = array_keys($current_user->$gb_role);
168
  $gb_role = $current_user->role[0];
169
  }
170
+ include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
171
+ include_once GALLERY_BK_PLUGIN_DIR . "/views/settings.php";
172
  }
173
 
174
  function gallery_album_sorting()
184
  $current_user->role = array_keys($current_user->$gb_role);
185
  $gb_role = $current_user->role[0];
186
  }
187
+ include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
188
+ include_once GALLERY_BK_PLUGIN_DIR . "/views/album-sorting.php";
189
  }
190
 
191
  function images_sorting()
201
  $current_user->role = array_keys($current_user->$gb_role);
202
  $gb_role = $current_user->role[0];
203
  }
204
+ include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
205
+ include_once GALLERY_BK_PLUGIN_DIR . "/views/images-sorting.php";
206
  }
207
 
208
  function album_preview()
218
  $current_user->role = array_keys($current_user->$gb_role);
219
  $gb_role = $current_user->role[0];
220
  }
221
+ include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
222
+ include_once GALLERY_BK_PLUGIN_DIR . "/views/album-preview.php";
223
  }
224
 
225
 
236
  $current_user->role = array_keys($current_user->$gb_role);
237
  $gb_role = $current_user->role[0];
238
  }
239
+ include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
240
+ include_once GALLERY_BK_PLUGIN_DIR . "/views/gallery-bank-system-report.php";
241
  }
242
 
243
  function gallery_bank_purchase()
254
  $gb_role = $current_user->role[0];
255
  }
256
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
257
+ include_once GALLERY_BK_PLUGIN_DIR . "/views/purchase_pro_version.php";
258
  }
259
 
260
  function gallery_bank_recommended_plugins()
312
  //--------------------------------------------------------------------------------------------------------------//
313
  function backend_scripts_calls()
314
  {
315
+ wp_enqueue_script("jquery");
316
+ wp_enqueue_script("jquery-ui-draggable");
317
+ wp_enqueue_script("jquery-ui-sortable");
318
+ wp_enqueue_script("jquery-ui-dialog");
319
+ wp_enqueue_script("farbtastic");
320
+ wp_enqueue_script("imgLiquid.js", plugins_url("/assets/js/imgLiquid.js",dirname(__FILE__)));
321
+ wp_enqueue_script("plupload.full.min.js", plugins_url("/assets/js/plupload.full.min.js",dirname(__FILE__)));
322
+ wp_enqueue_script("jquery.dataTables.min.js", plugins_url("/assets/js/jquery.dataTables.min.js",dirname(__FILE__)), array("jquery-ui-widget","jquery-ui-progressbar"),false);
323
+ wp_enqueue_script("jquery.validate.min.js", plugins_url("/assets/js/jquery.validate.min.js",dirname(__FILE__)));
324
+ wp_enqueue_script("jquery.ui.plupload.js", plugins_url("/assets/js/jquery.ui.plupload.js",dirname(__FILE__)));
325
+ wp_enqueue_script("jquery.Tooltip.js", plugins_url("/assets/js/jquery.Tooltip.js",dirname(__FILE__)));
326
+ wp_enqueue_script("bootstrap.js", plugins_url("/assets/js/bootstrap.js",dirname(__FILE__)));
327
  wp_enqueue_script("jquery.prettyPhoto.js", plugins_url("/assets/js/jquery.prettyPhoto.js",dirname(__FILE__)));
328
  wp_enqueue_style("google-fonts-roboto", "http://fonts.googleapis.com/css?family=Roboto Condensed:300|Roboto Condensed:300|Roboto Condensed:300|Roboto Condensed:regular|Roboto Condensed:300");
329
  }
330
 
331
  function frontend_plugin_js_scripts_gallery_bank()
332
  {
333
+ wp_enqueue_script("jquery");
334
+ wp_enqueue_script("jquery.masonry.min.js", plugins_url("/assets/js/jquery.masonry.min.js",dirname(__FILE__)));
335
+ wp_enqueue_script("isotope.pkgd.js", plugins_url("/assets/js/isotope.pkgd.js",dirname(__FILE__)));
336
+ wp_enqueue_script("imgLiquid.js", plugins_url("/assets/js/imgLiquid.js",dirname(__FILE__)));
337
  wp_enqueue_script("jquery.prettyPhoto.js", plugins_url("/assets/js/jquery.prettyPhoto.js",dirname(__FILE__)));
338
  }
339
 
340
  //--------------------------------------------------------------------------------------------------------------//
341
  // CODE FOR CALLING STYLE SHEETS
342
+ //--------------------------------------------------------------------------------------------------------------//
343
  function backend_css_calls()
344
  {
345
+ wp_enqueue_style("farbtastic");
346
  wp_enqueue_style("wp-jquery-ui-dialog");
347
  wp_enqueue_style("jquery-ui.css", plugins_url("/assets/css/jquery-ui.css",dirname(__FILE__)));
348
+ wp_enqueue_style("jquery.ui.plupload.css", plugins_url("/assets/css/jquery.ui.plupload.css",dirname(__FILE__)));
349
+ wp_enqueue_style("stylesheet.css", plugins_url("/assets/css/stylesheet.css",dirname(__FILE__)));
350
+ wp_enqueue_style("font-awesome.css", plugins_url("/assets/css/font-awesome/css/font-awesome.css",dirname(__FILE__)));
351
+ wp_enqueue_style("system-message.css", plugins_url("/assets/css/system-message.css",dirname(__FILE__)));
352
+ wp_enqueue_style("gallery-bank.css", plugins_url("/assets/css/gallery-bank.css",dirname(__FILE__)));
353
  wp_enqueue_style("prettyPhoto.css", plugins_url("/assets/css/prettyPhoto.css",dirname(__FILE__)));
354
  wp_enqueue_style("premium-edition.css", plugins_url("/assets/css/premium-edition.css",dirname(__FILE__)));
355
  wp_enqueue_style("responsive.css", plugins_url("/assets/css/responsive.css",dirname(__FILE__)));
357
 
358
  function frontend_plugin_css_scripts_gallery_bank()
359
  {
360
+ wp_enqueue_style("gallery-bank.css", plugins_url("/assets/css/gallery-bank.css",dirname(__FILE__)));
361
  wp_enqueue_style("prettyPhoto.css", plugins_url("/assets/css/prettyPhoto.css",dirname(__FILE__)));
362
  }
363
 
365
  // REGISTER AJAX BASED FUNCTIONS TO BE CALLED ON ACTION TYPE AS PER WORDPRESS GUIDELINES
366
  //--------------------------------------------------------------------------------------------------------------//
367
  if (isset($_REQUEST["action"])) {
368
+ switch ($_REQUEST["action"]) {
369
+ case "add_new_album_library":
370
+ add_action("admin_init", "album_gallery_library");
371
+ function album_gallery_library()
372
+ {
373
+ global $wpdb,$current_user,$user_role_permission;
374
+ if(is_super_admin())
375
+ {
376
+ $gb_role = "administrator";
377
+ }
378
+ else
379
+ {
380
+ $gb_role = $wpdb->prefix . "capabilities";
381
+ $current_user->role = array_keys($current_user->$gb_role);
382
+ $gb_role = $current_user->role[0];
383
+ }
384
+ include_once GALLERY_BK_PLUGIN_DIR . "/lib/add-new-album-class.php";
385
+ }
386
+ break;
387
+ case "front_view_all_albums_library":
388
+ add_action("admin_init", "front_view_all_albums_library");
389
+ function front_view_all_albums_library()
390
+ {
391
+ include_once GALLERY_BK_PLUGIN_DIR . "/lib/front-view-all-albums-class.php";
392
+ }
393
+ break;
394
  case "upload_library":
395
+ add_action("admin_init", "upload_library");
396
+ function upload_library()
397
+ {
398
+ global $wpdb,$current_user,$user_role_permission;
399
+ if(is_super_admin())
400
+ {
401
+ $gb_role = "administrator";
402
+ }
403
+ else
404
+ {
405
+ $gb_role = $wpdb->prefix . "capabilities";
406
+ $current_user->role = array_keys($current_user->$gb_role);
407
+ $gb_role = $current_user->role[0];
408
+ }
409
  include_once GALLERY_BK_PLUGIN_DIR . "/lib/upload.php";
410
+ }
411
+ break;
412
+ }
413
  }
414
 
415
  /**************************************************************************************************/
416
  add_action("media_buttons_context", "add_gallery_shortcode_button", 1);
417
  function add_gallery_shortcode_button($context)
418
  {
419
+ add_thickbox();
420
+ $context .= "<a href=\"#TB_inline?width=500&height=500&inlineId=my-gallery-content-id\" class=\"button thickbox\"
421
+ title=\"" . __("Add Gallery using Gallery Bank", gallery_bank) . "\"><span class=\"gallery_icon\"></span> Gallery Bank</a>";
422
+ return $context;
423
  }
424
 
425
  add_action("admin_footer", "add_gallery_bank_popup");
426
 
427
  function add_gallery_bank_popup()
428
  {
429
+ add_thickbox();
430
+ require_once GALLERY_BK_PLUGIN_DIR . "/front_views/gallery-bank-shortcode.php";
431
  }
432
 
433
  function gallery_bank_short_code($atts)
434
  {
435
+ extract(shortcode_atts(array(
436
+ "album_id" => "",
437
+ "type" => "",
438
+ "format" => "",
439
+ "title" => "",
440
+ "desc" => "",
441
+ "img_in_row" => "",
442
+ "responsive" => "",
443
+ "albums_in_row" => "",
444
+ "special_effect" => "",
445
+ "animation_effect" => "",
446
+ "image_width" => "",
447
+ "album_title" => "",
448
+ "show_albums" => "",
449
+ "thumb_width" => "",
450
+ "thumb_height" => "",
451
+ "widget" => "",
452
+ ), $atts));
453
+ return extract_short_code_for_gallery_images(intval($album_id), $type, $format, $title, $desc, $img_in_row, $responsive, $albums_in_row, $special_effect, $animation_effect, $image_width, $album_title, urldecode($show_albums), $thumb_width, $thumb_height, $widget);
454
  }
455
  function extract_short_code_for_gallery_images($album_id, $album_type, $gallery_type, $img_title, $img_desc, $img_in_row, $responsive, $albums_in_row, $special_effect, $animation_effect, $image_width, $album_title, $show_albums, $thumb_width, $thumb_height, $widget)
456
  {
457
+ if(preg_match("/^\d+(?:,\d+)*$/", $show_albums) || $show_albums == "all" || $show_albums == "")
458
+ {
459
+ ob_start();
460
+ global $wpdb;
461
+ include GALLERY_BK_PLUGIN_DIR . "/front_views/includes_common_before.php";
462
+ switch ($album_type) {
463
+ case "images":
464
+ switch ($gallery_type) {
465
+ case "masonry":
466
+ include GALLERY_BK_PLUGIN_DIR . "/front_views/masonry-gallery.php";
467
+ break;
468
+ case "thumbnail":
469
+ include GALLERY_BK_PLUGIN_DIR . "/front_views/thumbnail-gallery.php";
470
+ break;
471
+ }
472
+ break;
473
+ case "grid":
474
+ include GALLERY_BK_PLUGIN_DIR . "/front_views/grid-albums.php";
475
+ break;
476
+ case "list":
477
+ include GALLERY_BK_PLUGIN_DIR . "/front_views/listed-album.php";
478
+ break;
479
+ case "individual":
480
+ include GALLERY_BK_PLUGIN_DIR . "/front_views/single-album.php";
481
+ break;
482
+ }
483
+ include GALLERY_BK_PLUGIN_DIR . "/front_views/includes_common_after.php";
484
+ $gallery_bank_output_album = ob_get_clean();
485
+ wp_reset_query();
486
+ return $gallery_bank_output_album;
487
+ }
488
  }
489
 
490
  /*****************************************************************************************************************/
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Gallery Bank - Responsive Photo Gallery ===
2
  Contributors: Gallery-Bank,contact-banker
3
- Tags: add album, add gallery, add picture, add pictures, admin, AJAX, album, banner rotator, best gallery, best gallery plugin, best image slider, best portfolio, bilder, comments, easy media gallery, fancy gallery, filterable gallery, filterable portfolio, foto, fotoalbum, fotogalerie, free photo gallery, fullscreen gallery, galary, galeri, galerie, galerij, galery, gallary, Galleria, gallerie, galleries, gallery, gallery decription, gallery image, gallery lightbox, Gallery Plugin, gallery shortcode, gallery slider, gelary, gellary, gellery, google, grid gallery, html5 player, html5 video, html5-audio, image, image album, image gallery, image gallery plugin, image lightbox, image rotate, image slider, image slideshow, images, images gallery, jquery, jquery gallery, jquery slider, jquery slideshow, lightbox, links, media, media gallery, multiple pictures, nextgen gallery, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photo gallery, Photo Slider, photoalbum, photogallery, photos, photoset, picture, pictures, plugin, plugin for gallery, plugin gallery, portfolio, portfolio gallery, portfolio plugin, Post, posts, responsive gallery, responsive image gallery, responsive slider, responsive slideshow, responsive wordpress photo gallery, seo, seo image, shortcode, sidebar, Simple gallery, slide show, slideshow, thumbnail, twitter, upload images, upload photos, video gallery, view images, view pictures, website gallery, widget, widget gallery, wordpress gallery, wordpress gallery plugin, wordpress photo gallery plugin, wordpress portfolio plugin, wordpress seo, wp gallery, wp gallery plugin, wp gallery plugins, wp slider
4
  Requires at least: 3.4
5
  Tested up to: 4.1
6
- Stable tag: 3.0.101
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -500,6 +500,10 @@ is False in shortcode.
500
 
501
  == Changelog ==
502
 
 
 
 
 
503
  = 3.0.101 =
504
 
505
  * Major bug fixed related to uploader.
1
  === Gallery Bank - Responsive Photo Gallery ===
2
  Contributors: Gallery-Bank,contact-banker
3
+ Tags: admin, gallery, photo gallery, albums, photos, pictures, galleria, photo albums, pics, plugin, wp gallery, best gallery plugin,album, albums, gallery, image, image gallery, images, photo album, photo gallery, plugins
4
  Requires at least: 3.4
5
  Tested up to: 4.1
6
+ Stable tag: 3.0.102
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
500
 
501
  == Changelog ==
502
 
503
+ = 3.0.102 =
504
+
505
+ * Minor Vulnerability Bug fixed related to shortcode as pointed by Goblin Research.
506
+
507
  = 3.0.101 =
508
 
509
  * Major bug fixed related to uploader.