Photo Gallery by WD – Responsive Photo Gallery - Version 1.3.32

Version Description

  • Fixed: Filemanager.
  • Fixed: JPEG quality on image reset.
Download this release

Release Info

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

Code changes from version 1.3.31 to 1.3.32

admin/controllers/BWGControllerGalleries_bwg.php CHANGED
@@ -314,7 +314,7 @@ class BWGControllerGalleries_bwg {
314
  case 2:
315
  $src_img = @imagecreatefromjpeg($file_path);
316
  $write_image = 'imagejpeg';
317
- $image_quality = 90;
318
  break;
319
  case 1:
320
  @imagecolortransparent($new_img, @imagecolorallocate($new_img, 0, 0, 0));
314
  case 2:
315
  $src_img = @imagecreatefromjpeg($file_path);
316
  $write_image = 'imagejpeg';
317
+ $image_quality = 100;
318
  break;
319
  case 1:
320
  @imagecolortransparent($new_img, @imagecolorallocate($new_img, 0, 0, 0));
css/bwg_frontend.css CHANGED
@@ -106,6 +106,7 @@ div[id^="bwg_container"] div[id^="bwg_container"] .bwg_img_clear {
106
  -webkit-animation: spin 2.5s infinite linear;*/
107
  }
108
 
 
109
  .bwg_filmstrip_thumbnail_img {
110
  max-width: none;
111
  }
106
  -webkit-animation: spin 2.5s infinite linear;*/
107
  }
108
 
109
+ img[class^="bwg_filmstrip_thumbnail_img"],
110
  .bwg_filmstrip_thumbnail_img {
111
  max-width: none;
112
  }
filemanager/model.php CHANGED
@@ -51,12 +51,12 @@ class FilemanagerModel {
51
  $data['all_files'] = $get_files_data['all_files'];
52
  $data['element_load_count'] = $this->element_load_count;
53
  $media_library_files = ($wd_bwg_options->enable_ML_import ? $this->get_media_library_files($session_data['sort_by'], $session_data['sort_order']) : array());
54
- if(!empty($media_library_files)){
55
  $data['media_library_files'] = $media_library_files["files"];
56
  $data['importer_files_count'] = $media_library_files["importer_files_count"];
57
  $data['media_library_files_all'] = $media_library_files["media_library_files_all"];
58
  }
59
- else{
60
  $data['media_library_files'] = array();
61
  $data['importer_files_count'] = array();
62
  $data['media_library_files_all'] = array();
51
  $data['all_files'] = $get_files_data['all_files'];
52
  $data['element_load_count'] = $this->element_load_count;
53
  $media_library_files = ($wd_bwg_options->enable_ML_import ? $this->get_media_library_files($session_data['sort_by'], $session_data['sort_order']) : array());
54
+ if ( !empty($media_library_files) ) {
55
  $data['media_library_files'] = $media_library_files["files"];
56
  $data['importer_files_count'] = $media_library_files["importer_files_count"];
57
  $data['media_library_files_all'] = $media_library_files["media_library_files_all"];
58
  }
59
+ else {
60
  $data['media_library_files'] = array();
61
  $data['importer_files_count'] = array();
62
  $data['media_library_files_all'] = array();
filemanager/view.php CHANGED
@@ -82,9 +82,9 @@ class FilemanagerView {
82
  var callback = "<?php echo (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : ''); ?>";
83
  var sortBy = "<?php echo $sort_by; ?>";
84
  var sortOrder = "<?php echo $sort_order; ?>";
85
- var wdb_all_files = <?php echo (json_encode($file_manager_data["all_files"], true)); ?>;
86
- var media_library_files = <?php echo (json_encode($file_manager_data["media_library_files_all"], true)); ?>;
87
- var element_load_count = <?php echo (json_encode($file_manager_data["element_load_count"], true)); ?>;
88
  </script>
89
  <script src="<?php echo WD_BWG_URL; ?>/filemanager/js/default.js?ver=<?php echo wd_bwg_version(); ?>"></script>
90
  <link href="<?php echo WD_BWG_URL; ?>/filemanager/css/default.css?ver=<?php echo wd_bwg_version(); ?>" type="text/css" rel="stylesheet">
82
  var callback = "<?php echo (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : ''); ?>";
83
  var sortBy = "<?php echo $sort_by; ?>";
84
  var sortOrder = "<?php echo $sort_order; ?>";
85
+ var wdb_all_files = <?php echo isset($file_manager_data["all_files"]) ? json_encode($file_manager_data["all_files"], true) : ""; ?>;
86
+ var media_library_files = <?php echo isset($file_manager_data["media_library_files_all"]) ? json_encode($file_manager_data["media_library_files_all"], true) : ""; ?>;
87
+ var element_load_count = <?php echo isset($file_manager_data["element_load_count"]) ? json_encode($file_manager_data["element_load_count"], true) : ""; ?>;
88
  </script>
89
  <script src="<?php echo WD_BWG_URL; ?>/filemanager/js/default.js?ver=<?php echo wd_bwg_version(); ?>"></script>
90
  <link href="<?php echo WD_BWG_URL; ?>/filemanager/css/default.css?ver=<?php echo wd_bwg_version(); ?>" type="text/css" rel="stylesheet">
photo-gallery.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
6
  * 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.
7
- * Version: 1.3.31
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -1617,7 +1617,7 @@ function bwg_activate() {
1617
  ));
1618
  }
1619
  $version = get_option('wd_bwg_version');
1620
- $new_version = '1.3.31';
1621
  if ($version && version_compare($version, $new_version, '<')) {
1622
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1623
  bwg_update($version);
@@ -1669,7 +1669,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
1669
 
1670
  function bwg_update_hook() {
1671
  $version = get_option('wd_bwg_version');
1672
- $new_version = '1.3.31';
1673
  if ($version && version_compare($version, $new_version, '<')) {
1674
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1675
  bwg_update($version);
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
6
  * 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.
7
+ * Version: 1.3.32
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
1617
  ));
1618
  }
1619
  $version = get_option('wd_bwg_version');
1620
+ $new_version = '1.3.32';
1621
  if ($version && version_compare($version, $new_version, '<')) {
1622
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1623
  bwg_update($version);
1669
 
1670
  function bwg_update_hook() {
1671
  $version = get_option('wd_bwg_version');
1672
+ $new_version = '1.3.32';
1673
  if ($version && version_compare($version, $new_version, '<')) {
1674
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1675
  bwg_update($version);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
  Tags: content gallery, gallery, gallery image, image gallery, images gallery, lightbox gallery, media gallery, photo gallery, responsive gallery, thumbnail gallery, wordpress gallery, youtube gallery
5
  Requires at least: 3.4
6
  Tested up to: 4.7
7
- Stable tag: 1.3.31
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -175,6 +175,10 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
175
 
176
  == Changelog ==
177
 
 
 
 
 
178
  = 1.3.31 =
179
  * Added: Open lightbox from slideshow and carousel views.
180
  * Changed: Download original image from frontend.
4
  Tags: content gallery, gallery, gallery image, image gallery, images gallery, lightbox gallery, media gallery, photo gallery, responsive gallery, thumbnail gallery, wordpress gallery, youtube gallery
5
  Requires at least: 3.4
6
  Tested up to: 4.7
7
+ Stable tag: 1.3.32
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
175
 
176
  == Changelog ==
177
 
178
+ = 1.3.32 =
179
+ * Fixed: Filemanager.
180
+ * Fixed: JPEG quality on image reset.
181
+
182
  = 1.3.31 =
183
  * Added: Open lightbox from slideshow and carousel views.
184
  * Changed: Download original image from frontend.