Gallery Bank: WordPress Photo Gallery Plugin - Version 2.0.3

Version Description

  • Plugin Update Conflicts Fixed
Download this release

Release Info

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

Code changes from version 2.0.2 to 2.0.3

gallery-bank.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://gallery-bank.com
5
  Description: Gallery Bank is an interactive WordPress photo gallery plugin, best fit for creative and corporate portfolio websites.
6
  Author: Gallery-Bank
7
- Version: 2.0.2
8
  Author URI: http://gallery-bank.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -45,8 +45,10 @@ function plugin_load_textdomain()
45
  load_plugin_textdomain(gallery_bank, false, GALLERY_BK_PLUGIN_DIRNAME .'/languages');
46
  }
47
  }
 
48
  /*************************************************************************************/
49
  add_action('plugins_loaded', 'plugin_load_textdomain');
50
  register_activation_hook(__FILE__,'plugin_install_script_for_gallery_bank');
 
51
  /*************************************************************************************/
52
  ?>
4
  Plugin URI: http://gallery-bank.com
5
  Description: Gallery Bank is an interactive WordPress photo gallery plugin, best fit for creative and corporate portfolio websites.
6
  Author: Gallery-Bank
7
+ Version: 2.0.3
8
  Author URI: http://gallery-bank.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
45
  load_plugin_textdomain(gallery_bank, false, GALLERY_BK_PLUGIN_DIRNAME .'/languages');
46
  }
47
  }
48
+
49
  /*************************************************************************************/
50
  add_action('plugins_loaded', 'plugin_load_textdomain');
51
  register_activation_hook(__FILE__,'plugin_install_script_for_gallery_bank');
52
+
53
  /*************************************************************************************/
54
  ?>
install-script.php CHANGED
@@ -123,7 +123,16 @@ if (count($wpdb->get_var('SHOW TABLES LIKE "' . gallery_bank_albums() . '"')) !=
123
  );
124
  if($check_album_id == 0)
125
  {
126
- $default_setting = "image_size:".$thumbnail.";width:".$check[$flag]->image_width.";height:".$check[$flag]->image_height.";images_in_row:".$check[$flag]->images_in_row.";image_opacity:1;image_border_size:".$check[$flag]->border_width."px;image_border_radius:2px;image_border_color:rgb(".HexToRGB($check[$flag]->border_color).")/cover_size:1;width:160px;height:120px;cover_opacity:1;cover_border_size:2px;cover_border_radius:2px;border_color:rgb(0, 0, 0);/overlay_opacity:0.6;overlay_border_size:0px;overlay_border_radius:0px;text_color:rgb(0, 0, 0);overlay_border_color:rgb(255, 255, 255);inline_bg_color:rgb(255, 255, 255);overlay_bg_color:rgb(0, 0, 0);/autoplay:".$check[$flag]->slideshow.";slide_interval:".$check[$flag]->slideshow_interval.";/pagination:1;";
 
 
 
 
 
 
 
 
 
127
  $wpdb->query
128
  (
129
  $wpdb->prepare
@@ -322,5 +331,22 @@ if (count($wpdb->get_var('SHOW TABLES LIKE "' . gallery_bank_albums() . '"')) !=
322
  )
323
  );
324
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
325
  }
326
  ?>
123
  );
124
  if($check_album_id == 0)
125
  {
126
+
127
+ if($check[$flag]->images_in_row == "")
128
+ {
129
+ $images_row = 3;
130
+ }
131
+ else
132
+ {
133
+ $images_row = $check[$flag]->images_in_row;
134
+ }
135
+ $default_setting = "image_size:".$thumbnail.";width:".$check[$flag]->image_width.";height:".$check[$flag]->image_height.";images_in_row:".$images_row.";image_opacity:1;image_border_size:".$check[$flag]->border_width."px;image_border_radius:2px;image_border_color:rgb(".HexToRGB($check[$flag]->border_color).")/cover_size:1;width:160px;height:120px;cover_opacity:1;cover_border_size:2px;cover_border_radius:2px;border_color:rgb(0, 0, 0);/overlay_opacity:0.6;overlay_border_size:0px;overlay_border_radius:0px;text_color:rgb(0, 0, 0);overlay_border_color:rgb(255, 255, 255);inline_bg_color:rgb(255, 255, 255);overlay_bg_color:rgb(0, 0, 0);/autoplay:".$check[$flag]->slideshow.";slide_interval:".$check[$flag]->slideshow_interval.";/pagination:1;";
136
  $wpdb->query
137
  (
138
  $wpdb->prepare
331
  )
332
  );
333
  }
334
+ $check10 = $wpdb->get_var
335
+ (
336
+ $wpdb->prepare
337
+ (
338
+ "SHOW COLUMNS FROM " . gallery_bank_pics() . " LIKE 'sorting_order'",""
339
+ )
340
+ );
341
+ if($check10 != "sorting_order")
342
+ {
343
+ $wpdb->query
344
+ (
345
+ $wpdb->prepare
346
+ (
347
+ "ALTER TABLE " . gallery_bank_pics() . " ADD sorting_order INTEGER(10) NOT NULL",""
348
+ )
349
+ );
350
+ }
351
  }
