Photo Gallery by WD – Responsive Photo Gallery - Version 1.5.2

Version Description

  • Fixed: Changed gallery index number on ID.
  • Fixed: Conflict with lazy load.
  • Fixed: Slideshow view.
Download this release

Release Info

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

Code changes from version 1.5.1 to 1.5.2

admin/views/Widget.php CHANGED
@@ -77,9 +77,10 @@ class WidgetView_bwg {
77
  $params['compuct_album_enable_page'] = 0;
78
  }
79
  $controller = new $controller_class($view);
80
- $bwg = WDWLibrary::unique_number();
81
  $pairs = WDWLibrary::get_shortcode_option_params( $params );
82
  $controller->execute($pairs, 1, $bwg);
 
83
  // After widget.
84
  echo $after_widget;
85
  }
77
  $params['compuct_album_enable_page'] = 0;
78
  }
79
  $controller = new $controller_class($view);
80
+ global $bwg;
81
  $pairs = WDWLibrary::get_shortcode_option_params( $params );
82
  $controller->execute($pairs, 1, $bwg);
83
+ $bwg++;
84
  // After widget.
85
  echo $after_widget;
86
  }
admin/views/WidgetSlideshow.php CHANGED
@@ -34,9 +34,8 @@ class WidgetSlideshowView_bwg {
34
  $controller_class = 'BWGControllerSite';
35
  $view = 'Slideshow';
36
  $controller = new $controller_class($view);
37
-
38
- $bwg = WDWLibrary::unique_number();
39
- $params = array (
40
  'from' => 'widget',
41
  'gallery_type' => 'slideshow',
42
  'gallery_id' => $gallery_id,
@@ -52,6 +51,7 @@ class WidgetSlideshowView_bwg {
52
  );
53
  $pairs = WDWLibrary::get_shortcode_option_params( $params );
54
  $controller->execute($pairs, 1, $bwg);
 
55
  // After widget.
56
  echo $after_widget;
57
  }
34
  $controller_class = 'BWGControllerSite';
35
  $view = 'Slideshow';
36
  $controller = new $controller_class($view);
37
+ global $bwg;
38
+ $params = array (
 
39
  'from' => 'widget',
40
  'gallery_type' => 'slideshow',
41
  'gallery_id' => $gallery_id,
51
  );
52
  $pairs = WDWLibrary::get_shortcode_option_params( $params );
53
  $controller->execute($pairs, 1, $bwg);
54
+ $bwg++;
55
  // After widget.
56
  echo $after_widget;
57
  }
filemanager/images/btn_row_move_down.png DELETED
Binary file
filemanager/images/btn_row_move_up.png DELETED
Binary file
filemanager/images/btn_row_remove.png DELETED
Binary file
filemanager/images/{file_icons/dir.png → dir.png} RENAMED
File without changes
filemanager/images/file_icons/_blank.png DELETED
Binary file
filemanager/images/file_icons/_page.png DELETED
Binary file
filemanager/images/file_icons/index.html DELETED
@@ -1,11 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>403 Forbidden</title>
5
- </head>
6
- <body>
7
-
8
- <p>Directory access is forbidden.</p>
9
-
10
- </body>
11
- </html>
 
 
 
 
 
 
 
 
 
 
 
filemanager/images/icons11/add-new.png DELETED
Binary file
filemanager/images/icons11/apply.png DELETED
Binary file
filemanager/images/icons11/cancel.png DELETED
Binary file
filemanager/images/icons11/checkout-option.png DELETED
Binary file
filemanager/images/icons11/close-red.png DELETED
Binary file
filemanager/images/icons11/delete.png DELETED
Binary file
filemanager/images/icons11/edit.png DELETED
Binary file
filemanager/images/icons11/media.png DELETED
Binary file
filemanager/images/icons11/save.png DELETED
Binary file
filemanager/model.php CHANGED
@@ -76,8 +76,7 @@ class FilemanagerModel {
76
  }
77
 
