Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.20

Version Description

Download this release

Release Info

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

Code changes from version 1.2.19 to 1.2.20

frontend/views/BWGViewAlbum_compact_preview.php CHANGED
@@ -842,7 +842,7 @@ class BWGViewAlbum_compact_preview {
842
  </div>
843
  <script>
844
  function bwg_gallery_box_<?php echo $bwg; ?>(gallery_id, image_id) {
845
- spider_createpopup('<?php echo addslashes(add_query_arg($params_array, home_url('wp-admin/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 () {
842
  </div>
843
  <script>
844
  function bwg_gallery_box_<?php echo $bwg; ?>(gallery_id, image_id) {
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 () {
frontend/views/BWGViewAlbum_extended_preview.php CHANGED
@@ -816,7 +816,7 @@ class BWGViewAlbum_extended_preview {
816
  </div>
817
  <script>
818
  function bwg_gallery_box_<?php echo $bwg; ?>(gallery_id, image_id) {
819
- spider_createpopup('<?php echo addslashes(add_query_arg($params_array, home_url('wp-admin/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 () {
816
  </div>
817
  <script>
818
  function bwg_gallery_box_<?php echo $bwg; ?>(gallery_id, image_id) {
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 () {
frontend/views/BWGViewGalleryBox.php CHANGED
@@ -139,7 +139,7 @@ class BWGViewGalleryBox {
139
  $params_array['watermark_width'] = $watermark_width;
140
  $params_array['watermark_height'] = $watermark_height;
141
  }
142
- $popup_url = add_query_arg(array($params_array), home_url('wp-admin/admin-ajax.php'));
143
  $filmstrip_thumb_margin = $theme_row->lightbox_filmstrip_thumb_margin;
144
  $margins_split = explode(" ", $filmstrip_thumb_margin);
145
  $filmstrip_thumb_margin_right = 0;
139
  $params_array['watermark_width'] = $watermark_width;
140
  $params_array['watermark_height'] = $watermark_height;
141
  }
142
+ $popup_url = add_query_arg(array($params_array), admin_url('admin-ajax.php'));
143
  $filmstrip_thumb_margin = $theme_row->lightbox_filmstrip_thumb_margin;
144
  $margins_split = explode(" ", $filmstrip_thumb_margin);
145
  $filmstrip_thumb_margin_right = 0;
frontend/views/BWGViewImage_browser.php CHANGED
@@ -631,7 +631,7 @@ class BWGViewImage_browser {
631
  ?>
632
  });
633
  function bwg_gallery_box_<?php echo $bwg; ?>(image_id) {
634
- spider_createpopup('<?php echo addslashes(add_query_arg($params_array, home_url('wp-admin/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 () {
631
  ?>
632
  });
633
  function bwg_gallery_box_<?php echo $bwg; ?>(image_id) {
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 () {
frontend/views/BWGViewThumbnails.php CHANGED
@@ -539,7 +539,7 @@ class BWGViewThumbnails {
539
  }
540
  ?>
541
  function bwg_gallery_box_<?php echo $bwg; ?>(image_id) {
542
- spider_createpopup('<?php echo addslashes(add_query_arg($params_array, home_url('wp-admin/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 () {
539
  }
540
  ?>
541
  function bwg_gallery_box_<?php echo $bwg; ?>(image_id) {
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 () {
js/bwg_gallery_box.js CHANGED
@@ -1,6 +1,7 @@
1
  var isPopUpOpened = false;
2
 
3
  function spider_createpopup(url, current_view, width, height, duration, description, lifetime) {
 
4
  if (isPopUpOpened) { return };
5
  isPopUpOpened = true;
6
  if (spider_hasalreadyreceivedpopup(description) || spider_isunsupporteduseragent()) {
1
  var isPopUpOpened = false;
2
 
3
  function spider_createpopup(url, current_view, width, height, duration, description, lifetime) {
4
+ url = url.replace(/&#038;/g, '&');
5
  if (isPopUpOpened) { return };
6
  isPopUpOpened = true;
7
  if (spider_hasalreadyreceivedpopup(description) || spider_isunsupporteduseragent()) {
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.19
8
  * Author: WebDorado
9
  * Author URI: http://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -3116,7 +3116,7 @@ function bwg_activate() {
3116
  ));
3117
  }
3118
  $version = get_option("wd_bwg_version");
3119
- $new_version = '1.2.18';
3120
  if ($version && version_compare($version, $new_version, '<')) {
3121
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3122
  bwg_update($version);
@@ -3134,7 +3134,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
3134
 
3135
  function bwg_update_hook() {
3136
  $version = get_option("wd_bwg_version");
3137
- $new_version = '1.2.18';
3138
  if ($version && version_compare($version, $new_version, '<')) {
3139
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3140
  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.20
8
  * Author: WebDorado
9
  * Author URI: http://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
3116
  ));
3117
  }
3118
  $version = get_option("wd_bwg_version");
3119
+ $new_version = '1.2.20';
3120
  if ($version && version_compare($version, $new_version, '<')) {
3121
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3122
  bwg_update($version);
3134
 
3135
  function bwg_update_hook() {
3136
  $version = get_option("wd_bwg_version");
3137
+ $new_version = '1.2.20';
3138
  if ($version && version_compare($version, $new_version, '<')) {
3139
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3140
  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.1
7
- Stable tag: 1.2.19
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
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.1
7
+ Stable tag: 1.2.20
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10