Photo Gallery by WD – Responsive Photo Gallery - Version 1.3.42

Version Description

  • Fixed: Scroll load with more than one gallery in a page.
Download this release

Release Info

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

Code changes from version 1.3.41 to 1.3.42

frontend/views/BWGViewAlbum_compact_preview.php CHANGED
@@ -313,7 +313,7 @@ class BWGViewAlbum_compact_preview {
313
  ?>
314
  <div id="bwg_container1_<?php echo $bwg; ?>">
315
  <div id="bwg_container2_<?php echo $bwg; ?>">
316
- <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#">
317
  <?php
318
  if ($params['show_search_box'] && $type == 'gallery') {
319
  WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, $album_gallery_div_id, $images_count, $params['search_box_width'], $placeholder);
313
  ?>
314
  <div id="bwg_container1_<?php echo $bwg; ?>">
315
  <div id="bwg_container2_<?php echo $bwg; ?>">
316
+ <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#" data-current="<?php echo $bwg; ?>">
317
  <?php
318
  if ($params['show_search_box'] && $type == 'gallery') {
319
  WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, $album_gallery_div_id, $images_count, $params['search_box_width'], $placeholder);
frontend/views/BWGViewAlbum_extended_preview.php CHANGED
@@ -258,7 +258,7 @@ class BWGViewAlbum_extended_preview {
258
  ?>
259
  <div id="bwg_container1_<?php echo $bwg; ?>">
260
  <div id="bwg_container2_<?php echo $bwg; ?>">
261
- <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#">
262
  <?php
263
  if ($params['show_search_box'] && $type == 'gallery') {
264
  WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, $album_gallery_div_id, $images_count, $params['search_box_width'], $placeholder);
258
  ?>
259
  <div id="bwg_container1_<?php echo $bwg; ?>">
260
  <div id="bwg_container2_<?php echo $bwg; ?>">
261
+ <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#" data-current="<?php echo $bwg; ?>">
262
  <?php
263
  if ($params['show_search_box'] && $type == 'gallery') {
264
  WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, $album_gallery_div_id, $images_count, $params['search_box_width'], $placeholder);
frontend/views/BWGViewImage_browser.php CHANGED
@@ -215,7 +215,7 @@ class BWGViewImage_browser {
215
  ?>
216
  <div id="bwg_container1_<?php echo $bwg; ?>">
217
  <div id="bwg_container2_<?php echo $bwg; ?>">
218
- <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#">
219
  <?php
220
  if ($params['show_search_box']) {
221
  WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, 'bwg_standart_thumbnails_' . $bwg, $images_count, $params['search_box_width'], $placeholder);
215
  ?>
216
  <div id="bwg_container1_<?php echo $bwg; ?>">
217
  <div id="bwg_container2_<?php echo $bwg; ?>">
218
+ <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#" data-current="<?php echo $bwg; ?>">
219
  <?php
220
  if ($params['show_search_box']) {
221
  WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, 'bwg_standart_thumbnails_' . $bwg, $images_count, $params['search_box_width'], $placeholder);
frontend/views/BWGViewThumbnails.php CHANGED
@@ -229,7 +229,7 @@ class BWGViewThumbnails {
229
  ?>
230
  <div id="bwg_container1_<?php echo $bwg; ?>">
231
  <div id="bwg_container2_<?php echo $bwg; ?>">
232
- <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#">
233
  <?php
234
  if ($params['show_search_box']) {
235
  WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, 'bwg_standart_thumbnails_' . $bwg, $images_count, $params['search_box_width'], $placeholder);
229
  ?>
230
  <div id="bwg_container1_<?php echo $bwg; ?>">
231
  <div id="bwg_container2_<?php echo $bwg; ?>">
232
+ <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#" data-current="<?php echo $bwg; ?>">
233
  <?php
234
  if ($params['show_search_box']) {
235
  WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, 'bwg_standart_thumbnails_' . $bwg, $images_count, $params['search_box_width'], $placeholder);
js/bwg_frontend.js CHANGED
@@ -56,8 +56,17 @@ function spider_frontend_ajax(form_id, current_view, id, album_gallery_id, cur_a
56
  if (load_more) {
57
  var strr = jQuery(data).find('#' + id).html();
58
  jQuery('#' + id).append(strr);
59
- var str = jQuery(data).find('.bwg_nav_cont_'+ current_view).html();
60
- jQuery('.bwg_nav_cont_'+ current_view).html(str);
 
 
 
 
 
 
 
 
 
61
  }
62
  else {
63
  var str = jQuery(data).find('#' + form_id).html();
56
  if (load_more) {
57
  var strr = jQuery(data).find('#' + id).html();
58
  jQuery('#' + id).append(strr);
59
+
60
+ jQuery("div[id^='bwg_container1_'] form").each(function () {
61
+ if (jQuery(this).data("current") == current_view) {
62
+ var str = jQuery(data).find('.bwg_nav_cont_' + current_view).html();
63
+ jQuery('.bwg_nav_cont_' + current_view).html(str);
64
+ }
65
+ else {
66
+ var str = jQuery(this).find('span[class^="bwg_nav_cont_"]').html();
67
+ jQuery(this).find('span[class^="bwg_nav_cont_"]').html(str);
68
+ }
69
+ });
70
  }
71
  else {
72
  var str = jQuery(data).find('#' + form_id).html();
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.3.41
8
  * Author: Photo Gallery Team
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -1701,7 +1701,7 @@ function bwg_activate() {
1701
  ));
1702
  }
1703
  $version = get_option('wd_bwg_version');
1704
- $new_version = '1.3.41';
1705
  if ($version && version_compare($version, $new_version, '<')) {
1706
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1707
  bwg_update($version);
@@ -1753,7 +1753,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
1753
 
1754
  function bwg_update_hook() {
1755
  $version = get_option('wd_bwg_version');
1756
- $new_version = '1.3.41';
1757
  if ($version && version_compare($version, $new_version, '<')) {
1758
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1759
  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.3.42
8
  * Author: Photo Gallery Team
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
1701
  ));
1702
  }
1703
  $version = get_option('wd_bwg_version');
1704
+ $new_version = '1.3.42';
1705
  if ($version && version_compare($version, $new_version, '<')) {
1706
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1707
  bwg_update($version);
1753
 
1754
  function bwg_update_hook() {
1755
  $version = get_option('wd_bwg_version');
1756
+ $new_version = '1.3.42';
1757
  if ($version && version_compare($version, $new_version, '<')) {
1758
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1759
  bwg_update($version);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
  Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
5
  Requires at least: 3.4
6
  Tested up to: 4.7
7
- Stable tag: 1.3.41
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -188,6 +188,9 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
188
 
189
  == Changelog ==
190
 
 
 
 
191
  = 1.3.41 =
192
  * Added: Possibility to add images from Wordpress Media Library.
193
  * Fixed: Image info in lightbox with small effect duration.
4
  Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
5
  Requires at least: 3.4
6
  Tested up to: 4.7
7
+ Stable tag: 1.3.42
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
188
 
189
  == Changelog ==
190
 
191
+ = 1.3.42 =
192
+ * Fixed: Scroll load with more than one gallery in a page.
193
+
194
  = 1.3.41 =
195
  * Added: Possibility to add images from Wordpress Media Library.
196
  * Fixed: Image info in lightbox with small effect duration.