Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.26

Version Description

Fixed: Lightbox opening bug for ios.

Download this release

Release Info

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

Code changes from version 1.2.25 to 1.2.26

frontend/views/BWGViewAlbum_compact_preview.php CHANGED
@@ -845,16 +845,23 @@ 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
- 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
  });
859
  <?php } ?>
860
  }
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 bwg_touch_flag = false;
849
+ jQuery(".bwg_lightbox_<?php echo $bwg; ?>").on("touchend click", function () {
850
+ if (!bwg_touch_flag) {
851
+ bwg_touch_flag = true;
852
+ setTimeout(function(){ bwg_touch_flag = false; }, 100);
853
+ bwg_gallery_box_<?php echo $bwg; ?>(jQuery(this).attr("data-gallery-id"), jQuery(this).attr("data-image-id"));
854
+ return false;
855
+ }
856
  });
857
  <?php if ($from !== "widget") { ?>
858
+ jQuery(".bwg_album_<?php echo $bwg; ?>").on("touchend click", function () {
859
+ if (!bwg_touch_flag) {
860
+ bwg_touch_flag = true;
861
+ setTimeout(function(){ bwg_touch_flag = false; }, 100);
862
+ 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');
863
+ return false;
864
+ }
865
  });
866
  <?php } ?>
867
  }
frontend/views/BWGViewAlbum_extended_preview.php CHANGED
@@ -819,15 +819,22 @@ 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
- 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
  });
832
  }
833
  jQuery(document).ready(function () {
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 bwg_touch_flag = false;
823
+ jQuery(".bwg_lightbox_<?php echo $bwg; ?>").on("touchend click", function () {
824
+ if (!bwg_touch_flag) {
825
+ bwg_touch_flag = true;
826
+ setTimeout(function(){ bwg_touch_flag = false; }, 100);
827
+ bwg_gallery_box_<?php echo $bwg; ?>(jQuery(this).attr("data-gallery-id"), jQuery(this).attr("data-image-id"));
828
+ return false;
829
+ }
830
  });
831
+ jQuery(".bwg_album_<?php echo $bwg; ?>").on("touchend click", function () {
832
+ if (!bwg_touch_flag) {
833
+ bwg_touch_flag = true;
834
+ setTimeout(function(){ bwg_touch_flag = false; }, 100);
835
+ 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');
836
+ return false;
837
+ }
838
  });
839
  }
840
  jQuery(document).ready(function () {
frontend/views/BWGViewImage_browser.php CHANGED
@@ -634,11 +634,14 @@ 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
- 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
  });
643
  }
644
  jQuery(document).ready(function () {
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 bwg_touch_flag = false;
638
+ jQuery(".bwg_lightbox_<?php echo $bwg; ?>").on("touchend click", function () {
639
+ if (!bwg_touch_flag) {
640
+ bwg_touch_flag = true;
641
+ setTimeout(function(){ bwg_touch_flag = false; }, 100);
642
+ bwg_gallery_box_<?php echo $bwg; ?>(jQuery(this).attr("data-image-id"));
643
+ return false;
644
+ }
645
  });
646
  }
647
  jQuery(document).ready(function () {
frontend/views/BWGViewThumbnails.php CHANGED
@@ -542,11 +542,14 @@ 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
- 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
  });
551
  }
552
  jQuery(document).ready(function () {
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 bwg_touch_flag = false;
546
+ jQuery(".bwg_lightbox_<?php echo $bwg; ?>").on("touchend click", function () {
547
+ if (!bwg_touch_flag) {
548
+ bwg_touch_flag = true;
549
+ setTimeout(function(){ bwg_touch_flag = false; }, 100);
550
+ bwg_gallery_box_<?php echo $bwg; ?>(jQuery(this).attr("data-image-id"));
551
+ return false;
552
+ }
553
  });
554
  }
555
  jQuery(document).ready(function () {
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.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,7 +3139,7 @@ function bwg_activate() {
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,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.25';
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.26
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.26';
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.26';
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.25
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -206,7 +206,10 @@ Yes, it is possible to add advertising and/or watermark over the images. In both
206
 
207
  == Changelog ==
208
 
209
- = 1.2.25
 
 
 
210
  Fixed: Lightbox opening bug for mobile browsers.
211
 
212
  = 1.2.24 =
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.26
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.26 =
210
+ Fixed: Lightbox opening bug for ios.
211
+
212
+ = 1.2.25 =
213
  Fixed: Lightbox opening bug for mobile browsers.
214
 
215
  = 1.2.24 =