Photo Gallery by WD – Responsive Photo Gallery - Version 1.1.5

Version Description

Download this release

Release Info

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

Code changes from version 1.1.4 to 1.1.5

admin/controllers/BWGControllerGalleries_bwg.php CHANGED
@@ -505,10 +505,10 @@ class BWGControllerGalleries_bwg {
505
  if (isset($_POST['check_' . $image_id])) {
506
  $_POST['check_' . $new_image_id] = 'on';
507
  }
508
- $image_id = $new_image_id;
509
- if (isset($_POST['image_current_id']) && strpos(esc_html($_POST['image_current_id']), 'pr_') !== FALSE) {
510
- $_POST['image_current_id'] = $image_id;
511
  }
 
512
  }
513
  else {
514
  $save = $wpdb->update($wpdb->prefix . 'bwg_image', array(
505
  if (isset($_POST['check_' . $image_id])) {
506
  $_POST['check_' . $new_image_id] = 'on';
507
  }
508
+ if (isset($_POST['image_current_id']) && (esc_html($_POST['image_current_id']) == $image_id)) {
509
+ $_POST['image_current_id'] = $new_image_id;
 
510
  }
511
+ $image_id = $new_image_id;
512
  }
513
  else {
514
  $save = $wpdb->update($wpdb->prefix . 'bwg_image', array(
css/bwg_frontend.css CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  .spider_popup_loading,
2
  .footer-list-block .bwp_gallery .spider_popup_loading,
3
  .footer-list-block .bwp_gallery_tags .spider_popup_loading {
1
+ div[id^="bwg_container"] p {
2
+ padding: 0 !important;
3
+ margin: 0 !important;
4
+ }
5
+
6
  .spider_popup_loading,
7
  .footer-list-block .bwp_gallery .spider_popup_loading,
8
  .footer-list-block .bwp_gallery_tags .spider_popup_loading {
frontend/views/BWGViewAlbum_extended_preview.php CHANGED
@@ -38,7 +38,6 @@ class BWGViewAlbum_extended_preview {
38
  }
39
  $type = (isset($_POST['type_' . $bwg]) ? esc_html($_POST['type_' . $bwg]) : 'album');
40
  $album_gallery_id = (isset($_POST['album_gallery_id_' . $bwg]) ? esc_html($_POST['album_gallery_id_' . $bwg]) : $params['album_id']);
41
- $album_gallery_id = (isset($_POST['album_gallery_id_' . $bwg]) ? esc_html($_POST['album_gallery_id_' . $bwg]) : $params['album_id']);
42
  if (!$album_gallery_id) {
43
  echo WDWLibrary::message(__('There is no album selected or the album was deleted.', 'bwg'), 'error');
44
  return;
38
  }
39
  $type = (isset($_POST['type_' . $bwg]) ? esc_html($_POST['type_' . $bwg]) : 'album');
40
  $album_gallery_id = (isset($_POST['album_gallery_id_' . $bwg]) ? esc_html($_POST['album_gallery_id_' . $bwg]) : $params['album_id']);
 
41
  if (!$album_gallery_id) {
42
  echo WDWLibrary::message(__('There is no album selected or the album was deleted.', 'bwg'), 'error');
43
  return;
frontend/views/BWGViewGalleryBox.php CHANGED
@@ -316,7 +316,7 @@ class BWGViewGalleryBox {
316
  }
317
  .bwg_comments p,
318
  .bwg_comment_body_p {
319
- margin: 5px;
320
  text-align: left;
321
  word-wrap: break-word;
322
  word-break: break-word;
316
  }
317
  .bwg_comments p,
318
  .bwg_comment_body_p {
319
+ margin: 5px !important;;
320
  text-align: left;
321
  word-wrap: break-word;
322
  word-break: break-word;
frontend/views/BWGViewThumbnails.php CHANGED
@@ -36,7 +36,7 @@ class BWGViewThumbnails {
36
  $options_row = $this->model->get_options_row_data();
37
  $params['gallery_id'] = $params['id'];
38
  $params['images_per_page'] = $params['count'];
39
- $params['sort_by'] = (($params['show'] == 'random') ? 'RAND()' : 'date');
40
  $params['image_enable_page'] = 0;
41
  $params['image_title'] = $options_row->image_title_show_hover;
42
  $params['thumb_height'] = $params['height'];
@@ -292,7 +292,7 @@ class BWGViewThumbnails {
292
  'image_width' => $params['popup_width'],
293
  'image_height' => $params['popup_height'],
294
  'image_effect' => $params['popup_effect'],
295
- 'sort_by' => (isset($params['type']) ? 'date' : (($params['sort_by'] == 'RAND()') ? 'order' : $params['sort_by'])),
296
  'enable_image_filmstrip' => $params['popup_enable_filmstrip'],
297
  'image_filmstrip_height' => $params['popup_filmstrip_height'],
298
  'enable_image_ctrl_btn' => $params['popup_enable_ctrl_btn'],
36
  $options_row = $this->model->get_options_row_data();
37
  $params['gallery_id'] = $params['id'];
38
  $params['images_per_page'] = $params['count'];
39
+ $params['sort_by'] = (($params['show'] == 'random') ? 'RAND()' : 'order');
40
  $params['image_enable_page'] = 0;
41
  $params['image_title'] = $options_row->image_title_show_hover;
42
  $params['thumb_height'] = $params['height'];
292
  'image_width' => $params['popup_width'],
293
  'image_height' => $params['popup_height'],
294
  'image_effect' => $params['popup_effect'],
295
+ 'sort_by' => (isset($params['type']) ? 'order' : (($params['sort_by'] == 'RAND()') ? 'order' : $params['sort_by'])),
296
  'enable_image_filmstrip' => $params['popup_enable_filmstrip'],
297
  'image_filmstrip_height' => $params['popup_filmstrip_height'],
298
  'enable_image_ctrl_btn' => $params['popup_enable_ctrl_btn'],
js/bwg.js CHANGED
@@ -122,7 +122,7 @@ function spider_ajax_save(form_id, tr_group) {
122
  jQuery('#check_all_items').attr('checked', false);
123
  }
124
  for (var i in ids_array) {
125
- if (ids_array[i]) {
126
  if (jQuery("#check_" + ids_array[i]).attr('checked') == 'checked') {
127
  post_data["check_" + ids_array[i]] = jQuery("#check_" + ids_array[i]).val();
128
  flag = true;
122
  jQuery('#check_all_items').attr('checked', false);
123
  }
124
  for (var i in ids_array) {
125
+ if (ids_array.hasOwnProperty(i) && ids_array[i]) {
126
  if (jQuery("#check_" + ids_array[i]).attr('checked') == 'checked') {
127
  post_data["check_" + ids_array[i]] = jQuery("#check_" + ids_array[i]).val();
128
  flag = true;
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.1.4
8
  * Author: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
@@ -310,7 +310,7 @@ function bwg_shortcode($params) {
310
  }
311
  ob_start();
312
  bwg_front_end($params);
313
- return ob_get_clean();
314
  }
315
  add_shortcode('Best_Wordpress_Gallery', 'bwg_shortcode');
316
 
@@ -2381,7 +2381,7 @@ function bwg_activate() {
2381
  ));
2382
  }
2383
  $version = str_replace('.', '', get_option("wd_bwg_version"));
2384
- $new_version = 114;
2385
  if ($version && $version < $new_version) {
2386
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2387
  for ($i = $version; $i < $new_version; $i++) {
@@ -2390,10 +2390,10 @@ function bwg_activate() {
2390
  $func_name();
2391
  }
2392
  }
2393
- update_option("wd_bwg_version", '1.1.4');
2394
  }
2395
  else {
2396
- add_option("wd_bwg_version", '1.1.4', '', 'no');
2397
  add_option("wd_bwg_theme_version", '1.0.0', '', 'no');
2398
  }
2399
  }
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.1.5
8
  * Author: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
310
  }
311
  ob_start();
312
  bwg_front_end($params);
313
+ return str_replace(array("\r\n", "\n", "\r"), '', ob_get_clean());
314
  }
315
  add_shortcode('Best_Wordpress_Gallery', 'bwg_shortcode');
316
 
2381
  ));
2382
  }
2383
  $version = str_replace('.', '', get_option("wd_bwg_version"));
2384
+ $new_version = 115;
2385
  if ($version && $version < $new_version) {
2386
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2387
  for ($i = $version; $i < $new_version; $i++) {
2390
  $func_name();
2391
  }
2392
  }
2393
+ update_option("wd_bwg_version", '1.1.5');
2394
  }
2395
  else {
2396
+ add_option("wd_bwg_version", '1.1.5', '', 'no');
2397
  add_option("wd_bwg_theme_version", '1.0.0', '', 'no');
2398
  }
2399
  }
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
5
  Requires at least: 3.0
6
  Tested up to: 3.8.1
7
- Stable tag: 1.1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
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
5
  Requires at least: 3.0
6
  Tested up to: 3.8.1
7
+ Stable tag: 1.1.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10