Photo Gallery by WD – Responsive Photo Gallery - Version 1.5.9

Version Description

  • Changed: Pages of Notification to install 10WEB Manager plugin.
Download this release

Release Info

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

Code changes from version 1.5.8 to 1.5.9

Files changed (4) hide show
  1. addons/addons.php +1 -0
  2. css/bwg_tables.css +2 -2
  3. photo-gallery.php +25 -21
  4. readme.txt +4 -1
addons/addons.php CHANGED
@@ -33,6 +33,7 @@ function bwg_addons_display() {
33
  );
34
  ?>
35
  <div class="wrap">
 
36
  <div id="settings">
37
  <div id="settings-content" >
38
  <h2 id="add_on_title"><?php _e('Photo Gallery Add-ons', BWG()->prefix); ?></h2>
33
  );
34
  ?>
35
  <div class="wrap">
36
+ <h1 class="bwg-head-notice">&nbsp;</h1>
37
  <div id="settings">
38
  <div id="settings-content" >
39
  <h2 id="add_on_title"><?php _e('Photo Gallery Add-ons', BWG()->prefix); ?></h2>
css/bwg_tables.css CHANGED
@@ -2144,6 +2144,6 @@ li.tabs {
2144
  }
2145
  }
2146
 
2147
- #wd_tenweb_logo_notice {
2148
- display: block!important;
2149
  }
2144
  }
2145
  }
2146
 
2147
+ #wd_tenweb_notice_cont {
2148
+ display: inline-block!important;
2149
  }
