Popup Builder – Responsive WordPress Pop up - Version 3.59

Version Description

Current Version of Popup Builder is 3.59

Download this release

Release Info

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

Code changes from version 3.58 to 3.59

PopupBuilderInit.php CHANGED
File without changes
com/classes/Actions.php CHANGED
@@ -185,9 +185,8 @@ class Actions
185
  public function wpInit()
186
  {
187
  require_once(ABSPATH.'wp-admin/includes/screen.php');
188
- if (!get_option('sgpb-banner-cron-only-once')) {
189
- update_option('sgpb-banner-cron-only-once', 1);
190
- wp_schedule_event(time(), 'daily', 'sgpbGetBannerContentOnce');
191
  }
192
  }
193
 
@@ -561,6 +560,12 @@ class Actions
561
  'interval' => SGPB_CRON_REPEAT_INTERVAL * 60,
562
  'display' => __('Once Every Minute', SG_POPUP_TEXT_DOMAIN)
563
  );
 
 
 
 
 
 
564
  $schedules = apply_filters('sgpbCronTimeoutSettings', $schedules);
565
 
566
  return $schedules;
185
  public function wpInit()
186
  {
187
  require_once(ABSPATH.'wp-admin/includes/screen.php');
188
+ if (!wp_next_scheduled('sgpbGetBannerContentOnce')) {
189
+ wp_schedule_event(time(), 'sgpb_banners', 'sgpbGetBannerContentOnce');
 
190
  }
191
  }
192
 
560
  'interval' => SGPB_CRON_REPEAT_INTERVAL * 60,
561
  'display' => __('Once Every Minute', SG_POPUP_TEXT_DOMAIN)
562
  );
563
+
564
+ $schedules['sgpb_banners'] = array(
565
+ 'interval' => SGPB_TRANSIENT_TIMEOUT_WEEK,
566
+ 'display' => __('Once Every Week', SG_POPUP_TEXT_DOMAIN)
567
+ );
568
+
569
  $schedules = apply_filters('sgpbCronTimeoutSettings', $schedules);
570
 
571
  return $schedules;
