Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.95

Version Description

  • Fixed: Advertisement link in slideshow.
  • Fixed: Comment, rating, ecommerce conflict.
Download this release

Release Info

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

Code changes from version 1.2.94 to 1.2.95

frontend/views/BWGViewAlbum_compact_preview.php CHANGED
@@ -23,8 +23,6 @@ class BWGViewAlbum_compact_preview {
23
  // Public Methods //
24
  ////////////////////////////////////////////////////////////////////////////////////////
25
  public function display($params, $from_shortcode = 0, $bwg = 0) {
26
- global $wp;
27
- $current_url = $wp->query_string;
28
  global $WD_BWG_UPLOAD_DIR;
29
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
30
 
@@ -251,8 +249,7 @@ class BWGViewAlbum_compact_preview {
251
  'enable_image_google' => $params['popup_enable_google'],
252
  'enable_image_pinterest' => $params['popup_enable_pinterest'],
253
  'enable_image_tumblr' => $params['popup_enable_tumblr'],
254
- 'watermark_type' => $params['watermark_type'],
255
- 'current_url' => $current_url
256
  );
257
  if ($params['watermark_type'] != 'none') {
258
  $params_array['watermark_link'] = urlencode($params['watermark_link']);
23
  // Public Methods //
24
  ////////////////////////////////////////////////////////////////////////////////////////
25
  public function display($params, $from_shortcode = 0, $bwg = 0) {
 
 
26
  global $WD_BWG_UPLOAD_DIR;
27
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
28
 
249
  'enable_image_google' => $params['popup_enable_google'],
250
  'enable_image_pinterest' => $params['popup_enable_pinterest'],
251
  'enable_image_tumblr' => $params['popup_enable_tumblr'],
252
+ 'watermark_type' => $params['watermark_type']
 
253
  );
254
  if ($params['watermark_type'] != 'none') {
255
  $params_array['watermark_link'] = urlencode($params['watermark_link']);
frontend/views/BWGViewAlbum_extended_preview.php CHANGED
@@ -23,8 +23,6 @@ class BWGViewAlbum_extended_preview {
23
  // Public Methods //
24
  ////////////////////////////////////////////////////////////////////////////////////////
25
  public function display($params, $from_shortcode = 0, $bwg = 0) {
26
- global $wp;
27
- $current_url = $wp->query_string;
28
  global $WD_BWG_UPLOAD_DIR;
29
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
30
  $options_row = $this->model->get_options_row_data();
@@ -196,8 +194,7 @@ class BWGViewAlbum_extended_preview {
196
  'enable_image_google' => $params['popup_enable_google'],
197
  'enable_image_pinterest' => $params['popup_enable_pinterest'],
198
  'enable_image_tumblr' => $params['popup_enable_tumblr'],
199
- 'watermark_type' => $params['watermark_type'],
200
- 'current_url' => $current_url
201
  );
202
  if ($params['watermark_type'] != 'none') {
203
  $params_array['watermark_link'] = urlencode($params['watermark_link']);
23
  // Public Methods //
24
  ////////////////////////////////////////////////////////////////////////////////////////
25
  public function display($params, $from_shortcode = 0, $bwg = 0) {
 
 
26
  global $WD_BWG_UPLOAD_DIR;
27
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
28
  $options_row = $this->model->get_options_row_data();
194
  'enable_image_google' => $params['popup_enable_google'],
195
  'enable_image_pinterest' => $params['popup_enable_pinterest'],
196
  'enable_image_tumblr' => $params['popup_enable_tumblr'],
197
+ 'watermark_type' => $params['watermark_type']
 
198
  );
199
  if ($params['watermark_type'] != 'none') {
200
  $params_array['watermark_link'] = urlencode($params['watermark_link']);
frontend/views/BWGViewGalleryBox.php CHANGED
@@ -22,9 +22,7 @@ class BWGViewGalleryBox {
22
  ////////////////////////////////////////////////////////////////////////////////////////
23
  public function display() {
24
  global $WD_BWG_UPLOAD_DIR;
25
- global $wp;
26
  require_once(WD_BWG_DIR . '/framework/WDWLibraryEmbed.php');
27
- $current_url = (isset($_GET['current_url']) ? add_query_arg(esc_html($_GET['current_url']), '', home_url($wp->request)) : '');
28
  $tag_id = (isset($_GET['tag_id']) ? esc_html($_GET['tag_id']) : 0);
29
  $gallery_id = (isset($_GET['gallery_id']) ? esc_html($_GET['gallery_id']) : 0);
30
  $bwg = (isset($_GET['current_view']) ? esc_html($_GET['current_view']) : 0);
@@ -90,57 +88,6 @@ class BWGViewGalleryBox {
90
  $image_rows = $this->model->get_image_rows_data($gallery_id, $bwg, $sort_by, $order_by);
91
  }
92
  $image_id = (isset($_POST['image_id']) ? (int) $_POST['image_id'] : $current_image_id);
93
- $comment_rows = $this->model->get_comment_rows_data($image_id);
94
-
95
- $params_array = array(
96
- 'action' => 'GalleryBox',
97
- 'image_id' => $current_image_id,
98
- 'gallery_id' => $gallery_id,
99
- 'theme_id' => $theme_id,
100
- 'thumb_width' => $thumb_width,
101
- 'thumb_height' => $thumb_height,
102
- 'open_with_fullscreen' => $open_with_fullscreen,
103
- 'image_width' => $image_width,
104
- 'image_height' => $image_height,
105
- 'image_effect' => $image_effect,
106
- 'wd_sor' => $sort_by,
107
- 'wd_ord' => $order_by,
108
- 'enable_image_filmstrip' => $enable_image_filmstrip,
109
- 'image_filmstrip_height' => $image_filmstrip_height,
110
- 'enable_image_ctrl_btn' => $enable_image_ctrl_btn,
111
- 'enable_image_fullscreen' => $enable_image_fullscreen,
112
- 'popup_enable_info' => $popup_enable_info,
113
- 'popup_info_always_show' => $popup_info_always_show,
114
- 'popup_info_full_width' => $popup_info_full_width,
115
- 'popup_hit_counter' => $popup_hit_counter,
116
- 'popup_enable_rate' => $popup_enable_rate,
117
- 'slideshow_interval' => $slideshow_interval,
118
- 'enable_comment_social' => $enable_comment_social,
119
- 'enable_image_facebook' => $enable_image_facebook,
120
- 'enable_image_twitter' => $enable_image_twitter,
121
- 'enable_image_google' => $enable_image_google,
122
- 'enable_image_pinterest' => $enable_image_pinterest,
123
- 'enable_image_tumblr' => $enable_image_tumblr,
124
- 'watermark_type' => $watermark_type,
125
- 'current_url' => $current_url
126
- );
127
- if ($watermark_type != 'none') {
128
- $params_array['watermark_link'] = $watermark_link;
129
- $params_array['watermark_opacity'] = $watermark_opacity;
130
- $params_array['watermark_position'] = $watermark_position;
131
- }
132
- if ($watermark_type == 'text') {
133
- $params_array['watermark_text'] = $watermark_text;
134
- $params_array['watermark_font_size'] = $watermark_font_size;
135
- $params_array['watermark_font'] = $watermark_font;
136
- $params_array['watermark_color'] = $watermark_color;
137
- }
138
- elseif ($watermark_type == 'image') {
139
- $params_array['watermark_url'] = $watermark_url;
140
- $params_array['watermark_width'] = $watermark_width;
141
- $params_array['watermark_height'] = $watermark_height;
142
- }
143
- $popup_url = add_query_arg(array($params_array), admin_url('admin-ajax.php'));
144
  $filmstrip_thumb_margin = $theme_row->lightbox_filmstrip_thumb_margin;
145
  $margins_split = explode(" ", $filmstrip_thumb_margin);
146
  $filmstrip_thumb_margin_right = 0;
@@ -695,7 +642,7 @@ class BWGViewGalleryBox {
695
  border: <?php echo $theme_row->lightbox_info_border_width; ?>px <?php echo $theme_row->lightbox_info_border_style; ?> #<?php echo $theme_row->lightbox_info_border_color; ?>;
696
  border-radius: <?php echo $theme_row->lightbox_info_border_radius; ?>;
697
  <?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos != 'bottom') && $theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_info_pos == 'bottom') ? 'bottom: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
698
- <?php if($params_array['popup_info_full_width']) { ?>
699
  width: 100%;
700
  <?php } else { ?>
701
  width: 33%;
22
  ////////////////////////////////////////////////////////////////////////////////////////
23
  public function display() {
24
  global $WD_BWG_UPLOAD_DIR;
 
25
  require_once(WD_BWG_DIR . '/framework/WDWLibraryEmbed.php');
 
26
  $tag_id = (isset($_GET['tag_id']) ? esc_html($_GET['tag_id']) : 0);
27
  $gallery_id = (isset($_GET['gallery_id']) ? esc_html($_GET['gallery_id']) : 0);
28
  $bwg = (isset($_GET['current_view']) ? esc_html($_GET['current_view']) : 0);
88
  $image_rows = $this->model->get_image_rows_data($gallery_id, $bwg, $sort_by, $order_by);
89
  }
90
  $image_id = (isset($_POST['image_id']) ? (int) $_POST['image_id'] : $current_image_id);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  $filmstrip_thumb_margin = $theme_row->lightbox_filmstrip_thumb_margin;
92
  $margins_split = explode(" ", $filmstrip_thumb_margin);
93
  $filmstrip_thumb_margin_right = 0;
642
  border: <?php echo $theme_row->lightbox_info_border_width; ?>px <?php echo $theme_row->lightbox_info_border_style; ?> #<?php echo $theme_row->lightbox_info_border_color; ?>;
643
  border-radius: <?php echo $theme_row->lightbox_info_border_radius; ?>;
644
  <?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos != 'bottom') && $theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_info_pos == 'bottom') ? 'bottom: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
645
+ <?php if ($popup_info_full_width) { ?>
646
  width: 100%;
647
  <?php } else { ?>
648
  width: 33%;
frontend/views/BWGViewImage_browser.php CHANGED
@@ -23,8 +23,6 @@ class BWGViewImage_browser {
23
  // Public Methods //
24
  ////////////////////////////////////////////////////////////////////////////////////////
25
  public function display($params, $from_shortcode = 0, $bwg = 0) {
26
- global $wp;
27
- $current_url = $wp->query_string;
28
  global $WD_BWG_UPLOAD_DIR;
29
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
30
  require_once(WD_BWG_DIR . '/framework/WDWLibraryEmbed.php');
@@ -125,8 +123,7 @@ class BWGViewImage_browser {
125
  'enable_image_google' => $params['popup_enable_google'],
126
  'enable_image_pinterest' => $params['popup_enable_pinterest'],
127
  'enable_image_tumblr' => $params['popup_enable_tumblr'],
128
- 'watermark_type' => $params['watermark_type'],
129
- 'current_url' => $current_url
130
  );
131
  $items_per_page = array('images_per_page' => 1, 'load_more_image_count' => 1);
132
  if ($params['watermark_type'] == 'none') {
23
  // Public Methods //
24
  ////////////////////////////////////////////////////////////////////////////////////////
25
  public function display($params, $from_shortcode = 0, $bwg = 0) {
 
 
26
  global $WD_BWG_UPLOAD_DIR;
27
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
28
  require_once(WD_BWG_DIR . '/framework/WDWLibraryEmbed.php');
123
  'enable_image_google' => $params['popup_enable_google'],
124
  'enable_image_pinterest' => $params['popup_enable_pinterest'],
125
  'enable_image_tumblr' => $params['popup_enable_tumblr'],
126
+ 'watermark_type' => $params['watermark_type']
 
127
  );
128
  $items_per_page = array('images_per_page' => 1, 'load_more_image_count' => 1);
129
  if ($params['watermark_type'] == 'none') {
frontend/views/BWGViewSlideshow.php CHANGED
@@ -770,7 +770,7 @@ class BWGViewSlideshow {
770
  }
771
  elseif ($watermark_type == 'text') {
772
  ?>
773
- <a class="bwg_none_selectable_<?php echo $bwg; ?> bwg_slideshow_watermark_text_<?php echo $bwg; ?> bwg_slideshow_watermark_<?php echo $bwg; ?>" target="_blank" href="<?php echo $watermark_link; ?>"><?php echo $watermark_text; ?></a>
774
  <?php
775
  }
776
  ?>
770
  }
771
  elseif ($watermark_type == 'text') {
772
  ?>
773
+ <a class="bwg_none_selectable_<?php echo $bwg; ?> bwg_slideshow_watermark_text_<?php echo $bwg; ?> bwg_slideshow_watermark_<?php echo $bwg; ?>" target="_blank" href="<?php echo urldecode($watermark_link); ?>"><?php echo $watermark_text; ?></a>
774
  <?php
775
  }
776
  ?>
frontend/views/BWGViewThumbnails.php CHANGED
@@ -23,8 +23,6 @@ class BWGViewThumbnails {
23
  // Public Methods //
24
  ////////////////////////////////////////////////////////////////////////////////////////
25
  public function display($params, $from_shortcode = 0, $bwg = 0) {
26
- global $wp;
27
- $current_url = $wp->query_string;
28
  global $WD_BWG_UPLOAD_DIR;
29
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
30
 
@@ -530,8 +528,7 @@ class BWGViewThumbnails {
530
  'enable_image_google' => $params['popup_enable_google'],
531
  'enable_image_pinterest' => $params['popup_enable_pinterest'],
532
  'enable_image_tumblr' => $params['popup_enable_tumblr'],
533
- 'watermark_type' => $params['watermark_type'],
534
- 'current_url' => urlencode($current_url)
535
  );
536
  if ($params['watermark_type'] != 'none') {
537
  $params_array['watermark_link'] = urlencode($params['watermark_link']);
23
  // Public Methods //
24
  ////////////////////////////////////////////////////////////////////////////////////////
25
  public function display($params, $from_shortcode = 0, $bwg = 0) {
 
 
26
  global $WD_BWG_UPLOAD_DIR;
27
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
28
 
528
  'enable_image_google' => $params['popup_enable_google'],
529
  'enable_image_pinterest' => $params['popup_enable_pinterest'],
530
  'enable_image_tumblr' => $params['popup_enable_tumblr'],
531
+ 'watermark_type' => $params['watermark_type']
 
532
  );
533
  if ($params['watermark_type'] != 'none') {
534
  $params_array['watermark_link'] = urlencode($params['watermark_link']);
photo-gallery-notices.php CHANGED
@@ -8,7 +8,7 @@ class BWG_Notices {
8
  protected $plugin_url = WD_BWG_URL;
9
  protected $plugin_version = "wd_bwg_version";
10
  protected $plugin_name = 'Photo Gallery';
11
- protected $promo_link = 'https://web-dorado.com/products/wordpress-photo-gallery-plugin.html';
12
 
13
  public $notice_spam = 0;
14
  public $notice_spam_max = 1;
8
  protected $plugin_url = WD_BWG_URL;
9
  protected $plugin_version = "wd_bwg_version";
10
  protected $plugin_name = 'Photo Gallery';
11
+ protected $promo_link = 'https://web-dorado.com/products/wordpress-photo-gallery-plugin/add-ons/gallery-ecommerce.html?source=gallery_ecommerce_promo';
12
 
13
  public $notice_spam = 0;
14
  public $notice_spam_max = 1;
photo-gallery.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
6
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
7
- * Version: 1.2.94
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -1911,7 +1911,7 @@ function bwg_activate() {
1911
  ));
1912
  }
1913
  $version = get_option("wd_bwg_version");
1914
- $new_version = '1.2.94';
1915
  if ($version && version_compare($version, $new_version, '<')) {
1916
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1917
  bwg_update($version);
@@ -1965,7 +1965,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
1965
 
1966
  function bwg_update_hook() {
1967
  $version = get_option("wd_bwg_version");
1968
- $new_version = '1.2.94';
1969
  if ($version && version_compare($version, $new_version, '<')) {
1970
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1971
  bwg_update($version);
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
6
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
7
+ * Version: 1.2.95
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
1911
  ));
1912
  }
1913
  $version = get_option("wd_bwg_version");
1914
+ $new_version = '1.2.95';
1915
  if ($version && version_compare($version, $new_version, '<')) {
1916
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1917
  bwg_update($version);
1965
 
1966
  function bwg_update_hook() {
1967
  $version = get_option("wd_bwg_version");
1968
+ $new_version = '1.2.95';
1969
  if ($version && version_compare($version, $new_version, '<')) {
1970
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1971
  bwg_update($version);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
  Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery, ecommerce
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
- Stable tag: 1.2.94
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -225,6 +225,10 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
225
 
226
  == Changelog ==
227
 
 
 
 
 
228
  = 1.2.94 =
229
  * Fixed: Gallery media uploader files with withespaces in name.
230
 
4
  Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery, ecommerce
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
+ Stable tag: 1.2.95
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
225
 
226
  == Changelog ==
227
 
228
+ = 1.2.95 =
229
+ * Fixed: Advertisement link in slideshow.
230
+ * Fixed: Comment, rating, ecommerce conflict.
231
+
232
  = 1.2.94 =
233
  * Fixed: Gallery media uploader files with withespaces in name.
234