Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.107

Version Description

  • Fixed: Responsiveness
  • Fixed: Bug on full-size and fullscreen lightbox
Download this release

Release Info

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

Code changes from version 1.2.106 to 1.2.107

frontend/views/BWGViewGalleryBox.php CHANGED
@@ -1391,18 +1391,18 @@ class BWGViewGalleryBox {
1391
  else { /*is_embed*/
1392
 
1393
  innhtml += '<span style="height: ' + cur_height + 'px; width: ' + cur_width + 'px;" class="bwg_popup_embed bwg_popup_watermark">';
1394
- if (is_embed_instagram_post) {
1395
- var post_width = 0;
1396
- var post_height = 0;
1397
- if (cur_height < cur_width + 88) {
1398
- post_height = cur_height;
1399
- post_width = post_height - 88;
1400
- }
1401
- else {
1402
- post_width = cur_width;
1403
- post_height = post_width + 88;
1404
- }
1405
- innhtml += spider_display_embed(data[key]['filetype'], data[key]['filename'], {class:"bwg_embed_frame", 'data-width': data[key]['image_width'], 'data-height': data[key]['image_height'], frameborder: "0", allowfullscreen: "allowfullscreen", style: "width:" + post_width + "px; height:" + post_height + "px; vertical-align:middle; display:inline-block; position:relative; top: " + 0.5 * (cur_height - post_height) + "px;"});
1406
  }
1407
  else{
1408
  innhtml += spider_display_embed(data[key]['filetype'], data[key]['filename'], {class:"bwg_embed_frame", frameborder:"0", allowfullscreen:"allowfullscreen", style:"width:inherit; height:inherit; vertical-align:middle; display:table-cell;" });
@@ -1614,7 +1614,7 @@ class BWGViewGalleryBox {
1614
  zIndex: 100000
1615
  });
1616
  jQuery(".bwg_image_wrap").css({width: (jQuery(window).width() - comment_container_width)});
1617
- jQuery(".bwg_image_container").css({width: <?php echo $image_width; ?> - comment_container_width});
1618
  jQuery(".bwg_popup_image").css({
1619
  maxWidth: jQuery(window).width() - comment_container_width
1620
  });
@@ -1959,7 +1959,7 @@ class BWGViewGalleryBox {
1959
  zIndex: 100000
1960
  }, 500);
1961
  jQuery(".bwg_image_wrap").animate({width: bwg_popup_current_width - comment_container_width}, 500);
1962
- jQuery(".bwg_image_container").animate({height: bwg_popup_current_height - <?php echo $image_filmstrip_height; ?>}, 500);
1963
  jQuery(".bwg_popup_image").animate({
1964
  maxWidth: bwg_popup_current_width - comment_container_width,
1965
  maxHeight: bwg_popup_current_height - <?php echo $image_filmstrip_height; ?>
@@ -2009,7 +2009,7 @@ class BWGViewGalleryBox {
2009
  zIndex: 100000
2010
  }, 500);
2011
  jQuery(".bwg_image_wrap").animate({width: (jQuery(window).width() - comment_container_width)}, 500);
2012
- jQuery(".bwg_image_container").animate({height: (bwg_popup_current_height - <?php echo $image_filmstrip_height; ?>)}, 500);
2013
  jQuery(".bwg_popup_image").animate({
2014
  maxWidth: jQuery(window).width() - comment_container_width,
2015
  maxHeight: jQuery(window).height() - <?php echo $image_filmstrip_height; ?>
@@ -2070,7 +2070,7 @@ class BWGViewGalleryBox {
2070
  zIndex: 100000
2071
  });
2072
  jQuery(".bwg_image_wrap").css({width: bwg_popup_current_width - comment_container_width});
2073
- jQuery(".bwg_image_container").css({height: bwg_popup_current_height - <?php echo $image_filmstrip_height; ?>});
2074
  /*jQuery(".bwg_slide_bg").css({height: bwg_popup_current_height - <?php echo $image_filmstrip_height; ?>});
2075
  jQuery(".bwg_popup_image_spun1").css({height: bwg_popup_current_height - <?php echo $image_filmstrip_height; ?>});*/
2076
  jQuery(".bwg_popup_image").css({
@@ -2123,7 +2123,7 @@ class BWGViewGalleryBox {
2123
  zIndex: 100000
2124
  });
2125
  jQuery(".bwg_image_wrap").css({width: screen_width - comment_container_width});
2126
- jQuery(".bwg_image_container").css({height: (screen_height - <?php echo $image_filmstrip_height; ?>)});
2127
  /* jQuery(".bwg_slide_bg").css({height: screen_height - <?php echo $image_filmstrip_height; ?>});*/
2128
  jQuery(".bwg_popup_image").css({
2129
  maxWidth: (screen_width - comment_container_width),
@@ -2250,6 +2250,7 @@ class BWGViewGalleryBox {
2250
  parent_container.width(post_width);
2251
  parent_container.height((parent_container.width() - 16) * parent_container.attr('data-height') / parent_container.attr('data-width') + 96);
2252
  }
 
2253
  });
2254
  bwg_change_watermark_container();
2255
  }
1391
  else { /*is_embed*/
1392
 
1393
  innhtml += '<span style="height: ' + cur_height + 'px; width: ' + cur_width + 'px;" class="bwg_popup_embed bwg_popup_watermark">';
1394
+ if (is_embed_instagram_post) {
1395
+ var post_width = 0;
1396
+ var post_height = 0;
1397
+ if (cur_height < cur_width + 88) {
1398
+ post_height = cur_height;
1399
+ post_width = post_height - 88;
1400
+ }
1401
+ else {
1402
+ post_width = cur_width;
1403
+ post_height = post_width + 88;
1404
+ }
1405
+ innhtml += spider_display_embed(data[key]['filetype'], data[key]['filename'], {class:"bwg_embed_frame", 'data-width': data[key]['image_width'], 'data-height': data[key]['image_height'], frameborder: "0", allowfullscreen: "allowfullscreen", style: "width:" + post_width + "px; height:" + post_height + "px; vertical-align:middle; display:inline-block; position:relative;"});
1406
  }
1407
  else{
1408
  innhtml += spider_display_embed(data[key]['filetype'], data[key]['filename'], {class:"bwg_embed_frame", frameborder:"0", allowfullscreen:"allowfullscreen", style:"width:inherit; height:inherit; vertical-align:middle; display:table-cell;" });
1614
  zIndex: 100000
1615
  });
1616
  jQuery(".bwg_image_wrap").css({width: (jQuery(window).width() - comment_container_width)});
1617
+ jQuery(".bwg_image_container").css({width: jQuery(window).width() - comment_container_width});
1618
  jQuery(".bwg_popup_image").css({
1619
  maxWidth: jQuery(window).width() - comment_container_width
1620
  });
1959
  zIndex: 100000
1960
  }, 500);
1961
  jQuery(".bwg_image_wrap").animate({width: bwg_popup_current_width - comment_container_width}, 500);
1962
+ jQuery(".bwg_image_container").animate({height: bwg_popup_current_height - <?php echo $image_filmstrip_height; ?>, width: bwg_popup_current_width - comment_container_width}, 500);
1963
  jQuery(".bwg_popup_image").animate({
1964
  maxWidth: bwg_popup_current_width - comment_container_width,
1965
  maxHeight: bwg_popup_current_height - <?php echo $image_filmstrip_height; ?>
2009
  zIndex: 100000
2010
  }, 500);
2011
  jQuery(".bwg_image_wrap").animate({width: (jQuery(window).width() - comment_container_width)}, 500);
2012
+ jQuery(".bwg_image_container").animate({height: (bwg_popup_current_height - <?php echo $image_filmstrip_height; ?>), width: bwg_popup_current_width - comment_container_width}, 500);
2013
  jQuery(".bwg_popup_image").animate({
2014
  maxWidth: jQuery(window).width() - comment_container_width,
2015
  maxHeight: jQuery(window).height() - <?php echo $image_filmstrip_height; ?>
2070
  zIndex: 100000
2071
  });
2072
  jQuery(".bwg_image_wrap").css({width: bwg_popup_current_width - comment_container_width});
2073
+ jQuery(".bwg_image_container").css({height: bwg_popup_current_height - <?php echo $image_filmstrip_height; ?>, width: bwg_popup_current_width - comment_container_width});
2074
  /*jQuery(".bwg_slide_bg").css({height: bwg_popup_current_height - <?php echo $image_filmstrip_height; ?>});
2075
  jQuery(".bwg_popup_image_spun1").css({height: bwg_popup_current_height - <?php echo $image_filmstrip_height; ?>});*/
2076
  jQuery(".bwg_popup_image").css({
2123
  zIndex: 100000
2124
  });
2125
  jQuery(".bwg_image_wrap").css({width: screen_width - comment_container_width});
2126
+ jQuery(".bwg_image_container").css({height: (screen_height - <?php echo $image_filmstrip_height; ?>), width: screen_width - comment_container_width});
2127
  /* jQuery(".bwg_slide_bg").css({height: screen_height - <?php echo $image_filmstrip_height; ?>});*/
2128
  jQuery(".bwg_popup_image").css({
2129
  maxWidth: (screen_width - comment_container_width),
2250
  parent_container.width(post_width);
2251
  parent_container.height((parent_container.width() - 16) * parent_container.attr('data-height') / parent_container.attr('data-width') + 96);
2252
  }
2253
+ parent_container.css({top: 0.5 * (post_height - parent_container.height())});
2254
  });
