Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.32

Version Description

New: Loop option for lightbox. Fixed: Embed media by YouTube short url.

Download this release

Release Info

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

Code changes from version 1.2.31 to 1.2.32

admin/controllers/BWGControllerOptions_bwg.php CHANGED
@@ -210,6 +210,7 @@ class BWGControllerOptions_bwg {
210
  $autohide_lightbox_navigation = (isset($_POST['autohide_lightbox_navigation']) ? esc_html(stripslashes($_POST['autohide_lightbox_navigation'])) : 1);
211
  $autohide_slideshow_navigation = (isset($_POST['autohide_slideshow_navigation']) ? esc_html(stripslashes($_POST['autohide_slideshow_navigation'])) : 1);
212
  $read_metadata = (isset($_POST['read_metadata']) ? esc_html(stripslashes($_POST['read_metadata'])) : 0);
 
213
 
214
  $save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
215
  'images_directory' => $images_directory,
@@ -328,6 +329,7 @@ class BWGControllerOptions_bwg {
328
  'autohide_lightbox_navigation' => $autohide_lightbox_navigation,
329
  'autohide_slideshow_navigation' => $autohide_slideshow_navigation,
330
  'read_metadata' => $read_metadata,
 
331
  ), array('id' => 1));
332
 
333
  if ($save !== FALSE) {
210
  $autohide_lightbox_navigation = (isset($_POST['autohide_lightbox_navigation']) ? esc_html(stripslashes($_POST['autohide_lightbox_navigation'])) : 1);
211
  $autohide_slideshow_navigation = (isset($_POST['autohide_slideshow_navigation']) ? esc_html(stripslashes($_POST['autohide_slideshow_navigation'])) : 1);
212
  $read_metadata = (isset($_POST['read_metadata']) ? esc_html(stripslashes($_POST['read_metadata'])) : 0);
213
+ $enable_loop = (isset($_POST['enable_loop']) ? esc_html(stripslashes($_POST['enable_loop'])) : 1);
214
 
215
  $save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
216
  'images_directory' => $images_directory,
329
  'autohide_lightbox_navigation' => $autohide_lightbox_navigation,
330
  'autohide_slideshow_navigation' => $autohide_slideshow_navigation,
331
  'read_metadata' => $read_metadata,
332
+ 'enable_loop' => $enable_loop,
333
  ), array('id' => 1));
334
 
335
  if ($save !== FALSE) {
admin/models/BWGModelOptions_bwg.php CHANGED
@@ -152,6 +152,7 @@ class BWGModelOptions_bwg {
152
  $row->autohide_lightbox_navigation = 1;
153
  $row->autohide_slideshow_navigation = 1;
154
  $row->read_metadata = 0;
 
155
  }
156
  return $row;
157
  }
152
  $row->autohide_lightbox_navigation = 1;
153
  $row->autohide_slideshow_navigation = 1;
154
  $row->read_metadata = 0;
155
+ $row->enable_loop = 1;
156
  }
157
  return $row;
158
  }
