Popup Builder – Responsive WordPress Pop up - Version 3.42

Version Description

Current Version of Popup Builder is 3.41

Download this release

Release Info

Developer Sygnoos
Plugin Icon 128x128 Popup Builder – Responsive WordPress Pop up
Version 3.42
Comparing to
See all releases

Code changes from version 3.41 to 3.42

com/classes/Actions.php CHANGED
@@ -75,6 +75,10 @@ class Actions
75
  public function inactiveExtensionNotice()
76
  {
77
  $screen = '';
 
 
 
 
78
  $inactive = AdminHelper::getOption('SGPB_INACTIVE_EXTENSIONS');
79
  $hasInactiveExtensions = AdminHelper::hasInactiveExtensions();
80
  if (!$inactive) {
@@ -108,6 +112,7 @@ class Actions
108
  <b><?php echo $partOfContent; ?></b>
109
  </div>
110
  <button type="button" class="notice-dismiss" onclick="jQuery('.sgpb-license-notice').remove();"><span class="screen-reader-text"><?php _e('Dismiss this notice.', SG_POPUP_TEXT_DOMAIN) ?></span></button>
 
111
  </div>
112
  <?php
113
  $content = ob_get_clean();
75
  public function inactiveExtensionNotice()
76
  {
77
  $screen = '';
78
+ $dontShowLicenseBanner = get_option('sgpb-hide-license-notice-banner');
79
+ if ($dontShowLicenseBanner) {
80
+ return $screen;
81
+ }
82
  $inactive = AdminHelper::getOption('SGPB_INACTIVE_EXTENSIONS');
83
  $hasInactiveExtensions = AdminHelper::hasInactiveExtensions();
84
  if (!$inactive) {
112
  <b><?php echo $partOfContent; ?></b>
113
  </div>
114
  <button type="button" class="notice-dismiss" onclick="jQuery('.sgpb-license-notice').remove();"><span class="screen-reader-text"><?php _e('Dismiss this notice.', SG_POPUP_TEXT_DOMAIN) ?></span></button>
115
+ <span class="sgpb-dont-show-again-license-notice"><?php _e('Don\'t show again.', SG_POPUP_TEXT_DOMAIN); ?></span>
116
  </div>
117
  <?php
118
  $content = ob_get_clean();
com/classes/Ajax.php CHANGED
@@ -68,6 +68,7 @@ class Ajax
68
  add_action('wp_ajax_nopriv_sgpb_dont_show_review_popup', array($this, 'dontShowReviewPopup'));
69
  add_action('wp_ajax_nopriv_sgpb_send_to_open_counter', array($this, 'addToCounter'));
70
  add_action('wp_ajax_sgpb_close_banner', array($this, 'closeMainRateUsBanner'));
 
71
  add_action('wp_ajax_sgpb_hide_ask_review_popup', array($this, 'dontShowAskReviewBanner'));
72
  add_action('wp_ajax_sgpb_reset_popup_opening_count', array($this, 'resetPopupOpeningCount'));
73
  /*Extension notification panel*/
@@ -189,6 +190,13 @@ class Ajax
189
  wp_die();
190
  }
191
 
 
 
 
 
 
 
 
192
  public function addToCounter()
193
  {
194
  check_ajax_referer(SG_AJAX_NONCE, 'nonce');
68
  add_action('wp_ajax_nopriv_sgpb_dont_show_review_popup', array($this, 'dontShowReviewPopup'));
69
  add_action('wp_ajax_nopriv_sgpb_send_to_open_counter', array($this, 'addToCounter'));
70
  add_action('wp_ajax_sgpb_close_banner', array($this, 'closeMainRateUsBanner'));
71
+ add_action('wp_ajax_sgpb_close_license_notice', array($this, 'closeLicenseNoticeBanner'));
72
  add_action('wp_ajax_sgpb_hide_ask_review_popup', array($this, 'dontShowAskReviewBanner'));
73
  add_action('wp_ajax_sgpb_reset_popup_opening_count', array($this, 'resetPopupOpeningCount'));
74
  /*Extension notification panel*/
190
  wp_die();
191
  }
192
 
193
+ public function closeLicenseNoticeBanner()
194
+ {
195
+ check_ajax_referer(SG_AJAX_NONCE, 'nonce');
196
+ update_option('sgpb-hide-license-notice-banner', 'sgpb-hide-license-notice-banner');
197
+ wp_die();
198
+ }
199
+
200
  public function addToCounter()
201
  {
202
  check_ajax_referer(SG_AJAX_NONCE, 'nonce');
com/classes/Updates.php CHANGED
@@ -86,10 +86,11 @@ class Updates
86
  $sgpbUpdater = new EDD_SL_Plugin_Updater($storeURL, $pluginMainFilePath, array(
87
  'version' => $version, // current version number
88
  'license' => $licenseKey, // license key (used get_option above to retrieve from DB)
89
- 'item_id' => $license['itemId'], // id of this plugin
 
90
  'author' => $license['autor'], // author of this plugin
91
- 'url' => home_url(),
92
- 'beta' => false // set to true if you wish customers to receive update notifications of beta releases
93
  ));
94
  }
95
 
@@ -146,6 +147,7 @@ class Updates
146
  'edd_action' => 'activate_license',
147
  'license' => $license,
148
  'item_id' => $itemId, // The ID of the item in EDD
 
149
  'url' => home_url()
150
  );
151
  // Call the custom API.
@@ -179,7 +181,7 @@ class Updates
179
  $message = sprintf(__('This appears to be an invalid license key for %s.', SG_POPUP_TEXT_DOMAIN), $itemName);
180
  break;
181
  case 'no_activations_left' :
182
- $message = __('Invalid license key for current site.', SG_POPUP_TEXT_DOMAIN);
183
  break;
184
  default :
185
  $message = __('An error occurred, please try again.', SG_POPUP_TEXT_DOMAIN);
@@ -213,6 +215,7 @@ class Updates
213
  'edd_action' => 'deactivate_license',
214
  'license' => $license,
215
  'item_id' => $itemId, // The ID of the item in EDD
 
216
  'url' => home_url()
217
  );
218
 
@@ -249,7 +252,7 @@ class Updates
249
  $message = urldecode($_GET['message']);
250
  ?>
251
  <div class="error">
252
- <p><?php echo $message; ?></p>
253
  </div>
254
  <?php
255
  break;
86
  $sgpbUpdater = new EDD_SL_Plugin_Updater($storeURL, $pluginMainFilePath, array(
87
  'version' => $version, // current version number
88
  'license' => $licenseKey, // license key (used get_option above to retrieve from DB)
89
+ 'item_id' => $license['itemId'], // id of this plugin
90
+ 'item_name' => $license['itemName'], // id of this plugin
91
  'author' => $license['autor'], // author of this plugin
92
+ 'url' => home_url(),
93
+ 'beta' => false // set to true if you wish customers to receive update notifications of beta releases
94
  ));
95
  }
