Popup Builder – Responsive WordPress Pop up - Version 3.60

Version Description

Current Version of Popup Builder is 3.60

Download this release

Release Info

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

Code changes from version 3.59 to 3.60

com/classes/Installer.php CHANGED
@@ -305,7 +305,7 @@ class Installer
305
  public static function registerPlugin()
306
  {
307
  $pluginName = SG_POPUP_FILE_NAME;
308
- $classPath = SG_POPUP_EXTENSION_PATH.'/SgpbPopupExtension.php';
309
  $className = 'SgpbPopupExtension';
310
  $options = array();
311
 
305
  public static function registerPlugin()
306
  {
307
  $pluginName = SG_POPUP_FILE_NAME;
308
+ $classPath = SG_POPUP_EXTENSION_PATH.'SgpbPopupExtension.php';
309
  $className = 'SgpbPopupExtension';
310
  $options = array();
311
 
com/classes/Javascript.php CHANGED
@@ -53,9 +53,7 @@ class Javascript
53
  continue;
54
  }
55
  $classPath = $pluginData['classPath'];
56
- if (!strpos($classPath, 'wp-content/plugins/')) {
57
- $classPath = SG_POPUP_PLUGIN_PATH.$classPath;
58
- }
59
 
60
  if (!file_exists($classPath)) {
61
  continue;
53
  continue;
54
  }
55
  $classPath = $pluginData['classPath'];
56
+ $classPath = SG_POPUP_PLUGIN_PATH.$classPath;
 
 
57
 
58
  if (!file_exists($classPath)) {
59
  continue;
com/classes/ScriptsLoader.php CHANGED
@@ -178,9 +178,7 @@ class ScriptsLoader
178
  continue;
179
  }
180
  $classPath = $pluginData['classPath'];
181
- if (!strpos($classPath, 'wp-content/plugins/')) {
182
- $classPath = SG_POPUP_PLUGIN_PATH.$classPath;
183
- }
184
 
185
  if (!file_exists($classPath)) {
186
  continue;
@@ -281,9 +279,7 @@ class ScriptsLoader
281
  }
282
 
283
  $classPath = $pluginData['classPath'];
284
- if (!strpos($classPath, 'wp-content/plugins/')) {
285
- $classPath = SG_POPUP_PLUGIN_PATH.$classPath;
286
- }
287
 
288
  if (!file_exists($classPath)) {
289
  continue;
178
  continue;
179
  }
180
  $classPath = $pluginData['classPath'];
181
+ $classPath = SG_POPUP_PLUGIN_PATH.$classPath;
 
 
182
 
183
  if (!file_exists($classPath)) {
184
  continue;
279
  }
280
 
281
  $classPath = $pluginData['classPath'];
282
+ $classPath = SG_POPUP_PLUGIN_PATH.$classPath;
 
 
283
 
284
  if (!file_exists($classPath)) {
285
  continue;
com/classes/Style.php CHANGED
@@ -37,7 +37,7 @@ class Style
37
  if (!$registeredPlugins) {
38
  return;
39
  }
40
-
41
  $registeredPlugins = json_decode($registeredPlugins, true);
42
 
43
  if (empty($registeredPlugins)) {
@@ -55,9 +55,7 @@ class Style
55
  }
56
 
57
  $classPath = $pluginData['classPath'];
58
- if (!strpos($classPath, 'wp-content/plugins/')) {
59
- $classPath = SG_POPUP_PLUGIN_PATH.$classPath;
60
- }
61
 
62
  if (!file_exists($classPath)) {
63
  continue;
37
  if (!$registeredPlugins) {
38
  return;
39
  }
40
+
41
  $registeredPlugins = json_decode($registeredPlugins, true);
42
 
43
  if (empty($registeredPlugins)) {
55
  }
56
 
57
  $classPath = $pluginData['classPath'];
58
+ $classPath = SG_POPUP_PLUGIN_PATH.$classPath;
 
 
59
 
60
  if (!file_exists($classPath)) {
61
  continue;
com/classes/Updates.php CHANGED
@@ -63,13 +63,11 @@ class Updates
63
  $licenses = $this->getLicenses();
64
 
65
  foreach ($licenses as $license) {
66
- $key = $license['key'];
67
- $storeURL = $license['storeURL'];
68
- $pluginMainFilePath = $license['file'];
 
69
 
70
- if (!strpos($pluginMainFilePath, 'wp-content/plugins/')) {
71
- $pluginMainFilePath = SG_POPUP_PLUGIN_PATH.$pluginMainFilePath;
72
- }
73
  $licenseKey = trim(get_option('sgpb-license-key-'.$key));
74
  $status = get_option('sgpb-license-status-'.$key);
75
 
@@ -124,10 +122,10 @@ class Updates
124
  $licenses = $this->getLicenses();
125
 
126
  foreach ($licenses as $license) {
127
- $key = $license['key'];
128
- $itemId = $license['itemId'];
129
- $itemName = $license['itemName'];
130
- $storeURL = $license['storeURL'];
131
  $this->licenseKey = $key;
132
 
133
  if (isset($_POST['sgpb-license-key-'.$key])) {
63
  $licenses = $this->getLicenses();
64
 
65
  foreach ($licenses as $license) {
66
+ $key = @$license['key'];
67
+ $storeURL = @$license['storeURL'];
68
+ $pluginMainFilePath = @$license['file'];
69
+ $pluginMainFilePath = SG_POPUP_PLUGIN_PATH.$pluginMainFilePath;
70
 
 
 
 
71
  $licenseKey = trim(get_option('sgpb-license-key-'.$key));
72
  $status = get_option('sgpb-license-status-'.$key);
73
 
122
  $licenses = $this->getLicenses();
123
 
124
  foreach ($licenses as $license) {
125
+ $key = @$license['key'];
126
+ $itemId = @$license['itemId'];
127
+ $itemName = @$license['itemName'];
128
+ $storeURL = @$license['storeURL'];
129
  $this->licenseKey = $key;
130
 
131
  if (isset($_POST['sgpb-license-key-'.$key])) {
com/config/config.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  class SgpbPopupConfig
3
  {
4
  public static function addDefine($name, $value)
@@ -135,6 +136,7 @@ class SgpbPopupConfig
135
  self::addDefine('SGPB_TRANSIENT_POPUPS_LOAD', 'sgpbLoadPopups');
136
  self::addDefine('SGPB_TRANSIENT_POPUPS_TERMS', 'sgpbGetPopupsByTermSlug');
137
  self::addDefine('SGPB_TRANSIENT_POPUPS_ALL_CATEGORIES', 'sgpbGetPostsAllCategories');
 
138
  self::popupTypesInit();
139
  }
140
 
1
  <?php
2
+
3
  class SgpbPopupConfig
4
  {
5
  public static function addDefine($name, $value)
136
  self::addDefine('SGPB_TRANSIENT_POPUPS_LOAD', 'sgpbLoadPopups');
137
  self::addDefine('SGPB_TRANSIENT_POPUPS_TERMS', 'sgpbGetPopupsByTermSlug');
138
  self::addDefine('SGPB_TRANSIENT_POPUPS_ALL_CATEGORIES', 'sgpbGetPostsAllCategories');
139
+ self::addDefine('SGPB_REGISTERED_PLUGINS_PATHS_MODIFIED', 'sgpbModifiedRegisteredPluginsPaths1');
140
  self::popupTypesInit();
141
  }
142
 
com/config/configPackage.php CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
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');
3
  exit();
4
  }
5
 
6
+ define('SG_POPUP_VERSION', '3.60');
7
  define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
8
  define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
com/helpers/AdminHelper.php CHANGED
@@ -850,13 +850,8 @@ class AdminHelper
850
  {
851
  $remoteData = wp_remote_get($imageUrl);
852
  $originalImageUrl = $imageUrl;
853
- if (is_wp_error($remoteData) || (isset($remoteData['response']) && $remoteData['response']['code'] == 404)) {
854
- if ($shouldNotConvertBase64) {
855
- $imageUrl = SG_POPUP_IMG_URL.'NoImage.png';
856
- }
857
- }
858
- else if (is_wp_error($remoteData) && empty($remoteData->error_data)) {
859
- $imageUrl = $originalImageUrl;
860
  }
861
  if (!$shouldNotConvertBase64) {
862
  $imageData = wp_remote_retrieve_body($remoteData);
@@ -866,7 +861,6 @@ class AdminHelper
866
  return $imageUrl;
867
  }
868
 
869
-
870
  public static function deleteUserFromSubscribers($params = array())
871
  {
872
  global $wpdb;
@@ -1655,12 +1649,14 @@ class AdminHelper
1655
  */
1656
  public static function makeRegisteredPluginsStaticPathsToDynamic()
1657
  {
1658
- $hasModifiedPaths = get_option('sgpbModifiedRegisteredPluginsPaths');
1659
 
1660
  if ($hasModifiedPaths) {
1661
  return false;
1662
  }
1663
- update_option('sgpbModifiedRegisteredPluginsPaths', 1);
 
 
1664
 
1665
  $registeredPlugins = AdminHelper::getOption('SG_POPUP_BUILDER_REGISTERED_PLUGINS');
1666
 
@@ -1678,20 +1674,9 @@ class AdminHelper
1678
  if (empty($registeredPlugin['classPath'])) {
1679
  continue;
1680
  }
1681
-
1682
- $excludeClassPath = explode('wp-content/plugins/', $registeredPlugin['classPath']);
1683
-
1684
- // where 1 means dynamic path
1685
- if (!empty($excludeClassPath[1])) {
1686
- $registeredPlugins[$key]['classPath'] = $excludeClassPath[1];
1687
- }
1688
-
1689
  if (!empty($registeredPlugin['options']['licence']['file'])) {
1690
- $excludeLicencePath = explode('wp-content/plugins/', $registeredPlugin['options']['licence']['file']);
1691
- // where 1 means dynamic path
1692
- if (!empty($excludeLicencePath[1])) {
1693
- $registeredPlugins[$key]['options']['licence']['file'] = $excludeLicencePath[1];
1694
- }
1695
  }
1696
  }
1697
  $registeredPlugins = json_encode($registeredPlugins);
@@ -1717,10 +1702,6 @@ class AdminHelper
1717
  continue;
1718
  }
1719
  $extensionKey = $registeredPlugin['options']['licence']['file'];
1720
- if (strpos($extensionKey, 'wp-content/plugins/')) {
1721
- $explodedPaths = explode('wp-content/plugins/', $extensionKey);
1722
- $extensionKey = $explodedPaths[1];
1723
- }
1724
  $isPluginActive = is_plugin_active($extensionKey);
1725
  $pluginKey = $registeredPlugin['options']['licence']['key'];
1726
  $isValidLicense = get_option('sgpb-license-status-'.$pluginKey);
@@ -1941,7 +1922,7 @@ class AdminHelper
1941
  foreach ($registered as $singleExntensionData) {
1942
  $key = $singleExntensionData['options']['licence']['key'];
1943
  $name = $singleExntensionData['options']['licence']['itemName'];
1944
- $licenseKey = 'No license';
1945
  if (!empty(self::getOption('sgpb-license-key-'.$key))) {
1946
  $licenseKey = self::getOption('sgpb-license-key-'.$key);
1947
  }
850
  {
851
  $remoteData = wp_remote_get($imageUrl);
852
  $originalImageUrl = $imageUrl;
853
+ if (is_wp_error($remoteData) || (isset($remoteData['response']) && $remoteData['response']['code'] != 200)) {
854
+ $imageUrl = SG_POPUP_IMG_URL.'NoImage.png';
 
 
 
 
 
855
  }
856
  if (!$shouldNotConvertBase64) {
857
  $imageData = wp_remote_retrieve_body($remoteData);
861
  return $imageUrl;
862
  }
863
 
 
864
  public static function deleteUserFromSubscribers($params = array())
865
  {
866
  global $wpdb;
1649
  */
1650
  public static function makeRegisteredPluginsStaticPathsToDynamic()
1651
  {
1652
+ $hasModifiedPaths = AdminHelper::getOption('SGPB_REGISTERED_PLUGINS_PATHS_MODIFIED');
1653
 
1654
  if ($hasModifiedPaths) {
1655
  return false;
1656
  }
1657
+ // remove old outdated option sgpbModifiedRegisteredPluginsPaths
1658
+ delete_option('sgpbModifiedRegisteredPluginsPaths');
1659
+ update_option(SGPB_REGISTERED_PLUGINS_PATHS_MODIFIED, 1);
1660
 
1661
  $registeredPlugins = AdminHelper::getOption('SG_POPUP_BUILDER_REGISTERED_PLUGINS');
1662
 
1674
  if (empty($registeredPlugin['classPath'])) {
1675
  continue;
1676
  }
1677
+ $registeredPlugins[$key]['classPath'] = str_replace(WP_PLUGIN_DIR, '', $registeredPlugin['classPath']);
 
 
 
 
 
 
 
1678
  if (!empty($registeredPlugin['options']['licence']['file'])) {
1679
+ $registeredPlugins[$key]['options']['licence']['file'] = $registeredPlugin['options']['licence']['file'];
 
 
 
 
1680
  }
1681
  }
1682
  $registeredPlugins = json_encode($registeredPlugins);
1702
  continue;
1703
  }
1704
  $extensionKey = $registeredPlugin['options']['licence']['file'];
 
 
 
 
1705
  $isPluginActive = is_plugin_active($extensionKey);
1706
  $pluginKey = $registeredPlugin['options']['licence']['key'];
1707
  $isValidLicense = get_option('sgpb-license-status-'.$pluginKey);
1922
  foreach ($registered as $singleExntensionData) {
1923
  $key = $singleExntensionData['options']['licence']['key'];
1924
  $name = $singleExntensionData['options']['licence']['itemName'];
1925
+ $licenseKey = __('No license');
1926
  if (!empty(self::getOption('sgpb-license-key-'.$key))) {
1927
  $licenseKey = self::getOption('sgpb-license-key-'.$key);
1928
  }
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.59
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.60
7
  * Author: Sygnoos
8
  * Author URI: https://sygnoos.com
9
  * License: GPLv2
public/css/theme.css CHANGED
@@ -13,7 +13,7 @@ iframe{margin:0
13
  h1{text-align:center}.sgpb-video-error-message-wrapper h3:last-child{padding:0}#sgpb-yes-button,#sgpb-no-button{text-transform:none !important}.sg-fb-buttons-wrapper{text-align:center;min-height:25px}@media only screen and (max-width: 600px){.sgpb-scroll-wrapper{overflow:auto !important}}@media (min-width: 600px){.sgpb-fb-wrapper-standard{min-width:450px !important;overflow:hidden}}@media (min-width: 521px) and (max-width: 599px){.sgpb-fb-wrapper-standard{min-width:450px !important;overflow:scroll}#sg-facebook-like{overflow:hidden}}@media (max-width: 520px){.sgpb-fb-wrapper-standard{min-width:380px !important;max-width:380px !important;overflow:hidden}.sgpb-fb-wrapper-standard .fb-like{max-width:380px !important}#sg-facebook-like{overflow:hidden}}@media (max-width: 420px){.sgpb-fb-wrapper-standard{min-width:350px !important;max-width:350px !important;overflow:hidden}}@media (max-width: 400px){.sgpb-fb-wrapper-standard{min-width:330px !important;max-width:330px !important;overflow:scroll}}@media (max-width: 320px){.sgpb-fb-wrapper-standard{min-width:270px !important;max-width:270px !important;overflow:scroll}}.sg-hide-element{display:none}a.sg-show-popup{cursor:pointer !important}.sgpb-cursor-pointer{cursor:pointer}/*/*/.sgpb-theme-1-content{border-radius:6px;padding-bottom:0;box-shadow:rgba(0, 0, 0, 0.6) 0px 0px 0px 14px !important;border-bottom-width:35px !important;border-bottom-color:#fff !important}.sgpb-theme-4-content{padding-bottom:0;border-radius:7px !important;border-bottom-width:35px !important;border-bottom-color:#fff !important}.sgpb-popup-close-button-4{z-index:initial !important;height:auto !important}.sgpb-popup-dialog-main-div-theme-wrapper-5{border:8px
14
  solid #555;outline:1px
15
  solid #8A8A8A;background-color:#707070}.sgpb-theme-5-content{border-radius:3px !important;box-shadow:0 0 10px #222 !important}.sgpb-theme-6-content{box-shadow:#646161 0px 0px 8px 3px !important}.sgpb-popup-close-button-1:hover,.sgpb-popup-close-button-2:hover,.sgpb-popup-close-button-5:hover{z-index:initial !important;opacity:0.8}.sgpb-popup-close-button-3:hover{z-index:initial !important;opacity:0.9}.sgpb-popup-close-button-2{z-index:initial !important;border-radius:2px}.sgpb-main-image-content-wrapper
16
- img{height:auto;max-width:100%}.sgpb-overflow-hidden{width:100%;height:100%;overflow:hidden !important}.sgpb-popup-content-direction-right{direction:rtl !important}.sgpb-popup-content-direction-right input[type="url"],
17
  .sgpb-popup-content-direction-right input[type="email"],
18
  .sgpb-popup-content-direction-right .sg-fb-buttons-wrapper,
19
  .sgpb-popup-content-direction-right .sgpb-alert{text-align:right !important}/**/@charset "UTF-8";.sg-animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:none;animation-fill-mode:none}.sg-animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.sg-animated.hinge{-webkit-animation-duration:2s;animation-duration:2s}.sg-animated.bounceIn,.sg-animated.bounceOut,.sg-animated.flipOutX,.sg-animated.flipOutY{-webkit-animation-duration: .75s;animation-duration: .75s}@-webkit-keyframes
13
  h1{text-align:center}.sgpb-video-error-message-wrapper h3:last-child{padding:0}#sgpb-yes-button,#sgpb-no-button{text-transform:none !important}.sg-fb-buttons-wrapper{text-align:center;min-height:25px}@media only screen and (max-width: 600px){.sgpb-scroll-wrapper{overflow:auto !important}}@media (min-width: 600px){.sgpb-fb-wrapper-standard{min-width:450px !important;overflow:hidden}}@media (min-width: 521px) and (max-width: 599px){.sgpb-fb-wrapper-standard{min-width:450px !important;overflow:scroll}#sg-facebook-like{overflow:hidden}}@media (max-width: 520px){.sgpb-fb-wrapper-standard{min-width:380px !important;max-width:380px !important;overflow:hidden}.sgpb-fb-wrapper-standard .fb-like{max-width:380px !important}#sg-facebook-like{overflow:hidden}}@media (max-width: 420px){.sgpb-fb-wrapper-standard{min-width:350px !important;max-width:350px !important;overflow:hidden}}@media (max-width: 400px){.sgpb-fb-wrapper-standard{min-width:330px !important;max-width:330px !important;overflow:scroll}}@media (max-width: 320px){.sgpb-fb-wrapper-standard{min-width:270px !important;max-width:270px !important;overflow:scroll}}.sg-hide-element{display:none}a.sg-show-popup{cursor:pointer !important}.sgpb-cursor-pointer{cursor:pointer}/*/*/.sgpb-theme-1-content{border-radius:6px;padding-bottom:0;box-shadow:rgba(0, 0, 0, 0.6) 0px 0px 0px 14px !important;border-bottom-width:35px !important;border-bottom-color:#fff !important}.sgpb-theme-4-content{padding-bottom:0;border-radius:7px !important;border-bottom-width:35px !important;border-bottom-color:#fff !important}.sgpb-popup-close-button-4{z-index:initial !important;height:auto !important}.sgpb-popup-dialog-main-div-theme-wrapper-5{border:8px
14
  solid #555;outline:1px
15
  solid #8A8A8A;background-color:#707070}.sgpb-theme-5-content{border-radius:3px !important;box-shadow:0 0 10px #222 !important}.sgpb-theme-6-content{box-shadow:#646161 0px 0px 8px 3px !important}.sgpb-popup-close-button-1:hover,.sgpb-popup-close-button-2:hover,.sgpb-popup-close-button-5:hover{z-index:initial !important;opacity:0.8}.sgpb-popup-close-button-3:hover{z-index:initial !important;opacity:0.9}.sgpb-popup-close-button-2{z-index:initial !important;border-radius:2px}.sgpb-main-image-content-wrapper
16
+ img{height:auto;max-width:100%}.sgpb-overflow-hidden{width:100%;height:100%;overflow:hidden !important}.sgpb-overflow-hidden-body{width:100%;overflow:hidden !important}.sgpb-popup-content-direction-right{direction:rtl !important}.sgpb-popup-content-direction-right input[type="url"],
17
  .sgpb-popup-content-direction-right input[type="email"],
18
  .sgpb-popup-content-direction-right .sg-fb-buttons-wrapper,
19
  .sgpb-popup-content-direction-right .sgpb-alert{text-align:right !important}/**/@charset "UTF-8";.sg-animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:none;animation-fill-mode:none}.sg-animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.sg-animated.hinge{-webkit-animation-duration:2s;animation-duration:2s}.sg-animated.bounceIn,.sg-animated.bounceOut,.sg-animated.flipOutX,.sg-animated.flipOutY{-webkit-animation-duration: .75s;animation-duration: .75s}@-webkit-keyframes
public/js/PopupBuilder.js CHANGED
@@ -284,7 +284,8 @@ SGPBPopup.prototype.onceListener = function()
284
  var nextObj = popups[nextIndex];
285
 
286
  if (typeof nextObj == 'undefined') {
287
- jQuery('html, body').removeClass('sgpb-overflow-hidden');
 
288
  break;
289
  }
290
 
@@ -293,16 +294,19 @@ SGPBPopup.prototype.onceListener = function()
293
  }
294
  var options = SGPBPopup.getPopupOptionsById(nextObj.popupId);
295
  if (typeof options['sgpb-disable-page-scrolling'] == 'undefined') {
296
- jQuery('html, body').removeClass('sgpb-overflow-hidden');
 
297
  }
298
  else {
299
- jQuery('html, body').addClass('sgpb-overflow-hidden');
 
300
  }
301
  break;
302
  }
303
  }
304
  else {
305
- jQuery('html, body').addClass('sgpb-overflow-hidden');
 
306
  }
307
  });
308
  };
@@ -1358,7 +1362,8 @@ SGPBPopup.prototype.popupTriggeringListeners = function()
1358
  jQuery('.sgpb-theme-1-overlay').css({'background-image': 'none'});
1359
  }
1360
  if (SGPBPopup.varToBool(disablePageScrolling)) {
1361
- jQuery('html, body').addClass('sgpb-overflow-hidden');
 
1362
  }
1363
  });
1364
 
@@ -1603,6 +1608,13 @@ SGPBPopup.prototype.contentCloseBehavior = function()
1603
  jQuery('.sgpb-content-'+popupId).addClass('sgpb-cursor-pointer');
1604
  }
1605
  jQuery('.sgpb-content-'+e.detail.popupId).on('click', function(event) {
 
 
 
 
 
 
 
1606
  if (contentClickBehavior == 'redirect') {
1607
 
1608
  if (redirectToNewTab) {
284
  var nextObj = popups[nextIndex];
285
 
286
  if (typeof nextObj == 'undefined') {
287
+ jQuery('html').removeClass('sgpb-overflow-hidden');
288
+ jQuery('body').removeClass('sgpb-overflow-hidden-body');
289
  break;
290
  }
291
 
294
  }
295
  var options = SGPBPopup.getPopupOptionsById(nextObj.popupId);
296
  if (typeof options['sgpb-disable-page-scrolling'] == 'undefined') {
297
+ jQuery('html').removeClass('sgpb-overflow-hidden');
298
+ jQuery('body').removeClass('sgpb-overflow-hidden-body');
299
  }
300
  else {
301
+ jQuery('html').addClass('sgpb-overflow-hidden');
302
+ jQuery('body').addClass('sgpb-overflow-hidden-body');
303
  }
304
  break;
305
  }
306
  }
307
  else {
308
+ jQuery('html').addClass('sgpb-overflow-hidden');
309
+ jQuery('body').addClass('sgpb-overflow-hidden-body');
310
  }
311
  });
312
  };
