Photo Gallery by WD – Responsive Photo Gallery - Version 1.5.40

Version Description

  • Fixed: Opening lightbox from widget.
Download this release

Release Info

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

Code changes from version 1.5.39 to 1.5.40

framework/WDWSitemap.php CHANGED
@@ -77,13 +77,15 @@ final class WDWSitemap {
77
  $pairs['ajax'] = $params['ajax'];
78
  }
79
  $images = $this->get_shortcode_images( $pairs );
80
- foreach ( $images as $image ) {
81
- if ( strpos($image->filetype, 'EMBED') === FALSE ) {
82
- $this->images[] = array(
83
- 'src' => BWG()->upload_url . $image->image_url_raw,
84
- 'title' => $image->alt,
85
- 'alt' => $image->alt
86
- );
 
 
87
  }
88
  }
89
  }
77
  $pairs['ajax'] = $params['ajax'];
78
  }
79
  $images = $this->get_shortcode_images( $pairs );
80
+ if ( is_array( $images ) ) {
81
+ foreach ( $images as $image ) {
82
+ if ( strpos($image->filetype, 'EMBED') === FALSE ) {
83
+ $this->images[] = array(
84
+ 'src' => BWG()->upload_url . $image->image_url_raw,
85
+ 'title' => $image->alt,
86
+ 'alt' => $image->alt
87
+ );
88
+ }
89
  }
90
  }
91
  }
frontend/controllers/controller.php CHANGED
@@ -347,7 +347,7 @@ class BWGControllerSite {
347
  'tag' => (isset($params['tag']) ? $params['tag'] : 0),
348
  'theme_id' => $params['theme_id'],
349
  'shortcode_id' => isset($params['id']) ? $params['id'] : 0,
350
- 'sort_by' => $params['sort_by'], // For widgets.
351
  'order_by' => $params['order_by'], // For widgets.
352
  'current_url' => urlencode( $params['current_url'] ),
353
  );
347
  'tag' => (isset($params['tag']) ? $params['tag'] : 0),
348
  'theme_id' => $params['theme_id'],
349
  'shortcode_id' => isset($params['id']) ? $params['id'] : 0,
350
+ 'sort_by' => ($params['sort_by'] == 'random') ? 'casual' : $params['sort_by'], // For widgets.
351
  'order_by' => $params['order_by'], // For widgets.
352
  'current_url' => urlencode( $params['current_url'] ),
353
  );
frontend/models/BWGModelGalleryBox.php CHANGED
@@ -23,7 +23,7 @@ class BWGModelGalleryBox {
23
  if ( $sort_by == 'size' || $sort_by == 'resolution' ) {
24
  $sort_by = ' CAST(image.' . $sort_by . ' AS SIGNED) ';
25
  }
26
- elseif ($sort_by == 'random' || $sort_by == 'RAND()') {
27
  $sort_by = 'RAND()';
28
  }
29
  elseif (($sort_by != 'alt') && ($sort_by != 'date') && ($sort_by != 'filetype') && ($sort_by != 'filename')) {
23
  if ( $sort_by == 'size' || $sort_by == 'resolution' ) {
24
  $sort_by = ' CAST(image.' . $sort_by . ' AS SIGNED) ';
25
  }
26
+ elseif ( $sort_by == 'casual' ) {
27
  $sort_by = 'RAND()';
28
  }
29
  elseif (($sort_by != 'alt') && ($sort_by != 'date') && ($sort_by != 'filetype') && ($sort_by != 'filename')) {
photo-gallery.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/?utm_source=photo_gallery&utm_medium=free_plugin
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.5.39
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/plugins/?utm_source=photo_gallery&utm_medium=free_plugin
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -86,8 +86,8 @@ final class BWG {
86
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
87
  $this->front_url = $this->plugin_url;
88
  $this->main_file = plugin_basename(__FILE__);
89
- $this->plugin_version = '1.5.39';
90
- $this->db_version = '1.5.39';
91
  $this->prefix = 'bwg';
92
  $this->nicename = __('Photo Gallery', $this->prefix);
93
 
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/?utm_source=photo_gallery&utm_medium=free_plugin
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.5.40
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/plugins/?utm_source=photo_gallery&utm_medium=free_plugin
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
86
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
87
  $this->front_url = $this->plugin_url;
88
  $this->main_file = plugin_basename(__FILE__);
89
+ $this->plugin_version = '1.5.40';
90
+ $this->db_version = '1.5.40';
91
  $this->prefix = 'bwg';
92
  $this->nicename = __('Photo Gallery', $this->prefix);
93
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado,wdsupport,photogallerysupport,10web
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: 5.3
6
- Stable tag: 1.5.39
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -80,7 +80,7 @@ Photo Gallery comes with a number of add-ons that can help you sell digital imag
80
 
81
 
82
  = SETTINGS/CUSTOMIZATION =
83
- *Some customizations described here are available in Premium version. Please refer to feature summary for additional info.
84
 
85
  Photo Gallery allows you to create unlimited galleries and organize them into different photo albums providing detailed gallery descriptions and tags.The plugin supports both image and video content (Premium feature).
86
  Adding photos and videos to the galleries from the WordPress dashboard is simple and easy with its user-friendly admin panel. You’ll get all the tools you need to add and edit photos in the galleries.The file manager will help to rename, upload, remove, copy images and/or image directories with a few simple steps. Under the options (settings) tab in admin panel you’ll find an extensive list of settings for galleries, thumbnails,watermarking,social accounts and slideshow that you can configure based on your needs. Plugin features a powerful lightbox that supports filmstrip and image carousel display. Also, you can enable image comments options and show the comments of the images right in the lightbox (Premium feature). There is a dedicated section for lightbox settings where you can choose to enable/disable AddThis display, image download option, image count,and other lightbox features.
@@ -282,6 +282,9 @@ Choose whether to display random or the first/last specific number of images.
282
 
283
  == Changelog ==
284
 
 
 
 
285
  = 1.5.39 =
286
  * Fixed: Control buttons container height.
287
  * Fixed: Allow to write url as advertisement text.
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: 5.3
6
+ Stable tag: 1.5.40
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
80
 
81
 
82
  = SETTINGS/CUSTOMIZATION =
83
+ *Some customizations described here are available in [Premium version](https://10web.io/plugins/wordpress-photo-gallery/) . Please refer to feature summary for additional info.
84
 
85
  Photo Gallery allows you to create unlimited galleries and organize them into different photo albums providing detailed gallery descriptions and tags.The plugin supports both image and video content (Premium feature).
86
  Adding photos and videos to the galleries from the WordPress dashboard is simple and easy with its user-friendly admin panel. You’ll get all the tools you need to add and edit photos in the galleries.The file manager will help to rename, upload, remove, copy images and/or image directories with a few simple steps. Under the options (settings) tab in admin panel you’ll find an extensive list of settings for galleries, thumbnails,watermarking,social accounts and slideshow that you can configure based on your needs. Plugin features a powerful lightbox that supports filmstrip and image carousel display. Also, you can enable image comments options and show the comments of the images right in the lightbox (Premium feature). There is a dedicated section for lightbox settings where you can choose to enable/disable AddThis display, image download option, image count,and other lightbox features.
282
 
283
  == Changelog ==
284
 
285
+ = 1.5.40 =
286
+ * Fixed: Opening lightbox from widget.
287
+
288
  = 1.5.39 =
289
  * Fixed: Control buttons container height.
290
  * Fixed: Allow to write url as advertisement text.