admin/views/BWGViewOptions_bwg.php CHANGED
@@ -879,6 +879,16 @@ class BWGViewOptions_bwg {
879
  <input type="radio" name="show_image_counts" id="show_image_counts_current_image_number_0" value="0" <?php if (!$row->show_image_counts) echo 'checked="checked"'; ?> /><label for="show_image_counts_current_image_number_0">No</label>
880
  <div class="spider_description"></div>
881
  </td>
 
 
 
 
 
 
 
 
 
 
882
  </tr>
883
  </tbody>
884
  </table>
879
  <input type="radio" name="show_image_counts" id="show_image_counts_current_image_number_0" value="0" <?php if (!$row->show_image_counts) echo 'checked="checked"'; ?> /><label for="show_image_counts_current_image_number_0">No</label>
880
  <div class="spider_description"></div>
881
  </td>
882
+ </tr>
883
+ <tr id="tr_image_cycle">
884
+ <td class="spider_label_options">
885
+ <label>Enable loop:</label>
886
+ </td>
887
+ <td>
888
+ <input type="radio" name="enable_loop" id="enable_loop_1" value="1" <?php if ($row->enable_loop) echo 'checked="checked"'; ?> /><label for="enable_loop_1">Yes</label>
889
+ <input type="radio" name="enable_loop" id="enable_loop_0" value="0" <?php if (!$row->enable_loop) echo 'checked="checked"'; ?> /><label for="enable_loop_0">No</label>
890
+ <div class="spider_description"></div>
891
+ </td>
892
  </tr>
893
  </tbody>
894
  </table>
framework/WDWLibraryEmbed.php CHANGED
@@ -218,9 +218,11 @@ class WDWLibraryEmbed {
218
 
219
  switch ($embed_type) {
220
  case 'EMBED_OEMBED_YOUTUBE':
221
- parse_str( parse_url( $url, PHP_URL_QUERY ), $my_array_of_vars );
222
- $filename = $my_array_of_vars['v'];
223
-
 
 
224
  $embedData = array(
225
  'name' => htmlspecialchars($result->title),
226
  'description' => htmlspecialchars($result->title),
218
 
219
  switch ($embed_type) {
220
  case 'EMBED_OEMBED_YOUTUBE':
221
+ $youtube_regex = "#(?<=v=)[a-zA-Z0-9-]+(?=&)|(?<=v\/)[^&\n]+|(?<=v=)[^&\n]+|(?<=youtu.be/)[^&\n]+#";
222
+ $matches = array();
223
+ preg_match($youtube_regex , $url , $matches);
224
+ $filename = $matches[0];
225
+
226
  $embedData = array(
227
  'name' => htmlspecialchars($result->title),
228
  'description' => htmlspecialchars($result->title),
frontend/views/BWGViewGalleryBox.php CHANGED
@@ -959,8 +959,8 @@ class BWGViewGalleryBox {
959
  </div>
960
  </div>
961
  </div>
962
- <a id="spider_popup_left"><span id="spider_popup_left-ico"><span><i class="bwg_prev_btn fa <?php echo $theme_row->lightbox_rl_btn_style; ?>-left"></i></span></span></a>
963
- <a id="spider_popup_right"><span id="spider_popup_right-ico"><span><i class="bwg_next_btn fa <?php echo $theme_row->lightbox_rl_btn_style; ?>-right"></i></span></span></a>
964
  </div>
965
  </div>
966
  <a class="spider_popup_close" onclick="spider_destroypopup(1000); return false;" ontouchend="spider_destroypopup(1000); return false;"><span><i class="bwg_close_btn fa fa-times"></i></span></a>
@@ -1329,6 +1329,21 @@ class BWGViewGalleryBox {
1329
  bwg_grid(10, 1, 0, 0, 0, .7, 0, current_image_class, next_image_class);
1330
  }
1331
  function bwg_change_image(current_key, key, data, from_effect) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1332
  /* Pause videos.*/
1333
  jQuery("#bwg_image_container").find("iframe").each(function () {
1334
  jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');
@@ -1357,8 +1372,8 @@ class BWGViewGalleryBox {
1357
  else if (bwg_current_key == key) {
1358
  return;
1359
  }
1360
- jQuery("#spider_popup_left").hover().css({"display": "inline"});
1361
- jQuery("#spider_popup_right").hover().css({"display": "inline"});
1362
  jQuery(".bwg_image_count").html(data[key]["number"]);
1363
  /* Set filmstrip initial position.*/
1364
  jQuery(".bwg_watermark").css({display: 'none'});
@@ -2228,8 +2243,10 @@ class BWGViewGalleryBox {
2228
  window.clearInterval(bwg_playInterval);
2229
  bwg_playInterval = setInterval(function () {
2230
  if (!data[parseInt(jQuery('#bwg_current_image_key').val()) + 1]) {
2231
- /* Wrap around.*/
2232
- bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), 0, data);
 
 
2233
  return;
2234
  }
2235
  bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), parseInt(jQuery('#bwg_current_image_key').val()) + 1, data)
959
  </div>
960
  </div>
961
  </div>
962
+ <a id="spider_popup_left" <?php echo ($option_row->enable_loop == 0 && $current_key == 0) ? 'style="display: none;"' : ''; ?>><span id="spider_popup_left-ico"><span><i class="bwg_prev_btn fa <?php echo $theme_row->lightbox_rl_btn_style; ?>-left"></i></span></span></a>
963
+ <a id="spider_popup_right" <?php echo ($option_row->enable_loop == 0 && $current_key == count($image_rows) - 1) ? 'style="display: none;"' : ''; ?>><span id="spider_popup_right-ico"><span><i class="bwg_next_btn fa <?php echo $theme_row->lightbox_rl_btn_style; ?>-right"></i></span></span></a>
964
  </div>
965
  </div>
966
  <a class="spider_popup_close" onclick="spider_destroypopup(1000); return false;" ontouchend="spider_destroypopup(1000); return false;"><span><i class="bwg_close_btn fa fa-times"></i></span></a>
1329
  bwg_grid(10, 1, 0, 0, 0, .7, 0, current_image_class, next_image_class);
1330
  }
1331
  function bwg_change_image(current_key, key, data, from_effect) {
1332
+ jQuery("#spider_popup_left").show();
1333
+ jQuery("#spider_popup_right").show();
1334
+ if (<?php echo $option_row->enable_loop; ?> == 0) {
1335
+ if (key == (parseInt(data.length) - 1)) {
1336
+ jQuery("#spider_popup_right").hide();
1337
+ }
1338
+ if (key == 0) {
1339
+ jQuery("#spider_popup_left").hide();
1340
+ }
1341
+ /*if (key == (parseInt(data.length) - 1)) {
1342
+ window.clearInterval(bwg_playInterval);
1343
+ return;
1344
+ }*/
1345
+ }
1346
+
1347
  /* Pause videos.*/
1348
  jQuery("#bwg_image_container").find("iframe").each(function () {
1349
  jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');
1372
  else if (bwg_current_key == key) {
1373
  return;
1374
  }
1375
+ /*jQuery("#spider_popup_left").hover().css({"display": "inline"});
1376
+ jQuery("#spider_popup_right").hover().css({"display": "inline"});*/
1377
  jQuery(".bwg_image_count").html(data[key]["number"]);
1378
  /* Set filmstrip initial position.*/
1379
  jQuery(".bwg_watermark").css({display: 'none'});
2243
  window.clearInterval(bwg_playInterval);
2244
  bwg_playInterval = setInterval(function () {
2245
  if (!data[parseInt(jQuery('#bwg_current_image_key').val()) + 1]) {
2246
+ if (<?php echo $option_row->enable_loop; ?> == 1) {
2247
+ /* Wrap around.*/
2248
+ bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), 0, data);
2249
+ }
2250
  return;
2251
  }
2252
  bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), parseInt(jQuery('#bwg_current_image_key').val()) + 1, data)
js/bwg_frontend.js CHANGED
@@ -1,4 +1,6 @@
1
  function spider_frontend_ajax(form_id, current_view, id, album_gallery_id, cur_album_id, type, srch_btn, title, sortByParam, load_more) {
 
 
2
  if (typeof load_more == "undefined") {
3
  var load_more = false;
4
  }
@@ -75,33 +77,14 @@ function spider_frontend_ajax(form_id, current_view, id, album_gallery_id, cur_a
75
  }
76
  /* For all*/
77
  window["bwg_document_ready_" + current_view]();
 
78
  if (id == "bwg_masonry_thumbnails_" + current_view || id == "bwg_album_masonry_" + current_view) {
79
- window["bwg_masonry_" + current_view]();
80
  }
 
81
  if (id == "bwg_mosaic_thumbnails_" + current_view) {
82
- window["bwg_mosaic_" + current_view]("load");
83
  }
84
- /* For masonry view.*/
85
- /*
86
- var cccount_masonry = 0;
87
- var tot_cccount_masonry = jQuery(".bwg_masonry_thumb_spun_" + current_view + " img").length;
88
- jQuery(".bwg_masonry_thumb_spun_" + current_view + " img").on("load", function() {
89
- if (++cccount_masonry == tot_cccount_masonry) {
90
- window["bwg_masonry_" + current_view]();
91
- }
92
- });
93
- jQuery(".bwg_masonry_thumb_spun_" + current_view + " img").error(function() {
94
-
95
- jQuery(this).height(100);
96
- jQuery(this).width(100);
97
- if (++cccount_masonry == tot_cccount_masonry) {
98
-
99
- window["bwg_masonry_" + current_view]();
100
-
101
- }
102
- });
103
- */
104
-
105
  /* For Blog style view.*/
106
  jQuery(".blog_style_images_conteiner_" + current_view + " .bwg_embed_frame_16x9_" + current_view).each(function (e) {
107
  jQuery(this).width(jQuery(this).parent().width());
@@ -111,41 +94,11 @@ function spider_frontend_ajax(form_id, current_view, id, album_gallery_id, cur_a
111
  jQuery(this).width(jQuery(this).parent().width());
112
  jQuery(this).height(jQuery(this).width() +88);
113
  });
114
-
115
-
116
-
117
  /* For Image browser view.*/
118
-
119
  jQuery('#bwg_embed_frame_16x9_'+current_view).width(jQuery('#bwg_embed_frame_16x9_'+current_view).parent().width());
120
  jQuery('#bwg_embed_frame_16x9_'+current_view).height(jQuery('#bwg_embed_frame_16x9_'+current_view).width() * 0.5625);
121
  jQuery('#bwg_embed_frame_instapost_'+current_view).width(jQuery('#bwg_embed_frame_16x9_'+current_view).parent().width());
122
  jQuery('#bwg_embed_frame_instapost_'+current_view).height(jQuery('#bwg_embed_frame_instapost_'+current_view).width() +88);
123
-
124
-
125
- /* For mosaic view.*/
126
- /*
127
- var cccount_mosaic = 0;
128
- var tot_cccount_mosaic = jQuery(".bwg_mosaic_thumb_spun_" + current_view + " img").length;
129
-
130
- jQuery(".bwg_mosaic_thumb_spun_" + current_view + " img").on("load", function() {
131
-
132
- if (++cccount_mosaic == tot_cccount_mosaic) {
133
-
134
- window["bwg_mosaic_" + current_view]("load");
135
-
136
- }
137
- });
138
- jQuery(".bwg_mosaic_thumb_spun_" + current_view + " img").error(function() {
139
-
140
- jQuery(this).height(100);
141
- jQuery(this).width(100);
142
- if (++cccount_mosaic == tot_cccount_mosaic) {
143
-
144
- window["bwg_mosaic_" + current_view]("load");
145
-
146
- }
147
- });*/
148
-
149
  });
150
  // if (event.preventDefault) {
151
  // event.preventDefault();
1
  function spider_frontend_ajax(form_id, current_view, id, album_gallery_id, cur_album_id, type, srch_btn, title, sortByParam, load_more) {
2
+ var masonry_already_loaded = jQuery(".bwg_masonry_thumb_spun_" + current_view + " img").length;
3
+ var mosaic_already_loaded = jQuery(".bwg_mosaic_thumb_spun_" + current_view + " img").length;
4
  if (typeof load_more == "undefined") {
5
  var load_more = false;
6
  }
77
  }
78
  /* For all*/
79
  window["bwg_document_ready_" + current_view]();
80
+ /* For masonry view.*/
81
  if (id == "bwg_masonry_thumbnails_" + current_view || id == "bwg_album_masonry_" + current_view) {
82
+ window["bwg_masonry_ajax_"+ current_view](masonry_already_loaded);
83
  }
84
+ /* For mosaic view.*/
85
  if (id == "bwg_mosaic_thumbnails_" + current_view) {
86
+ window["bwg_mosaic_ajax_" + current_view](mosaic_already_loaded);
87
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  /* For Blog style view.*/
89
  jQuery(".blog_style_images_conteiner_" + current_view + " .bwg_embed_frame_16x9_" + current_view).each(function (e) {
90
  jQuery(this).width(jQuery(this).parent().width());
94
  jQuery(this).width(jQuery(this).parent().width());
95
  jQuery(this).height(jQuery(this).width() +88);
96
  });
 
 
 
97
  /* For Image browser view.*/
 
98
  jQuery('#bwg_embed_frame_16x9_'+current_view).width(jQuery('#bwg_embed_frame_16x9_'+current_view).parent().width());
99
  jQuery('#bwg_embed_frame_16x9_'+current_view).height(jQuery('#bwg_embed_frame_16x9_'+current_view).width() * 0.5625);
100
  jQuery('#bwg_embed_frame_instapost_'+current_view).width(jQuery('#bwg_embed_frame_16x9_'+current_view).parent().width());
101
  jQuery('#bwg_embed_frame_instapost_'+current_view).height(jQuery('#bwg_embed_frame_instapost_'+current_view).width() +88);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  });
103
  // if (event.preventDefault) {
104
  // event.preventDefault();
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.2.31
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -743,6 +743,7 @@ function bwg_activate() {
743
  `autohide_lightbox_navigation` tinyint(1) NOT NULL,
744
  `autohide_slideshow_navigation` tinyint(1) NOT NULL,
745
  `read_metadata` tinyint(1) NOT NULL,
 
746
  PRIMARY KEY (`id`)
747
  ) DEFAULT CHARSET=utf8;";
748
  $wpdb->query($bwg_option);
@@ -1329,6 +1330,7 @@ function bwg_activate() {
1329
  'autohide_lightbox_navigation' => 1,
1330
  'autohide_slideshow_navigation' => 1,
1331
  'read_metadata' => 1,
 
1332
  ), array(
1333
  '%d',
1334
  '%s',
@@ -1458,6 +1460,7 @@ function bwg_activate() {
1458
  '%d',
1459
  '%d',
1460
  '%d',
 
1461
  ));
1462
  }
1463
  $exists_default = $wpdb->get_var('SELECT count(id) FROM ' . $wpdb->prefix . 'bwg_theme');
@@ -3155,7 +3158,7 @@ function bwg_activate() {
3155
  ));
3156
  }
3157
  $version = get_option("wd_bwg_version");
3158
- $new_version = '1.2.31';
3159
  if ($version && version_compare($version, $new_version, '<')) {
3160
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3161
  bwg_update($version);
@@ -3173,7 +3176,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
3173
 
3174
  function bwg_update_hook() {
3175
  $version = get_option("wd_bwg_version");
3176
- $new_version = '1.2.31';
3177
  if ($version && version_compare($version, $new_version, '<')) {
3178
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3179
  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.2.32
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
743
  `autohide_lightbox_navigation` tinyint(1) NOT NULL,
744
  `autohide_slideshow_navigation` tinyint(1) NOT NULL,
745
  `read_metadata` tinyint(1) NOT NULL,
746
+ `enable_loop` tinyint(1) NOT NULL,
747
  PRIMARY KEY (`id`)
748
  ) DEFAULT CHARSET=utf8;";
749
  $wpdb->query($bwg_option);
1330
  'autohide_lightbox_navigation' => 1,
1331
  'autohide_slideshow_navigation' => 1,
1332
  'read_metadata' => 1,
1333
+ 'enable_loop'=> 1,
1334
  ), array(
1335
  '%d',
1336
  '%s',
1460
  '%d',
1461
  '%d',
1462
  '%d',
1463
+ '%d',
1464
  ));
1465
  }
1466
  $exists_default = $wpdb->get_var('SELECT count(id) FROM ' . $wpdb->prefix . 'bwg_theme');
3158
  ));
3159
  }
3160
  $version = get_option("wd_bwg_version");
3161
+ $new_version = '1.2.32';
3162
  if ($version && version_compare($version, $new_version, '<')) {
3163
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3164
  bwg_update($version);
3176
 
3177
  function bwg_update_hook() {
3178
  $version = get_option("wd_bwg_version");
3179
+ $new_version = '1.2.32';
3180
  if ($version && version_compare($version, $new_version, '<')) {
3181
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3182
  bwg_update($version);
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Photo Gallery ===
2
  Contributors: webdorado
3
- 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, instagram, mosaic
5
  Requires at least: 3.4
6
  Tested up to: 4.2
7
- Stable tag: 1.2.31
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -15,11 +15,11 @@ Create 100% responsive FREE WordPress photo gallery in minutes. Easy to customiz
15
 
16
  https://www.youtube.com/watch?v=4Mxg0FsFZZE&index=5&list=PLnxWPiY5tLFUsFI67acGEPAqoDMZqss5F
17
 
18
- [WordPress Photo Gallery](http://web-dorado.com/products/wordpress-photo-gallery-plugin.html)
19
  [Photo Gallery Demo](http://wpdemo.web-dorado.com/gallery/)
20
  [Photo Gallery Demo Admin](http://wpdemo.web-dorado.com/wp-admin/admin.php?page=galleries_bwg)
21
- [Photo Gallery User Manual](http://web-dorado.com/wordpress-gallery-guide-step-1.html)
22
- [Photo Gallery Support Forum](http://web-dorado.com/forum/photo-gallery.html)
23
 
24
  Photo Gallery is an advanced plugin with a list of tools and options for adding and editing images for different views. It is fully responsive. The product includes plugin for adding image galleries and albums to posts and pages, as well as multiple widgets. You can add images, providing detailed descriptions and tags, organize the galleries into different albums.
25
 
@@ -47,7 +47,7 @@ Photo Gallery product in addition to the main plugin includes 4 specific widgets
47
  * Photo Gallery (similar to the main plugin option)
48
 
49
  ###IMPORTANT:
50
- If you think you found a bug in Photo Gallery or have any problem/question concerning the plugin, please check out [Photo Gallery Support Forum](http://web-dorado.com/forum/photo-gallery.html) in our website. If you do not find a solution here, do not hesitate to contact us at [info@web-dorado.com](mailto:info@web-dorado.com).
51
 
52
 
53
  ### The list of the features:
@@ -84,7 +84,7 @@ If you think you found a bug in Photo Gallery or have any problem/question conce
84
  * Redirection option upon clicking image thumbnail
85
  * Front-end image sorting possibility (dropdown) for the users
86
 
87
- Upgrade to [WordPress Photo Gallery Pro](http://web-dorado.com/products/wordpress-photo-gallery-plugin.html) to add features:
88
 
89
  * Masonry gallery View.
90
  * Mosaic gallery View
@@ -207,6 +207,10 @@ Yes, it is possible to add advertising and/or watermark over the images. In both
207
 
208
  == Changelog ==
209
 
 
 
 
 
210
  = 1.2.31 =
211
  New: Load more button instead of pagination (optional).
212
  Fixed: Minor bug on gallery save on php5.3.
1
  === Photo Gallery ===
2
  Contributors: webdorado
3
+ Donate link: https://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, instagram, mosaic
5
  Requires at least: 3.4
6
  Tested up to: 4.2
7
+ Stable tag: 1.2.32
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
15
 
16
  https://www.youtube.com/watch?v=4Mxg0FsFZZE&index=5&list=PLnxWPiY5tLFUsFI67acGEPAqoDMZqss5F
17
 
18
+ [WordPress Photo Gallery](https://web-dorado.com/products/wordpress-photo-gallery-plugin.html)
19
  [Photo Gallery Demo](http://wpdemo.web-dorado.com/gallery/)
20
  [Photo Gallery Demo Admin](http://wpdemo.web-dorado.com/wp-admin/admin.php?page=galleries_bwg)
21
+ [Photo Gallery User Manual](https://web-dorado.com/wordpress-gallery-guide-step-1.html)
22
+ [Photo Gallery Support Forum](https://web-dorado.com/forum/photo-gallery.html)
23
 
24
  Photo Gallery is an advanced plugin with a list of tools and options for adding and editing images for different views. It is fully responsive. The product includes plugin for adding image galleries and albums to posts and pages, as well as multiple widgets. You can add images, providing detailed descriptions and tags, organize the galleries into different albums.
25
 
47
  * Photo Gallery (similar to the main plugin option)
48
 
49
  ###IMPORTANT:
50
+ If you think you found a bug in Photo Gallery or have any problem/question concerning the plugin, please check out [Photo Gallery Support Forum](https://web-dorado.com/forum/photo-gallery.html) in our website. If you do not find a solution here, do not hesitate to contact us at [info@web-dorado.com](mailto:info@web-dorado.com).
51
 
52
 
53
  ### The list of the features:
84
  * Redirection option upon clicking image thumbnail
85
  * Front-end image sorting possibility (dropdown) for the users
86
 
87
+ Upgrade to [WordPress Photo Gallery Pro](https://web-dorado.com/products/wordpress-photo-gallery-plugin.html) to add features:
88
 
89
  * Masonry gallery View.
90
  * Mosaic gallery View
207
 
208
  == Changelog ==
209
 
210
+ = 1.2.32 =
211
+ New: Loop option for lightbox.
212
+ Fixed: Embed media by YouTube short url.
213
+
214
  = 1.2.31 =
215
  New: Load more button instead of pagination (optional).
216
  Fixed: Minor bug on gallery save on php5.3.
update/bwg_update.php CHANGED
@@ -244,6 +244,10 @@ function bwg_update($version) {
244
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `autohide_slideshow_navigation` tinyint(1) NOT NULL DEFAULT 1");
245
  // Load image metadata.
246
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option CHANGE `description_tb` `read_metadata` tinyint(1) NOT NULL DEFAULT 1");
 
 
 
 
247
  }
248
  return;
249
  }
244
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `autohide_slideshow_navigation` tinyint(1) NOT NULL DEFAULT 1");
245
  // Load image metadata.
246
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option CHANGE `description_tb` `read_metadata` tinyint(1) NOT NULL DEFAULT 1");
247
+ }
248
+ if (version_compare($version, '1.2.32') == -1) {
249
+ // Add load all images on frontend.
250
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `enable_loop` tinyint(1) NOT NULL DEFAULT 1");
251
  }
252
  return;
253
  }