Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.24

Version Description

duplicated id in slideshow view deprecated options removed (roles)

Download this release

Release Info

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

Code changes from version 1.2.23 to 1.2.24

admin/views/BWGViewOptions_bwg.php CHANGED
@@ -147,7 +147,7 @@ class BWGViewOptions_bwg {
147
  <div class="spider_description">Disable image right click possibility.</div>
148
  </td>
149
  </tr>
150
- <tr>
151
  <td class="spider_label_options">
152
  <label>Gallery role:</label>
153
  </td>
@@ -157,7 +157,7 @@ class BWGViewOptions_bwg {
157
  <div class="spider_description">Only author can change a gallery.</div>
158
  </td>
159
  </tr>
160
- <tr>
161
  <td class="spider_label_options">
162
  <label>Album role:</label>
163
  </td>
@@ -167,7 +167,7 @@ class BWGViewOptions_bwg {
167
  <div class="spider_description">Only author can change an album.</div>
168
  </td>
169
  </tr>
170
- <tr>
171
  <td class="spider_label_options">
172
  <label>Image role:</label>
173
  </td>
147
  <div class="spider_description">Disable image right click possibility.</div>
148
  </td>
149
  </tr>
150
+ <tr style="display: none;">
151
  <td class="spider_label_options">
152
  <label>Gallery role:</label>
153
  </td>
157
  <div class="spider_description">Only author can change a gallery.</div>
158
  </td>
159
  </tr>
160
+ <tr style="display: none;">
161
  <td class="spider_label_options">
162
  <label>Album role:</label>
163
  </td>
167
  <div class="spider_description">Only author can change an album.</div>
168
  </td>
169
  </tr>
170
+ <tr style="display: none;">
171
  <td class="spider_label_options">
172
  <label>Image role:</label>
173
  </td>
frontend/views/BWGViewGalleryBox.php CHANGED
@@ -1495,7 +1495,7 @@ class BWGViewGalleryBox {
1495
  }
1496
  if (count != 0) {
1497
  for (var i = key - count; i < key + count; i++) {
1498
- var index = (i + count_all) % count_all;
1499
  var is_embed = data[index]['filetype'].indexOf("EMBED_") > -1 ? true : false;
1500
  jQuery("<img/>").attr("src", (typeof data[index] != "undefined" && !is_embed) ? '<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR; ?>' + jQuery('<div />').html(data[index]["image_url"]).text() : "");
1501
  }
1495
  }
1496
  if (count != 0) {
1497
  for (var i = key - count; i < key + count; i++) {
1498
+ var index = parseInt((i + count_all) % count_all);
1499
  var is_embed = data[index]['filetype'].indexOf("EMBED_") > -1 ? true : false;
1500
  jQuery("<img/>").attr("src", (typeof data[index] != "undefined" && !is_embed) ? '<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR; ?>' + jQuery('<div />').html(data[index]["image_url"]).text() : "");
1501
  }
frontend/views/BWGViewSlideshow.php CHANGED
@@ -707,11 +707,11 @@ class BWGViewSlideshow {
707
  <?php
708
  if (! $is_embed) {
709
  ?>
710
- <img id="bwg_slideshow_image_second_<?php echo $bwg; ?>" class="bwg_slideshow_image_<?php echo $bwg; ?>" src="<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR . $image_row->image_url; ?>" alt="<?php echo $image_row->alt; ?>"/>
711
  <?php
712
  }
713
  else { /*$is_embed*/ ?>
714
- <span id="bwg_slideshow_image_second_<?php echo $bwg; ?>" class="bwg_slideshow_embed_<?php echo $bwg; ?>">
715
  <?php
716
  if($is_embed_instagram_post){
717
  $post_width = $image_width - ($filmstrip_direction == 'vertical' ? $slideshow_filmstrip_width : 0);
707
  <?php
708
  if (! $is_embed) {
709
  ?>
710
+ <img class="bwg_slideshow_image_<?php echo $bwg; ?>" src="<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR . $image_row->image_url; ?>" alt="<?php echo $image_row->alt; ?>"/>
711
  <?php
712
  }
713
  else { /*$is_embed*/ ?>
714
+ <span class="bwg_slideshow_embed_<?php echo $bwg; ?>">
715
  <?php
716
  if($is_embed_instagram_post){
717
  $post_width = $image_width - ($filmstrip_direction == 'vertical' ? $slideshow_filmstrip_width : 0);
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.23
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.23';
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.23';
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.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
  ));
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
 
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);
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.23
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -205,6 +205,11 @@ Yes, it is possible to add advertising and/or watermark over the images. In both
205
 
206
 
207
  == Changelog ==
 
 
 
 
 
208
  = 1.2.23 =
209
  bug in preload option fixed
210
 
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
 
205
 
206
 
207
  == Changelog ==
208
+
209
+ = 1.2.24 =
210
+ duplicated id in slideshow view
211
+ deprecated options removed (roles)
212
+
213
  = 1.2.23 =
214
  bug in preload option fixed
215