Popup Builder – Responsive WordPress Pop up - Version 3.69.1

Version Description

Current Version of Popup Builder is 3.69.1

Download this release

Release Info

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

Code changes from version 3.69 to 3.69.1

com/classes/ConditionCreator.php CHANGED
@@ -308,7 +308,7 @@ class ConditionCreator
308
  if (!empty($saveData[$ruleName])) {
309
  $savedParam = $saveData[$ruleName];
310
  }
311
- else if (!empty($saveData['hiddenOption'])) {
312
  $savedParam = $saveData['hiddenOption'][$ruleName];
313
  }
314
 
308
  if (!empty($saveData[$ruleName])) {
309
  $savedParam = $saveData[$ruleName];
310
  }
311
+ else if (!empty($saveData['hiddenOption']) && isset($saveData['hiddenOption'][$ruleName])) {
312
  $savedParam = $saveData['hiddenOption'][$ruleName];
313
  }
314
 
com/classes/Updates.php CHANGED
@@ -85,9 +85,7 @@ class Updates
85
  'version' => $version, // current version number
86
  'license' => $licenseKey, // license key (used get_option above to retrieve from DB)
87
  'item_id' => $license['itemId'], // id of this plugin
88
- 'item_name' => $license['itemName'], // name of this plugin
89
  'author' => $license['autor'], // author of this plugin
90
- 'url' => home_url(),
91
  'beta' => false // set to true if you wish customers to receive update notifications of beta releases
92
  ));
93
  }
@@ -145,7 +143,6 @@ class Updates
145
  'edd_action' => 'activate_license',
146
  'license' => $license,
147
  'item_id' => $itemId, // The ID of the item in EDD
148
- 'item_name' => $itemName, // The Name of the item in EDD
149
  'url' => home_url()
150
  );
151
  // Call the custom API.
@@ -213,10 +210,9 @@ class Updates
213
  'edd_action' => 'deactivate_license',
214
  'license' => $license,
215
  'item_id' => $itemId, // The ID of the item in EDD
216
- 'item_name' => $itemName, // The Name of the item in EDD
217
  'url' => home_url()
218
  );
219
-
220
  // Send the remote request
221
  $response = wp_remote_post($storeURL, array('body' => $apiParams, 'timeout' => 15, 'sslverify' => false));
222
  if (is_wp_error($response) || 200 !== wp_remote_retrieve_response_code($response)) {
85
  'version' => $version, // current version number
86
  'license' => $licenseKey, // license key (used get_option above to retrieve from DB)
87
  'item_id' => $license['itemId'], // id of this plugin
 
88
  'author' => $license['autor'], // author of this plugin
 
89
  'beta' => false // set to true if you wish customers to receive update notifications of beta releases
90
  ));
91
  }
143
  'edd_action' => 'activate_license',
144
  'license' => $license,
145
  'item_id' => $itemId, // The ID of the item in EDD
 
146
  'url' => home_url()
147
  );
148
  // Call the custom API.
210
  'edd_action' => 'deactivate_license',
211
  'license' => $license,
212
  'item_id' => $itemId, // The ID of the item in EDD
 
213
  'url' => home_url()
214
  );
215
+ $home = home_url();
216
  // Send the remote request
217
  $response = wp_remote_post($storeURL, array('body' => $apiParams, 'timeout' => 15, 'sslverify' => false));