352
  ?>
lib/gallery-bank-class.php CHANGED
@@ -119,6 +119,7 @@ function frontend_plugin_js_scripts_gallery_bank()
119
  {
120
  wp_enqueue_script('jquery');
121
  wp_enqueue_script('jquery.titanlighbox.js', GALLERY_BK_PLUGIN_URL .'/assets/js/jquery.titanlighbox.js');
 
122
  wp_enqueue_script('jquery.dataTables.min.js', GALLERY_BK_PLUGIN_URL .'/assets/js/plugins/tables/jquery.dataTables.min.js');
123
 
124
  }
@@ -242,7 +243,6 @@ add_action('admin_menu','create_global_menus_for_gallery_bank');
242
  add_shortcode('gallery_bank', 'gallery_bank_short_code' );
243
  add_shortcode('gallery_bank_album_cover', 'gallery_bank_short_code_album');
244
  add_shortcode('gallery_bank_all_albums', 'gallery_bank_short_code_all_albums');
245
- remove_filter( 'the_content', 'wpautop' );
246
  add_filter('widget_text', 'do_shortcode');
247
  class GalleryAllAlbumsWidget extends WP_Widget
248
  {
@@ -290,17 +290,28 @@ class GalleryAllAlbumsWidget extends WP_Widget
290
  }
291
  function widget($args, $instance)
292
  {
 
 
 
 
 
 
 
 
 
293
  extract($args, EXTR_SKIP);
294
  echo $before_widget;
295
  $title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
296
- if (!empty($title))
297
 
298
- if($instance['galleryid'] != 0)
299
  {
300
- echo $before_title . $title . $after_title;
301
- $shortcode_for_albums = "[gallery_bank album_id=" . $instance['galleryid'] . "]";
302
- echo do_shortcode( $shortcode_for_albums );
303
- echo $after_widget;
 
 
 
304
  }
305
 
306
 
119
  {
120
  wp_enqueue_script('jquery');
121
  wp_enqueue_script('jquery.titanlighbox.js', GALLERY_BK_PLUGIN_URL .'/assets/js/jquery.titanlighbox.js');
122
+ wp_enqueue_script('bootstrap.min.js', GALLERY_BK_PLUGIN_URL .'/assets/js/plugins/bootstrap/bootstrap.min.js');
123
  wp_enqueue_script('jquery.dataTables.min.js', GALLERY_BK_PLUGIN_URL .'/assets/js/plugins/tables/jquery.dataTables.min.js');
124
 
125
  }
243
  add_shortcode('gallery_bank', 'gallery_bank_short_code' );
244
  add_shortcode('gallery_bank_album_cover', 'gallery_bank_short_code_album');
245
  add_shortcode('gallery_bank_all_albums', 'gallery_bank_short_code_all_albums');
 
246
  add_filter('widget_text', 'do_shortcode');
247
  class GalleryAllAlbumsWidget extends WP_Widget
248
  {
290
  }
291
  function widget($args, $instance)
292
  {
293
+ global $wpdb;
294
+ $albums = $wpdb->get_var
295
+ (
296
+ $wpdb->prepare
297
+ (
298
+ "SELECT count(*) FROM ". gallery_bank_albums() . " WHERE album_id = %d",
299
+ $instance['galleryid']
300
+ )
301
+ );
302
  extract($args, EXTR_SKIP);
303
  echo $before_widget;
304
  $title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
 
305
 
306
+ if($albums > 0)
307
  {
308
+ if($instance['galleryid'] != 0)
309
+ {
310
+ echo $before_title . $title . $after_title;
311
+ $shortcode_for_albums = "[gallery_bank album_id=" . $instance['galleryid'] . "]";
312
+ echo do_shortcode( $shortcode_for_albums );
313
+ echo $after_widget;
314
+ }
315
  }
316
 
317
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Gallery-Bank
3
  Tags: gallery, image, gallery images, album, foto, fotoalbum, website gallery, multiple pictures, pictures, photo, photoalbum, photogallery, photo gallery, lightbox,media, nextgen, nextgen gallery,photo, photo albums, picture, pictures, thumbnails, slideshow
4
  Requires at least: 3.0
5
  Tested up to: 3.5.2
6
- Stable tag: 2.0.2
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -134,6 +134,10 @@ With this bulk deletion feature, you can now delete the pictures you want in bul
134
 
135
  == Changelog ==
136
 
 
 
 
 
137
  = 2.0.2 =
138
 
139
  * CSS Conflicts Fixed
3
  Tags: gallery, image, gallery images, album, foto, fotoalbum, website gallery, multiple pictures, pictures, photo, photoalbum, photogallery, photo gallery, lightbox,media, nextgen, nextgen gallery,photo, photo albums, picture, pictures, thumbnails, slideshow
4
  Requires at least: 3.0
5
  Tested up to: 3.5.2
6
+ Stable tag: 2.0.3
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
134
 
135
  == Changelog ==
136
 
137
+ = 2.0.3 =
138
+
139
+ * Plugin Update Conflicts Fixed
140
+
141
  = 2.0.2 =
142
 
143
  * CSS Conflicts Fixed