Photo Gallery by WD – Responsive Photo Gallery - Version 1.5.3

Version Description

  • Fixed: Gallery widget with all images.
Download this release

Release Info

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

Code changes from version 1.5.2 to 1.5.3

admin/views/Widget.php CHANGED
@@ -122,7 +122,7 @@ class WidgetView_bwg {
122
  <p id="p_galleries" style="display:<?php echo ($instance['type'] == "gallery") ? "" : "none" ?>;">
123
  <label for="<?php echo $id_gallery_id; ?>"><?php _e('Galleries:', BWG()->prefix); ?></label><br>
124
  <select name="<?php echo $name_gallery_id; ?>" id="<?php echo $id_gallery_id; ?>" class="widefat">
125
- <option value="0"><?php _e('Select', BWG()->prefix); ?></option>
126
  <?php
127
  foreach ($gallery_rows as $gallery_row) {
128
  ?>
122
  <p id="p_galleries" style="display:<?php echo ($instance['type'] == "gallery") ? "" : "none" ?>;">
123
  <label for="<?php echo $id_gallery_id; ?>"><?php _e('Galleries:', BWG()->prefix); ?></label><br>
124
  <select name="<?php echo $name_gallery_id; ?>" id="<?php echo $id_gallery_id; ?>" class="widefat">
125
+ <option value="0"><?php _e('All images', BWG()->prefix); ?></option>
126
  <?php
127
  foreach ($gallery_rows as $gallery_row) {
128
  ?>
frontend/controllers/controller.php CHANGED
@@ -443,7 +443,7 @@ class BWGControllerSite {
443
  if( !empty($gallery_row) && isset($gallery_row->published) && $gallery_row->published == 0 ) {
444
  return;
445
  }
446
- if ( (empty($gallery_row) && $params['type'] == '' && $params["tag"] == 0) || ( !empty($params['from']) && $params['from'] == 'widget' && $gallery_row->id == 0) ) {
447
  echo WDWLibrary::message(__('There is no gallery selected or the gallery was deleted.', BWG()->prefix), 'wd_error');
448
  return;
449
  }
443
  if( !empty($gallery_row) && isset($gallery_row->published) && $gallery_row->published == 0 ) {
444
  return;
445
  }
446
+ if ( empty($gallery_row) && $params['type'] == '' && $params["tag"] == 0 ) {
447
  echo WDWLibrary::message(__('There is no gallery selected or the gallery was deleted.', BWG()->prefix), 'wd_error');
448
  return;
449
  }
frontend/models/model.php CHANGED
@@ -38,7 +38,6 @@ class BWGModelSite {
38
  $row = new stdClass();
39
  $row->id = 0;
40
  $row->name = '';
41
-
42
  }
43
  }
44
 
38
  $row = new stdClass();
39
  $row->id = 0;
40
  $row->name = '';
 
41
  }
42
  }
43
 
photo-gallery.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/
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.2
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/pricing/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -81,8 +81,8 @@ final class BWG {
81
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
82
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
83
  $this->main_file = plugin_basename(__FILE__);
84
- $this->plugin_version = '1.5.2';
85
- $this->db_version = '1.5.2';
86
  $this->prefix = 'bwg';
87
  $this->nicename = __('Photo Gallery', $this->prefix);
88
 
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/
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.3
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/pricing/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
81
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
82
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
83
  $this->main_file = plugin_basename(__FILE__);
84
+ $this->plugin_version = '1.5.3';
85
+ $this->db_version = '1.5.3';
86
  $this->prefix = 'bwg';
87
  $this->nicename = __('Photo Gallery', $this->prefix);
88
 
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: 4.9
6
- Stable tag: 1.5.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -279,6 +279,9 @@ Choose whether to display random or the first/last specific number of images.
279
 
280
  == Changelog ==
281
 
 
 
 
282
  = 1.5.2 =
283
  * Fixed: Changed gallery index number on ID.
284
  * Fixed: Conflict with lazy load.
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.5.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
279
 
280
  == Changelog ==
281
 
282
+ = 1.5.3 =
283
+ * Fixed: Gallery widget with all images.
284
+
285
  = 1.5.2 =
286
  * Fixed: Changed gallery index number on ID.
287
  * Fixed: Conflict with lazy load.