com/classes/PopupLoader.php CHANGED
File without changes
com/classes/popups/SGPopup.php CHANGED
@@ -1304,7 +1304,7 @@ abstract class SGPopup
1304
  {
1305
  $popupIds = array();
1306
 
1307
- $termPopups = get_transient('getPopupsByTermSlug');
1308
  if ($termPopups === false) {
1309
  $termPopups = get_posts(
1310
  array(
1304
  {
1305
  $popupIds = array();
1306
 
1307
+ $termPopups = get_transient(SGPB_TRANSIENT_POPUPS_TERMS);
1308
  if ($termPopups === false) {
1309
  $termPopups = get_posts(
1310
  array(
com/config/config.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.58');
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.59');
7
  define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
8
  define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
com/config/dataConfig.php CHANGED
File without changes
com/helpers/AdminHelper.php CHANGED
@@ -1399,12 +1399,14 @@ class AdminHelper
1399
  public static function getBannerText()
1400
  {
1401
  $bannerText = get_option('sgpb-banner-remote-get');
 
1402
  return $bannerText;
1403
  }
1404
 
1405
  public static function getRightMetaboxBannerText()
1406
  {
1407
  $bannerText = get_option('sgpb-metabox-banner-remote-get');
 
1408
  return $bannerText;
1409
  }
1410
 
1399
  public static function getBannerText()
1400
  {
1401
  $bannerText = get_option('sgpb-banner-remote-get');
1402
+
1403
  return $bannerText;
1404
  }
1405
 
1406
  public static function getRightMetaboxBannerText()
1407
  {
1408
  $bannerText = get_option('sgpb-metabox-banner-remote-get');
1409
+
1410
  return $bannerText;
1411
  }
1412
 
com/helpers/ConfigDataHelper.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.58
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.59
7
  * Author: Sygnoos
8
  * Author URI: https://sygnoos.com
9
  * License: GPLv2
public/js/PopupBuilder.js CHANGED
@@ -2190,7 +2190,6 @@ SGPBPopup.getParamFromUrl = function(param)
2190
  * SGPBPopup Cookies' settings
2191
  *
2192
  */
2193
-
2194
  SGPBPopup.setCookie = function(cName, cValue, exDays, cPageLevel)
2195
  {
2196
  var isPreview = SGPBPopup.getParamFromUrl('preview');
@@ -2198,7 +2197,7 @@ SGPBPopup.setCookie = function(cName, cValue, exDays, cPageLevel)
2198
  return false;
2199
  }
2200
  var expirationDate = new Date();
2201
- var cookiePageLevel = 'path=/;';
2202
  var cookieExpirationData = 1;
2203
  if (!exDays || isNaN(exDays)) {
2204
  if (!exDays && exDays === 0) {
@@ -2208,8 +2207,9 @@ SGPBPopup.setCookie = function(cName, cValue, exDays, cPageLevel)
2208
  exDays = 365*50;
2209
  }
2210
  }
2211
- if (typeof cPageLevel == 'undefined') {
2212
- cPageLevel = false;
 
2213
  }
2214
 
2215
  if (exDays == 'session') {
@@ -2224,9 +2224,6 @@ SGPBPopup.setCookie = function(cName, cValue, exDays, cPageLevel)
2224
  expires = '';
2225
  }
2226
 
2227
- if (cPageLevel && typeof cPageLevel != 'boolean') {
2228
- cookiePageLevel = 'path=' + cPageLevel;
2229
- }
2230
  if (!cookieExpirationData) {
2231
  expires = '';
2232
  }
2190
  * SGPBPopup Cookies' settings
2191
  *
2192
  */
 
2193
  SGPBPopup.setCookie = function(cName, cValue, exDays, cPageLevel)
2194
  {
2195
  var isPreview = SGPBPopup.getParamFromUrl('preview');
2197
  return false;
2198
  }
2199
  var expirationDate = new Date();
2200
+ var cookiePageLevel = '';
2201
  var cookieExpirationData = 1;
2202
  if (!exDays || isNaN(exDays)) {
2203
  if (!exDays && exDays === 0) {
2207
  exDays = 365*50;
2208
  }
2209
  }
2210
+
2211
+ if ((typeof cPageLevel == 'boolean' && cPageLevel == false) || cPageLevel == '') {
2212
+ cookiePageLevel = 'path=/;';
2213
  }
2214
 
2215
  if (exDays == 'session') {
2224
  expires = '';
2225
  }
2226
 
 
 
 
2227
  if (!cookieExpirationData) {
2228
  expires = '';
2229
  }
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.3
11
  Requires PHP: 5.3.3
12
- Stable tag: 3.58
13
  License: GPLv2 or later
14
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
 
@@ -185,6 +185,10 @@ Go to the Popup Builder settings and set your desired options.
185
 
186
  == Changelog ==
187
 
 
 
 
 
188
  = Version 3.58 =
189
  * Hot fix related to function arguments.
190
 
@@ -1110,7 +1114,7 @@ Leave us a good review :)
1110
 
1111
  == Upgrade Notice ==
1112
 
1113
- Current Version of Popup Builder is 3.57
1114
 
1115
  == Other Notes ==
1116
 
9
  Requires at least: 3.8
10
  Tested up to: 5.3
11
  Requires PHP: 5.3.3
12
+ Stable tag: 3.59
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.59 =
189
+ * Speed improvements.
190
+ * Bug fixed related to Page Level Cookie on all browsers.
191
+
192
  = Version 3.58 =
193
  * Hot fix related to function arguments.
194
 
1114
 
1115
  == Upgrade Notice ==
1116
 
1117
+ Current Version of Popup Builder is 3.59
1118
 
1119
  == Other Notes ==
1120