Photo Gallery by WD – Responsive Photo Gallery - Version 1.1.20

Version Description

  • bug fixed on lightbox
Download this release

Release Info

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

Code changes from version 1.1.19 to 1.1.20

frontend/views/BWGViewGalleryBox.php CHANGED
@@ -1300,12 +1300,14 @@ class BWGViewGalleryBox {
1300
  var next_image_class = current_image_class == ".bwg_popup_image_second_spun" ? ".bwg_popup_image_spun" : ".bwg_popup_image_second_spun";
1301
 
1302
  var is_video = data[key]['filetype'] == "YOUTUBE" || data[key]['filetype'] == "VIMEO";
 
 
1303
  var innhtml = '<span class="bwg_popup_image_spun1" style="display: table; width: inherit; height: inherit;"><span class="bwg_popup_image_spun2" style="display: table-cell; vertical-align: middle; text-align: center;">';
1304
  if (!is_video) {
1305
- innhtml += '<img class="bwg_popup_image" src="<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR; ?>' + jQuery('<div />').html(data[key]["image_url"]).text() + '" alt="' + jQuery('<div />').html(data[key]["alt"]).text() + '" />';
1306
  }
1307
  else {
1308
- innhtml += '<span class="bwg_popup_video"><iframe class="bwg_video_frame" src="' + (data[key]['filetype'] == "YOUTUBE" ? "//www.youtube.com/embed/" + data[key]['filename'] + "?enablejsapi=1" : "//player.vimeo.com/video/" + data[key]['filename'] + "?api=1") + '" frameborder="0" allowfullscreen style="width:100%; height:100%;"></iframe></span>';
1309
  }
1310
  innhtml += '</span></span>';
1311
  jQuery(next_image_class).html(innhtml);
@@ -1360,7 +1362,6 @@ class BWGViewGalleryBox {
1360
  else {
1361
  bwg_afterload();
1362
  }
1363
- bwg_popup_resize();
1364
  }
1365
  }
1366
  jQuery(document).on('keydown', function (e) {
1300
  var next_image_class = current_image_class == ".bwg_popup_image_second_spun" ? ".bwg_popup_image_spun" : ".bwg_popup_image_second_spun";
1301
 
1302
  var is_video = data[key]['filetype'] == "YOUTUBE" || data[key]['filetype'] == "VIMEO";
1303
+ var cur_height = jQuery(current_image_class).height();
1304
+ var cur_width = jQuery(current_image_class).width();
1305
  var innhtml = '<span class="bwg_popup_image_spun1" style="display: table; width: inherit; height: inherit;"><span class="bwg_popup_image_spun2" style="display: table-cell; vertical-align: middle; text-align: center;">';
1306
  if (!is_video) {
1307
+ innhtml += '<img style="max-height: ' + cur_height + 'px; max-width: ' + cur_width + 'px;" class="bwg_popup_image" src="<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR; ?>' + jQuery('<div />').html(data[key]["image_url"]).text() + '" alt="' + jQuery('<div />').html(data[key]["alt"]).text() + '" />';
1308
  }
1309
  else {
1310
+ innhtml += '<span style="height: ' + cur_height + 'px; width: ' + cur_width + 'px;" class="bwg_popup_video"><iframe class="bwg_video_frame" src="' + (data[key]['filetype'] == "YOUTUBE" ? "//www.youtube.com/embed/" + data[key]['filename'] + "?enablejsapi=1" : "//player.vimeo.com/video/" + data[key]['filename'] + "?api=1") + '" frameborder="0" allowfullscreen style="width:100%; height:100%;"></iframe></span>';
1311
  }
1312
  innhtml += '</span></span>';
1313
  jQuery(next_image_class).html(innhtml);
1362
  else {
1363
  bwg_afterload();
1364
  }
 
1365
  }
1366
  }
1367
  jQuery(document).on('keydown', function (e) {
photo-gallery.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: http://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.1.19
8
  * Author: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
@@ -2767,7 +2767,7 @@ function bwg_front_end_scripts() {
2767
  }
2768
  }
2769
  wp_enqueue_script('jquery');
2770
- wp_enqueue_style('jquery-ui', WD_BWG_URL . '/css/jquery-ui-1.10.3.custom.css', array(), $version);
2771
 
2772
  wp_enqueue_script('bwg_frontend', WD_BWG_URL . '/js/bwg_frontend.js', array(), $version);
2773
  wp_enqueue_style('bwg_frontend', WD_BWG_URL . '/css/bwg_frontend.css', array(), $version);
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: http://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.1.20
8
  * Author: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
2767
  }
2768
  }
2769
  wp_enqueue_script('jquery');
2770
+ /*wp_enqueue_style('jquery-ui', WD_BWG_URL . '/css/jquery-ui-1.10.3.custom.css', array(), $version);*/
2771
 
2772
  wp_enqueue_script('bwg_frontend', WD_BWG_URL . '/js/bwg_frontend.js', array(), $version);
2773
  wp_enqueue_style('bwg_frontend', WD_BWG_URL . '/css/bwg_frontend.css', array(), $version);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
  Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, Simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, Fotogalerie, Galleria, galerie, galeri
5
  Requires at least: 3.0
6
  Tested up to: 3.9
7
- Stable tag: 1.1.19
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -69,6 +69,7 @@ Photo Gallery product in addition to the main plugin includes 4 specific widgets
69
  * Photo Gallery Widget for displaying albums and galleries as widgets
70
  * Separate shortcode generator page for the websites using custom pages/custom editors.
71
  * Support for YouTube and Vimeo videos within Galleries.
 
72
 
73
  Upgrade to [WordPress Photo Gallery Pro](http://web-dorado.com/products/wordpress-photo-gallery-plugin.html) to add features:
74
 
@@ -168,6 +169,9 @@ If any problem occurs, please contact us at [info@web-dorado.com](mailto:info@w
168
  6. Photo Gallery - Edit Watermark
169
 
170
  == Changelog ==
 
 
 
171
  = 1.1.19 =
172
  * preload images count options
173
 
4
  Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, Simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, Fotogalerie, Galleria, galerie, galeri
5
  Requires at least: 3.0
6
  Tested up to: 3.9
7
+ Stable tag: 1.1.20
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
69
  * Photo Gallery Widget for displaying albums and galleries as widgets
70
  * Separate shortcode generator page for the websites using custom pages/custom editors.
71
  * Support for YouTube and Vimeo videos within Galleries.
72
+ * Possibility of uploading images from the Media Library of the website.
73
 
74
  Upgrade to [WordPress Photo Gallery Pro](http://web-dorado.com/products/wordpress-photo-gallery-plugin.html) to add features:
75
 
169
  6. Photo Gallery - Edit Watermark
170
 
171
  == Changelog ==
172
+ = 1.1.20 =
173
+ * bug fixed on lightbox
174
+
175
  = 1.1.19 =
176
  * preload images count options
177