1362
  jQuery('.sgpb-theme-1-overlay').css({'background-image': 'none'});
1363
  }
1364
  if (SGPBPopup.varToBool(disablePageScrolling)) {
1365
+ jQuery('html').addClass('sgpb-overflow-hidden');
1366
+ jQuery('body').addClass('sgpb-overflow-hidden-body');
1367
  }
1368
  });
1369
 
1608
  jQuery('.sgpb-content-'+popupId).addClass('sgpb-cursor-pointer');
1609
  }
1610
  jQuery('.sgpb-content-'+e.detail.popupId).on('click', function(event) {
1611
+ /* we need this settings in analytics */
1612
+ var settings = {
1613
+ popupId: popupId,
1614
+ eventName: 'sgpbPopupContentClick'
1615
+ };
1616
+ jQuery(window).trigger('sgpbPopupContentClick', settings);
1617
+
1618
  if (contentClickBehavior == 'redirect') {
1619
 
1620
  if (redirectToNewTab) {
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.59
13
  License: GPLv2 or later
14
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
 
@@ -185,6 +185,13 @@ Go to the Popup Builder settings and set your desired options.
185
 
186
  == Changelog ==
187
 
 
 
 
 
 
 
 
188
  = Version 3.59 =
189
  * Speed improvements.
190
  * Bug fixed related to Page Level Cookie on all browsers.
@@ -1114,7 +1121,7 @@ Leave us a good review :)
1114
 
1115
  == Upgrade Notice ==
1116
 
1117
- Current Version of Popup Builder is 3.59
1118
 
1119
  == Other Notes ==
1120
 
9
  Requires at least: 3.8
10
  Tested up to: 5.3
11
  Requires PHP: 5.3.3
12
+ Stable tag: 3.60
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.60 =
189
+ * Bug fixed related to image popup saving issue.
190
+ * Cron Job task improvements.
191
+ * Using a dynamic plugin path when loading resources.
192
+ * Improvement related to ‘Disable Page Scrolling’ when page scrolls to top after the popup opened.
193
+ * Minor fixes and improvements.
194
+
195
  = Version 3.59 =
196
  * Speed improvements.
197
  * Bug fixed related to Page Level Cookie on all browsers.
1121
 
1122
  == Upgrade Notice ==
1123
 
1124
+ Current Version of Popup Builder is 3.60
1125
 
1126
  == Other Notes ==
1127