Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.91

Version Description

  • Fixed: Sort randomly in album views.
  • Added: Ligthbox background transparency.
Download this release

Release Info

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

Code changes from version 1.2.90 to 1.2.91

admin/controllers/BWGControllerThemes_bwg.php CHANGED
@@ -220,7 +220,8 @@ class BWGControllerThemes_bwg {
220
  $lightbox_overlay_bg_transparent = (isset($_POST['lightbox_overlay_bg_transparent']) ? (int) esc_html(stripslashes( $_POST['lightbox_overlay_bg_transparent'])) : 80);
221
  $lightbox_bg_color = (isset($_POST['lightbox_bg_color']) ? esc_html(stripslashes( $_POST['lightbox_bg_color'])) : '000000');
222
  $lightbox_overlay_bg_color = (isset($_POST['lightbox_overlay_bg_color']) ? esc_html(stripslashes( $_POST['lightbox_overlay_bg_color'])) : '000000');
223
- $lightbox_rl_btn_style = (isset($_POST['lightbox_rl_btn_style']) ? esc_html(stripslashes( $_POST['lightbox_rl_btn_style'])) : 'fa-chevron');
 
224
 
225
  $blog_style_margin = (isset($_POST['blog_style_margin']) ? esc_html(stripslashes( $_POST['blog_style_margin'])) : '');
226
  $blog_style_padding = (isset($_POST['blog_style_padding']) ? esc_html(stripslashes( $_POST['blog_style_padding'])) : '');
@@ -668,6 +669,7 @@ class BWGControllerThemes_bwg {
668
  'lightbox_bg_color' => $lightbox_bg_color,
669
  'lightbox_overlay_bg_color' => $lightbox_overlay_bg_color,
670
  'lightbox_rl_btn_style' => $lightbox_rl_btn_style,
 
671
 
672
  'blog_style_margin' => $blog_style_margin,
673
  'blog_style_padding' => $blog_style_padding,
220
  $lightbox_overlay_bg_transparent = (isset($_POST['lightbox_overlay_bg_transparent']) ? (int) esc_html(stripslashes( $_POST['lightbox_overlay_bg_transparent'])) : 80);
221
  $lightbox_bg_color = (isset($_POST['lightbox_bg_color']) ? esc_html(stripslashes( $_POST['lightbox_bg_color'])) : '000000');
222
  $lightbox_overlay_bg_color = (isset($_POST['lightbox_overlay_bg_color']) ? esc_html(stripslashes( $_POST['lightbox_overlay_bg_color'])) : '000000');
223
+ $lightbox_rl_btn_style = (isset($_POST['lightbox_rl_btn_style']) ? esc_html(stripslashes( $_POST['lightbox_rl_btn_style'])) : 'fa-chevron');
224
+ $lightbox_bg_transparent = (isset($_POST['lightbox_bg_transparent']) ? (int) esc_html(stripslashes( $_POST['lightbox_bg_transparent'])) : 100);
225
 
226
  $blog_style_margin = (isset($_POST['blog_style_margin']) ? esc_html(stripslashes( $_POST['blog_style_margin'])) : '');
227
  $blog_style_padding = (isset($_POST['blog_style_padding']) ? esc_html(stripslashes( $_POST['blog_style_padding'])) : '');
669
  'lightbox_bg_color' => $lightbox_bg_color,
670
  'lightbox_overlay_bg_color' => $lightbox_overlay_bg_color,
671
  'lightbox_rl_btn_style' => $lightbox_rl_btn_style,
672
+ 'lightbox_bg_transparent' => $lightbox_bg_transparent,
673
 
674
  'blog_style_margin' => $blog_style_margin,
675
  'blog_style_padding' => $blog_style_padding,
admin/models/BWGModelThemes_bwg.php CHANGED
@@ -54,6 +54,9 @@ class BWGModelThemes_bwg {
54
  foreach ($themes as $key => $value) {
55
  $row->$key = $value;
56
  }
 
 
 
57
  if ($reset) {
58
  if (!$row->default_theme) {
59
  $row_id = $row->id;
@@ -185,6 +188,7 @@ class BWGModelThemes_bwg {
185
  $row->lightbox_filmstrip_thumb_active_border_color = 'FFFFFF';
186
  $row->lightbox_rl_btn_style = 'fa-chevron';
187
  $row->lightbox_rl_btn_transparent = 80;
 
188
 
189
  $row->album_compact_back_font_color = '000000';
190
  $row->album_compact_back_font_style = 'segoe ui';
54
  foreach ($themes as $key => $value) {
55
  $row->$key = $value;
56
  }
57
+ if (!isset($row->lightbox_bg_transparent)) {
58
+ $row->lightbox_bg_transparent = 100;
59
+ }
60
  if ($reset) {
61
  if (!$row->default_theme) {
62
  $row_id = $row->id;
188
  $row->lightbox_filmstrip_thumb_active_border_color = 'FFFFFF';
189
  $row->lightbox_rl_btn_style = 'fa-chevron';
190
  $row->lightbox_rl_btn_transparent = 80;
191
+ $row->lightbox_bg_transparent = 100;
192
 
193
  $row->album_compact_back_font_color = '000000';
194
  $row->album_compact_back_font_style = 'segoe ui';
admin/views/BWGViewThemes_bwg.php CHANGED
@@ -2267,6 +2267,13 @@ class BWGViewThemes_bwg {
2267
  <input type="text" name="lightbox_bg_color" id="lightbox_bg_color" value="<?php echo $row->lightbox_bg_color; ?>" class="color"/>
2268
  </td>
2269
  </tr>
 
 
 
 
 
 
 
2270
  <tr id="lightbox_cntrl1">
2271
  <td class="spider_label"><label for="lightbox_ctrl_btn_height"><?php _e("Control buttons height:", 'bwg_back'); ?> </label></td>
2272
  <td>
2267
  <input type="text" name="lightbox_bg_color" id="lightbox_bg_color" value="<?php echo $row->lightbox_bg_color; ?>" class="color"/>
2268
  </td>
2269
  </tr>
2270
+ <tr id="lightbox_transparency">
2271
+ <td class="spider_label"><label for="lightbox_bg_transparent"><?php echo __('Lightbox background transparency:', 'bwg_back'); ?> </label></td>
2272
+ <td>
2273
+ <input type="text" name="lightbox_bg_transparent" id="lightbox_bg_transparent" value="<?php echo $row->lightbox_bg_transparent; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> %
2274
+ <div class="spider_description"><?php echo __('Value must be between 0 to 100.', 'bwg_back'); ?></div>
2275
+ </td>
2276
+ </tr>
2277
  <tr id="lightbox_cntrl1">
2278
  <td class="spider_label"><label for="lightbox_ctrl_btn_height"><?php _e("Control buttons height:", 'bwg_back'); ?> </label></td>
2279
  <td>
featured/featured.php CHANGED
@@ -120,7 +120,7 @@ function spider_featured($current_plugin = '') {
120
  <div id="main_featured_plugins_page">
121
  <h3>Featured Plugins</h3>
122
  <div class="featured_header">
123
- <a href="https://web-dorado.com/wordpress-plugins.html?source=<?php echo $current_plugin; ?>">
124
  <h1>GET <?php echo $plugins[$current_plugin]["title"]; ?> +18 PLUGINS</h1>
125
  <h1 class="get_plugins">FOR $100 ONLY <span>- SAVE 70%</span></h1>
126
  </a>
120
  <div id="main_featured_plugins_page">
121
  <h3>Featured Plugins</h3>
122
  <div class="featured_header">
123
+ <a href="https://web-dorado.com/wordpress-plugins.html?source=<?php echo $current_plugin; ?>" target="_blank">
124
  <h1>GET <?php echo $plugins[$current_plugin]["title"]; ?> +18 PLUGINS</h1>
125
  <h1 class="get_plugins">FOR $100 ONLY <span>- SAVE 70%</span></h1>
126
  </a>
featured/featured_themes.php CHANGED
@@ -12,7 +12,7 @@ function spider_featured_themes() {
12
  </table>
13
  <div class="featured_header">
14
  <div>
15
- <a href="https://web-dorado.com/wordpress-themes.html?source=photo-gallery">
16
  <h1>WORDPRESS THEMES</h1>
17
  <h1 class="get_plugins">ALL FOR $40 ONLY <span>- SAVE 80%</span></h1>
18
  </a>
12
  </table>
13
  <div class="featured_header">
14
  <div>
15
+ <a href="https://web-dorado.com/wordpress-themes.html?source=photo-gallery" target="_blank">
16
  <h1>WORDPRESS THEMES</h1>
17
  <h1 class="get_plugins">ALL FOR $40 ONLY <span>- SAVE 80%</span></h1>
18
  </a>
frontend/models/BWGModelAlbum_compact_preview.php CHANGED
@@ -89,7 +89,7 @@ class BWGModelAlbum_compact_preview {
89
  else {
90
  $where = '';
91
  }
92
- if ($sort_by == 'random') {
93
  $sort_by = 'RAND()';
94
  }
95
  else {
89
  else {
90
  $where = '';
91
  }
92
+ if ($sort_by == 'random' || $sort_by == 'RAND()') {
93
  $sort_by = 'RAND()';
94
  }
95
  else {
frontend/models/BWGModelAlbum_extended_preview.php CHANGED
@@ -83,7 +83,7 @@ class BWGModelAlbum_extended_preview {
83
  else {
84
  $limit_str = '';
85
  }
86
- if ($sort_by == 'random') {
87
  $sort_by = 'RAND()';
88
  }
89
  else {
83
  else {
84
  $limit_str = '';
85
  }
86
+ if ($sort_by == 'random' || $sort_by == 'RAND()') {
87
  $sort_by = 'RAND()';
88
  }
89
  else {
frontend/views/BWGViewGalleryBox.php CHANGED
@@ -162,6 +162,8 @@ class BWGViewGalleryBox {
162
  $rgb_bwg_image_info_bg_color = WDWLibrary::spider_hex2rgb($theme_row->lightbox_info_bg_color);
163
  $rgb_bwg_image_hit_bg_color = WDWLibrary::spider_hex2rgb($theme_row->lightbox_hit_bg_color);
164
  $rgb_lightbox_ctrl_cont_bg_color = WDWLibrary::spider_hex2rgb($theme_row->lightbox_ctrl_cont_bg_color);
 
 
165
 
166
  $current_filename = '';
167
 
@@ -173,7 +175,7 @@ class BWGViewGalleryBox {
173
  box-sizing: border-box;
174
  }
175
  .spider_popup_wrap {
176
- background-color: #<?php echo $theme_row->lightbox_bg_color; ?>;
177
  display: inline-block;
178
  left: 50%;
179
  outline: medium none;
162
  $rgb_bwg_image_info_bg_color = WDWLibrary::spider_hex2rgb($theme_row->lightbox_info_bg_color);
163
  $rgb_bwg_image_hit_bg_color = WDWLibrary::spider_hex2rgb($theme_row->lightbox_hit_bg_color);
164
  $rgb_lightbox_ctrl_cont_bg_color = WDWLibrary::spider_hex2rgb($theme_row->lightbox_ctrl_cont_bg_color);
165
+ $lightbox_bg_transparent = (isset($theme_row->lightbox_bg_transparent)) ? $theme_row->lightbox_bg_transparent : 100;
166
+ $lightbox_bg_color = WDWLibrary::spider_hex2rgb($theme_row->lightbox_bg_color);
167
 
168
  $current_filename = '';
169
 
175
  box-sizing: border-box;
176
  }
177
  .spider_popup_wrap {
178
+ background-color: rgba(<?php echo $lightbox_bg_color['red']; ?>, <?php echo $lightbox_bg_color['green']; ?>, <?php echo $lightbox_bg_color['blue']; ?>, <?php echo number_format($lightbox_bg_transparent/ 100, 2, ".", ""); ?>);
179
  display: inline-block;
180
  left: 50%;
181
  outline: medium none;
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.90
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -1106,6 +1106,7 @@ function bwg_activate() {
1106
  'lightbox_filmstrip_thumb_active_border_color' => 'FFFFFF',
1107
  'lightbox_rl_btn_style' => 'fa-chevron',
1108
  'lightbox_rl_btn_transparent' => 80,
 
1109
 
1110
  'album_compact_back_font_color' => '000000',
1111
  'album_compact_back_font_style' => 'segoe ui',
@@ -1556,6 +1557,7 @@ function bwg_activate() {
1556
  'lightbox_filmstrip_thumb_active_border_color' => 'FFFFFF',
1557
  'lightbox_rl_btn_style' => 'fa-chevron',
1558
  'lightbox_rl_btn_transparent' => 80,
 
1559
 
1560
  'album_compact_back_font_color' => '000000',
1561
  'album_compact_back_font_style' => 'segoe ui',
@@ -1903,7 +1905,7 @@ function bwg_activate() {
1903
  ));
1904
  }
1905
  $version = get_option("wd_bwg_version");
1906
- $new_version = '1.2.90';
1907
  if ($version && version_compare($version, $new_version, '<')) {
1908
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1909
  bwg_update($version);
@@ -1950,8 +1952,8 @@ add_action('wpmu_new_blog', 'bwg_new_blog_added', 10, 6);
1950
  wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.instagram.com/oembed', true );
1951
 
1952
  function bwg_update_hook() {
1953
- $version = get_option("wd_bwg_version");
1954
- $new_version = '1.2.90';
1955
  if ($version && version_compare($version, $new_version, '<')) {
1956
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1957
  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.91
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
1106
  'lightbox_filmstrip_thumb_active_border_color' => 'FFFFFF',
1107
  'lightbox_rl_btn_style' => 'fa-chevron',
1108
  'lightbox_rl_btn_transparent' => 80,
1109
+ 'lightbox_bg_transparent' => 100,
1110
 
1111
  'album_compact_back_font_color' => '000000',
1112
  'album_compact_back_font_style' => 'segoe ui',
1557
  'lightbox_filmstrip_thumb_active_border_color' => 'FFFFFF',
1558
  'lightbox_rl_btn_style' => 'fa-chevron',
1559
  'lightbox_rl_btn_transparent' => 80,
1560
+ 'lightbox_bg_transparent' => 100,
1561
 
1562
  'album_compact_back_font_color' => '000000',
1563
  'album_compact_back_font_style' => 'segoe ui',
1905
  ));
1906
  }
1907
  $version = get_option("wd_bwg_version");
1908
+ $new_version = '1.2.91';
1909
  if ($version && version_compare($version, $new_version, '<')) {
1910
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1911
  bwg_update($version);
1952
  wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.instagram.com/oembed', true );
1953
 
1954
  function bwg_update_hook() {
1955
+ $version = get_option("wd_bwg_version");
1956
+ $new_version = '1.2.91';
1957
  if ($version && version_compare($version, $new_version, '<')) {
1958
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1959
  bwg_update($version);
readme.txt CHANGED
@@ -2,8 +2,9 @@
2
  Contributors: webdorado
3
  Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
  Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, 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
  Tested up to: 4.4
6
- Stable tag: 1.2.90
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -219,8 +220,15 @@ Yes, it is possible to add advertising and/or watermark over the images. In both
219
  = 8. What are the best dimensions to set for Photo Gallery Images? =
220
  We recommend to use images with the width of 1200px to 1600px. In order to speed up the load time of one's site, please use images with size of 500-700 KB or less.
221
 
 
 
 
222
  == Changelog ==
223
 
 
 
 
 
224
  = 1.2.90 =
225
  * Fixed: Ecommerce loading div.
226
  * Fixed: Albums mosaic view.
2
  Contributors: webdorado
3
  Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
  Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, 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.91
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
220
  = 8. What are the best dimensions to set for Photo Gallery Images? =
221
  We recommend to use images with the width of 1200px to 1600px. In order to speed up the load time of one's site, please use images with size of 500-700 KB or less.
222
 
223
+ = 9. Can I add images to my galleries which had already been uploaded to WordPress Media Library? =
224
+ To enable the feature of adding Media Library images, go to Photo Gallery > Options > Global Options and set Import from Media Library option to Yes. After that you will be able to import photos from Media Library to Photo Gallery.
225
+
226
  == Changelog ==
227
 
228
+ = 1.2.91 =
229
+ * Fixed: Sort randomly in album views.
230
+ * Added: Ligthbox background transparency.
231
+
232
  = 1.2.90 =
233
  * Fixed: Ecommerce loading div.
234
  * Fixed: Albums mosaic view.