Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.25

Version Description

Download this release

Release Info

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

Code changes from version 1.2.24 to 1.2.25

frontend/views/BWGViewAlbum_compact_preview.php CHANGED
@@ -845,12 +845,14 @@ class BWGViewAlbum_compact_preview {
845
  spider_createpopup('<?php echo addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))); ?>&gallery_id=' + gallery_id + '&image_id=' + image_id, '<?php echo $bwg; ?>', '<?php echo $params['popup_width']; ?>', '<?php echo $params['popup_height']; ?>', 1, 'testpopup', 5);
846
  }
847
  function bwg_document_ready_<?php echo $bwg; ?>() {
848
- jQuery(".bwg_lightbox_<?php echo $bwg; ?>").on("click", function () {
 
 
849
  bwg_gallery_box_<?php echo $bwg; ?>(jQuery(this).attr("data-gallery-id"), jQuery(this).attr("data-image-id"));
850
  return false;
851
  });
852
  <?php if ($from !== "widget") { ?>
853
- jQuery(".bwg_album_<?php echo $bwg; ?>").on("click", function () {
854
  spider_frontend_ajax('gal_front_form_<?php echo $bwg; ?>', '<?php echo $bwg; ?>', 'bwg_album_compact_<?php echo $bwg; ?>', jQuery(this).attr("data-alb_gal_id"), '<?php echo $album_gallery_id; ?>', jQuery(this).attr("data-def_type"), '', jQuery(this).attr("data-title"), 'default');
855
  return false;
856
  });
845
  spider_createpopup('<?php echo addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))); ?>&gallery_id=' + gallery_id + '&image_id=' + image_id, '<?php echo $bwg; ?>', '<?php echo $params['popup_width']; ?>', '<?php echo $params['popup_height']; ?>', 1, 'testpopup', 5);
846
  }
847
  function bwg_document_ready_<?php echo $bwg; ?>() {
848
+ var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
849
+ var bwg_click = isMobile ? 'touchend' : 'click';
850
+ jQuery(".bwg_lightbox_<?php echo $bwg; ?>").on(bwg_click, function () {
851
  bwg_gallery_box_<?php echo $bwg; ?>(jQuery(this).attr("data-gallery-id"), jQuery(this).attr("data-image-id"));
852
  return false;
853
  });
854
  <?php if ($from !== "widget") { ?>
855
+ jQuery(".bwg_album_<?php echo $bwg; ?>").on(bwg_click, function () {
856
  spider_frontend_ajax('gal_front_form_<?php echo $bwg; ?>', '<?php echo $bwg; ?>', 'bwg_album_compact_<?php echo $bwg; ?>', jQuery(this).attr("data-alb_gal_id"), '<?php echo $album_gallery_id; ?>', jQuery(this).attr("data-def_type"), '', jQuery(this).attr("data-title"), 'default');
857
  return false;
858
  });
frontend/views/BWGViewAlbum_extended_preview.php CHANGED
@@ -819,11 +819,13 @@ class BWGViewAlbum_extended_preview {
819
  spider_createpopup('<?php echo addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))); ?>&gallery_id=' + gallery_id + '&image_id=' + image_id, '<?php echo $bwg; ?>', '<?php echo $params['popup_width']; ?>', '<?php echo $params['popup_height']; ?>', 1, 'testpopup', 5);
820
  }
821
  function bwg_document_ready_<?php echo $bwg; ?>() {
822
- jQuery(".bwg_lightbox_<?php echo $bwg; ?>").on("click", function () {
 
 
823
  bwg_gallery_box_<?php echo $bwg; ?>(jQuery(this).attr("data-gallery-id"), jQuery(this).attr("data-image-id"));
824
  return false;
825
  });
826
- jQuery(".bwg_album_<?php echo $bwg; ?>").on("click", function () {
827
  spider_frontend_ajax('gal_front_form_<?php echo $bwg; ?>', '<?php echo $bwg; ?>', 'bwg_album_extended_<?php echo $bwg; ?>', jQuery(this).attr("data-alb_gal_id"), '<?php echo $album_gallery_id; ?>', jQuery(this).attr("data-def_type"), '', jQuery(this).attr("data-title"), 'default');
828
  return false;
829
  });
819
  spider_createpopup('<?php echo addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))); ?>&gallery_id=' + gallery_id + '&image_id=' + image_id, '<?php echo $bwg; ?>', '<?php echo $params['popup_width']; ?>', '<?php echo $params['popup_height']; ?>', 1, 'testpopup', 5);
820
  }
821
  function bwg_document_ready_<?php echo $bwg; ?>() {
822
+ var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
823
+ var bwg_click = isMobile ? 'touchend' : 'click';
824
+ jQuery(".bwg_lightbox_<?php echo $bwg; ?>").on(bwg_click, function () {
825
  bwg_gallery_box_<?php echo $bwg; ?>(jQuery(this).attr("data-gallery-id"), jQuery(this).attr("data-image-id"));
826
  return false;
827
  });
828
+ jQuery(".bwg_album_<?php echo $bwg; ?>").on(bwg_click, function () {
829
  spider_frontend_ajax('gal_front_form_<?php echo $bwg; ?>', '<?php echo $bwg; ?>', 'bwg_album_extended_<?php echo $bwg; ?>', jQuery(this).attr("data-alb_gal_id"), '<?php echo $album_gallery_id; ?>', jQuery(this).attr("data-def_type"), '', jQuery(this).attr("data-title"), 'default');
830
  return false;
831
  });
frontend/views/BWGViewImage_browser.php CHANGED
@@ -634,7 +634,9 @@ class BWGViewImage_browser {
634
  spider_createpopup('<?php echo addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))); ?>&image_id=' + image_id, '<?php echo $bwg; ?>', '<?php echo $params['popup_width']; ?>', '<?php echo $params['popup_height']; ?>', 1, 'testpopup', 5);
635
  }
636
  function bwg_document_ready_<?php echo $bwg; ?>() {
637
- jQuery(".bwg_lightbox_<?php echo $bwg; ?>").on("click", function () {
 
 
638
  bwg_gallery_box_<?php echo $bwg; ?>(jQuery(this).attr("data-image-id"));
639
  return false;
640
  });
634
  spider_createpopup('<?php echo addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))); ?>&image_id=' + image_id, '<?php echo $bwg; ?>', '<?php echo $params['popup_width']; ?>', '<?php echo $params['popup_height']; ?>', 1, 'testpopup', 5);
635
  }
636
  function bwg_document_ready_<?php echo $bwg; ?>() {
637
+ var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
638
+ var bwg_click = isMobile ? 'touchend' : 'click';
639
+ jQuery(".bwg_lightbox_<?php echo $bwg; ?>").on(bwg_click, function () {
640
  bwg_gallery_box_<?php echo $bwg; ?>(jQuery(this).attr("data-image-id"));
641
  return false;
642
  });
frontend/views/BWGViewThumbnails.php CHANGED
@@ -542,7 +542,9 @@ class BWGViewThumbnails {
542
  spider_createpopup('<?php echo addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))); ?>&image_id=' + image_id, '<?php echo $bwg; ?>', '<?php echo $params['popup_width']; ?>', '<?php echo $params['popup_height']; ?>', 1, 'testpopup', 5);
543
  }
544
  function bwg_document_ready_<?php echo $bwg; ?>() {
545
- jQuery(".bwg_lightbox_<?php echo $bwg; ?>").on("click", function () {
 
 
546
  bwg_gallery_box_<?php echo $bwg; ?>(jQuery(this).attr("data-image-id"));
547
  return false;
548
  });
542
  spider_createpopup('<?php echo addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))); ?>&image_id=' + image_id, '<?php echo $bwg; ?>', '<?php echo $params['popup_width']; ?>', '<?php echo $params['popup_height']; ?>', 1, 'testpopup', 5);
543
  }
544
  function bwg_document_ready_<?php echo $bwg; ?>() {
545
+ var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
546
+ var bwg_click = isMobile ? 'touchend' : 'click';
547
+ jQuery(".bwg_lightbox_<?php echo $bwg; ?>").on(bwg_click, function () {
548
  bwg_gallery_box_<?php echo $bwg; ?>(jQuery(this).attr("data-image-id"));
549
  return false;
550
  });
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.2.24
8
  * Author: WebDorado
9
  * Author URI: http://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -3139,7 +3139,7 @@ function bwg_activate() {
3139
  ));
3140
  }
3141
  $version = get_option("wd_bwg_version");
3142
- $new_version = '1.2.24';
3143
  if ($version && version_compare($version, $new_version, '<')) {
3144
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3145
  bwg_update($version);
@@ -3157,7 +3157,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
3157
 
3158
  function bwg_update_hook() {
3159
  $version = get_option("wd_bwg_version");
3160
- $new_version = '1.2.24';
3161
  if ($version && version_compare($version, $new_version, '<')) {
3162
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3163
  bwg_update($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.2.25
8
  * Author: WebDorado
9
  * Author URI: http://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
3139
  ));
3140
  }
3141
  $version = get_option("wd_bwg_version");
3142
+ $new_version = '1.2.25';
3143
  if ($version && version_compare($version, $new_version, '<')) {
3144
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3145
  bwg_update($version);
3157
 
3158
  function bwg_update_hook() {
3159
  $version = get_option("wd_bwg_version");
3160
+ $new_version = '1.2.25';
3161
  if ($version && version_compare($version, $new_version, '<')) {
3162
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3163
  bwg_update($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, 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
5
  Requires at least: 3.4
6
  Tested up to: 4.2
7
- Stable tag: 1.2.24
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -206,6 +206,9 @@ Yes, it is possible to add advertising and/or watermark over the images. In both
206
 
207
  == Changelog ==
208
 
 
 
 
209
  = 1.2.24 =
210
  duplicated id in slideshow view
211
  deprecated options removed (roles)
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, 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
5
  Requires at least: 3.4
6
  Tested up to: 4.2
7
+ Stable tag: 1.2.25
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
206
 
207
  == Changelog ==
208
 
209
+ = 1.2.25
210
+ Fixed: Lightbox opening bug for mobile browsers.
211
+
212
  = 1.2.24 =
213
  duplicated id in slideshow view
214
  deprecated options removed (roles)