2255
  bwg_change_watermark_container();
2256
  }
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.2.106
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -1924,7 +1924,7 @@ function bwg_activate() {
1924
  ));
1925
  }
1926
  $version = WD_BWG_VERSION;
1927
- $new_version = '1.2.106';
1928
  if ($version && version_compare($version, $new_version, '<')) {
1929
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1930
  bwg_update($version);
@@ -1978,7 +1978,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
1978
 
1979
  function bwg_update_hook() {
1980
  $version = WD_BWG_VERSION;
1981
- $new_version = '1.2.106';
1982
  if ($version && version_compare($version, $new_version, '<')) {
1983
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1984
  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.2.107
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
1924
  ));
1925
  }
1926
  $version = WD_BWG_VERSION;
1927
+ $new_version = '1.2.107';
1928
  if ($version && version_compare($version, $new_version, '<')) {
1929
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1930
  bwg_update($version);
1978
 
1979
  function bwg_update_hook() {
1980
  $version = WD_BWG_VERSION;
1981
+ $new_version = '1.2.107';
1982
  if ($version && version_compare($version, $new_version, '<')) {
1983
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1984
  bwg_update($version);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://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, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery, ecommerce
5
  Requires at least: 3.4
6
  Tested up to: 4.5
7
- Stable tag: 1.2.106
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -225,6 +225,10 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
225
 
226
  == Changelog ==
227
 
 
 
 
 
228
  = 1.2.106 =
229
  IMPORTANT: Instagram changed the API. You need to get a new access token by using "Sign in with Instagram" button on the Options page in order to keep your Instagram Gallery functioning after June 1.
230
  * Changed: Instagram new API.
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, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery, ecommerce
5
  Requires at least: 3.4
6
  Tested up to: 4.5
7
+ Stable tag: 1.2.107
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
225
 
226
  == Changelog ==
227
 
228
+ = 1.2.107 =
229
+ * Fixed: Responsiveness
230
+ * Fixed: Bug on full-size and fullscreen lightbox
231
+
232
  = 1.2.106 =
233
  IMPORTANT: Instagram changed the API. You need to get a new access token by using "Sign in with Instagram" button on the Options page in order to keep your Instagram Gallery functioning after June 1.
234
  * Changed: Instagram new API.