photo-gallery.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/
5
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
6
- * Version: 1.5.8
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/pricing/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -81,8 +81,8 @@ final class BWG {
81
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
82
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
83
  $this->main_file = plugin_basename(__FILE__);
84
- $this->plugin_version = '1.5.8';
85
- $this->db_version = '1.5.8';
86
  $this->prefix = 'bwg';
87
  $this->nicename = __('Photo Gallery', $this->prefix);
88
 
@@ -1859,7 +1859,7 @@ function photo_gallery( $id ) {
1859
  */
1860
  function wdpg_tenweb_install_notice() {
1861
  // Show notice only on plugin pages.
1862
- if ( !isset($_GET['page']) || strpos(esc_html($_GET['page']), '_bwg') === FALSE ) {
1863
  return '';
1864
  }
1865
  wp_enqueue_script('thickbox');
@@ -1884,8 +1884,8 @@ function wdpg_tenweb_install_notice() {
1884
  $tenweb_url = admin_url( 'admin.php?page=tenweb_menu' );
1885
  $verify_url = add_query_arg( array ('action' => 'tenweb_status'), admin_url('admin-ajax.php'));
1886
  ?>
1887
- <div class="notice" id="wd_tenweb_notice_cont">
1888
- <div class="tenweb_logo notice_col"><img style="display: none"; id="wd_tenweb_logo_notice" src="<?php echo $url . '/images/tenweb/10web-logo.svg'; ?>" /></div>
1889
  <div class="tenweb_description notice_col">
1890
  <div>
1891
  <h1><?php _e("Hey There...", $prefix); ?></h1>
@@ -1979,7 +1979,7 @@ function wdpg_tenweb_install_notice() {
1979
  url: activate_url,
1980
  }).done(function() {
1981
  jQuery("#loading").removeClass('is-active');
1982
-
1983
  jQuery.ajax({ // Check if plugin installed
1984
  type: 'POST',
1985
  url: jQuery("#verifyUrl").attr('data-url'),
@@ -1993,18 +1993,18 @@ function wdpg_tenweb_install_notice() {
1993
  var plStatus = JSON.parse(response);
1994
  if(plStatus.status_active == 1) {
1995
  jQuery('#install_now').addClass('hide');
1996
-
1997
- var data_tenweb_url = jQuery('#activate_now').attr('data-tenweb-url');
1998
-
1999
- jQuery('#activate_now').attr('href',data_tenweb_url);
2000
- jQuery('#activate_now').text("<?php _e('Go to 10WEB Manager', $prefix) ?>");
2001
  jQuery.post('<?php echo $dismiss_url; ?>');
2002
-
2003
  }
2004
  else {
2005
  jQuery("#loading").removeClass('is-active');
2006
  jQuery(".error_activate").removeClass('hide');
2007
  }
 
 
 
 
 
2008
  }
2009
  });
2010
 
@@ -2029,11 +2029,7 @@ function wdpg_tenweb_install_notice() {
2029
  position: relative;
2030
  background-image: url("<?php echo $url?>/images/tenweb/notice_bg.png");
2031
  background-position: center center;
2032
- display: inline-block;
2033
- }
2034
-
2035
- #wd_tenweb_notice_cont p {
2036
- color: #333B46;
2037
  }
2038
 
2039
  #wd_tenweb_notice_cont .spinner {
@@ -2043,10 +2039,14 @@ function wdpg_tenweb_install_notice() {
2043
  position:absolute;
2044
  width: 15px;
2045
  height: 15px;
2046
- bottom: 10px;
2047
  right: 10px;
2048
  }
2049
 
 
 
 
 
2050
  .tenweb_action div {
2051
  position: relative;
2052
  }
@@ -2203,6 +2203,10 @@ function wdpg_tenweb_install_notice() {
2203
  .tenweb_plugins_icons_item {
2204
  margin-bottom: 0px;
2205
  }
 
 
 
 
2206
  }
2207
 
2208
  @media only screen and (max-width: 840px) {
@@ -2240,7 +2244,7 @@ function wdpg_tenweb_install_notice() {
2240
 
2241
  .tenweb_action a.tenweb_activaion {
2242
  width: 150px;
2243
- height: 35px;
2244
  padding: 0;
2245
 
2246
  }
@@ -2273,7 +2277,7 @@ function wdpg_tenweb_install_notice() {
2273
  }
2274
 
2275
  #wd_tenweb_notice_cont .spinner {
2276
- right: 80px;
2277
  }
2278
 
2279
 
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/
5
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
6
+ * Version: 1.5.9
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/pricing/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
81
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
82
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
83
  $this->main_file = plugin_basename(__FILE__);
84
+ $this->plugin_version = '1.5.9';
85
+ $this->db_version = '1.5.9';
86
  $this->prefix = 'bwg';
87
  $this->nicename = __('Photo Gallery', $this->prefix);
88
 
1859
  */
1860
  function wdpg_tenweb_install_notice() {
1861
  // Show notice only on plugin pages.
1862
+ if ( ( !isset($_GET['page']) || strpos(esc_html($_GET['page']), '_bwg') === FALSE ) || ( isset($_GET['task']) && !strpos(esc_html($_GET['task']), 'edit') === TRUE ) ) {
1863
  return '';
1864
  }
1865
  wp_enqueue_script('thickbox');
1884
  $tenweb_url = admin_url( 'admin.php?page=tenweb_menu' );
1885
  $verify_url = add_query_arg( array ('action' => 'tenweb_status'), admin_url('admin-ajax.php'));
1886
  ?>
1887
+ <div class="notice" id="wd_tenweb_notice_cont" style="display: none;">
1888
+ <div class="tenweb_logo notice_col"><img id="wd_tenweb_logo_notice" src="<?php echo $url . '/images/tenweb/10web-logo.svg'; ?>" /></div>
1889
  <div class="tenweb_description notice_col">
1890
  <div>
1891
  <h1><?php _e("Hey There...", $prefix); ?></h1>
1979
  url: activate_url,
1980
  }).done(function() {
1981
  jQuery("#loading").removeClass('is-active');
1982
+ var data_tenweb_url = '';
1983
  jQuery.ajax({ // Check if plugin installed
1984
  type: 'POST',
1985
  url: jQuery("#verifyUrl").attr('data-url'),
1993
  var plStatus = JSON.parse(response);
1994
  if(plStatus.status_active == 1) {
1995
  jQuery('#install_now').addClass('hide');
1996
+ data_tenweb_url = jQuery('#activate_now').attr('data-tenweb-url');
 
 
 
 
1997
  jQuery.post('<?php echo $dismiss_url; ?>');
 
1998
  }
1999
  else {
2000
  jQuery("#loading").removeClass('is-active');
2001
  jQuery(".error_activate").removeClass('hide');
2002
  }
2003
+ },
2004
+ complete : function() {
2005
+ if ( data_tenweb_url != '' ) {
2006
+ window.location.href = data_tenweb_url;
2007
+ }
2008
  }
2009
  });
2010
 
2029
  position: relative;
2030
  background-image: url("<?php echo $url?>/images/tenweb/notice_bg.png");
2031
  background-position: center center;
2032
+ display: inline-block!important;
 
 
 
 
2033
  }
2034
 
2035
  #wd_tenweb_notice_cont .spinner {
2039
  position:absolute;
2040
  width: 15px;
2041
  height: 15px;
2042
+ bottom: 7px;
2043
  right: 10px;
2044
  }
2045
 
2046
+ #wd_tenweb_notice_cont p {
2047
+ color: #333B46;
2048
+ }
2049
+
2050
  .tenweb_action div {
2051
  position: relative;
2052
  }
2203
  .tenweb_plugins_icons_item {
2204
  margin-bottom: 0px;
2205
  }
2206
+
2207
+ #wd_tenweb_notice_cont .spinner {
2208
+ right: 0px;
2209
+ }
2210
  }
2211
 
2212
  @media only screen and (max-width: 840px) {
2244
 
2245
  .tenweb_action a.tenweb_activaion {
2246
  width: 150px;
2247
+ height: 30px;
2248
  padding: 0;
2249
 
2250
  }
2277
  }
2278
 
2279
  #wd_tenweb_notice_cont .spinner {
2280
+ right: 70px;
2281
  }
2282
 
2283
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado,wdsupport,photogallerysupport,10web
3
  Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
- Stable tag: 1.5.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -279,6 +279,9 @@ Choose whether to display random or the first/last specific number of images.
279
 
280
  == Changelog ==
281
 
 
 
 
282
  = 1.5.8 =
283
  * Added: Notification to install 10WEB Manager plugin.
284
 
3
  Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
+ Stable tag: 1.5.9
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
279
 
280
  == Changelog ==
281
 
282
+ = 1.5.9 =
283
+ * Changed: Pages of Notification to install 10WEB Manager plugin.
284
+
285
  = 1.5.8 =
286
  * Added: Notification to install 10WEB Manager plugin.
287