218
  if (is_wp_error($response) || 200 !== wp_remote_retrieve_response_code($response)) {
com/classes/popups/SGPopup.php CHANGED
@@ -708,7 +708,7 @@ abstract class SGPopup
708
  //special code added for "Behavior After Special Events" section
709
  //todo: remove in the future if possible
710
  $specialBehaviors = array();
711
- if (empty($popupOptions['sgpb-behavior-after-special-events'])) {
712
  $specialBehaviors = $popupOptions['sgpb-behavior-after-special-events'];
713
  }
714
  if (!empty($specialBehaviors) && is_array($specialBehaviors)) {
708
  //special code added for "Behavior After Special Events" section
709
  //todo: remove in the future if possible
710
  $specialBehaviors = array();
711
+ if (!empty($popupOptions['sgpb-behavior-after-special-events'])) {
712
  $specialBehaviors = $popupOptions['sgpb-behavior-after-special-events'];
713
  }
714
  if (!empty($specialBehaviors) && is_array($specialBehaviors)) {
com/config/configPackage.php CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
3
  exit();
4
  }
5
 
6
- define('SG_POPUP_VERSION', '3.69');
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.69.1');
7
  define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
8
  define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
com/helpers/AdminHelper.php CHANGED
@@ -1585,11 +1585,13 @@ class AdminHelper
1585
  }
1586
  $content = html_entity_decode($content, ENT_QUOTES, 'UTF-8');
1587
 
 
1588
  $finalContent .= 'sgAddEvent(window, "'.$eventName.'", function(e) {';
1589
  $finalContent .= 'if (e.detail.popupId == "'.$popupId.'") {';
1590
  $finalContent .= $content;
1591
  $finalContent .= '};';
1592
  $finalContent .= '});';
 
1593
  }
1594
  $customScripts .= $finalContent;
1595
  $customScripts .= '</script>';
1585
  }
1586
  $content = html_entity_decode($content, ENT_QUOTES, 'UTF-8');
1587
 
1588
+ $finalContent .= 'jQuery(document).ready(function(){';
1589
  $finalContent .= 'sgAddEvent(window, "'.$eventName.'", function(e) {';
1590
  $finalContent .= 'if (e.detail.popupId == "'.$popupId.'") {';
1591
  $finalContent .= $content;
1592
  $finalContent .= '};';
1593
  $finalContent .= '});';
1594
+ $finalContent .= '});';
1595
  }
1596
  $customScripts .= $finalContent;
1597
  $customScripts .= '</script>';
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.69
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.69.1
7
  * Author: Sygnoos
8
  * Author URI: https://sygnoos.com
9
  * License: GPLv2
public/views/importConfigView.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  use sgpb\AdminHelper;
3
  use sgpb\SubscriptionPopup;
4
- ini_set('auto_detect_line_endings', '1');
5
 
6
  $fileContent = AdminHelper::getFileFromURL($fileURL);
7
  $csvFileArray = array_map('str_getcsv', file($fileURL));
1
  <?php
2
  use sgpb\AdminHelper;
3
  use sgpb\SubscriptionPopup;
4
+ @ini_set('auto_detect_line_endings', '1');
5
 
6
  $fileContent = AdminHelper::getFileFromURL($fileURL);
7
  $csvFileArray = array_map('str_getcsv', file($fileURL));
readme.txt CHANGED
@@ -9,7 +9,7 @@ Tags: popup, pop up, wordpress popup, popup maker, exit popup, popup builder, wo
9
  Requires at least: 4.2
10
  Tested up to: 5.5
11
  Requires PHP: 5.3.3
12
- Stable tag: 3.69
13
  License: GPLv2 or later
14
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
 
@@ -186,6 +186,10 @@ Go to the Popup Builder settings and set your desired options.
186
 
187
  == Changelog ==
188
 
 
 
 
 
189
  = Version 3.69 =
190
  * Improvement of code in SGPopup.php/PopupLoader.php/PopupBuilder.js files
191
  * Improvement of WPML compatibility
@@ -1222,7 +1226,7 @@ Leave us a good review :)
1222
 
1223
  == Upgrade Notice ==
1224
 
1225
- Current Version of Popup Builder is 3.69
1226
 
1227
  == Other Notes ==
1228
 
9
  Requires at least: 4.2
10
  Tested up to: 5.5
11
  Requires PHP: 5.3.3
12
+ Stable tag: 3.69.1
13
  License: GPLv2 or later
14
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
 
186
 
187
  == Changelog ==
188
 
189
+ = Version 3.69.1 =
190
+ * Code improvements. Thanks to 'G Lagonikas'.
191
+ * Minor fixes.
192
+
193
  = Version 3.69 =
194
  * Improvement of code in SGPopup.php/PopupLoader.php/PopupBuilder.js files
195
  * Improvement of WPML compatibility
1226
 
1227
  == Upgrade Notice ==
1228
 
1229
+ Current Version of Popup Builder is 3.69.1
1230
 
1231
  == Other Notes ==
1232