Photo Gallery by WD – Responsive Photo Gallery - Version 1.6.9

Version Description

  • Fixed: Security vulnerability.
Download this release

Release Info

Developer 10web
Plugin Icon 128x128 Photo Gallery by WD – Responsive Photo Gallery
Version 1.6.9
Comparing to
See all releases

Code changes from version 1.6.8 to 1.6.9

framework/TWWebinar.php CHANGED
@@ -162,16 +162,16 @@ class TWPGWebinar {
162
  ?>
163
  <div class="tw-webinar-body">
164
  <div class="tw-webinar-title">
165
- <?php echo $this->title; ?>
166
  </div>
167
  <div class="tw-webinar-description">
168
- <?php echo $this->description; ?>
169
  </div>
170
  </div>
171
  <div class="tw-webinar-button">
172
- <a href="<?php echo $this->button_link; ?>" target="_blank"><?php echo $this->button_text; ?></a>
173
  </div>
174
- <button type="button" class="wd_tenweb_notice_dissmiss notice-dismiss" onclick="jQuery(this).closest('.tw-webinar-wrap').attr('style', 'display: none !important;'); jQuery.post('<?php echo $this->dismiss_url; ?>');">
175
  </div>
176
  <?php
177
  $view = ob_get_clean();
162
  ?>
163
  <div class="tw-webinar-body">
164
  <div class="tw-webinar-title">
165
+ <?php echo esc_html($this->title); ?>
166
  </div>
167
  <div class="tw-webinar-description">
168
+ <?php echo esc_html($this->description); ?>
169
  </div>
170
  </div>
171
  <div class="tw-webinar-button">
172
+ <a href="<?php echo esc_url($this->button_link); ?>" target="_blank"><?php echo esc_html($this->button_text); ?></a>
173
  </div>
174
+ <button type="button" class="wd_tenweb_notice_dissmiss notice-dismiss" onclick="jQuery(this).closest('.tw-webinar-wrap').attr('style', 'display: none !important;'); jQuery.post('<?php echo esc_url($this->dismiss_url); ?>');">
175
  </div>
176
  <?php
177
  $view = ob_get_clean();
framework/WDWLibrary.php CHANGED
@@ -21,7 +21,7 @@ class WDWLibrary {
21
  case 'REQUEST' :
22
  if (isset($_REQUEST[$key])) {
23
  if ( is_bool($_REQUEST[$key]) ) {
24
- return $_REQUEST[$key];
25
  }
26
  elseif (is_array($_REQUEST[$key])) {
27
  $value = array();
@@ -38,7 +38,7 @@ class WDWLibrary {
38
  case 'POST' :
39
  if ( isset($_POST[$key]) ) {
40
  if ( is_bool($_POST[$key]) ) {
41
- return $_POST[$key];
42
  }
43
  elseif ( is_array($_POST[$key]) ) {
44
  $value = array();
@@ -54,7 +54,7 @@ class WDWLibrary {
54
  case 'GET' :
55
  if (isset($_GET[$key])) {
56
  if ( is_bool($_GET[$key]) ) {
57
- return $_GET[$key];
58
  }
59
  elseif ( is_array($_GET[$key]) ) {
60
  $value = array();
@@ -1827,7 +1827,7 @@ class WDWLibrary {
1827
  $img_width = $image_size[ 'width' ];
1828
  $img_height = $image_size[ 'height' ];
1829
  $scale = min( $max_width / $img_width, $max_height / $img_height );
1830
- if ( 0 || ($scale >= 1) || (($max_width == NULL) && ($max_height == NULL)) ) {
1831
  if ( $source !== $destination ) {
1832
  if(self::detect_thumb($destination)) {
1833
  self::$thumb_dimansions = intval($img_width)."x".intval($img_height);
@@ -3301,7 +3301,7 @@ class WDWLibrary {
3301
  * @return string
3302
  */
3303
  public static function strip_tags($value) {
3304
- $allowed_tags = "<b>,<p>,<a>,<strong>,<span>,<br>,<ul>,<ol>,<li>,<i>,<h1>,<h2>,<h3>,<h4>,<h5>,<h6>,<img>,<blockquote>,<pre>,<section>,";
3305
 
3306
  return strip_tags($value, $allowed_tags);
3307
  }
21
  case 'REQUEST' :
22
  if (isset($_REQUEST[$key])) {
23
  if ( is_bool($_REQUEST[$key]) ) {
24
+ return rest_sanitize_boolean($_REQUEST[$key]);
25
  }
26
  elseif (is_array($_REQUEST[$key])) {
27
  $value = array();
38
  case 'POST' :
39
  if ( isset($_POST[$key]) ) {
40
  if ( is_bool($_POST[$key]) ) {
41
+ return rest_sanitize_boolean($_POST[$key]);
42
  }
43
  elseif ( is_array($_POST[$key]) ) {
44
  $value = array();
54
  case 'GET' :
55
  if (isset($_GET[$key])) {
56
  if ( is_bool($_GET[$key]) ) {
57
+ return rest_sanitize_boolean($_GET[$key]);
58
  }
59
  elseif ( is_array($_GET[$key]) ) {
60
  $value = array();
1827
  $img_width = $image_size[ 'width' ];
1828
  $img_height = $image_size[ 'height' ];
1829
  $scale = min( $max_width / $img_width, $max_height / $img_height );
1830
+ if ( ($scale >= 1) || (($max_width == NULL) && ($max_height == NULL)) ) {
1831
  if ( $source !== $destination ) {
1832
  if(self::detect_thumb($destination)) {
1833
  self::$thumb_dimansions = intval($img_width)."x".intval($img_height);
3301
  * @return string
3302
  */
3303
  public static function strip_tags($value) {
3304
+ $allowed_tags = "<b>,<p>,<a>,<strong>,<span>,<br>,<ul>,<ol>,<li>,<i>,<h1>,<h2>,<h3>,<h4>,<h5>,<h6>,<img>,<blockquote>,<pre>,<section>,<div>,";
3305
 
3306
  return strip_tags($value, $allowed_tags);
3307
  }
frontend/views/BWGViewAlbum_compact_preview.php CHANGED
@@ -37,7 +37,7 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
37
  )
38
  );
39
  $breadcrumb = WDWLibrary::get('bwg_album_breadcrumb_' . $bwg);
40
- $breadcrumb = !empty($breadcrumb) ? $breadcrumb : json_encode($breadcrumb_arr);
41
  $params['breadcrumb_arr'] = json_decode($breadcrumb);
42
 
43
  /* Set theme parameters for Gallery/Gallery group title/description.*/
@@ -56,12 +56,12 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
56
  wp_add_inline_style('bwg_frontend', $inline_style);
57
  }
58
  else {
59
- echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
60
  }
61
  }
62
  }
63
  else {
64
- echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
65
  }
66
  ob_start();
67
 
@@ -77,10 +77,11 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
77
  echo WDWLibrary::message(__('No results found.', 'photo-gallery'), 'wd_error');
78
  }
79
  foreach ( $params['album_gallery_rows']['rows'] as $row ) {
 
80
  $href = esc_url( add_query_arg(array(
81
  "type_" . $bwg => $row->def_type,
82
  "album_gallery_id_" . $bwg => (($params['album_gallery_id'] != 0) ? $row->alb_gal_id : $row->id),
83
- ), $_SERVER['REQUEST_URI']) );
84
  $href = $this->http_strip_query_param($href, 'bwg_search_' . $bwg);
85
  $href = $this->http_strip_query_param($href, 'page_number_' . $bwg);
86
  $title = '<div class="bwg-title1"><div class="bwg-title2">' . ($row->name ? htmlspecialchars_decode($row->name, ENT_COMPAT | ENT_QUOTES) : '&nbsp;') . '</div></div>';
@@ -97,32 +98,32 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
97
  ?>
98
  <div class="bwg-item">
99
  <a class="bwg-a <?php echo $from !== "widget" ? 'bwg-album ' : ''; ?>bwg_album_<?php echo esc_attr($bwg); ?>"
100
- <?php echo ( ($enable_seo || $enable_dynamic_url) && $from !== "widget" ? "href='" . esc_url($href) . "'" : ""); ?>
101
- <?php echo $from === "widget" ? 'href="' . $row->permalink . '"' : ''; ?>
102
  data-container_id="<?php echo esc_attr($params['container_id']); ?>"
103
  data-def_type="<?php echo esc_attr($row->def_type); ?>"
104
  data-album_gallery_id="<?php echo esc_attr($params['album_gallery_id']); ?>"
105
  data-alb_gal_id="<?php echo (($params['album_gallery_id'] != 0) ? esc_attr($row->alb_gal_id) : esc_attr($row->id)); ?>"
106
  data-title="<?php echo esc_attr($row->name); ?>"
107
  data-bwg="<?php echo esc_attr($bwg); ?>">
108
- <?php if ( $params['compuct_album_title'] == 'show' && $theme_row->album_compact_thumb_title_pos == 'top' ) { echo $title; } ?>
109
  <div class="bwg-item0 <?php echo ($lazyload) ? 'lazy_loader': ''; ?>">
110
  <div class="bwg-item1 <?php echo $theme_row->album_compact_thumb_hover_effect == 'zoom' && $params['compuct_album_title'] == 'hover' ? 'bwg-zoom-effect' : ''; ?>">
111
  <div class="bwg-item2">
112
  <img class="skip-lazy <?php if( $lazyload ) { ?> bwg_lazyload <?php } ?>"
113
  data-width="<?php echo esc_attr($image_thumb_width); ?>"
114
  data-height="<?php echo esc_attr($image_thumb_height); ?>"
115
- data-src="<?php echo esc_attr($row->preview_image); ?>"
116
  src="<?php if( !$lazyload ) { echo esc_url($row->preview_image); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
117
  alt="<?php echo esc_attr($row->name); ?>"
118
  title="<?php echo esc_attr($row->name); ?>" />
119
  </div>
120
  <div class="<?php echo $theme_row->album_compact_thumb_hover_effect == 'zoom' && $params['compuct_album_title'] == 'hover' ? 'bwg-zoom-effect-overlay' : ''; ?>">
121
- <?php if ( $params['compuct_album_title'] == 'hover' ) { echo $title; } ?>
122
  </div>
123
  </div>
124
  </div>
125
- <?php if ( $params['compuct_album_title'] == 'show' && $theme_row->album_compact_thumb_title_pos == 'bottom' ) { echo $title; } ?>
126
  </a>
127
  </div>
128
  <?php
@@ -208,13 +209,13 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
208
  }
209
  ?>
210
  #bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item {
211
- justify-content: <?php echo $theme_row->album_compact_thumb_title_pos == 'top'? 'flex-end' : 'flex-start'; ?>;
212
- max-width: <?php echo $params['compuct_album_thumb_width']; ?>px;
213
  <?php if ( !BWG()->options->resizable_thumbnails ) { ?>
214
  width: <?php echo esc_html($params['compuct_album_thumb_width']); ?>px !important;
215
  <?php } ?>
216
  }
217
- #bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item > a {
218
  margin-right: <?php echo esc_html($theme_row->album_compact_thumb_margin); ?>px;
219
  margin-bottom: <?php echo esc_html($theme_row->album_compact_thumb_margin); ?>px;
220
  }
@@ -235,7 +236,7 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
235
  <?php if ( $theme_row->album_compact_thumb_hover_effect == 'zoom' ) { ?>
236
  @media only screen and (min-width: 480px) {
237
  #bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item1 img {
238
- <?php echo ($theme_row->album_compact_thumb_transition) ? '-webkit-transition: all .3s; transition: all .3s;' : ''; ?>
239
  }
240
  #bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item1 img:hover {
241
  -ms-transform: scale(<?php echo esc_html($theme_row->album_compact_thumb_hover_effect_value); ?>);
@@ -260,7 +261,7 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
260
  ?>
261
  @media only screen and (min-width: 480px) {
262
  #bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item0 {
263
- <?php echo ($theme_row->album_compact_thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
264
  }
265
  #bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item0:hover {
266
  -ms-transform: <?php echo esc_html($theme_row->album_compact_thumb_hover_effect); ?>(<?php echo esc_html($theme_row->album_compact_thumb_hover_effect_value); ?>);
37
  )
38
  );
39
  $breadcrumb = WDWLibrary::get('bwg_album_breadcrumb_' . $bwg);
40
+ $breadcrumb = !empty($breadcrumb) ? $breadcrumb : json_encode($breadcrumb_arr);
41
  $params['breadcrumb_arr'] = json_decode($breadcrumb);
42
 
43
  /* Set theme parameters for Gallery/Gallery group title/description.*/
56
  wp_add_inline_style('bwg_frontend', $inline_style);
57
  }
58
  else {
59
+ echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
60
  }
61
  }
62
  }
63
  else {
64
+ echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
65
  }
66
  ob_start();
67
 
77
  echo WDWLibrary::message(__('No results found.', 'photo-gallery'), 'wd_error');
78
  }
79
  foreach ( $params['album_gallery_rows']['rows'] as $row ) {
80
+ $REQUEST_URI = isset($_SERVER['REQUEST_URI']) ? sanitize_url($_SERVER['REQUEST_URI']) : '';
81
  $href = esc_url( add_query_arg(array(
82
  "type_" . $bwg => $row->def_type,
83
  "album_gallery_id_" . $bwg => (($params['album_gallery_id'] != 0) ? $row->alb_gal_id : $row->id),
84
+ ), $REQUEST_URI) );
85
  $href = $this->http_strip_query_param($href, 'bwg_search_' . $bwg);
86
  $href = $this->http_strip_query_param($href, 'page_number_' . $bwg);
87
  $title = '<div class="bwg-title1"><div class="bwg-title2">' . ($row->name ? htmlspecialchars_decode($row->name, ENT_COMPAT | ENT_QUOTES) : '&nbsp;') . '</div></div>';
98
  ?>
99
  <div class="bwg-item">
100
  <a class="bwg-a <?php echo $from !== "widget" ? 'bwg-album ' : ''; ?>bwg_album_<?php echo esc_attr($bwg); ?>"
101
+ <?php echo esc_html(( ($enable_seo || $enable_dynamic_url)) && $from !== "widget" ? "href='" . esc_url($href) . "'" : ""); ?>
102
+ <?php echo esc_html($from) === "widget" ? 'href="' . esc_url($row->permalink) . '"' : ''; ?>
103
  data-container_id="<?php echo esc_attr($params['container_id']); ?>"
104
  data-def_type="<?php echo esc_attr($row->def_type); ?>"
105
  data-album_gallery_id="<?php echo esc_attr($params['album_gallery_id']); ?>"
106
  data-alb_gal_id="<?php echo (($params['album_gallery_id'] != 0) ? esc_attr($row->alb_gal_id) : esc_attr($row->id)); ?>"
107
  data-title="<?php echo esc_attr($row->name); ?>"
108
  data-bwg="<?php echo esc_attr($bwg); ?>">
109
+ <?php if ( $params['compuct_album_title'] == 'show' && $theme_row->album_compact_thumb_title_pos == 'top' ) { echo WDWLibrary::strip_tags($title); } ?>
110
  <div class="bwg-item0 <?php echo ($lazyload) ? 'lazy_loader': ''; ?>">
111
  <div class="bwg-item1 <?php echo $theme_row->album_compact_thumb_hover_effect == 'zoom' && $params['compuct_album_title'] == 'hover' ? 'bwg-zoom-effect' : ''; ?>">
112
  <div class="bwg-item2">
113
  <img class="skip-lazy <?php if( $lazyload ) { ?> bwg_lazyload <?php } ?>"
114
  data-width="<?php echo esc_attr($image_thumb_width); ?>"
115
  data-height="<?php echo esc_attr($image_thumb_height); ?>"
116
+ data-src="<?php echo esc_url($row->preview_image); ?>"
117
  src="<?php if( !$lazyload ) { echo esc_url($row->preview_image); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
118
  alt="<?php echo esc_attr($row->name); ?>"
119
  title="<?php echo esc_attr($row->name); ?>" />
120
  </div>
121
  <div class="<?php echo $theme_row->album_compact_thumb_hover_effect == 'zoom' && $params['compuct_album_title'] == 'hover' ? 'bwg-zoom-effect-overlay' : ''; ?>">
122
+ <?php if ( $params['compuct_album_title'] == 'hover' ) { echo WDWLibrary::strip_tags($title); } ?>
123
  </div>
124
  </div>
125
  </div>
126
+ <?php if ( $params['compuct_album_title'] == 'show' && $theme_row->album_compact_thumb_title_pos == 'bottom' ) { echo WDWLibrary::strip_tags($title); } ?>
127
  </a>
128
  </div>
129
  <?php
209
  }
210
  ?>
211
  #bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item {
212
+ justify-content: <?php echo esc_html($theme_row->album_compact_thumb_title_pos) == 'top'? 'flex-end' : 'flex-start'; ?>;
213
+ max-width: <?php echo esc_attr($params['compuct_album_thumb_width']); ?>px;
214
  <?php if ( !BWG()->options->resizable_thumbnails ) { ?>
215
  width: <?php echo esc_html($params['compuct_album_thumb_width']); ?>px !important;
216
  <?php } ?>
217
  }
218
+ #bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item a {
219
  margin-right: <?php echo esc_html($theme_row->album_compact_thumb_margin); ?>px;
220
  margin-bottom: <?php echo esc_html($theme_row->album_compact_thumb_margin); ?>px;
221
  }
236
  <?php if ( $theme_row->album_compact_thumb_hover_effect == 'zoom' ) { ?>
237
  @media only screen and (min-width: 480px) {
238
  #bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item1 img {
239
+ <?php echo esc_html($theme_row->album_compact_thumb_transition) ? '-webkit-transition: all .3s; transition: all .3s;' : ''; ?>
240
  }
241
  #bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item1 img:hover {
242
  -ms-transform: scale(<?php echo esc_html($theme_row->album_compact_thumb_hover_effect_value); ?>);
261
  ?>
262
  @media only screen and (min-width: 480px) {
263
  #bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item0 {
264
+ <?php echo esc_html($theme_row->album_compact_thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
265
  }
266
  #bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item0:hover {
267
  -ms-transform: <?php echo esc_html($theme_row->album_compact_thumb_hover_effect); ?>(<?php echo esc_html($theme_row->album_compact_thumb_hover_effect_value); ?>);
frontend/views/BWGViewAlbum_extended_preview.php CHANGED
@@ -62,12 +62,12 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
62
  wp_add_inline_style('bwg_frontend', $inline_style);
63
  }
64
  else {
65
- echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
66
  }
67
  }
68
  }
69
  else {
70
- echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
71
  }
72
 
73
  ob_start();
@@ -86,10 +86,11 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
86
  echo WDWLibrary::message(__('No results found.', 'photo-gallery'), 'wd_error');
87
  }
88
  foreach ( $params['album_gallery_rows']['rows'] as $row ) {
89
- $href = esc_url( add_query_arg( array(
 
90
  "type_" . $bwg => $row->def_type,
91
  "album_gallery_id_" . $bwg => (($params['album_gallery_id'] != 0) ? $row->alb_gal_id : $row->id),
92
- ), $_SERVER['REQUEST_URI'] ) );
93
  $href = $this->http_strip_query_param($href, 'bwg_search_' . $bwg);
94
  $href = $this->http_strip_query_param($href, 'page_number_' . $bwg);
95
  $resolution_thumb = $row->resolution_thumb;
@@ -106,14 +107,14 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
106
  <div class="bwg-extended-item">
107
  <div class="bwg-extended-item0">
108
  <a class="bwg-a bwg-album bwg_album_<?php echo esc_attr($bwg); ?>"
109
- <?php echo ( ($enable_seo || $enable_dynamic_url ) ? "href='" . esc_url($href) . "'" : ""); ?>
110
  style="font-size: 0;"
111
  data-bwg="<?php echo esc_attr($bwg); ?>"
112
  data-container_id="<?php echo esc_attr($params['container_id']); ?>"
113
- data-alb_gal_id="<?php echo (($params['album_gallery_id'] != 0) ? esc_attr($row->alb_gal_id) : esc_attr($row->id)); ?>"
114
  data-def_type="<?php echo esc_attr($row->def_type); ?>"
115
  data-title="<?php echo htmlspecialchars(addslashes($row->name)); ?>">
116
- <div class="bwg-item0 bwg_album_thumb_<?php echo esc_attr($bwg); ?> <?php echo ($lazyload) ? 'lazy_loader' : ''; ?>">
117
  <div class="bwg-item1 bwg_album_thumb_spun1_<?php echo esc_attr($bwg); ?>">
118
  <div class="bwg-item2">
119
  <img class="skip-lazy <?php if( $lazyload ) { ?> bwg_lazyload <?php } ?>"
@@ -133,10 +134,10 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
133
  if ( $row->name ) {
134
  ?>
135
  <a class="bwg-album bwg_album_<?php echo esc_attr($bwg); ?>"
136
- <?php echo ( ($enable_seo || $enable_dynamic_url) ? "href='" . esc_url($href) . "'" : "" ); ?>
137
  data-bwg="<?php echo esc_attr($bwg); ?>"
138
  data-container_id="<?php echo esc_attr($params['container_id']); ?>"
139
- data-alb_gal_id="<?php echo(($params['album_gallery_id'] != 0) ? esc_attr($row->alb_gal_id) : esc_attr($row->id)); ?>"
140
  data-def_type="<?php echo esc_attr($row->def_type); ?>"
141
  data-title="<?php echo htmlspecialchars(addslashes($row->name)); ?>">
142
  <span class="bwg_title_spun_<?php echo esc_attr($bwg); ?>"><?php echo esc_html($row->name); ?></span>
62
  wp_add_inline_style('bwg_frontend', $inline_style);
63
  }
64
  else {
65
+ echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
66
  }
67
  }
68
  }
69
  else {
70
+ echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
71
  }
72
 
73
  ob_start();
86
  echo WDWLibrary::message(__('No results found.', 'photo-gallery'), 'wd_error');
87
  }
88
  foreach ( $params['album_gallery_rows']['rows'] as $row ) {
89
+ $REQUEST_URI = isset($_SERVER['REQUEST_URI']) ? sanitize_url($_SERVER['REQUEST_URI']) : '';
90
+ $href = add_query_arg( array(
91
  "type_" . $bwg => $row->def_type,
92
  "album_gallery_id_" . $bwg => (($params['album_gallery_id'] != 0) ? $row->alb_gal_id : $row->id),
93
+ ), $REQUEST_URI );
94
  $href = $this->http_strip_query_param($href, 'bwg_search_' . $bwg);
95
  $href = $this->http_strip_query_param($href, 'page_number_' . $bwg);
96
  $resolution_thumb = $row->resolution_thumb;
107
  <div class="bwg-extended-item">
108
  <div class="bwg-extended-item0">
109
  <a class="bwg-a bwg-album bwg_album_<?php echo esc_attr($bwg); ?>"
110
+ <?php echo esc_html( ($enable_seo || $enable_dynamic_url )) ? "href='" . esc_url($href) . "'" : ""; ?>
111
  style="font-size: 0;"
112
  data-bwg="<?php echo esc_attr($bwg); ?>"
113
  data-container_id="<?php echo esc_attr($params['container_id']); ?>"
114
+ data-alb_gal_id="<?php echo ((esc_html($params['album_gallery_id']) != 0) ? esc_attr($row->alb_gal_id) : esc_attr($row->id)); ?>"
115
  data-def_type="<?php echo esc_attr($row->def_type); ?>"
116
  data-title="<?php echo htmlspecialchars(addslashes($row->name)); ?>">
117
+ <div class="bwg-item0 bwg_album_thumb_<?php echo esc_attr($bwg); ?> <?php echo esc_attr($lazyload) ? 'lazy_loader' : ''; ?>">
118
  <div class="bwg-item1 bwg_album_thumb_spun1_<?php echo esc_attr($bwg); ?>">
119
  <div class="bwg-item2">
120
  <img class="skip-lazy <?php if( $lazyload ) { ?> bwg_lazyload <?php } ?>"
134
  if ( $row->name ) {
135
  ?>
136
  <a class="bwg-album bwg_album_<?php echo esc_attr($bwg); ?>"
137
+ <?php echo ( (esc_html($enable_seo) || esc_html($enable_dynamic_url)) ? "href='" . esc_url($href) . "'" : "" ); ?>
138
  data-bwg="<?php echo esc_attr($bwg); ?>"
139
  data-container_id="<?php echo esc_attr($params['container_id']); ?>"
140
+ data-alb_gal_id="<?php echo((esc_attr($params['album_gallery_id']) != 0) ? esc_attr($row->alb_gal_id) : esc_attr($row->id)); ?>"
141
  data-def_type="<?php echo esc_attr($row->def_type); ?>"
142
  data-title="<?php echo htmlspecialchars(addslashes($row->name)); ?>">
143
  <span class="bwg_title_spun_<?php echo esc_attr($bwg); ?>"><?php echo esc_html($row->name); ?></span>
frontend/views/BWGViewGalleryBox.php CHANGED
@@ -161,7 +161,7 @@ class BWGViewGalleryBox {
161
 
162
  if (BWG()->is_pro && $params['enable_addthis'] && $params['addthis_profile_id']) {
163
  ?>
164
- <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=<?php echo $params['addthis_profile_id']; ?>" async="async"></script>
165
  <?php
166
  }
167
  ?>
@@ -207,7 +207,7 @@ class BWGViewGalleryBox {
207
  border-top-right-radius: <?php echo esc_html($theme_row->lightbox_ctrl_cont_border_radius); ?>px;
208
  <?php
209
  }?>
210
- /*height: <?php /*echo $theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top;*/ ?>px;*/
211
  text-align: <?php echo esc_html($theme_row->lightbox_ctrl_btn_align); ?>;
212
  }
213
  .bwg_toggle_container {
@@ -363,7 +363,7 @@ class BWGViewGalleryBox {
363
  .bwg_ecommerce_panel input[type="text"],
364
  .bwg_ecommerce_panel input[type="number"],
365
  .bwg_ecommerce_panel textarea , .bwg_ecommerce_panel select {
366
- background: none repeat scroll 0 0 #<?php echo $theme_row->lightbox_comment_input_bg_color; ?>;
367
  border: <?php echo esc_html($theme_row->lightbox_comment_input_border_width); ?>px <?php echo esc_html($theme_row->lightbox_comment_input_border_style); ?> #<?php echo esc_html($theme_row->lightbox_comment_input_border_color); ?>;
368
  border-radius: <?php echo esc_html($theme_row->lightbox_comment_input_border_radius); ?>;
369
  color: #<?php echo esc_html($theme_row->lightbox_comment_font_color); ?>;
@@ -546,8 +546,8 @@ class BWGViewGalleryBox {
546
  }
547
  #bwg_rate_form .bwg_hint,
548
  #bwg_rate_form .bwg-icon-<?php echo esc_attr($theme_row->lightbox_rate_icon); ?>,
549
- #bwg_rate_form .bwg-icon-<?php echo $theme_row->lightbox_rate_icon; ?>-half-o,
550
- #bwg_rate_form .bwg-icon-<?php echo $theme_row->lightbox_rate_icon; ?>-o,
551
  #bwg_rate_form .bwg-icon-minus-square-o {
552
  color: #<?php echo esc_html($theme_row->lightbox_rate_color); ?>;
553
  font-size: <?php echo esc_html($theme_row->lightbox_rate_size); ?>px;
@@ -711,11 +711,11 @@ class BWGViewGalleryBox {
711
  <div id="bwg_filmstrip_thumbnail_<?php echo esc_attr($key); ?>" class="bwg_filmstrip_thumbnail <?php echo (($image_row->id == $current_image_id) ? 'bwg_thumb_active' : 'bwg_thumb_deactive'); ?>">
712
  <div class="bwg_filmstrip_thumbnail_img_wrap">
713
  <img <?php if( $is_embed || $resolution_thumb ) { ?>
714
- 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;" <?php } ?>
715
  class="bwg_filmstrip_thumbnail_img bwg-hidden"
716
  data-url="<?php echo esc_url($bwg_thumb_url); ?>"
717
  src=""
718
- onclick='bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()), "<?php echo $key; ?>")' ontouchend='bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()), "<?php echo $key; ?>")'
719
  image_id="<?php echo esc_attr($image_row->id); ?>"
720
  image_key="<?php echo esc_attr($key); ?>" alt="<?php echo esc_attr($image_row->alt); ?>" />
721
  </div>
@@ -793,7 +793,7 @@ class BWGViewGalleryBox {
793
  <?php } if ($params['popup_enable_comment']) { ?>
794
  <i title="<?php echo __('Show comments', 'photo-gallery'); ?>" class="bwg-icon-comment-square bwg_ctrl_btn bwg_comment"></i>
795
  <?php } if ($params['popup_enable_rate']) { ?>
796
- <i title="<?php echo __('Show rating', 'photo-gallery'); ?>" class="bwg-icon-<?php echo $theme_row->lightbox_rate_icon; ?> bwg_ctrl_btn bwg_rate"></i>
797
  <?php } if ($params['popup_enable_zoom']) { ?>
798
  <i title="<?php echo __('Zoom in-out', 'photo-gallery'); ?>" class="bwg-icon-search bwg_ctrl_btn bwg_zoom"></i>
799
  <?php }
161
 
162
  if (BWG()->is_pro && $params['enable_addthis'] && $params['addthis_profile_id']) {
163
  ?>
164
+ <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=<?php echo esc_html($params['addthis_profile_id']); ?>" async="async"></script>
165
  <?php
166
  }
167
  ?>
207
  border-top-right-radius: <?php echo esc_html($theme_row->lightbox_ctrl_cont_border_radius); ?>px;
208
  <?php
209
  }?>
210
+
211
  text-align: <?php echo esc_html($theme_row->lightbox_ctrl_btn_align); ?>;
212
  }
213
  .bwg_toggle_container {
363
  .bwg_ecommerce_panel input[type="text"],
364
  .bwg_ecommerce_panel input[type="number"],
365
  .bwg_ecommerce_panel textarea , .bwg_ecommerce_panel select {
366
+ background: none repeat scroll 0 0 #<?php echo esc_html($theme_row->lightbox_comment_input_bg_color); ?>;
367
  border: <?php echo esc_html($theme_row->lightbox_comment_input_border_width); ?>px <?php echo esc_html($theme_row->lightbox_comment_input_border_style); ?> #<?php echo esc_html($theme_row->lightbox_comment_input_border_color); ?>;
368
  border-radius: <?php echo esc_html($theme_row->lightbox_comment_input_border_radius); ?>;
369
  color: #<?php echo esc_html($theme_row->lightbox_comment_font_color); ?>;
546
  }
547
  #bwg_rate_form .bwg_hint,
548
  #bwg_rate_form .bwg-icon-<?php echo esc_attr($theme_row->lightbox_rate_icon); ?>,
549
+ #bwg_rate_form .bwg-icon-<?php echo esc_attr($theme_row->lightbox_rate_icon); ?>-half-o,
550
+ #bwg_rate_form .bwg-icon-<?php echo esc_attr($theme_row->lightbox_rate_icon); ?>-o,
551
  #bwg_rate_form .bwg-icon-minus-square-o {
552
  color: #<?php echo esc_html($theme_row->lightbox_rate_color); ?>;
553
  font-size: <?php echo esc_html($theme_row->lightbox_rate_size); ?>px;
711
  <div id="bwg_filmstrip_thumbnail_<?php echo esc_attr($key); ?>" class="bwg_filmstrip_thumbnail <?php echo (($image_row->id == $current_image_id) ? 'bwg_thumb_active' : 'bwg_thumb_deactive'); ?>">
712
  <div class="bwg_filmstrip_thumbnail_img_wrap">
713
  <img <?php if( $is_embed || $resolution_thumb ) { ?>
714
+ style="width:<?php echo esc_html($image_thumb_width); ?>px; height:<?php echo esc_html($image_thumb_height); ?>px; margin-left: <?php echo esc_html($thumb_left); ?>px; margin-top: <?php echo esc_html($thumb_top); ?>px;" <?php } ?>
715
  class="bwg_filmstrip_thumbnail_img bwg-hidden"
716
  data-url="<?php echo esc_url($bwg_thumb_url); ?>"
717
  src=""
718
+ onclick='bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()), "<?php echo esc_html($key); ?>")' ontouchend='bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()), "<?php echo esc_html($key); ?>")'
719
  image_id="<?php echo esc_attr($image_row->id); ?>"
720
  image_key="<?php echo esc_attr($key); ?>" alt="<?php echo esc_attr($image_row->alt); ?>" />
721
  </div>
793
  <?php } if ($params['popup_enable_comment']) { ?>
794
  <i title="<?php echo __('Show comments', 'photo-gallery'); ?>" class="bwg-icon-comment-square bwg_ctrl_btn bwg_comment"></i>
795
  <?php } if ($params['popup_enable_rate']) { ?>
796
+ <i title="<?php echo __('Show rating', 'photo-gallery'); ?>" class="bwg-icon-<?php echo esc_attr($theme_row->lightbox_rate_icon); ?> bwg_ctrl_btn bwg_rate"></i>
797
  <?php } if ($params['popup_enable_zoom']) { ?>
798
  <i title="<?php echo __('Zoom in-out', 'photo-gallery'); ?>" class="bwg-icon-search bwg_ctrl_btn bwg_zoom"></i>
799
  <?php }
frontend/views/BWGViewImage_browser.php CHANGED
@@ -34,14 +34,14 @@ class BWGViewImage_browser extends BWGViewSite {
34
  $show_watermark = TRUE;
35
  $params['watermark_width'] = 0;
36
  $watermark_a = 'bwg_watermark_text_' . $bwg;
37
- $watermark_div = 'class="bwg_image_browser_watermark_text_' . esc_attr($bwg) . '"';
38
  $watermark_image_or_text = esc_html($params["watermark_text"]);
39
  }
40
  elseif ( $params['watermark_type'] == 'image' ) {
41
  $show_watermark = TRUE;
42
  $watermark_image_or_text = '<img class="bwg_image_browser_watermark_img_' . esc_attr($bwg) . '" src="' . urldecode($params['watermark_url']) . '" />';
43
  $watermark_a = '';
44
- $watermark_div = 'class="bwg_image_browser_watermark_' . esc_attr($bwg) . '"';
45
  $params['watermark_font'] = '';
46
  $params['watermark_color'] = '';
47
  $params['watermark_font_size'] = '';
@@ -54,15 +54,15 @@ class BWGViewImage_browser extends BWGViewSite {
54
  wp_add_inline_style('bwg_frontend', $inline_style);
55
  }
56
  else {
57
- echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
58
  }
59
  }
60
  else {
61
- echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
62
  }
63
  }
64
  else {
65
- echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
66
  }
67
  $bwg_param = array(
68
  'is_pro' => BWG()->is_pro,
@@ -91,7 +91,7 @@ class BWGViewImage_browser extends BWGViewSite {
91
  ?>
92
  <div class="bwg_image_browser_image_alt_<?php echo esc_attr($bwg); ?>">
93
  <div class="bwg_image_alt_<?php echo esc_attr($bwg); ?>" id="alt<?php echo esc_attr($image_row->id); ?>">
94
- <?php echo html_entity_decode($image_row->alt); ?>
95
  </div>
96
  </div>
97
  <?php
@@ -104,8 +104,8 @@ class BWGViewImage_browser extends BWGViewSite {
104
  <div class="bwg_image_browser_image_contain_<?php echo esc_attr($bwg); ?>" id="bwg_image_browser_image_contain_<?php echo esc_attr($image_row->id) ?>">
105
  <div class="bwg_image_browser_watermark_contain_<?php echo esc_attr($bwg); ?>">
106
  <div class="bwg_image_browser_watermark_cont_<?php echo esc_attr($bwg); ?>">
107
- <div <?php echo $watermark_div; ?> >
108
- <a class="bwg_none_selectable <?php echo esc_attr($watermark_a); ?>" id="watermark_a<?php echo esc_attr($image_row->id); ?>" href="<?php echo urldecode($params['watermark_link']); ?>" target="_blank">
109
  <?php echo $watermark_image_or_text; ?>
110
  </a>
111
  </div>
@@ -116,7 +116,7 @@ class BWGViewImage_browser extends BWGViewSite {
116
  }
117
  if ( !$is_embed ) {
118
  ?>
119
- <a style="position:relative;" <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg-a bwg_lightbox" data-image-id="' . esc_attr($image_row->id) . '" data-elementor-open-lightbox="no"') : ('class="bwg-a" ' . ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . esc_url($image_row->redirect_url) . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : ''))) ?>>
120
  <img class="skip-lazy bwg-item0 bwg_image_browser_img bwg_image_browser_img_<?php echo esc_attr($bwg); ?> <?php if( $lazyload ) { ?> bwg_lazyload lazy_loader<?php } ?>"
121
  src="<?php if( !$lazyload ) { echo esc_url(BWG()->upload_url . $image_row->image_url); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
122
  data-src="<?php echo esc_url(BWG()->upload_url . $image_row->image_url); ?>"
@@ -157,7 +157,7 @@ class BWGViewImage_browser extends BWGViewSite {
157
  }
158
  else {/*for instagram image, video and flickr enable lightbox onclick*/
159
  ?>
160
- <a style="position:relative;" <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox bwg_lightbox_' . esc_attr($bwg) . '" data-image-id="' . esc_attr($image_row->id) . '"') : ($image_row->redirect_url ? 'href="' . esc_url($image_row->redirect_url) . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
161
  <?php
162
  WDWLibraryEmbed::display_embed($image_row->filetype, $image_row->image_url, $image_row->filename, array(
163
  'id' => 'bwg_embed_frame_' . $bwg,
@@ -181,7 +181,7 @@ class BWGViewImage_browser extends BWGViewSite {
181
  ?>
182
  <div class="bwg_image_browser_image_alt_<?php echo esc_attr($bwg); ?>">
183
  <div class="bwg_image_alt_<?php echo esc_attr($bwg); ?>" id="alt<?php echo esc_attr($image_row->id); ?>">
184
- <?php echo html_entity_decode($image_row->alt); ?>
185
  </div>
186
  </div>
187
  <?php
@@ -190,7 +190,7 @@ class BWGViewImage_browser extends BWGViewSite {
190
  ?>
191
  <div class="bwg_image_browser_image_desp_<?php echo esc_attr($bwg); ?>">
192
  <div class="bwg_image_browser_image_description_<?php echo esc_attr($bwg); ?>" id="alt<?php echo esc_attr($image_row->id); ?>">
193
- <?php echo html_entity_decode($image_row->description); ?>
194
  </div>
195
  </div>
196
  <?php
34
  $show_watermark = TRUE;
35
  $params['watermark_width'] = 0;
36
  $watermark_a = 'bwg_watermark_text_' . $bwg;
37
+ $watermark_div = '_text';
38
  $watermark_image_or_text = esc_html($params["watermark_text"]);
39
  }
40
  elseif ( $params['watermark_type'] == 'image' ) {
41
  $show_watermark = TRUE;
42
  $watermark_image_or_text = '<img class="bwg_image_browser_watermark_img_' . esc_attr($bwg) . '" src="' . urldecode($params['watermark_url']) . '" />';
43
  $watermark_a = '';
44
+ $watermark_div = '';
45
  $params['watermark_font'] = '';
46
  $params['watermark_color'] = '';
47
  $params['watermark_font_size'] = '';
54
  wp_add_inline_style('bwg_frontend', $inline_style);
55
  }
56
  else {
57
+ echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
58
  }
59
  }
60
  else {
61
+ echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
62
  }
63
  }
64
  else {
65
+ echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
66
  }
67
  $bwg_param = array(
68
  'is_pro' => BWG()->is_pro,
91
  ?>
92
  <div class="bwg_image_browser_image_alt_<?php echo esc_attr($bwg); ?>">
93
  <div class="bwg_image_alt_<?php echo esc_attr($bwg); ?>" id="alt<?php echo esc_attr($image_row->id); ?>">
94
+ <?php echo WDWLibrary::strip_tags($image_row->alt); ?>
95
  </div>
96
  </div>
97
  <?php
104
  <div class="bwg_image_browser_image_contain_<?php echo esc_attr($bwg); ?>" id="bwg_image_browser_image_contain_<?php echo esc_attr($image_row->id) ?>">
105
  <div class="bwg_image_browser_watermark_contain_<?php echo esc_attr($bwg); ?>">
106
  <div class="bwg_image_browser_watermark_cont_<?php echo esc_attr($bwg); ?>">
107
+ <div class="bwg_image_browser_watermark<?php echo esc_attr($watermark_div.'_'. $bwg)?>" >
108
+ <a class="bwg_none_selectable <?php echo esc_attr($watermark_a); ?>" id="watermark_a<?php echo esc_attr($image_row->id); ?>" href="<?php echo esc_url($params['watermark_link']); ?>" target="_blank">
109
  <?php echo $watermark_image_or_text; ?>
110
  </a>
111
  </div>
116
  }
117
  if ( !$is_embed ) {
118
  ?>
119
+ <a style="position:relative;" <?php echo (esc_html($params['thumb_click_action']) == 'open_lightbox' ? (' class="bwg-a bwg_lightbox" data-image-id="' . esc_attr($image_row->id) . '" data-elementor-open-lightbox="no"') : ('class="bwg-a" ' . ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . esc_url($image_row->redirect_url) . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : ''))) ?>>
120
  <img class="skip-lazy bwg-item0 bwg_image_browser_img bwg_image_browser_img_<?php echo esc_attr($bwg); ?> <?php if( $lazyload ) { ?> bwg_lazyload lazy_loader<?php } ?>"
121
  src="<?php if( !$lazyload ) { echo esc_url(BWG()->upload_url . $image_row->image_url); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
122
  data-src="<?php echo esc_url(BWG()->upload_url . $image_row->image_url); ?>"
157
  }
158
  else {/*for instagram image, video and flickr enable lightbox onclick*/
159
  ?>
160
+ <a style="position:relative;" <?php echo ( esc_html($params['thumb_click_action']) == 'open_lightbox' ? (' class="bwg_lightbox bwg_lightbox_' . esc_attr($bwg) . '" data-image-id="' . esc_attr($image_row->id) . '"') : ($image_row->redirect_url ? 'href="' . esc_url($image_row->redirect_url) . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
161
  <?php
162
  WDWLibraryEmbed::display_embed($image_row->filetype, $image_row->image_url, $image_row->filename, array(
163
  'id' => 'bwg_embed_frame_' . $bwg,
181
  ?>
182
  <div class="bwg_image_browser_image_alt_<?php echo esc_attr($bwg); ?>">
183
  <div class="bwg_image_alt_<?php echo esc_attr($bwg); ?>" id="alt<?php echo esc_attr($image_row->id); ?>">
184
+ <?php echo WDWLibrary::strip_tags($image_row->alt); ?>
185
  </div>
186
  </div>
187
  <?php
190
  ?>
191
  <div class="bwg_image_browser_image_desp_<?php echo esc_attr($bwg); ?>">
192
  <div class="bwg_image_browser_image_description_<?php echo esc_attr($bwg); ?>" id="alt<?php echo esc_attr($image_row->id); ?>">
193
+ <?php echo WDWLibrary::strip_tags($image_row->description); ?>
194
  </div>
195
  </div>
196
  <?php
frontend/views/BWGViewSlideshow.php CHANGED
@@ -135,11 +135,11 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
135
  }
136
  }
137
  else {
138
- echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
139
  }
140
  }
141
  else {
142
- echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
143
  }
144
 
145
  $data = array();
@@ -243,7 +243,7 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
243
  <div class="bwg_slideshow_filmstrip_left_disabled_<?php echo esc_attr($bwg); ?>">
244
  <i class="<?php echo($filmstrip_direction == 'horizontal' ? 'bwg-icon-angle-left' : 'bwg-icon-angle-up'); ?>"></i>
245
  </div>
246
- <div class="<?php echo $filmstrip_class_name; ?>">
247
  <div class="bwg_slideshow_filmstrip_thumbnails_<?php echo esc_attr($bwg); ?>">
248
  <?php
249
  foreach ( $image_rows as $key => $image_row ) {
@@ -313,11 +313,11 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
313
  data-style="width:<?php echo esc_html($slideshow_filmstrip_width); ?>px; height:<?php echo esc_html($slideshow_filmstrip_height); ?>px;"
314
  >
315
  <img class="bwg_filmstrip_thumbnail_img bwg_slideshow_filmstrip_thumbnail_img_<?php echo esc_attr($bwg); ?>"
316
- 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;"
317
  data-style="width:<?php echo esc_html($image_thumb_width); ?>px; height:<?php echo esc_html($image_thumb_height); ?>px; margin-left: <?php echo esc_html($thumb_left); ?>px; margin-top: <?php echo esc_html($thumb_top); ?>px;"
318
  src="<?php echo esc_url($bwg_thumb_url); ?>"
319
  data-src="<?php echo esc_url($bwg_thumb_url); ?>"
320
- onclick="bwg_change_image(parseInt(jQuery('#bwg_current_image_key_<?php echo esc_attr($bwg); ?>').val()), '<?php echo $key; ?>', '', '', '<?php echo esc_attr($bwg); ?>')"
321
  image_id="<?php echo esc_attr($image_row->id); ?>"
322
  image_key="<?php echo esc_attr($key); ?>"
323
  alt="<?php echo esc_attr($image_row->alt); ?>"
@@ -381,7 +381,7 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
381
  <?php
382
  if ( !$is_embed ) {
383
  ?>
384
- <a <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg-a bwg_lightbox"' . (BWG()->options->enable_seo ? ' href="' . esc_url($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . esc_attr($image_row->id) . '" data-elementor-open-lightbox="no"') : ('class="bwg-a" ' . ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . esc_url($image_row->redirect_url) . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : ''))); ?>>
385
  <img id="bwg_slideshow_image_<?php echo esc_attr($bwg); ?>"
386
  class="skip-lazy bwg_slide bwg_slideshow_image_<?php echo esc_attr($bwg); ?> <?php if( $lazyload ) { ?> bwg_lazyload <?php } ?>"
387
  src="<?php if( !$lazyload ) { echo esc_url(BWG()->upload_url . $image_row->image_url); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
@@ -459,7 +459,7 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
459
  <?php
460
  if ( !$is_embed ) {
461
  ?>
462
- <a <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg-a bwg_lightbox_' . esc_attr($bwg) . '"' . (BWG()->options->enable_seo ? ' href="' . esc_url($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . esc_attr($image_row->id) . '"') : ('class="bwg-a" ' . ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . esc_url($image_row->redirect_url) . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : ''))) ?>>
463
  <img id="bwg_slideshow_image_<?php echo esc_attr($bwg); ?>"
464
  class="skip-lazy bwg_slide bwg_slideshow_image_<?php echo esc_attr($bwg); ?> <?php if( $lazyload ) { ?> bwg_lazyload lazy_loader <?php } ?>"
465
  src="<?php if( !$lazyload ) { echo esc_url(BWG()->upload_url . $image_row->image_url); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
@@ -533,7 +533,7 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
533
  if ( $enable_slideshow_ctrl ) {
534
  ?>
535
  <a class="bwg-a" id="spider_slideshow_left_<?php echo esc_attr($bwg); ?>" onclick="bwg_change_image(parseInt(jQuery('#bwg_current_image_key_<?php echo esc_attr($bwg); ?>').val()), (parseInt(jQuery('#bwg_current_image_key_<?php echo esc_attr($bwg); ?>').val()) + <?php echo count($data[$bwg]); ?> - bwg_iterator(<?php echo esc_attr($bwg); ?>)) % <?php echo count($data[$bwg]); ?>, '', '', <?php echo esc_attr($bwg); ?>); return false;"><span id="spider_slideshow_left-ico_<?php echo esc_attr($bwg); ?>"><span><i class="<?php echo esc_attr($theme_row->slideshow_rl_btn_style); ?>-left bwg_slideshow_prev_btn_<?php echo esc_attr($bwg); ?>"></i></span></span></a>
536
- <span id="bwg_slideshow_play_pause_<?php echo esc_attr($bwg); ?>" class="bwg_slideshow_play_pause" style="display: <?php echo $play_pause_button_display; ?>;"><span><span id="bwg_slideshow_play_pause-ico_<?php echo esc_attr($bwg); ?>"><i class="bwg-icon-play bwg_ctrl_btn_<?php echo esc_attr($bwg); ?> bwg_slideshow_play_pause_<?php echo esc_attr($bwg); ?>"></i></span></span></span>
537
  <a class="bwg-a" id="spider_slideshow_right_<?php echo esc_attr($bwg); ?>" onclick="bwg_change_image(parseInt(jQuery('#bwg_current_image_key_<?php echo esc_attr($bwg); ?>').val()), (parseInt(jQuery('#bwg_current_image_key_<?php echo esc_attr($bwg); ?>').val()) + bwg_iterator(<?php echo esc_attr($bwg); ?>)) % <?php echo count($data[$bwg]); ?>, '', '', <?php echo esc_attr($bwg); ?>); return false;"><span id="spider_slideshow_right-ico_<?php echo esc_attr($bwg); ?>"><span><i class="<?php echo esc_attr($theme_row->slideshow_rl_btn_style); ?>-right bwg_slideshow_next_btn_<?php echo esc_attr($bwg); ?>"></i></span></span></a>
538
  <?php
539
  }
@@ -634,7 +634,7 @@ public function inline_styles($bwg, $theme_row, $params, $image_width, $image_he
634
  user-select: none;
635
  }
636
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_image_wrap_<?php echo esc_attr($bwg); ?> {
637
- background-color: #<?php echo $theme_row->slideshow_cont_bg_color; ?>;
638
  width: <?php echo esc_html($image_width); ?>px;
639
  height: <?php echo esc_html($image_height); ?>px;
640
  }
@@ -736,7 +736,7 @@ public function inline_styles($bwg, $theme_row, $params, $image_width, $image_he
736
  }
737
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_left_<?php echo esc_attr($bwg); ?>,
738
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_left_disabled_<?php echo esc_attr($bwg); ?> {
739
- background-color: #<?php echo $theme_row->slideshow_filmstrip_rl_bg_color; ?>;
740
  display: <?php echo ($filmstrip_direction == 'horizontal' ? 'table-cell' : 'block') ?>;
741
  <?php echo esc_html($width_or_height); ?>: 20px;
742
  <?php echo esc_html($left_or_top); ?>: 0;
@@ -745,7 +745,7 @@ public function inline_styles($bwg, $theme_row, $params, $image_width, $image_he
745
  }
746
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_right_<?php echo esc_attr($bwg); ?>,
747
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_right_disabled_<?php echo esc_attr($bwg); ?> {
748
- background-color: #<?php echo $theme_row->slideshow_filmstrip_rl_bg_color; ?>;
749
  display: <?php echo ($filmstrip_direction == 'horizontal' ? 'table-cell' : 'block') ?>;
750
  <?php echo($filmstrip_direction == 'horizontal' ? 'right' : 'bottom') ?>: 0;
751
  <?php echo esc_html($width_or_height); ?>: 20px;
@@ -823,7 +823,7 @@ public function inline_styles($bwg, $theme_row, $params, $image_width, $image_he
823
  <?php } else { ?>
824
  margin: 5px;
825
  <?php } ?>
826
- <?php if (!$slideshow_filmstrip_type && $slideshow_title_position[0] == $theme_row->slideshow_filmstrip_pos) echo $theme_row->slideshow_filmstrip_pos . ':' . ($theme_row->slideshow_dots_height + 4) . 'px;'; ?>
827
  }
828
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_description_text_<?php echo esc_attr($bwg); ?> {
829
  font-size: <?php echo esc_html($theme_row->slideshow_description_font_size); ?>px;
135
  }
136
  }
137
  else {
138
+ echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
139
  }
140
  }
141
  else {
142
+ echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
143
  }
144
 
145
  $data = array();
243
  <div class="bwg_slideshow_filmstrip_left_disabled_<?php echo esc_attr($bwg); ?>">
244
  <i class="<?php echo($filmstrip_direction == 'horizontal' ? 'bwg-icon-angle-left' : 'bwg-icon-angle-up'); ?>"></i>
245
  </div>
246
+ <div class="<?php echo esc_html($filmstrip_class_name); ?>">
247
  <div class="bwg_slideshow_filmstrip_thumbnails_<?php echo esc_attr($bwg); ?>">
248
  <?php
249
  foreach ( $image_rows as $key => $image_row ) {
313
  data-style="width:<?php echo esc_html($slideshow_filmstrip_width); ?>px; height:<?php echo esc_html($slideshow_filmstrip_height); ?>px;"
314
  >
315
  <img class="bwg_filmstrip_thumbnail_img bwg_slideshow_filmstrip_thumbnail_img_<?php echo esc_attr($bwg); ?>"
316
+ style="width:<?php echo esc_html($image_thumb_width); ?>px; height:<?php echo esc_html($image_thumb_height); ?>px; margin-left: <?php echo esc_html($thumb_left); ?>px; margin-top: <?php echo esc_html($thumb_top); ?>px;"
317
  data-style="width:<?php echo esc_html($image_thumb_width); ?>px; height:<?php echo esc_html($image_thumb_height); ?>px; margin-left: <?php echo esc_html($thumb_left); ?>px; margin-top: <?php echo esc_html($thumb_top); ?>px;"
318
  src="<?php echo esc_url($bwg_thumb_url); ?>"
319
  data-src="<?php echo esc_url($bwg_thumb_url); ?>"
320
+ onclick="bwg_change_image(parseInt(jQuery('#bwg_current_image_key_<?php echo esc_attr($bwg); ?>').val()), '<?php echo esc_attr($key); ?>', '', '', '<?php echo esc_attr($bwg); ?>')"
321
  image_id="<?php echo esc_attr($image_row->id); ?>"
322
  image_key="<?php echo esc_attr($key); ?>"
323
  alt="<?php echo esc_attr($image_row->alt); ?>"
381
  <?php
382
  if ( !$is_embed ) {
383
  ?>
384
+ <a <?php echo (esc_html($params['thumb_click_action']) == 'open_lightbox' ? (' class="bwg-a bwg_lightbox"' . (BWG()->options->enable_seo ? ' href="' . esc_url($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . esc_attr($image_row->id) . '" data-elementor-open-lightbox="no"') : ('class="bwg-a" ' . ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . esc_url($image_row->redirect_url) . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : ''))); ?>>
385
  <img id="bwg_slideshow_image_<?php echo esc_attr($bwg); ?>"
386
  class="skip-lazy bwg_slide bwg_slideshow_image_<?php echo esc_attr($bwg); ?> <?php if( $lazyload ) { ?> bwg_lazyload <?php } ?>"
387
  src="<?php if( !$lazyload ) { echo esc_url(BWG()->upload_url . $image_row->image_url); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
459
  <?php
460
  if ( !$is_embed ) {
461
  ?>
462
+ <a <?php echo (esc_html($params['thumb_click_action']) == 'open_lightbox' ? (' class="bwg-a bwg_lightbox_' . esc_attr($bwg) . '"' . (BWG()->options->enable_seo ? ' href="' . esc_url($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . esc_attr($image_row->id) . '"') : ('class="bwg-a" ' . ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . esc_url($image_row->redirect_url) . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : ''))) ?>>
463
  <img id="bwg_slideshow_image_<?php echo esc_attr($bwg); ?>"
464
  class="skip-lazy bwg_slide bwg_slideshow_image_<?php echo esc_attr($bwg); ?> <?php if( $lazyload ) { ?> bwg_lazyload lazy_loader <?php } ?>"
465
  src="<?php if( !$lazyload ) { echo esc_url(BWG()->upload_url . $image_row->image_url); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
533
  if ( $enable_slideshow_ctrl ) {
534
  ?>
535
  <a class="bwg-a" id="spider_slideshow_left_<?php echo esc_attr($bwg); ?>" onclick="bwg_change_image(parseInt(jQuery('#bwg_current_image_key_<?php echo esc_attr($bwg); ?>').val()), (parseInt(jQuery('#bwg_current_image_key_<?php echo esc_attr($bwg); ?>').val()) + <?php echo count($data[$bwg]); ?> - bwg_iterator(<?php echo esc_attr($bwg); ?>)) % <?php echo count($data[$bwg]); ?>, '', '', <?php echo esc_attr($bwg); ?>); return false;"><span id="spider_slideshow_left-ico_<?php echo esc_attr($bwg); ?>"><span><i class="<?php echo esc_attr($theme_row->slideshow_rl_btn_style); ?>-left bwg_slideshow_prev_btn_<?php echo esc_attr($bwg); ?>"></i></span></span></a>
536
+ <span id="bwg_slideshow_play_pause_<?php echo esc_attr($bwg); ?>" class="bwg_slideshow_play_pause" style="display: <?php echo esc_html($play_pause_button_display); ?>;"><span><span id="bwg_slideshow_play_pause-ico_<?php echo esc_attr($bwg); ?>"><i class="bwg-icon-play bwg_ctrl_btn_<?php echo esc_attr($bwg); ?> bwg_slideshow_play_pause_<?php echo esc_attr($bwg); ?>"></i></span></span></span>
537
  <a class="bwg-a" id="spider_slideshow_right_<?php echo esc_attr($bwg); ?>" onclick="bwg_change_image(parseInt(jQuery('#bwg_current_image_key_<?php echo esc_attr($bwg); ?>').val()), (parseInt(jQuery('#bwg_current_image_key_<?php echo esc_attr($bwg); ?>').val()) + bwg_iterator(<?php echo esc_attr($bwg); ?>)) % <?php echo count($data[$bwg]); ?>, '', '', <?php echo esc_attr($bwg); ?>); return false;"><span id="spider_slideshow_right-ico_<?php echo esc_attr($bwg); ?>"><span><i class="<?php echo esc_attr($theme_row->slideshow_rl_btn_style); ?>-right bwg_slideshow_next_btn_<?php echo esc_attr($bwg); ?>"></i></span></span></a>
538
  <?php
539
  }
634
  user-select: none;
635
  }
636
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_image_wrap_<?php echo esc_attr($bwg); ?> {
637
+ background-color: #<?php echo esc_html($theme_row->slideshow_cont_bg_color); ?>;
638
  width: <?php echo esc_html($image_width); ?>px;
639
  height: <?php echo esc_html($image_height); ?>px;
640
  }
736
  }
737
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_left_<?php echo esc_attr($bwg); ?>,
738
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_left_disabled_<?php echo esc_attr($bwg); ?> {
739
+ background-color: #<?php echo esc_html($theme_row->slideshow_filmstrip_rl_bg_color); ?>;
740
  display: <?php echo ($filmstrip_direction == 'horizontal' ? 'table-cell' : 'block') ?>;
741
  <?php echo esc_html($width_or_height); ?>: 20px;
742
  <?php echo esc_html($left_or_top); ?>: 0;
745
  }
746
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_right_<?php echo esc_attr($bwg); ?>,
747
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_right_disabled_<?php echo esc_attr($bwg); ?> {
748
+ background-color: #<?php echo esc_html($theme_row->slideshow_filmstrip_rl_bg_color); ?>;
749
  display: <?php echo ($filmstrip_direction == 'horizontal' ? 'table-cell' : 'block') ?>;
750
  <?php echo($filmstrip_direction == 'horizontal' ? 'right' : 'bottom') ?>: 0;
751
  <?php echo esc_html($width_or_height); ?>: 20px;
823
  <?php } else { ?>
824
  margin: 5px;
825
  <?php } ?>
826
+ <?php if (!$slideshow_filmstrip_type && $slideshow_title_position[0] == $theme_row->slideshow_filmstrip_pos) echo esc_html($theme_row->slideshow_filmstrip_pos) . ':' . ($theme_row->slideshow_dots_height + 4) . 'px;'; ?>
827
  }
828
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_description_text_<?php echo esc_attr($bwg); ?> {
829
  font-size: <?php echo esc_html($theme_row->slideshow_description_font_size); ?>px;
frontend/views/BWGViewThumbnails.php CHANGED
@@ -13,12 +13,12 @@ class BWGViewThumbnails extends BWGViewSite {
13
  wp_add_inline_style('bwg_frontend', $inline_style);
14
  }
15
  else {
16
- echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
17
  }
18
  }
19
  }
20
  else {
21
- echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
22
  }
23
  ob_start();
24
  ?>
@@ -72,7 +72,7 @@ class BWGViewThumbnails extends BWGViewSite {
72
  ?>
73
  <div class="bwg-item">
74
  <a class="bwg-a <?php echo esc_attr($class); ?>" <?php echo $data_image_id; ?><?php echo $href; ?> data-elementor-open-lightbox="no">
75
- <?php if ( $params['image_title'] == 'show' && $theme_row->thumb_title_pos == 'top' ) { echo $title; } ?>
76
  <div class="bwg-item0 <?php if( $lazyload ) { ?> lazy_loader <?php } ?>">
77
  <div class="bwg-item1 <?php echo $theme_row->thumb_hover_effect == 'zoom' && $params['image_title'] == 'hover' ? 'bwg-zoom-effect' : ''; ?>">
78
  <div class="bwg-item2">
@@ -80,22 +80,22 @@ class BWGViewThumbnails extends BWGViewSite {
80
  data-id="<?php echo esc_attr($image_row->id); ?>"
81
  data-width="<?php echo esc_attr($image_thumb_width); ?>"
82
  data-height="<?php echo esc_attr($image_thumb_height); ?>"
83
- data-src="<?php echo $bwg_thumb_url; ?>"
84
- src="<?php if( !$lazyload ) { echo $bwg_thumb_url; } else { echo esc_url(BWG()->plugin_url . '/images/lazy_placeholder.gif'); } ?>"
85
  alt="<?php echo esc_attr($image_row->alt); ?>"
86
  title="<?php echo esc_attr($image_row->alt); ?>" />
87
  </div>
88
  <div class="<?php echo $theme_row->thumb_hover_effect == 'zoom' && $params['image_title'] == 'hover' ? 'bwg-zoom-effect-overlay' : ''; ?>">
89
- <?php if ( $params['image_title'] == 'hover' ) { echo $title; } ?>
90
- <?php if ( function_exists('BWGEC') && $params['ecommerce_icon'] == 'hover' && $image_row->pricelist_id ) { echo $ecommerce_icon; } ?>
91
- <?php if ( $is_embed_video && $params['play_icon'] ) { echo $play_icon; } ?>
92
  </div>
93
  </div>
94
  </div>
95
- <?php if ( function_exists('BWGEC') && $params['ecommerce_icon'] == 'show' ) { echo $ecommerce_icon; } ?>
96
- <?php if ( $params['image_title'] == 'show' && $theme_row->thumb_title_pos == 'bottom' ) { echo $title; } ?>
97
  </a>
98
- <?php if ( isset($params['show_thumb_description']) && $params['show_thumb_description'] ) { echo $description; } ?>
99
  </div>
100
  <?php
101
  }
@@ -117,7 +117,7 @@ class BWGViewThumbnails extends BWGViewSite {
117
  $rgb_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->thumbs_bg_color);
118
  ?>
119
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails {
120
- width: <?php echo ($params['image_column_number'] * $params['thumb_width']) + ($theme_row->container_margin ? $theme_row->thumb_margin : 0); ?>px;
121
  <?php
122
  if ( $theme_row->thumb_align == 'center' ) {
123
  ?>
@@ -138,7 +138,7 @@ class BWGViewThumbnails extends BWGViewSite {
138
  <?php
139
  }
140
  ?>
141
- background-color: rgba(<?php echo $rgb_thumbs_bg_color['red']; ?>, <?php echo $rgb_thumbs_bg_color['green']; ?>, <?php echo $rgb_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->thumb_bg_transparent / 100, 2, ".", ""); ?>);
142
  <?php
143
  if ( $theme_row->container_margin ) {
144
  ?>
@@ -171,7 +171,7 @@ class BWGViewThumbnails extends BWGViewSite {
171
  width: <?php echo esc_html($params['thumb_width']); ?>px !important;
172
  <?php } ?>
173
  }
174
- #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails .bwg-item > a {
175
  margin-right: <?php echo esc_html($theme_row->thumb_margin); ?>px;
176
  margin-bottom: <?php echo esc_html($theme_row->thumb_margin); ?>px;
177
  }
13
  wp_add_inline_style('bwg_frontend', $inline_style);
14
  }
15
  else {
16
+ echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
17
  }
18
  }
19
  }
20
  else {
21
+ echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
22
  }
23
  ob_start();
24
  ?>
72
  ?>
73
  <div class="bwg-item">
74
  <a class="bwg-a <?php echo esc_attr($class); ?>" <?php echo $data_image_id; ?><?php echo $href; ?> data-elementor-open-lightbox="no">
75
+ <?php if ( $params['image_title'] == 'show' && $theme_row->thumb_title_pos == 'top' ) { echo WDWLibrary::strip_tags($title); } ?>
76
  <div class="bwg-item0 <?php if( $lazyload ) { ?> lazy_loader <?php } ?>">
77
  <div class="bwg-item1 <?php echo $theme_row->thumb_hover_effect == 'zoom' && $params['image_title'] == 'hover' ? 'bwg-zoom-effect' : ''; ?>">
78
  <div class="bwg-item2">
80
  data-id="<?php echo esc_attr($image_row->id); ?>"
81
  data-width="<?php echo esc_attr($image_thumb_width); ?>"
82
  data-height="<?php echo esc_attr($image_thumb_height); ?>"
83
+ data-src="<?php echo esc_url($bwg_thumb_url); ?>"
84
+ src="<?php if( !$lazyload ) { echo esc_url($bwg_thumb_url); } else { echo esc_url(BWG()->plugin_url . '/images/lazy_placeholder.gif'); } ?>"
85
  alt="<?php echo esc_attr($image_row->alt); ?>"
86
  title="<?php echo esc_attr($image_row->alt); ?>" />
87
  </div>
88
  <div class="<?php echo $theme_row->thumb_hover_effect == 'zoom' && $params['image_title'] == 'hover' ? 'bwg-zoom-effect-overlay' : ''; ?>">
89
+ <?php if ( $params['image_title'] == 'hover' ) { echo WDWLibrary::strip_tags($title); } ?>
90
+ <?php if ( function_exists('BWGEC') && $params['ecommerce_icon'] == 'hover' && $image_row->pricelist_id ) { echo WDWLibrary::strip_tags($ecommerce_icon); } ?>
91
+ <?php if ( $is_embed_video && $params['play_icon'] ) { echo WDWLibrary::strip_tags($play_icon); } ?>
92
  </div>
93
  </div>
94
  </div>
95
+ <?php if ( function_exists('BWGEC') && $params['ecommerce_icon'] == 'show' ) { echo WDWLibrary::strip_tags($ecommerce_icon); } ?>
96
+ <?php if ( $params['image_title'] == 'show' && $theme_row->thumb_title_pos == 'bottom' ) { echo WDWLibrary::strip_tags($title); } ?>
97
  </a>
98
+ <?php if ( isset($params['show_thumb_description']) && $params['show_thumb_description'] ) { echo WDWLibrary::strip_tags($description); } ?>
99
  </div>
100
  <?php
101
  }
117
  $rgb_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->thumbs_bg_color);
118
  ?>
119
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails {
120
+ width: <?php echo esc_html(($params['image_column_number'] * $params['thumb_width']) + ($theme_row->container_margin ? $theme_row->thumb_margin : 0)); ?>px;
121
  <?php
122
  if ( $theme_row->thumb_align == 'center' ) {
123
  ?>
138
  <?php
139
  }
140
  ?>
141
+ background-color: rgba(<?php echo esc_html($rgb_thumbs_bg_color['red']); ?>, <?php echo esc_html($rgb_thumbs_bg_color['green']); ?>, <?php echo esc_html($rgb_thumbs_bg_color['blue']); ?>, <?php echo esc_html(number_format($theme_row->thumb_bg_transparent / 100, 2, ".", "")); ?>);
142
  <?php
143
  if ( $theme_row->container_margin ) {
144
  ?>
171
  width: <?php echo esc_html($params['thumb_width']); ?>px !important;
172
  <?php } ?>
173
  }
174
+ #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails .bwg-item a {
175
  margin-right: <?php echo esc_html($theme_row->thumb_margin); ?>px;
176
  margin-bottom: <?php echo esc_html($theme_row->thumb_margin); ?>px;
177
  }
frontend/views/view.php CHANGED
@@ -155,10 +155,10 @@ class BWGViewSite {
155
  }
156
  if ( isset($params['image_rows']) && !count($params['image_rows']['images']) ) {
157
  if ( $params['tag'] ) {
158
- echo WDWLibrary::message(__('There are no images.', 'photo-gallery'), 'wd_error');
159
  }
160
  else {
161
- echo WDWLibrary::message(__('No Images found.', 'photo-gallery'), 'wd_error');
162
  }
163
  }
164
  if ( $params['album_view_type'] == 'album' || isset($params['image_rows']) && count($params['image_rows']['images']) ) {
@@ -177,7 +177,7 @@ class BWGViewSite {
177
  ob_start();
178
  ?>
179
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #spider_popup_overlay_<?php echo esc_attr($bwg); ?> {
180
- background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
181
  opacity: <?php echo number_format($theme_row->lightbox_overlay_bg_transparent / 100, 2, ".", ""); ?>;
182
  }
183
  <?php
@@ -187,7 +187,7 @@ class BWGViewSite {
187
  wp_add_inline_style( 'bwg_frontend', $inline_style );
188
  }
189
  else {
190
- echo '<style>' . strip_tags($inline_style) . '</style>';
191
  }
192
  ?>
193
  <div id="bwg_spider_popup_loading_<?php echo esc_attr($bwg); ?>" class="bwg_spider_popup_loading"></div>
@@ -257,13 +257,13 @@ class BWGViewSite {
257
 
258
  if ( isset($params['image_rows']) && !count($params['image_rows']['images']) ) {
259
  if ( $params['tag'] ) {
260
- echo WDWLibrary::message(__('There are no images.', 'photo-gallery'), 'wd_error');
261
  }
262
  else {
263
- echo WDWLibrary::message(__('No Images found.', 'photo-gallery'), 'wd_error');
264
  }
265
  }
266
- //$get_bwg_load_more = WDWLibrary::get("bwg_load_more_".$bwg);
267
  $compuct_album_enable_page = "";
268
  if (isset($params["compuct_album_enable_page"])) {
269
  $compuct_album_enable_page = $params["compuct_album_enable_page"];
@@ -313,13 +313,13 @@ class BWGViewSite {
313
  display: inline-block;
314
  background-color: rgba(0, 0, 0, 0);
315
  margin-bottom: 20px;
316
- padding: <?php echo $theme_row->back_padding; ?>;
317
- line-height: <?php echo $theme_row->back_font_size; ?>px;
318
  text-align: left;
319
- font-family: <?php echo $theme_row->back_font_style; ?>;
320
- font-weight: <?php echo $theme_row->back_font_weight; ?>;
321
- font-size: <?php echo $theme_row->back_font_size; ?>px;
322
- color: #<?php echo $theme_row->back_font_color; ?>;
323
  cursor: pointer;
324
  }
325
  <?php
@@ -328,10 +328,10 @@ class BWGViewSite {
328
  wp_add_inline_style('bwg_frontend', $inline_style);
329
  }
330
  else {
331
- echo '<style>' . strip_tags($inline_style) . '</style>';
332
  }
333
  ?>
334
- <div class="bwg_back bwg_back_<?php echo esc_attr($bwg); ?>" onclick="bwg_ajax('gal_front_form_<?php echo esc_attr($bwg); ?>', '<?php echo esc_attr($bwg); ?>', '<?php echo $params['container_id']; ?>', 'back', '', 'album')"><i class="bwg-icon-arrow-left"></i> <?php _e('Back', 'photo-gallery'); ?></div>
335
  <?php
336
  }
337
 
@@ -345,21 +345,21 @@ class BWGViewSite {
345
  ?>
346
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_gal_title_<?php echo esc_attr($bwg); ?> {
347
  display: block;
348
- padding: <?php echo $theme_row->thumb_gal_title_margin; ?>;
349
  background-color: rgba(0, 0, 0, 0);
350
  line-height: 20px;
351
- font-family: <?php echo $theme_row->thumb_gal_title_font_style; ?>;
352
- font-size: <?php echo $theme_row->thumb_gal_title_font_size; ?>px;
353
- font-weight: <?php echo $theme_row->thumb_gal_title_font_weight; ?>;
354
- color: #<?php echo $theme_row->thumb_gal_title_font_color; ?>;
355
- text-shadow: <?php echo $theme_row->thumb_gal_title_shadow; ?>;
356
- text-align: <?php echo $theme_row->thumb_gal_title_align; ?>;
357
  }
358
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_gal_description_<?php echo esc_attr($bwg); ?> {
359
  margin: 20px 0;
360
  word-break: break-word;
361
  text-align: justify;
362
- font-size: <?php echo $theme_row->thumb_gal_title_font_size - 3; ?>px;
363
  font-weight: unset;
364
  }
365
  <?php
@@ -368,7 +368,7 @@ class BWGViewSite {
368
  wp_add_inline_style('bwg_frontend', $inline_style);
369
  }
370
  else {
371
- echo '<style>' . strip_tags($inline_style) . '</style>';
372
  }
373
  }
374
  if ( $params['showthumbs_name'] && isset($row->name) && $row->name != '' ) {
@@ -446,7 +446,7 @@ class BWGViewSite {
446
  wp_add_inline_style('bwg_frontend', $inline_style);
447
  }
448
  else {
449
- echo '<style>' . strip_tags($inline_style) . '</style>';
450
  }
451
  ?>
452
  <?php
@@ -463,16 +463,16 @@ class BWGViewSite {
463
  <div class="bwg_search_container_2" id="bwg_search_container_2_<?php echo esc_attr($current_view); ?>">
464
  <span class="bwg_search_input_container">
465
  <span class="bwg_search_loupe_container1 bwg-hidden">
466
- <i title="<?php echo __('SEARCH...', 'photo-gallery'); ?>" class="bwg-icon-search bwg_search" onclick="bwg_ajax('<?php echo $form_id; ?>', '<?php echo esc_attr($current_view); ?>', '<?php echo $cur_gal_id; ?>', <?php echo $album_gallery_id; ?>, '', '<?php echo $type; ?>', 1)"></i>
467
  </span>
468
  <input id="bwg_search_input_<?php echo esc_attr($current_view); ?>" class="bwg_search_input" type="text" onkeypress="bwg_key_press(this); return bwg_check_search_input_enter(this, event);" name="bwg_search_<?php echo esc_attr($current_view); ?>" value="<?php echo esc_attr($bwg_search); ?>" placeholder="<?php echo esc_attr($placeholder); ?>" />
469
- <span class="bwg_search_reset_container <?echo esc_attr($bwg_search_reset); ?>">
470
- <i title="<?php echo __('Reset', 'photo-gallery'); ?>" class="bwg-icon-times bwg_reset" onclick="bwg_clear_search_input('<?php echo esc_attr($current_view); ?>'); <?php echo $bwg_ajax_reset;?> "></i>
471
  </span>
472
  <input id="bwg_images_count_<?php echo esc_attr($current_view); ?>" class="bwg_search_input" type="hidden" name="bwg_images_count_<?php echo esc_attr($current_view); ?>" value="<?php echo esc_attr($images_count); ?>">
473
- <span class="search_placeholder_title" onclick="bwg_search_focus(this)" <?php echo $bwg_search_focus; ?>>
474
  <span class="bwg_search_loupe_container">
475
- <i title="<?php echo __('SEARCH...', 'photo-gallery'); ?>" class="bwg-icon-search bwg_search"></i>
476
  </span>
477
  <span style="font-size: 12px; font-family: Ubuntu;"><?php echo esc_html($placeholder); ?></span>
478
  </span>
@@ -499,7 +499,7 @@ class BWGViewSite {
499
  ob_start();
500
  ?>
501
  #bwg_order_<?php echo esc_attr($current_view); ?> {
502
- width: <?php echo $search_box_width; ?>px;
503
  }
504
  <?php
505
  $inline_style = ob_get_clean();
@@ -508,25 +508,25 @@ class BWGViewSite {
508
  }
509
  ?>
510
  <div class="bwg_order_cont">
511
- <select id="bwg_order_<?php echo esc_attr($current_view); ?>" class="bwg_order bwg_order_<?php echo esc_attr($current_view); ?>" onchange="bwg_ajax('<?php echo $form_id; ?>', '<?php echo esc_attr($current_view); ?>', '<?php echo $cur_gal_id; ?>', <?php echo $album_gallery_id; ?>, '', '<?php echo $type; ?>', 1, '', this.value)">
512
  <option <?php if ( $sort_by == 'default' ) {
513
  echo 'selected';
514
- } ?> value="default"><?php echo __('Order by Default', 'photo-gallery'); ?></option>
515
  <option <?php if ( $sort_by == 'alt' ) {
516
  echo 'selected';
517
- } ?> value="alt"><?php echo __('Title', 'photo-gallery'); ?></option>
518
  <option <?php if ( $sort_by == 'date' ) {
519
  echo 'selected';
520
- } ?> value="date"><?php echo __('Date', 'photo-gallery'); ?></option>
521
  <option <?php if ( $sort_by == 'filename' ) {
522
  echo 'selected';
523
- } ?> value="filename"><?php echo __('Filename', 'photo-gallery'); ?></option>
524
  <option <?php if ( $sort_by == 'size' ) {
525
  echo 'selected';
526
- } ?> value="size"><?php echo __('Size', 'photo-gallery'); ?></option>
527
  <option <?php if ( $sort_by == 'random' || $sort_by == 'RAND()' ) {
528
  echo 'selected';
529
- } ?> value="random"><?php echo __('Random', 'photo-gallery'); ?></option>
530
  </select>
531
  </div>
532
  <?php
@@ -605,7 +605,7 @@ class BWGViewSite {
605
  wp_add_inline_style('bwg_frontend', $inline_style);
606
  }
607
  else {
608
- echo '<style>' . strip_tags($inline_style) . '</style>';
609
  }
610
  if ( $theme_row->tags_view == 1 ) { ?>
611
  <div class="bwg_tags_container_<?php echo esc_attr($current_view); ?>" >
@@ -614,7 +614,7 @@ class BWGViewSite {
614
  <?php
615
  foreach ( $tags_rows as $tags_row ) {
616
  $selected = ( !empty($bwg_search_tags) && in_array($tags_row->term_id ? $tags_row->term_id : '', $bwg_search_tags)) ? 'selected="selected"' : ''; ?>
617
- <option value="<?php echo esc_attr($tags_row->term_id) ?>" <?php echo $selected; ?>><?php echo esc_html($tags_row->name) ?></option>
618
  <?php
619
  }
620
  ?>
@@ -625,7 +625,7 @@ class BWGViewSite {
625
  else { ?>
626
  <div class="bwg_tags_container_<?php echo esc_attr($current_view); ?>">
627
  <div class="bwg_tag_button_view_container" >
628
- <button type="button" class="bwg_all_tags active" data-filter="All Tags"><?php echo __('All Tags', 'photo-gallery');?></button><div class="verLine"></div>
629
  <?php
630
  foreach ( $tags_rows as $tags_row ) {
631
  $active = ( !empty($bwg_search_tags) && in_array($tags_row->term_id ? $tags_row->term_id : '', $bwg_search_tags)) ? 'active' : '';
@@ -635,7 +635,7 @@ class BWGViewSite {
635
  }
636
  ?>
637
  </div>
638
- <div class="bwg_tag_button_see_all"><div class="see_all_tags bwg_show"><span>&#43;</span><?php echo __('see all tags', 'photo-gallery');?></div></div>
639
  <?php
640
  } ?>
641
  <input type="hidden" id="bwg_tag_id_<?php echo esc_attr($cur_gal_id); ?>" value="<?php echo esc_attr($get_filter_teg) ?>" />
@@ -765,7 +765,7 @@ class BWGViewSite {
765
  padding: 0% 11% !important;
766
  }
767
  #bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> {
768
- background-color: rgba(<?php echo $image_browser_images_conteiner['red']; ?>, <?php echo $image_browser_images_conteiner['green']; ?>, <?php echo $image_browser_images_conteiner['blue']; ?>, <?php echo number_format($theme_row->image_browser_full_transparent / 100, 2, ".", ""); ?>);
769
  margin-top: 0;
770
  }
771
  .bwg_image_browser .pagination-links_<?php echo esc_attr($current_view); ?> {
@@ -784,7 +784,7 @@ class BWGViewSite {
784
  wp_add_inline_style('bwg_frontend', $inline_style);
785
  }
786
  else {
787
- echo '<style>' . strip_tags($inline_style) . '</style>';
788
  }
789
  $limit = $page_number > 1 ? $items_per_page['load_more_image_count'] : $items_per_page['images_per_page'];
790
  $limit = $limit ? $limit : 1;
@@ -818,15 +818,15 @@ class BWGViewSite {
818
  <?php
819
  if ( $theme_row->page_nav_number ) {
820
  ?>
821
- <span class="displaying-num_<?php echo esc_attr($current_view); ?>"><?php echo esc_html($count_items) . ' ' . __(' item(s)', 'photo-gallery'); ?></span>
822
  <?php
823
  }
824
  if ( $count_items > $limit ) {
825
  if ( $theme_row->page_nav_button_text ) {
826
- $first_button = __('First', 'photo-gallery');
827
- $previous_button = __('Previous', 'photo-gallery');
828
- $next_button = __('Next', 'photo-gallery');
829
- $last_button = __('Last', 'photo-gallery');
830
  }
831
  else {
832
  $first_button = '«';
@@ -842,22 +842,26 @@ class BWGViewSite {
842
  $next_page = "next-page disabled";
843
  $last_page = "last-page disabled";
844
  }
 
 
 
 
845
  ?>
846
  <span class="pagination-links_<?php echo esc_attr($current_view); ?> pagination-links" data-pages-count="<?php echo esc_attr($items_county); ?>">
847
  <span class="pagination-links_col1">
848
- <a class="bwg-a <?php echo esc_html($first_page); ?>" title="<?php echo __('Go to the first page', 'photo-gallery'); ?>" <?php echo (($enable_dynamic_url || $enable_seo) && $page_number > 1) ? 'href="' . esc_url(add_query_arg(array( "page_number_" . $current_view => 1 ), $_SERVER['REQUEST_URI'])) . '"' : ""; ?>><?php echo esc_html($first_button); ?></a>
849
- <a class="bwg-a <?php echo esc_html($prev_page); ?>" title="<?php echo __('Go to the previous page', 'photo-gallery'); ?>" <?php echo (($enable_dynamic_url || $enable_seo) && $page_number > 1) ? 'href="' . esc_url(add_query_arg(array( "page_number_" . $current_view => $page_number - 1 ), $_SERVER['REQUEST_URI'])) . '"' : ""; ?>><?php echo esc_html($previous_button); ?></a>
850
  </span>
851
  <span class="pagination-links_col2">
852
  <input type="number" class="bwg_current_page" name="bwg_current_page" value="<?php echo esc_attr($page_number); ?>" data-url-info="page_number_<?php echo esc_attr($current_view); ?>" onkeypress="return bwg_change_page_<?php echo esc_attr($current_view); ?>(event, this)" min="1" oninput="validity.valid||(value='')" />
853
- <?php echo __('of', 'photo-gallery'); ?>
854
  <span class="total-pages_<?php echo esc_attr($current_view); ?>">
855
  <?php echo esc_html($items_county); ?>
856
  </span>
857
  </span>
858
  <span class="pagination-links_col3">
859
- <a class="bwg-a <?php echo esc_html($next_page) ?>" title="<?php echo __('Go to the next page', 'photo-gallery'); ?>" <?php echo (($enable_dynamic_url || $enable_seo) && $page_number + 1 <= $items_county) ? 'href="' . esc_url(add_query_arg(array( "page_number_" . $current_view => $page_number + 1 ), $_SERVER['REQUEST_URI'])) . '"' : ""; ?>><?php echo esc_html($next_button); ?></a>
860
- <a class="bwg-a <?php echo esc_html($last_page) ?>" title="<?php echo __('Go to the last page', 'photo-gallery'); ?>" <?php echo (($enable_dynamic_url || $enable_seo) && $page_number < $items_county) ? 'href="' . esc_url(add_query_arg(array( "page_number_" . $current_view => $items_county ), $_SERVER['REQUEST_URI'])) . '"' : ""; ?>><?php echo esc_html($last_button); ?></a>
861
  </span>
862
  </span>
863
  <?php
@@ -870,7 +874,7 @@ class BWGViewSite {
870
  if ($count_items > ($limit * ($page_number - 1)) + $items_per_page['images_per_page']) {
871
  ?>
872
  <div id="bwg_load_<?php echo esc_attr($current_view); ?>" class="tablenav-pages_<?php echo esc_attr($current_view); ?>">
873
- <a class="bwg-a bwg_load_btn_<?php echo esc_attr($current_view); ?> bwg_load_btn" href="javascript:void(0);"><?php echo __('Load More...', 'photo-gallery'); ?></a>
874
  <input type="hidden" id="bwg_load_more_<?php echo esc_attr($current_view); ?>" name="bwg_load_more_<?php echo esc_attr($current_view); ?>" value="on" />
875
  </div>
876
  <?php
@@ -885,8 +889,8 @@ class BWGViewSite {
885
  ?>
886
  <script type="text/javascript">
887
  function bwg_scroll_load_action() {
888
- if (jQuery(document).scrollTop() + jQuery(window).height() > (jQuery('#<?php echo $form_id; ?>').offset().top + jQuery('#<?php echo $form_id; ?>').height())) {
889
- spider_page_<?php echo esc_attr($current_view); ?>('', <?php echo $page_number; ?>, 1, true);
890
  return false;
891
  }
892
  }
@@ -917,7 +921,7 @@ class BWGViewSite {
917
  if (jQuery(cur).hasClass('disabled')) {
918
  return false;
919
  }
920
- var items_county_<?php echo esc_attr($current_view); ?> = <?php echo $items_county; ?>;
921
  switch (y) {
922
  case 1:
923
  if (x >= items_county_<?php echo esc_attr($current_view); ?>) {
@@ -947,24 +951,24 @@ class BWGViewSite {
947
  default:
948
  document.getElementById('page_number_<?php echo esc_attr($current_view); ?>').value = 1;
949
  }
950
- bwg_ajax('<?php echo $form_id; ?>', '<?php echo esc_attr($current_view); ?>', '<?php echo $id; ?>', '<?php echo $album_gallery_id; ?>', '', '<?php echo $type; ?>', 0, '', '', load_more, '', <?php echo $scroll_to_top; ?>);
951
  }
952
 
953
  <?php if ( BWG()->options->front_ajax != "1" ) { ?>
954
- jQuery('.<?php echo $first_page; ?>').on('click', function () {
955
- spider_page_<?php echo esc_attr($current_view); ?>(this, <?php echo $page_number; ?>, -2, 'numeric');
956
  return false;
957
  });
958
- jQuery('.<?php echo $prev_page; ?>').on('click', function () {
959
- spider_page_<?php echo esc_attr($current_view); ?>(this, <?php echo $page_number; ?>, -1, 'numeric');
960
  return false;
961
  });
962
- jQuery('.<?php echo $next_page; ?>').on('click', function () {
963
- spider_page_<?php echo esc_attr($current_view); ?>(this, <?php echo $page_number; ?>, 1, 'numeric');
964
  return false;
965
  });
966
- jQuery('.<?php echo $last_page; ?>').on('click', function () {
967
- spider_page_<?php echo esc_attr($current_view); ?>(this, <?php echo $page_number; ?>, 2, 'numeric');
968
  return false;
969
  });
970
  <?php } ?>
@@ -1001,7 +1005,7 @@ class BWGViewSite {
1001
  }
1002
 
1003
  jQuery('.bwg_load_btn_<?php echo esc_attr($current_view); ?>').on('click', function () {
1004
- spider_page_<?php echo esc_attr($current_view); ?>(this, <?php echo $page_number; ?>, 1, true);
1005
  return false;
1006
  });
1007
  </script>
155
  }
156
  if ( isset($params['image_rows']) && !count($params['image_rows']['images']) ) {
157
  if ( $params['tag'] ) {
158
+ echo WDWLibrary::message(esc_html__('There are no images.', 'photo-gallery'), 'wd_error');
159
  }
160
  else {
161
+ echo WDWLibrary::message(esc_html__('No Images found.', 'photo-gallery'), 'wd_error');
162
  }
163
  }
164
  if ( $params['album_view_type'] == 'album' || isset($params['image_rows']) && count($params['image_rows']['images']) ) {
177
  ob_start();
178
  ?>
179
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #spider_popup_overlay_<?php echo esc_attr($bwg); ?> {
180
+ background-color: #<?php echo esc_html($theme_row->lightbox_overlay_bg_color); ?>;
181
  opacity: <?php echo number_format($theme_row->lightbox_overlay_bg_transparent / 100, 2, ".", ""); ?>;
182
  }
183
  <?php
187
  wp_add_inline_style( 'bwg_frontend', $inline_style );
188
  }
189
  else {
190
+ echo wp_kses('<style>' . $inline_style . '</style>', array('style' => array()));
191
  }
192
  ?>
193
  <div id="bwg_spider_popup_loading_<?php echo esc_attr($bwg); ?>" class="bwg_spider_popup_loading"></div>
257
 
258
  if ( isset($params['image_rows']) && !count($params['image_rows']['images']) ) {
259
  if ( $params['tag'] ) {
260
+ echo WDWLibrary::message(esc_html__('There are no images.', 'photo-gallery'), 'wd_error');
261
  }
262
  else {
263
+ echo WDWLibrary::message(esc_html__('No Images found.', 'photo-gallery'), 'wd_error');
264
  }
265
  }
266
+
267
  $compuct_album_enable_page = "";
268
  if (isset($params["compuct_album_enable_page"])) {
269
  $compuct_album_enable_page = $params["compuct_album_enable_page"];
313
  display: inline-block;
314
  background-color: rgba(0, 0, 0, 0);
315
  margin-bottom: 20px;
316
+ padding: <?php echo esc_html($theme_row->back_padding); ?>;
317
+ line-height: <?php echo esc_html($theme_row->back_font_size); ?>px;
318
  text-align: left;
319
+ font-family: <?php echo esc_html($theme_row->back_font_style); ?>;
320
+ font-weight: <?php echo esc_html($theme_row->back_font_weight); ?>;
321
+ font-size: <?php echo esc_html($theme_row->back_font_size); ?>px;
322
+ color: #<?php echo esc_html($theme_row->back_font_color); ?>;
323
  cursor: pointer;
324
  }
325
  <?php
328
  wp_add_inline_style('bwg_frontend', $inline_style);
329
  }
330
  else {
331
+ echo wp_kses('<style>' . $inline_style . '</style>', array('style' => array()));
332
  }
333
  ?>
334
+ <div class="bwg_back bwg_back_<?php echo esc_attr($bwg); ?>" onclick="bwg_ajax('gal_front_form_<?php echo esc_attr($bwg); ?>', '<?php echo esc_attr($bwg); ?>', '<?php echo esc_html($params['container_id']); ?>', 'back', '', 'album')"><i class="bwg-icon-arrow-left"></i> <?php _e('Back', 'photo-gallery'); ?></div>
335
  <?php
336
  }
337
 
345
  ?>
346
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_gal_title_<?php echo esc_attr($bwg); ?> {
347
  display: block;
348
+ padding: <?php echo esc_html($theme_row->thumb_gal_title_margin); ?>;
349
  background-color: rgba(0, 0, 0, 0);
350
  line-height: 20px;
351
+ font-family: <?php echo esc_html($theme_row->thumb_gal_title_font_style); ?>;
352
+ font-size: <?php echo esc_html($theme_row->thumb_gal_title_font_size); ?>px;
353
+ font-weight: <?php echo esc_html($theme_row->thumb_gal_title_font_weight); ?>;
354
+ color: #<?php echo esc_html($theme_row->thumb_gal_title_font_color); ?>;
355
+ text-shadow: <?php echo esc_html($theme_row->thumb_gal_title_shadow); ?>;
356
+ text-align: <?php echo esc_html($theme_row->thumb_gal_title_align); ?>;
357
  }
358
  #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_gal_description_<?php echo esc_attr($bwg); ?> {
359
  margin: 20px 0;
360
  word-break: break-word;
361
  text-align: justify;
362
+ font-size: <?php echo esc_html($theme_row->thumb_gal_title_font_size - 3); ?>px;
363
  font-weight: unset;
364
  }
365
  <?php
368
  wp_add_inline_style('bwg_frontend', $inline_style);
369
  }
370
  else {
371
+ echo wp_kses('<style>' . $inline_style . '</style>', array('style' => array()));
372
  }
373
  }
374
  if ( $params['showthumbs_name'] && isset($row->name) && $row->name != '' ) {
446
  wp_add_inline_style('bwg_frontend', $inline_style);
447
  }
448
  else {
449
+ echo wp_kses('<style>' . $inline_style . '</style>', array('style' => array()));
450
  }
451
  ?>
452
  <?php
463
  <div class="bwg_search_container_2" id="bwg_search_container_2_<?php echo esc_attr($current_view); ?>">
464
  <span class="bwg_search_input_container">
465
  <span class="bwg_search_loupe_container1 bwg-hidden">
466
+ <i title="<?php echo esc_html__('SEARCH...', 'photo-gallery'); ?>" class="bwg-icon-search bwg_search" onclick="bwg_ajax('<?php echo esc_attr($form_id); ?>', '<?php echo esc_attr($current_view); ?>', '<?php echo esc_html($cur_gal_id); ?>', <?php echo esc_html($album_gallery_id); ?>, '', '<?php echo esc_html($type); ?>', 1)"></i>
467
  </span>
468
  <input id="bwg_search_input_<?php echo esc_attr($current_view); ?>" class="bwg_search_input" type="text" onkeypress="bwg_key_press(this); return bwg_check_search_input_enter(this, event);" name="bwg_search_<?php echo esc_attr($current_view); ?>" value="<?php echo esc_attr($bwg_search); ?>" placeholder="<?php echo esc_attr($placeholder); ?>" />
469
+ <span class="bwg_search_reset_container <?php echo esc_attr($bwg_search_reset); ?>">
470
+ <i title="<?php echo esc_html__('Reset', 'photo-gallery'); ?>" class="bwg-icon-times bwg_reset" onclick="bwg_clear_search_input('<?php echo esc_attr($current_view); ?>'); <?php echo esc_html($bwg_ajax_reset);?> "></i>
471
  </span>
472
  <input id="bwg_images_count_<?php echo esc_attr($current_view); ?>" class="bwg_search_input" type="hidden" name="bwg_images_count_<?php echo esc_attr($current_view); ?>" value="<?php echo esc_attr($images_count); ?>">
473
+ <span class="search_placeholder_title" onclick="bwg_search_focus(this)" <?php echo esc_html($bwg_search_focus); ?>>
474
  <span class="bwg_search_loupe_container">
475
+ <i title="<?php echo esc_html__('SEARCH...', 'photo-gallery'); ?>" class="bwg-icon-search bwg_search"></i>
476
  </span>
477
  <span style="font-size: 12px; font-family: Ubuntu;"><?php echo esc_html($placeholder); ?></span>
478
  </span>
499
  ob_start();
500
  ?>
501
  #bwg_order_<?php echo esc_attr($current_view); ?> {
502
+ width: <?php echo esc_html($search_box_width); ?>px;
503
  }
504
  <?php
505
  $inline_style = ob_get_clean();
508
  }
509
  ?>
510
  <div class="bwg_order_cont">
511
+ <select id="bwg_order_<?php echo esc_attr($current_view); ?>" class="bwg_order bwg_order_<?php echo esc_attr($current_view); ?>" onchange="bwg_ajax('<?php echo esc_html($form_id); ?>', '<?php echo esc_html($current_view); ?>', '<?php echo esc_html($cur_gal_id); ?>', <?php echo esc_html($album_gallery_id); ?>, '', '<?php echo esc_html($type); ?>', 1, '', this.value)">
512
  <option <?php if ( $sort_by == 'default' ) {
513
  echo 'selected';
514
+ } ?> value="default"><?php echo esc_html__('Order by Default', 'photo-gallery'); ?></option>
515
  <option <?php if ( $sort_by == 'alt' ) {
516
  echo 'selected';
517
+ } ?> value="alt"><?php echo esc_html__('Title', 'photo-gallery'); ?></option>
518
  <option <?php if ( $sort_by == 'date' ) {
519
  echo 'selected';
520
+ } ?> value="date"><?php echo esc_html__('Date', 'photo-gallery'); ?></option>
521
  <option <?php if ( $sort_by == 'filename' ) {
522
  echo 'selected';
523
+ } ?> value="filename"><?php echo esc_html__('Filename', 'photo-gallery'); ?></option>
524
  <option <?php if ( $sort_by == 'size' ) {
525
  echo 'selected';
526
+ } ?> value="size"><?php echo esc_html__('Size', 'photo-gallery'); ?></option>
527
  <option <?php if ( $sort_by == 'random' || $sort_by == 'RAND()' ) {
528
  echo 'selected';
529
+ } ?> value="random"><?php echo esc_html__('Random', 'photo-gallery'); ?></option>
530
  </select>
531
  </div>
532
  <?php
605
  wp_add_inline_style('bwg_frontend', $inline_style);
606
  }
607
  else {
608
+ echo wp_kses('<style>' . $inline_style . '</style>', array('style' => array()));
609
  }
610
  if ( $theme_row->tags_view == 1 ) { ?>
611
  <div class="bwg_tags_container_<?php echo esc_attr($current_view); ?>" >
614
  <?php
615
  foreach ( $tags_rows as $tags_row ) {
616
  $selected = ( !empty($bwg_search_tags) && in_array($tags_row->term_id ? $tags_row->term_id : '', $bwg_search_tags)) ? 'selected="selected"' : ''; ?>
617
+ <option value="<?php echo esc_attr($tags_row->term_id) ?>" <?php echo esc_html($selected); ?>><?php echo esc_html($tags_row->name) ?></option>
618
  <?php
619
  }
620
  ?>
625
  else { ?>
626
  <div class="bwg_tags_container_<?php echo esc_attr($current_view); ?>">
627
  <div class="bwg_tag_button_view_container" >
628
+ <button type="button" class="bwg_all_tags active" data-filter="All Tags"><?php echo esc_html__('All Tags', 'photo-gallery');?></button><div class="verLine"></div>
629
  <?php
630
  foreach ( $tags_rows as $tags_row ) {
631
  $active = ( !empty($bwg_search_tags) && in_array($tags_row->term_id ? $tags_row->term_id : '', $bwg_search_tags)) ? 'active' : '';
635
  }
636
  ?>
637
  </div>
638
+ <div class="bwg_tag_button_see_all"><div class="see_all_tags bwg_show"><span>&#43;</span><?php echo esc_html__('see all tags', 'photo-gallery');?></div></div>
639
  <?php
640
  } ?>
641
  <input type="hidden" id="bwg_tag_id_<?php echo esc_attr($cur_gal_id); ?>" value="<?php echo esc_attr($get_filter_teg) ?>" />
765
  padding: 0% 11% !important;
766
  }
767
  #bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> {
768
+ background-color: rgba(<?php echo esc_attr($image_browser_images_conteiner['red']); ?>, <?php echo esc_attr($image_browser_images_conteiner['green']); ?>, <?php echo esc_attr($image_browser_images_conteiner['blue']); ?>, <?php echo number_format($theme_row->image_browser_full_transparent / 100, 2, ".", ""); ?>);
769
  margin-top: 0;
770
  }
771
  .bwg_image_browser .pagination-links_<?php echo esc_attr($current_view); ?> {
784
  wp_add_inline_style('bwg_frontend', $inline_style);
785
  }
786
  else {
787
+ echo wp_kses('<style>' . $inline_style . '</style>', array('style' => array()));
788
  }
789
  $limit = $page_number > 1 ? $items_per_page['load_more_image_count'] : $items_per_page['images_per_page'];
790
  $limit = $limit ? $limit : 1;
818
  <?php
819
  if ( $theme_row->page_nav_number ) {
820
  ?>
821
+ <span class="displaying-num_<?php echo esc_attr($current_view); ?>"><?php echo esc_html($count_items) . ' ' . esc_html__(' item(s)', 'photo-gallery'); ?></span>
822
  <?php
823
  }
824
  if ( $count_items > $limit ) {
825
  if ( $theme_row->page_nav_button_text ) {
826
+ $first_button = esc_html__('First', 'photo-gallery');
827
+ $previous_button = esc_html__('Previous', 'photo-gallery');
828
+ $next_button = esc_html__('Next', 'photo-gallery');
829
+ $last_button = esc_html__('Last', 'photo-gallery');
830
  }
831
  else {
832
  $first_button = '«';
842
  $next_page = "next-page disabled";
843
  $last_page = "last-page disabled";
844
  }
845
+
846
+ $REQUEST_URI = isset($REQUEST_URI) ? sanitize_url($REQUEST_URI) : '';
847
+ $REQUEST_URI_first = add_query_arg(array( "page_number_" . $current_view => 1 ), $REQUEST_URI);
848
+ $REQUEST_URI_prev = add_query_arg(array( "page_number_" . $current_view => $page_number - 1 ), $REQUEST_URI);
849
  ?>
850
  <span class="pagination-links_<?php echo esc_attr($current_view); ?> pagination-links" data-pages-count="<?php echo esc_attr($items_county); ?>">
851
  <span class="pagination-links_col1">
852
+ <a class="bwg-a <?php echo esc_html($first_page); ?>" title="<?php echo esc_html__('Go to the first page', 'photo-gallery'); ?>" <?php echo (($enable_dynamic_url || $enable_seo) && $page_number > 1) ? 'href="' . esc_url($REQUEST_URI_first) . '"' : ""; ?>><?php echo esc_html($first_button); ?></a>
853
+ <a class="bwg-a <?php echo esc_html($prev_page); ?>" title="<?php echo esc_html__('Go to the previous page', 'photo-gallery'); ?>" <?php echo (($enable_dynamic_url || $enable_seo) && $page_number > 1) ? 'href="' . esc_url($REQUEST_URI_prev) . '"' : ""; ?>><?php echo esc_html($previous_button); ?></a>
854
  </span>
855
  <span class="pagination-links_col2">
856
  <input type="number" class="bwg_current_page" name="bwg_current_page" value="<?php echo esc_attr($page_number); ?>" data-url-info="page_number_<?php echo esc_attr($current_view); ?>" onkeypress="return bwg_change_page_<?php echo esc_attr($current_view); ?>(event, this)" min="1" oninput="validity.valid||(value='')" />
857
+ <?php echo esc_html__('of', 'photo-gallery'); ?>
858
  <span class="total-pages_<?php echo esc_attr($current_view); ?>">
859
  <?php echo esc_html($items_county); ?>
860
  </span>
861
  </span>
862
  <span class="pagination-links_col3">
863
+ <a class="bwg-a <?php echo esc_html($next_page) ?>" title="<?php echo esc_html__('Go to the next page', 'photo-gallery'); ?>" <?php echo (($enable_dynamic_url || $enable_seo) && $page_number + 1 <= $items_county) ? 'href="' . esc_url(add_query_arg(array( "page_number_" . $current_view => $page_number + 1 ), $_SERVER['REQUEST_URI'])) . '"' : ""; ?>><?php echo esc_html($next_button); ?></a>
864
+ <a class="bwg-a <?php echo esc_html($last_page) ?>" title="<?php echo esc_html__('Go to the last page', 'photo-gallery'); ?>" <?php echo (($enable_dynamic_url || $enable_seo) && $page_number < $items_county) ? 'href="' . esc_url(add_query_arg(array( "page_number_" . $current_view => $items_county ), $_SERVER['REQUEST_URI'])) . '"' : ""; ?>><?php echo esc_html($last_button); ?></a>
865
  </span>
866
  </span>
867
  <?php
874
  if ($count_items > ($limit * ($page_number - 1)) + $items_per_page['images_per_page']) {
875
  ?>
876
  <div id="bwg_load_<?php echo esc_attr($current_view); ?>" class="tablenav-pages_<?php echo esc_attr($current_view); ?>">
877
+ <a class="bwg-a bwg_load_btn_<?php echo esc_attr($current_view); ?> bwg_load_btn" href="javascript:void(0);"><?php echo esc_html__('Load More...', 'photo-gallery'); ?></a>
878
  <input type="hidden" id="bwg_load_more_<?php echo esc_attr($current_view); ?>" name="bwg_load_more_<?php echo esc_attr($current_view); ?>" value="on" />
879
  </div>
880
  <?php
889
  ?>
890
  <script type="text/javascript">
891
  function bwg_scroll_load_action() {
892
+ if (jQuery(document).scrollTop() + jQuery(window).height() > (jQuery('#<?php echo esc_html($form_id); ?>').offset().top + jQuery('#<?php echo esc_html($form_id); ?>').height())) {
893
+ spider_page_<?php echo esc_attr($current_view); ?>('', <?php echo esc_html($page_number); ?>, 1, true);
894
  return false;
895
  }
896
  }
921
  if (jQuery(cur).hasClass('disabled')) {
922
  return false;
923
  }
924
+ var items_county_<?php echo esc_attr($current_view); ?> = <?php echo esc_html($items_county); ?>;
925
  switch (y) {
926
  case 1:
927
  if (x >= items_county_<?php echo esc_attr($current_view); ?>) {
951
  default:
952
  document.getElementById('page_number_<?php echo esc_attr($current_view); ?>').value = 1;
953
  }
954
+ bwg_ajax('<?php echo esc_html($form_id); ?>', '<?php echo esc_attr($current_view); ?>', '<?php echo esc_html($id); ?>', '<?php echo esc_html($album_gallery_id); ?>', '', '<?php echo esc_html($type); ?>', 0, '', '', load_more, '', <?php echo esc_html($scroll_to_top); ?>);
955
  }
956
 
957
  <?php if ( BWG()->options->front_ajax != "1" ) { ?>
958
+ jQuery('.<?php echo esc_html($first_page); ?>').on('click', function () {
959
+ spider_page_<?php echo esc_attr($current_view); ?>(this, <?php echo esc_html($page_number); ?>, -2, 'numeric');
960
  return false;
961
  });
962
+ jQuery('.<?php echo esc_html($prev_page); ?>').on('click', function () {
963
+ spider_page_<?php echo esc_attr($current_view); ?>(this, <?php echo esc_html($page_number); ?>, -1, 'numeric');
964
  return false;
965
  });
966
+ jQuery('.<?php echo esc_html($next_page); ?>').on('click', function () {
967
+ spider_page_<?php echo esc_attr($current_view); ?>(this, <?php echo esc_html($page_number); ?>, 1, 'numeric');
968
  return false;
969
  });
970
+ jQuery('.<?php echo esc_html($last_page); ?>').on('click', function () {
971
+ spider_page_<?php echo esc_attr($current_view); ?>(this, <?php echo esc_html($page_number); ?>, 2, 'numeric');
972
  return false;
973
  });
974
  <?php } ?>
1005
  }
1006
 
1007
  jQuery('.bwg_load_btn_<?php echo esc_attr($current_view); ?>').on('click', function () {
1008
+ spider_page_<?php echo esc_attr($current_view); ?>(this, <?php echo esc_html($page_number); ?>, 1, true);
1009
  return false;
1010
  });
1011
  </script>
photo-gallery.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/?utm_source=photo_gallery&utm_medium=free_plugin
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.6.8
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/plugins/?utm_source=photo_gallery&utm_medium=free_plugin
9
  * Text Domain: photo-gallery
@@ -106,8 +106,8 @@ final class BWG {
106
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
107
  $this->front_url = $this->plugin_url;
108
  $this->main_file = plugin_basename(__FILE__);
109
- $this->plugin_version = '1.6.8';
110
- $this->db_version = '1.6.8';
111
  $this->prefix = 'bwg';
112
  $this->nicename = __('Photo Gallery', 'photo-gallery');
113
  require_once($this->plugin_dir . '/framework/WDWLibrary.php');
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/?utm_source=photo_gallery&utm_medium=free_plugin
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.6.9
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/plugins/?utm_source=photo_gallery&utm_medium=free_plugin
9
  * Text Domain: photo-gallery
106
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
107
  $this->front_url = $this->plugin_url;
108
  $this->main_file = plugin_basename(__FILE__);
109
+ $this->plugin_version = '1.6.9';
110
+ $this->db_version = '1.6.9';
111
  $this->prefix = 'bwg';
112
  $this->nicename = __('Photo Gallery', 'photo-gallery');
113
  require_once($this->plugin_dir . '/framework/WDWLibrary.php');
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: 4.6
5
  Tested up to: 6.0
6
- Stable tag: 1.6.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -282,6 +282,9 @@ Choose whether to display random or the first/last specific number of images.
282
 
283
  == Changelog ==
284
 
 
 
 
285
  = 1.6.8 =
286
  * Fixed: Security vulnerability.
287
 
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: 4.6
5
  Tested up to: 6.0
6
+ Stable tag: 1.6.9
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
282
 
283
  == Changelog ==
284
 
285
+ = 1.6.9 =
286
+ * Fixed: Security vulnerability.
287
+
288
  = 1.6.8 =
289
  * Fixed: Security vulnerability.
290