96
 
147
  'edd_action' => 'activate_license',
148
  'license' => $license,
149
  'item_id' => $itemId, // The ID of the item in EDD
150
+ 'item_name' => $itemName, // The Name of the item in EDD
151
  'url' => home_url()
152
  );
153
  // Call the custom API.
181
  $message = sprintf(__('This appears to be an invalid license key for %s.', SG_POPUP_TEXT_DOMAIN), $itemName);
182
  break;
183
  case 'no_activations_left' :
184
+ $message = __('You\'ve already used the permitted number of this license key!', SG_POPUP_TEXT_DOMAIN);
185
  break;
186
  default :
187
  $message = __('An error occurred, please try again.', SG_POPUP_TEXT_DOMAIN);
215
  'edd_action' => 'deactivate_license',
216
  'license' => $license,
217
  'item_id' => $itemId, // The ID of the item in EDD
218
+ 'item_name' => $itemName, // The Name of the item in EDD
219
  'url' => home_url()
220
  );
221
 
252
  $message = urldecode($_GET['message']);
253
  ?>
254
  <div class="error">
255
+ <h3><?php echo $message; ?></h3>
256
  </div>
257
  <?php
258
  break;
com/classes/popups/HtmlPopup.php CHANGED
File without changes
com/config/configPackage.php CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
3
  exit();
4
  }
5
 
6
- define('SG_POPUP_VERSION', '3.41');
7
  define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
8
  define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
3
  exit();
4
  }
5
 
6
+ define('SG_POPUP_VERSION', '3.42');
7
  define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
8
  define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
com/helpers/AdminHelper.php CHANGED
File without changes
com/helpers/Functions.php CHANGED
File without changes
popup-builder.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Popup Builder
4
  * Plugin URI: https://popup-builder.com
5
  * Description: The most complete popup plugin. Html, image, iframe, shortcode, video and many other popup types. Manage popup dimensions, effects, themes and more.
6
- * Version: 3.41
7
  * Author: Sygnoos
8
  * Author URI: https://sygnoos.com
9
  * License: GPLv2
3
  * Plugin Name: Popup Builder
4
  * Plugin URI: https://popup-builder.com
5
  * Description: The most complete popup plugin. Html, image, iframe, shortcode, video and many other popup types. Manage popup dimensions, effects, themes and more.
6
+ * Version: 3.42
7
  * Author: Sygnoos
8
  * Author URI: https://sygnoos.com
9
  * License: GPLv2
public/css/popupAdminStyles.css CHANGED
@@ -2000,6 +2000,20 @@ input:checked + .sgpb-slider:before {
2000
  color: #30c2f3 !important;
2001
  }
2002
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2003
  .sgpb-info-close {
2004
  float: right;
2005
  color: #fff;
2000
  color: #30c2f3 !important;
2001
  }
2002
 
