Photo Gallery by WD – Responsive Photo Gallery - Version 1.4.7

Version Description

  • Fixed: Gallery save in some cases.
  • Fixed: Thumbnails count in thumbnail view.
  • Fixed: Thumbnails alignment in thumbnail view.
  • Fixed: Conflict with some themes.
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Photo Gallery by WD – Responsive Photo Gallery
Version 1.4.7
Comparing to
See all releases

Code changes from version 1.4.6 to 1.4.7

admin/models/Galleries.php CHANGED
@@ -347,7 +347,6 @@ class GalleriesModel_bwg {
347
  }
348
 
349
  $data = array(
350
- 'id' => $id,
351
  'name' => $name,
352
  'slug' => $slug,
353
  'description' => WDWLibrary::get('description', '', FALSE),
@@ -363,12 +362,15 @@ class GalleriesModel_bwg {
363
  'update_flag' => WDWLibrary::get('update_flag', ''),
364
  'modified_date' => WDWLibrary::get('modified_date', time() )
365
  );
366
- $saved = $wpdb->replace($wpdb->prefix . 'bwg_gallery', $data);
 
 
 
 
 
 
367
 
368
  if ( $saved !== FALSE ) {
369
- if ( $id == 0 ) {
370
- $id = $wpdb->insert_id;
371
- }
372
  // Create custom post (type is gallery).
373
  $custom_post_params = array(
374
  'id' => $id,
347
  }
348
 
349
  $data = array(
 
350
  'name' => $name,
351
  'slug' => $slug,
352
  'description' => WDWLibrary::get('description', '', FALSE),
362
  'update_flag' => WDWLibrary::get('update_flag', ''),
363
  'modified_date' => WDWLibrary::get('modified_date', time() )
364
  );
365
+ if ( $id == 0 ) {
366
+ $saved = $wpdb->insert($wpdb->prefix . 'bwg_gallery', $data);
367
+ $id = $wpdb->insert_id;
368
+ }
369
+ else {
370
+ $saved = $wpdb->update($wpdb->prefix . 'bwg_gallery', $data, array( 'id' => $id ));
371
+ }
372
 
373
  if ( $saved !== FALSE ) {
 
 
 
374
  // Create custom post (type is gallery).
375
  $custom_post_params = array(
376
  'id' => $id,
css/bwg_frontend.css CHANGED
@@ -535,3 +535,6 @@ div[id^="bwg_container"] .bwg-border-box * {
535
  display: inline-block;
536
  }
537
 
 
 
 
535
  display: inline-block;
536
  }
537
 
538
+ .bwg_container div[id^="bwg_container2_"] img {
539
+ height: initial;
540
+ }
frontend/views/BWGViewThumbnails.php CHANGED
@@ -87,7 +87,7 @@ class BWGViewThumbnails extends BWGViewSite {
87
  $rgb_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->thumbs_bg_color);
88
  ?>
89
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?> {
90
- width: <?php echo $params['image_column_number'] * $params['thumb_width']; ?>px;
91
  justify-content: <?php echo $theme_row->thumb_align; ?>;
92
  background-color: rgba(<?php echo $rgb_thumbs_bg_color['red']; ?>, <?php echo $rgb_thumbs_bg_color['green']; ?>, <?php echo $rgb_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->thumb_bg_transparent / 100, 2, ".", ""); ?>);
93
  <?php
87
  $rgb_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->thumbs_bg_color);
88
  ?>
89
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?> {
90
+ width: <?php echo ($params['image_column_number'] * $params['thumb_width']) + ($theme_row->container_margin ? $theme_row->thumb_margin : 0); ?>px;
91
  justify-content: <?php echo $theme_row->thumb_align; ?>;
92
  background-color: rgba(<?php echo $rgb_thumbs_bg_color['red']; ?>, <?php echo $rgb_thumbs_bg_color['green']; ?>, <?php echo $rgb_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->thumb_bg_transparent / 100, 2, ".", ""); ?>);
93
  <?php
photo-gallery.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
5
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
6
- * Version: 1.4.6
7
  * Author: Photo Gallery Team
8
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -80,8 +80,8 @@ final class BWG {
80
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
81
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
82
  $this->main_file = plugin_basename(__FILE__);
83
- $this->plugin_version = '1.4.6';
84
- $this->db_version = '1.4.6';
85
  $this->prefix = 'bwg';
86
  $this->nicename = __('Photo Gallery', $this->prefix);
87
 
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
5
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
6
+ * Version: 1.4.7
7
  * Author: Photo Gallery Team
8
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
80
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
81
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
82
  $this->main_file = plugin_basename(__FILE__);
83
+ $this->plugin_version = '1.4.7';
84
+ $this->db_version = '1.4.7';
85
  $this->prefix = 'bwg';
86
  $this->nicename = __('Photo Gallery', $this->prefix);
87
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado,wdsupport,photogallerysupport
3
  Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
- Stable tag: 1.4.6
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -279,6 +279,13 @@ Choose whether to display random or the first/last specific number of images.
279
 
280
  == Changelog ==
281
 
 
 
 
 
 
 
 
282
  = 1.4.6 =
283
  * Fixed: "The loopback request to your site failed" error.
284
  * Fixed: Import large amount of images from media library.
3
  Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
+ Stable tag: 1.4.7
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
279
 
280
  == Changelog ==
281
 
282
+ = 1.4.7 =
283
+ * Fixed: Gallery save in some cases.
284
+ * Fixed: Thumbnails count in thumbnail view.
285
+ * Fixed: Thumbnails alignment in thumbnail view.
286
+ * Fixed: Conflict with some themes.
287
+
288
+
289
  = 1.4.6 =
290
  * Fixed: "The loopback request to your site failed" error.
291
  * Fixed: Import large amount of images from media library.