78
  function get_files($sort_by, $sort_order) {
79
- $icons_dir_path = BWG()->plugin_dir . '/filemanager/images/file_icons';
80
- $icons_dir_url = BWG()->plugin_url . '/filemanager/images/file_icons';
81
  $valid_types = explode(',', isset($_REQUEST['extensions']) ? strtolower(esc_html($_REQUEST['extensions'])) : '*');
82
  $dir = (isset($_REQUEST['dir']) ? '/' . htmlspecialchars_decode(stripslashes(esc_html(str_replace('../', '', $_REQUEST['dir']))), ENT_COMPAT | ENT_QUOTES) : '');
83
  $parent_dir = $this->controller->get_uploads_dir() . $dir;
@@ -100,7 +99,6 @@ class FilemanagerModel {
100
  $file['filename'] = str_replace("_", " ", $file_name);
101
  $file['type'] = '';
102
  $file['thumb'] = $icons_dir_url . '/dir.png';
103
- $file['icon'] = $icons_dir_url . '/dir.png';
104
  $file['size'] = '';
105
  $file['date_modified'] = '';
106
  $file['resolution'] = '';
@@ -115,12 +113,7 @@ class FilemanagerModel {
115
  $file['filename'] = str_replace("_", " ", $filename);
116
  $file_extension = explode('.', $file_name);
117
  $file['type'] = strtolower(end($file_extension));
118
- $icon = $icons_dir_url . '/' . $file['type'] . '.png';
119
- if (file_exists($icons_dir_path . '/' . $file['type'] . '.png') == FALSE) {
120
- $icon = $icons_dir_url . '/' . '_blank.png';
121
- }
122
- $file['thumb'] = $this->is_img($file['type']) ? $parent_dir_url . '/thumb/' . $file_name : $icon;
123
- $file['icon'] = $icon;
124
  if (($valid_types[0] != '*') && (in_array($file['type'], $valid_types) == FALSE)) {
125
  continue;
126
  }
76
  }
77
 
78
  function get_files($sort_by, $sort_order) {
79
+ $icons_dir_url = BWG()->plugin_url . '/filemanager/images';
 
80
  $valid_types = explode(',', isset($_REQUEST['extensions']) ? strtolower(esc_html($_REQUEST['extensions'])) : '*');
81
  $dir = (isset($_REQUEST['dir']) ? '/' . htmlspecialchars_decode(stripslashes(esc_html(str_replace('../', '', $_REQUEST['dir']))), ENT_COMPAT | ENT_QUOTES) : '');
82
  $parent_dir = $this->controller->get_uploads_dir() . $dir;
99
  $file['filename'] = str_replace("_", " ", $file_name);
100
  $file['type'] = '';
101
  $file['thumb'] = $icons_dir_url . '/dir.png';
 
102
  $file['size'] = '';
103
  $file['date_modified'] = '';
104
  $file['resolution'] = '';
113
  $file['filename'] = str_replace("_", " ", $filename);
114
  $file_extension = explode('.', $file_name);
115
  $file['type'] = strtolower(end($file_extension));
116
+ $file['thumb'] = $parent_dir_url . '/thumb/' . $file_name;
 
 
 
 
 
117
  if (($valid_types[0] != '*') && (in_array($file['type'], $valid_types) == FALSE)) {
118
  continue;
119
  }
framework/WDWLibrary.php CHANGED
@@ -824,8 +824,8 @@ class WDWLibrary {
824
  public static function get_used_google_fonts($theme = null, $shortcode = null) {
825
  global $wpdb;
826
 
 
827
  $google_array = array();
828
- $url = '';
829
  $google_fonts = self::get_google_fonts();
830
  if (null === $theme) {
831
  $theme = $wpdb->get_results('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme', 'OBJECT_K');
@@ -906,7 +906,7 @@ class WDWLibrary {
906
  $url = 'https://fonts.googleapis.com/css?family=' . $query;
907
  $url .= '&subset=greek,latin,greek-ext,vietnamese,cyrillic-ext,latin-ext,cyrillic';
908
  }
909
-
910
  return $url;
911
  }
912
 
824
  public static function get_used_google_fonts($theme = null, $shortcode = null) {
825
  global $wpdb;
826
 
827
+ $url = '';
828
  $google_array = array();
 
829
  $google_fonts = self::get_google_fonts();
830
  if (null === $theme) {
831
  $theme = $wpdb->get_results('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme', 'OBJECT_K');
906
  $url = 'https://fonts.googleapis.com/css?family=' . $query;
907
  $url .= '&subset=greek,latin,greek-ext,vietnamese,cyrillic-ext,latin-ext,cyrillic';
908
  }
909
+
910
  return $url;
911
  }
912
 
framework/WDWLibraryEmbed.php CHANGED
@@ -241,6 +241,7 @@ class WDWLibraryEmbed {
241
  $filename = $matches[1];
242
  }
243
  if (!$instagram_data) {
 
244
  $get_embed_data = wp_remote_get("http://api.instagram.com/oembed?url=http://instagram.com/p/".$filename);
245
  if ( is_wp_error( $get_embed_data ) ) {
246
  return json_encode(array("error", "cannot get Instagram data"));
241
  $filename = $matches[1];
242
  }
243
  if (!$instagram_data) {
244
+ $instagram_data = new stdClass();
245
  $get_embed_data = wp_remote_get("http://api.instagram.com/oembed?url=http://instagram.com/p/".$filename);
246
  if ( is_wp_error( $get_embed_data ) ) {
247
  return json_encode(array("error", "cannot get Instagram data"));
frontend/views/BWGViewAlbum_compact_preview.php CHANGED
@@ -88,7 +88,7 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
88
  <div class="bwg-item0">
89
  <div class="bwg-item1 <?php echo $theme_row->album_compact_thumb_hover_effect == 'zoom' && $params['compuct_album_title'] == 'hover' ? 'bwg-zoom-effect' : ''; ?>">
90
  <div class="bwg-item2">
91
- <img src="<?php echo $row->preview_image; ?>" alt="<?php echo $row->name; ?>" />
92
  </div>
93
  <div class="<?php echo $theme_row->album_compact_thumb_hover_effect == 'zoom' && $params['compuct_album_title'] == 'hover' ? 'bwg-zoom-effect-overlay' : ''; ?>">
94
  <?php if ( $params['compuct_album_title'] == 'hover' ) { echo $title; } ?>
88
  <div class="bwg-item0">
89
  <div class="bwg-item1 <?php echo $theme_row->album_compact_thumb_hover_effect == 'zoom' && $params['compuct_album_title'] == 'hover' ? 'bwg-zoom-effect' : ''; ?>">
90
  <div class="bwg-item2">
91
+ <img class="skip-lazy" src="<?php echo $row->preview_image; ?>" alt="<?php echo $row->name; ?>" />
92
  </div>
93
  <div class="<?php echo $theme_row->album_compact_thumb_hover_effect == 'zoom' && $params['compuct_album_title'] == 'hover' ? 'bwg-zoom-effect-overlay' : ''; ?>">
94
  <?php if ( $params['compuct_album_title'] == 'hover' ) { echo $title; } ?>
frontend/views/BWGViewAlbum_extended_preview.php CHANGED
@@ -98,7 +98,7 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
98
  <span class="bwg_album_thumb_<?php echo $bwg; ?>" style="height:inherit;">
99
  <span class="bwg_album_thumb_spun1_<?php echo $bwg; ?>">
100
  <span class="bwg_album_thumb_spun2_<?php echo $bwg; ?>">
101
- <img class="bwg_img_clear bwg_img_custom"
102
  style="width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;"
103
  src="<?php echo $row->preview_image; ?>"
104
  alt="<?php echo $row->name; ?>" />
98
  <span class="bwg_album_thumb_<?php echo $bwg; ?>" style="height:inherit;">
99
  <span class="bwg_album_thumb_spun1_<?php echo $bwg; ?>">
100
  <span class="bwg_album_thumb_spun2_<?php echo $bwg; ?>">
101
+ <img class="skip-lazy bwg_img_clear bwg_img_custom"
102
  style="width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;"
103
  src="<?php echo $row->preview_image; ?>"
104
  alt="<?php echo $row->name; ?>" />
frontend/views/BWGViewImage_browser.php CHANGED
@@ -118,7 +118,7 @@ class BWGViewImage_browser extends BWGViewSite {
118
  if ( !$is_embed ) {
119
  ?>
120
  <a style="position:relative;" <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox" data-image-id="' . $image_row->id . '"') : ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
121
- <img class="bwg-item0 bwg_image_browser_img bwg_image_browser_img_<?php echo $bwg; ?>" src="<?php echo BWG()->upload_url . $image_row->image_url; ?>" alt="<?php echo $image_row->alt; ?>" />
122
  </a>
123
  <?php
124
  }
118
  if ( !$is_embed ) {
119
  ?>
120
  <a style="position:relative;" <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox" data-image-id="' . $image_row->id . '"') : ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
121
+ <img class="skip-lazy bwg-item0 bwg_image_browser_img bwg_image_browser_img_<?php echo $bwg; ?>" src="<?php echo BWG()->upload_url . $image_row->image_url; ?>" alt="<?php echo $image_row->alt; ?>" />
122
  </a>
123
  <?php
124
  }
frontend/views/BWGViewSlideshow.php CHANGED
@@ -126,17 +126,13 @@ public function display($params = array(), $bwg = 0) {
126
  ), esc_html('<br />'), $image_row->description);
127
  }
128
  $data[$bwg][$key]["id"] = $image_row->id;
129
- $data[$bwg][$key]["alt"] = str_replace(array( "\r\n", "\n", "\r" ), esc_html('<br />'), $image_row->alt);
130
- $data[$bwg][$key]["description"] = str_replace(array(
131
- "\r\n",
132
- "\n",
133
- "\r"
134
- ), esc_html('<br />'), $image_row->description);
135
  $data[$bwg][$key]["filetype"] = $image_row->filetype;
136
  $data[$bwg][$key]["filename"] = $image_row->filename;
137
- $data[$bwg][$key]["image_url"] = $image_row->image_url;
138
- $data[$bwg][$key]["thumb_url"] = $image_row->thumb_url;
139
- $data[$bwg][$key]["redirect_url"] = $image_row->redirect_url;
140
  $data[$bwg][$key]["date"] = $image_row->date;
141
  $data[$bwg][$key]["is_embed"] = (preg_match('/EMBED/', $image_row->filetype) == 1 ? TRUE : FALSE);
142
  $data[$bwg][$key]["is_embed_video"] = (((preg_match('/EMBED/', $image_row->filetype) == 1) && (preg_match('/_VIDEO/', $image_row->filetype) == 1)) ? TRUE : FALSE);
@@ -248,7 +244,7 @@ public function display($params = array(), $bwg = 0) {
248
  $thumb_top = ($slideshow_filmstrip_height - $image_thumb_height) / 2;
249
  ?>
250
  <div id="bwg_filmstrip_thumbnail_<?php echo $key; ?>_<?php echo $bwg; ?>" class="bwg_slideshow_filmstrip_thumbnail_<?php echo $bwg; ?> <?php echo(($image_row->id == $current_image_id) ? 'bwg_slideshow_thumb_active_' . $bwg : 'bwg_slideshow_thumb_deactive_' . $bwg); ?>">
251
- <img style="width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" class="bwg_filmstrip_thumbnail_img bwg_slideshow_filmstrip_thumbnail_img_<?php echo $bwg; ?>" src="<?php echo ($is_embed ? "" : BWG()->upload_url) . $image_row->thumb_url; ?>" onclick="bwg_change_image(parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()), '<?php echo $key; ?>', '', '', '<?php echo $bwg; ?>')" image_id="<?php echo $image_row->id; ?>" image_key="<?php echo $key; ?>" alt="<?php echo $image_row->alt; ?>" />
252
  </div>
253
  <?php
254
  }
@@ -283,7 +279,7 @@ public function display($params = array(), $bwg = 0) {
283
  $bwg_param['bwg_current_filmstrip_pos'] = $current_pos;
284
  $bwg_params = json_encode($bwg_param);
285
  ?>
286
- <div id="bwg_slideshow_image_container_<?php echo $bwg; ?>" class="bwg_slideshow_image_container_<?php echo $bwg; ?>" data-params='<?php echo $bwg_params ?>'>
287
  <div class="bwg_slide_container_<?php echo $bwg; ?>">
288
  <div class="bwg_slide_bg_<?php echo $bwg; ?>">
289
  <div class="bwg_slider_<?php echo $bwg; ?>">
@@ -302,7 +298,7 @@ public function display($params = array(), $bwg = 0) {
302
  if ( !$is_embed ) {
303
  ?>
304
  <a <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox"' . (BWG()->options->enable_seo ? ' href="' . ($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . $image_row->id . '"') : ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
305
- <img id="bwg_slideshow_image_<?php echo $bwg; ?>" class="bwg_slide bwg_slideshow_image_<?php echo $bwg; ?>" src="<?php echo BWG()->upload_url . $image_row->image_url; ?>" image_id="<?php echo $image_row->id; ?>" alt="<?php echo $image_row->alt; ?>" />
306
  </a>
307
  <?php
308
  }
@@ -366,7 +362,7 @@ public function display($params = array(), $bwg = 0) {
366
  if ( !$is_embed ) {
367
  ?>
368
  <a <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox_' . $bwg . '"' . (BWG()->options->enable_seo ? ' href="' . ($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . $image_row->id . '"') : ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
369
- <img id="bwg_slideshow_image_<?php echo $bwg; ?>" class="bwg_slide bwg_slideshow_image_<?php echo $bwg; ?>" src="<?php echo BWG()->upload_url . $image_row->image_url; ?>" image_id="<?php echo $image_row->id; ?>" alt="<?php echo $image_row->alt; ?>" />
370
  </a>
371
  <?php
372
  }
@@ -434,7 +430,7 @@ public function display($params = array(), $bwg = 0) {
434
  <?php
435
  if ( $params['watermark_type'] != 'none' ) {
436
  ?>
437
- <div class="bwg_slideshow_image_container_<?php echo $bwg; ?> bwg_slideshow_image_container" data-params="<?php echo $bwg_params ?>">
438
  <div class="bwg_slideshow_watermark_container_<?php echo $bwg; ?>">
439
  <div>
440
  <span class="bwg_slideshow_watermark_spun_<?php echo $bwg; ?>" id="bwg_slideshow_watermark_container_<?php echo $bwg; ?>">
@@ -460,7 +456,7 @@ public function display($params = array(), $bwg = 0) {
460
  }
461
  if ( $enable_image_title ) {
462
  ?>
463
- <div class="bwg_slideshow_image_container_<?php echo $bwg; ?> bwg_slideshow_image_container" data-params="<?php echo $bwg_params ?>">
464
  <div class="bwg_slideshow_watermark_container_<?php echo $bwg; ?>">
465
  <div>
466
  <span class="bwg_slideshow_title_spun_<?php echo $bwg; ?>">
@@ -477,7 +473,7 @@ public function display($params = array(), $bwg = 0) {
477
  }
478
  if ( $enable_image_description && isset($current_image_description) ) {
479
  ?>
480
- <div class="bwg_slideshow_image_container_<?php echo $bwg; ?> bwg_slideshow_image_container" data-params="<?php echo $bwg_params ?>">
481
  <div class="bwg_slideshow_watermark_container_<?php echo $bwg; ?>">
482
  <div>
483
  <span class="bwg_slideshow_description_spun_<?php echo $bwg; ?>">
126
  ), esc_html('<br />'), $image_row->description);
127
  }
128
  $data[$bwg][$key]["id"] = $image_row->id;
129
+ $data[$bwg][$key]["alt"] = htmlspecialchars(str_replace(array( "\r\n", "\n", "\r" ), esc_html('<br />'), $image_row->alt), ENT_COMPAT | ENT_QUOTES);
130
+ $data[$bwg][$key]["description"] = htmlspecialchars(str_replace(array("\r\n", "\n", "\r"), esc_html('<br />'), $image_row->description), ENT_COMPAT | ENT_QUOTES);
 
 
 
 
131
  $data[$bwg][$key]["filetype"] = $image_row->filetype;
132
  $data[$bwg][$key]["filename"] = $image_row->filename;
133
+ $data[$bwg][$key]["image_url"] = htmlspecialchars($image_row->image_url, ENT_COMPAT | ENT_QUOTES);
134
+ $data[$bwg][$key]["thumb_url"] = htmlspecialchars($image_row->thumb_url, ENT_COMPAT | ENT_QUOTES);
135
+ $data[$bwg][$key]["redirect_url"] = htmlspecialchars($image_row->redirect_url, ENT_COMPAT | ENT_QUOTES);
136
  $data[$bwg][$key]["date"] = $image_row->date;
137
  $data[$bwg][$key]["is_embed"] = (preg_match('/EMBED/', $image_row->filetype) == 1 ? TRUE : FALSE);
138
  $data[$bwg][$key]["is_embed_video"] = (((preg_match('/EMBED/', $image_row->filetype) == 1) && (preg_match('/_VIDEO/', $image_row->filetype) == 1)) ? TRUE : FALSE);
244
  $thumb_top = ($slideshow_filmstrip_height - $image_thumb_height) / 2;
245
  ?>
246
  <div id="bwg_filmstrip_thumbnail_<?php echo $key; ?>_<?php echo $bwg; ?>" class="bwg_slideshow_filmstrip_thumbnail_<?php echo $bwg; ?> <?php echo(($image_row->id == $current_image_id) ? 'bwg_slideshow_thumb_active_' . $bwg : 'bwg_slideshow_thumb_deactive_' . $bwg); ?>">
247
+ <img style="width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" class="skip-lazy bwg_filmstrip_thumbnail_img bwg_slideshow_filmstrip_thumbnail_img_<?php echo $bwg; ?>" src="<?php echo ($is_embed ? "" : BWG()->upload_url) . $image_row->thumb_url; ?>" onclick="bwg_change_image(parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()), '<?php echo $key; ?>', '', '', '<?php echo $bwg; ?>')" image_id="<?php echo $image_row->id; ?>" image_key="<?php echo $key; ?>" alt="<?php echo $image_row->alt; ?>" />
248
  </div>
249
  <?php
250
  }
279
  $bwg_param['bwg_current_filmstrip_pos'] = $current_pos;
280
  $bwg_params = json_encode($bwg_param);
281
  ?>
282
+ <div id="bwg_slideshow_image_container_<?php echo $bwg; ?>" class="bwg_slideshow_image_container_<?php echo $bwg; ?>" data-params='<?php echo $bwg_params; ?>'>
283
  <div class="bwg_slide_container_<?php echo $bwg; ?>">
284
  <div class="bwg_slide_bg_<?php echo $bwg; ?>">
285
  <div class="bwg_slider_<?php echo $bwg; ?>">
298
  if ( !$is_embed ) {
299
  ?>
300
  <a <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox"' . (BWG()->options->enable_seo ? ' href="' . ($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . $image_row->id . '"') : ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
301
+ <img id="bwg_slideshow_image_<?php echo $bwg; ?>" class="skip-lazy bwg_slide bwg_slideshow_image_<?php echo $bwg; ?>" src="<?php echo BWG()->upload_url . $image_row->image_url; ?>" image_id="<?php echo $image_row->id; ?>" alt="<?php echo $image_row->alt; ?>" />
302
  </a>
303
  <?php
304
  }
362
  if ( !$is_embed ) {
363
  ?>
364
  <a <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox_' . $bwg . '"' . (BWG()->options->enable_seo ? ' href="' . ($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . $image_row->id . '"') : ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
365
+ <img id="bwg_slideshow_image_<?php echo $bwg; ?>" class="skip-lazy bwg_slide bwg_slideshow_image_<?php echo $bwg; ?>" src="<?php echo BWG()->upload_url . $image_row->image_url; ?>" image_id="<?php echo $image_row->id; ?>" alt="<?php echo $image_row->alt; ?>" />
366
  </a>
367
  <?php
368
  }
430
  <?php
431
  if ( $params['watermark_type'] != 'none' ) {
432
  ?>
433
+ <div class="bwg_slideshow_image_container_<?php echo $bwg; ?> bwg_slideshow_image_container" data-params="<?php echo $bwg_params; ?>">
434
  <div class="bwg_slideshow_watermark_container_<?php echo $bwg; ?>">
435
  <div>
436
  <span class="bwg_slideshow_watermark_spun_<?php echo $bwg; ?>" id="bwg_slideshow_watermark_container_<?php echo $bwg; ?>">
456
  }
457
  if ( $enable_image_title ) {
458
  ?>
459
+ <div class="bwg_slideshow_image_container_<?php echo $bwg; ?> bwg_slideshow_image_container" data-params="<?php echo $bwg_params; ?>">
460
  <div class="bwg_slideshow_watermark_container_<?php echo $bwg; ?>">
461
  <div>
462
  <span class="bwg_slideshow_title_spun_<?php echo $bwg; ?>">
473
  }
474
  if ( $enable_image_description && isset($current_image_description) ) {
475
  ?>
476
+ <div class="bwg_slideshow_image_container_<?php echo $bwg; ?> bwg_slideshow_image_container" data-params="<?php echo $bwg_params; ?>">
477
  <div class="bwg_slideshow_watermark_container_<?php echo $bwg; ?>">
478
  <div>
479
  <span class="bwg_slideshow_description_spun_<?php echo $bwg; ?>">
frontend/views/BWGViewThumbnails.php CHANGED
@@ -68,7 +68,7 @@ class BWGViewThumbnails extends BWGViewSite {
68
  <div class="bwg-item0">
69
  <div class="bwg-item1 <?php echo $theme_row->thumb_hover_effect == 'zoom' && $params['image_title'] == 'hover' ? 'bwg-zoom-effect' : ''; ?>">
70
  <div class="bwg-item2">
71
- <img class="bwg_standart_thumb_img_<?php echo $bwg; ?>"
72
  data-id="<?php echo $image_row->id; ?>"
73
  src="<?php echo ($is_embed ? "" : BWG()->upload_url) . $image_row->thumb_url; ?>"
74
  alt="<?php echo $image_row->alt; ?>" />
68
  <div class="bwg-item0">
69
  <div class="bwg-item1 <?php echo $theme_row->thumb_hover_effect == 'zoom' && $params['image_title'] == 'hover' ? 'bwg-zoom-effect' : ''; ?>">
70
  <div class="bwg-item2">
71
+ <img class="skip-lazy bwg_standart_thumb_img_<?php echo $bwg; ?>"
72
  data-id="<?php echo $image_row->id; ?>"
73
  src="<?php echo ($is_embed ? "" : BWG()->upload_url) . $image_row->thumb_url; ?>"
74
  alt="<?php echo $image_row->alt; ?>" />
photo-gallery.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/
5
  * 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.
6
- * Version: 1.5.1
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/pricing/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -81,8 +81,8 @@ final class BWG {
81
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
82
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
83
  $this->main_file = plugin_basename(__FILE__);
84
- $this->plugin_version = '1.5.1';
85
- $this->db_version = '1.5.1';
86
  $this->prefix = 'bwg';
87
  $this->nicename = __('Photo Gallery', $this->prefix);
88
 
@@ -686,8 +686,9 @@ final class BWG {
686
  $controller->execute($params, 1, WDWLibrary::get('bwg', 0));
687
  }
688
  else {
689
- $bwg = WDWLibrary::unique_number();
690
  $controller->execute($params, 1, $bwg);
 
691
  }
692
 
693
  return;
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/
5
  * 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.
6
+ * Version: 1.5.2
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/pricing/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
81
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
82
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
83
  $this->main_file = plugin_basename(__FILE__);
84
+ $this->plugin_version = '1.5.2';
85
+ $this->db_version = '1.5.2';
86
  $this->prefix = 'bwg';
87
  $this->nicename = __('Photo Gallery', $this->prefix);
88
 
686
  $controller->execute($params, 1, WDWLibrary::get('bwg', 0));
687
  }
688
  else {
689
+ global $bwg;
690
  $controller->execute($params, 1, $bwg);
691
+ $bwg++;
692
  }
693
 
694
  return;
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado,wdsupport,photogallerysupport,10web
3
  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
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
- Stable tag: 1.5.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -279,6 +279,11 @@ Choose whether to display random or the first/last specific number of images.
279
 
280
  == Changelog ==
281
 
 
 
 
 
 
282
  = 1.5.1 =
283
  * Fixed: Minor bug
284
 
3
  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
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
+ Stable tag: 1.5.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
279
 
280
  == Changelog ==
281
 
282
+ = 1.5.2 =
283
+ * Fixed: Changed gallery index number on ID.
284
+ * Fixed: Conflict with lazy load.
285
+ * Fixed: Slideshow view.
286
+
287
  = 1.5.1 =
288
  * Fixed: Minor bug
289