2003
+ .sgpb-dont-show-again-license-notice {
2004
+ position: absolute;
2005
+ bottom: 7px;
2006
+ right: 15px;
2007
+ cursor: pointer;
2008
+ color: #000 !important;
2009
+ font-size: 13px;
2010
+ font-style: italic;
2011
+ }
2012
+
2013
+ .sgpb-dont-show-again-license-notice:hover {
2014
+ color: #0073aa !important;
2015
+ }
2016
+
2017
  .sgpb-info-close {
2018
  float: right;
2019
  color: #fff;
public/js/Banner.js CHANGED
@@ -4,6 +4,7 @@ function SGPBBanner() {
4
 
5
  SGPBBanner.prototype.init = function() {
6
  this.close();
 
7
  };
8
 
9
  SGPBBanner.prototype.close = function() {
@@ -27,6 +28,23 @@ SGPBBanner.prototype.close = function() {
27
  });
28
  };
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  jQuery(document).ready(function() {
31
  var banner = new SGPBBanner();
32
  banner.init();
4
 
5
  SGPBBanner.prototype.init = function() {
6
  this.close();
7
+ this.closeLicenseNotice();
8
  };
9
 
10
  SGPBBanner.prototype.close = function() {
28
  });
29
  };
30
 
31
+ SGPBBanner.prototype.closeLicenseNotice = function() {
32
+ if (!jQuery('.sgpb-extensions-notices').length) {
33
+ return;
34
+ }
35
+
36
+ jQuery('.sgpb-dont-show-again-license-notice').click(function() {
37
+ var data = {
38
+ action: 'sgpb_close_license_notice',
39
+ nonce: SGPB_JS_PARAMS.nonce,
40
+ };
41
+
42
+ jQuery.post(ajaxurl, data, function(response) {
43
+ jQuery('.sgpb-extensions-notices').remove();
44
+ });
45
+ });
46
+ };
47
+
48
  jQuery(document).ready(function() {
49
  var banner = new SGPBBanner();
50
  banner.init();
public/js/Newsletter.js CHANGED
File without changes
public/js/PopupBuilder.js CHANGED
@@ -2487,7 +2487,7 @@ SgpbEventListener.prototype.sgpbClick = function(listenerObj, eventData)
2487
  if (typeof eventData.operator != 'undefined' && eventData.operator == 'clickActionCustomClass') {
2488
  targetClick = jQuery('a[href*="#sg-popup-id-' + popupId + '"], .sg-popup-id-' + popupId + ', .sgpb-popup-id-' + popupId+', .'+eventData.value);
2489
  }
2490
- if (!targetClick.length || !targetClick.hasClass('sg-popup-id-'+popupId )) {
2491
  continue;
2492
  }
2493
  var delay = parseInt(popupOptions['sgpb-popup-delay']) * 1000;
@@ -2496,6 +2496,7 @@ SgpbEventListener.prototype.sgpbClick = function(listenerObj, eventData)
2496
  if (!jQuery(this).attr('data-popup-id')) {
2497
  jQuery(this).attr('data-popup-id', popupId);
2498
  }
 
2499
  jQuery(this).bind('click', function(e) {
2500
  if (clickCount > 1) {
2501
  return true;
2487
  if (typeof eventData.operator != 'undefined' && eventData.operator == 'clickActionCustomClass') {
2488
  targetClick = jQuery('a[href*="#sg-popup-id-' + popupId + '"], .sg-popup-id-' + popupId + ', .sgpb-popup-id-' + popupId+', .'+eventData.value);
2489
  }
2490
+ if (!targetClick.length) {
2491
  continue;
2492
  }
2493
  var delay = parseInt(popupOptions['sgpb-popup-delay']) * 1000;
2496
  if (!jQuery(this).attr('data-popup-id')) {
2497
  jQuery(this).attr('data-popup-id', popupId);
2498
  }
2499
+
2500
  jQuery(this).bind('click', function(e) {
2501
  if (clickCount > 1) {
2502
  return true;
public/views/newsletter.php CHANGED
File without changes
readme.txt CHANGED
@@ -9,7 +9,7 @@ Tags: popup, pop up, wordpress popup, popup maker, exit popup, popup builder, wo
9
  Requires at least: 3.8
10
  Tested up to: 5.2
11
  Requires PHP: 5.3.3
12
- Stable tag: 3.41
13
  License: GPLv2 or later
14
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
 
@@ -185,7 +185,7 @@ Go to the Popup Builder settings and set your desired options.
185
 
186
  == Changelog ==
187
 
188
- = Version 3.41 =
189
  * Added new shortcodes which can be used inside the Newsletter
190
  * PHP > 7 notices fixed
191
  * Code optimization and typo fixes
@@ -1014,7 +1014,7 @@ Leave us a good review :)
1014
 
1015
  == Upgrade Notice ==
1016
 
1017
- Current Version of Popup Builder is 3.4
1018
 
1019
  == Other Notes ==
1020
 
9
  Requires at least: 3.8
10
  Tested up to: 5.2
11
  Requires PHP: 5.3.3
12
+ Stable tag: 3.42
13
  License: GPLv2 or later
14
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
 
185
 
186
  == Changelog ==
187
 
188
+ = Version 3.41- 3.42 =
189
  * Added new shortcodes which can be used inside the Newsletter
190
  * PHP > 7 notices fixed
191
  * Code optimization and typo fixes
1014
 
1015
  == Upgrade Notice ==
1016
 
1017
+ Current Version of Popup Builder is 3.41
1018
 
1019
  == Other Notes ==
1020