Photo Gallery by WD – Responsive Photo Gallery - Version 1.4.16

Version Description

  • Fixed: Disable cron functionality in free version.
  • Fixed: Title/description container visibility in lightbox.
Download this release

Release Info

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

Code changes from version 1.4.15 to 1.4.16

frontend/views/BWGViewGalleryBox.php CHANGED
@@ -1308,7 +1308,7 @@ class BWGViewGalleryBox {
1308
  <div class="bwg_image_info_container1">
1309
  <div class="bwg_image_info_container2">
1310
  <span class="bwg_image_info_spun">
1311
- <div class="bwg_image_info" <?php if(trim($current_image_alt) == '' && trim($current_image_description) == '') { echo 'style="background:none;"'; } ?>>
1312
  <div class="bwg_image_title"><?php echo html_entity_decode($current_image_alt); ?></div>
1313
  <div class="bwg_image_description"><?php echo html_entity_decode($current_image_description); ?></div>
1314
  </div>
1308
  <div class="bwg_image_info_container1">
1309
  <div class="bwg_image_info_container2">
1310
  <span class="bwg_image_info_spun">
1311
+ <div class="bwg_image_info" <?php if(trim($current_image_alt) == '' && trim($current_image_description) == '') { echo 'style="opacity: 0;"'; } ?>>
1312
  <div class="bwg_image_title"><?php echo html_entity_decode($current_image_alt); ?></div>
1313
  <div class="bwg_image_description"><?php echo html_entity_decode($current_image_description); ?></div>
1314
  </div>
js/bwg_frontend.js CHANGED
@@ -862,14 +862,15 @@ function bwg_change_image_lightbox(current_key, key, data, from_effect) {
862
  jQuery(".bwg_image_title").html(jQuery('<span style="display: block;" />').html(data[key]["alt"]).text());
863
  jQuery(".bwg_image_description").html(jQuery('<span style="display: block;" />').html(data[key]["description"]).text());
864
  /*jQuery(".bwg_image_info").removeAttr("style");*/
865
- /* Set active thumbnail.*/
866
-
867
- jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive");
868
- jQuery("#bwg_filmstrip_thumbnail_" + key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active");
869
  if (data[key]["alt"].trim() == "") {
870
- if (data[key]["description"].trim() == "") {
871
- jQuery(".bwg_image_info").css("background", "none");
872
- }
 
873
  }
874
  if (jQuery(".bwg_image_info_container1").css("display") != 'none') {
875
  jQuery(".bwg_image_info_container1").css("display", "table-cell");
862
  jQuery(".bwg_image_title").html(jQuery('<span style="display: block;" />').html(data[key]["alt"]).text());
863
  jQuery(".bwg_image_description").html(jQuery('<span style="display: block;" />').html(data[key]["description"]).text());
864
  /*jQuery(".bwg_image_info").removeAttr("style");*/
865
+ /* Set active thumbnail.*/
866
+ jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive");
867
+ jQuery("#bwg_filmstrip_thumbnail_" + key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active");
868
+ jQuery(".bwg_image_info").css("opacity", 1);
869
  if (data[key]["alt"].trim() == "") {
870
+ if (data[key]["description"].trim() == "") {
871
+ jQuery(".bwg_image_info").css("background", "none");
872
+ jQuery(".bwg_image_info").css("opacity", 0);
873
+ }
874
  }
875
  if (jQuery(".bwg_image_info_container1").css("display") != 'none') {
876
  jQuery(".bwg_image_info_container1").css("display", "table-cell");
photo-gallery.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/
5
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
6
- * Version: 1.4.15
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/pricing/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -81,8 +81,8 @@ final class BWG {
81
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
82
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
83
  $this->main_file = plugin_basename(__FILE__);
84
- $this->plugin_version = '1.4.15';
85
- $this->db_version = '1.4.15';
86
  $this->prefix = 'bwg';
87
  $this->nicename = __('Photo Gallery', $this->prefix);
88
 
@@ -182,9 +182,10 @@ final class BWG {
182
 
183
  add_filter('widget_tag_cloud_args', array($this, 'tag_cloud_widget_args'));
184
 
185
- add_filter('cron_schedules', array($this, 'autoupdate_interval'));
186
-
187
- add_action('bwg_schedule_event_hook', array($this, 'social_galleries'));
 
188
 
189
  // Check add-ons versions.
190
  if ( $this->is_pro ) {
@@ -988,8 +989,10 @@ final class BWG {
988
  * Activate.
989
  */
990
  public function activate() {
991
- delete_transient('bwg_update_check');
992
- wp_schedule_event(time(), 'bwg_autoupdate_interval', 'bwg_schedule_event_hook');
 
 
993
  $version = get_option('wd_bwg_version');
994
  $new_version = $this->db_version;
995
  if ($version && version_compare($version, $new_version, '<')) {
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/
5
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
6
+ * Version: 1.4.16
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/pricing/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
81
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
82
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
83
  $this->main_file = plugin_basename(__FILE__);
84
+ $this->plugin_version = '1.4.16';
85
+ $this->db_version = '1.4.16';
86
  $this->prefix = 'bwg';
87
  $this->nicename = __('Photo Gallery', $this->prefix);
88
 
182
 
183
  add_filter('widget_tag_cloud_args', array($this, 'tag_cloud_widget_args'));
184
 
185
+ if ( $this->is_pro ) {
186
+ add_filter('cron_schedules', array( $this, 'autoupdate_interval' ));
187
+ add_action('bwg_schedule_event_hook', array( $this, 'social_galleries' ));
188
+ }
189
 
190
  // Check add-ons versions.
191
  if ( $this->is_pro ) {
989
  * Activate.
990
  */
991
  public function activate() {
992
+ if ( $this->is_pro ) {
993
+ delete_transient('bwg_update_check');
994
+ wp_schedule_event(time(), 'bwg_autoupdate_interval', 'bwg_schedule_event_hook');
995
+ }
996
  $version = get_option('wd_bwg_version');
997
  $new_version = $this->db_version;
998
  if ($version && version_compare($version, $new_version, '<')) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado,wdsupport,photogallerysupport,10web
3
  Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
- Stable tag: 1.4.15
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -11,7 +11,7 @@ Photo Gallery is a powerful gallery plugin with a list of advanced options for c
11
 
12
  == Description ==
13
 
14
- https://www.youtube.com/watch?v=3u0O9ZdVsGc
15
 
16
  = Useful Links: =
17
  [Special Offer for all Premium Plugins](https://10web.io/pricing/)
@@ -278,7 +278,11 @@ Choose whether to display random or the first/last specific number of images.
278
 
279
 
280
  == Changelog ==
281
-
 
 
 
 
282
  = 1.4.15 =
283
  * Fixed: Titles in mosaic view after load more.
284
  * Fixed: JS error on slideshow view.
3
  Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
+ Stable tag: 1.4.16
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
11
 
12
  == Description ==
13
 
14
+ https://www.youtube.com/watch?v=VDKtGHAJVpc
15
 
16
  = Useful Links: =
17
  [Special Offer for all Premium Plugins](https://10web.io/pricing/)
278
 
279
 
280
  == Changelog ==
281
+
282
+ = 1.4.16 =
283
+ * Fixed: Disable cron functionality in free version.
284
+ * Fixed: Title/description container visibility in lightbox.
285
+
286
  = 1.4.15 =
287
  * Fixed: Titles in mosaic view after load more.
288
  * Fixed: JS error on slideshow view.