Popup Builder – Responsive WordPress Pop up - Version 4.0.1

Version Description

Download this release

Release Info

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

Code changes from version 4.0 to 4.0.1

Files changed (100) hide show
  1. com/boot.php +0 -0
  2. com/classes/Actions.php +16 -4
  3. com/classes/ConditionBuilder.php +0 -0
  4. com/classes/ConvertToNewVersion.php +0 -0
  5. com/classes/Installer.php +0 -0
  6. com/classes/Javascript.php +0 -0
  7. com/classes/MediaButton.php +0 -0
  8. com/classes/PopupChecker.php +0 -0
  9. com/classes/PopupGroupFilter.php +0 -0
  10. com/classes/PopupInstaller.php +0 -0
  11. com/classes/PopupLoader.php +0 -0
  12. com/classes/PopupType.php +0 -0
  13. com/classes/SGPBRequirementsChecker.php +0 -0
  14. com/classes/Style.php +0 -0
  15. com/classes/_detection/SgpbPopupVersionDetection.php +11 -2
  16. com/classes/extension/SgpbIPopupExtension.php +0 -0
  17. com/classes/extension/SgpbPopupExtensionRegister.php +0 -0
  18. com/classes/popups/HtmlPopup.php +0 -0
  19. com/classes/popups/PopupData.php +0 -0
  20. com/classes/popups/SGPopup.php +0 -0
  21. com/classes/popups/SubscriptionPopup.php +7 -7
  22. com/config/configPackage.php +1 -1
  23. com/helpers/Functions.php +0 -0
  24. com/helpers/PopupBuilderActivePackage.php +0 -0
  25. com/helpers/ScriptsIncluder.php +0 -0
  26. com/libs/EDD_SL_Plugin_Updater.php +0 -0
  27. popup-builder.php +1 -1
  28. public/css/fonts/FontAwesome.otf +0 -0
  29. public/css/fonts/fontawesome-webfont.eot +0 -0
  30. public/css/fonts/fontawesome-webfont.svg +0 -0
  31. public/css/fonts/fontawesome-webfont.ttf +0 -0
  32. public/css/fonts/fontawesome-webfont.woff +0 -0
  33. public/css/fonts/fontawesome-webfont.woff2 +0 -0
  34. public/css/jquery.dateTimePicker.min.css +0 -0
  35. public/css/select2.min.css +0 -0
  36. public/css/theme.css +0 -0
  37. public/img/CountdownTypeIcon.png +0 -0
  38. public/img/adBlockTypeIcon.png +0 -0
  39. public/img/ajaxSpinner.gif +0 -0
  40. public/img/analyticsTypeIcon.png +0 -0
  41. public/img/animationImage.png +0 -0
  42. public/img/aweberTypeIcon.png +0 -0
  43. public/img/bannerCloseBtn.png +0 -0
  44. public/img/bannerEmail.png +0 -0
  45. public/img/bannerHeart.png +0 -0
  46. public/img/bannerLogo.png +0 -0
  47. public/img/bannerMegaphone.png +0 -0
  48. public/img/bannerQuestionMark.png +0 -0
  49. public/img/bannerSupport.png +0 -0
  50. public/img/blog-wp-kicker.png +0 -0
  51. public/img/close.png +0 -0
  52. public/img/contactFormTypeIcon.png +0 -0
  53. public/img/exitIntentTypeIcon.png +0 -0
  54. public/img/facebookTypeIcon.png +0 -0
  55. public/img/htmlTypeIcon.png +0 -0
  56. public/img/iframeTypeIcon.png +0 -0
  57. public/img/imageTypeIcon.png +0 -0
  58. public/img/mailchimpTypeIcon.png +0 -0
  59. public/img/moreIdeas.png +0 -0
  60. public/img/preview-eye.png +0 -0
  61. public/img/probadge.png +0 -0
  62. public/img/rateUsBanner1.png +0 -0
  63. public/img/rateUsBanner2.png +0 -0
  64. public/img/rateUsBanner3.png +0 -0
  65. public/img/recentSales.png +0 -0
  66. public/img/restrictionTyoeIcon.png +0 -0
  67. public/img/socialTypeIcon.png +0 -0
  68. public/img/star.png +0 -0
  69. public/img/subscribers_close.png +0 -0
  70. public/img/subscriptionTypeIcon.png +0 -0
  71. public/img/theme1.jpg +0 -0
  72. public/img/theme2.jpg +0 -0
  73. public/img/theme3.jpg +0 -0
  74. public/img/theme4.jpg +0 -0
  75. public/img/theme5.jpg +0 -0
  76. public/img/theme6.jpg +0 -0
  77. public/img/theme_1/close.png +0 -0
  78. public/img/theme_1/overlay.png +0 -0
  79. public/img/theme_2/close.png +0 -0
  80. public/img/theme_3/close.png +0 -0
  81. public/img/theme_5/close.png +0 -0
  82. public/img/theme_6/close.png +0 -0
  83. public/img/videoTypeIcon.png +0 -0
  84. public/img/wooTypeIcon.png +0 -0
  85. public/js/Banner.js +0 -0
  86. public/js/ExtensionsNotification.js +0 -0
  87. public/js/Newsletter.js +0 -0
  88. public/js/Popup.js +0 -0
  89. public/js/PopupBuilder.js +0 -0
  90. public/js/PopupConfig.js +0 -0
  91. public/js/Validate.js +0 -0
  92. public/js/bootstrap.min.js +0 -0
  93. public/js/select2.min.js +0 -0
  94. public/js/sgPopupRangeSlider.js +0 -0
  95. public/js/sgpbSelect2.js +0 -0
  96. public/sound/popupOpenSound.wav +0 -0
  97. public/views/behaviorAfterSpecialEventsView.php +0 -0
  98. public/views/eventsView.php +0 -0
  99. public/views/targetView.php +0 -0
  100. readme.txt +4 -1
com/boot.php CHANGED
File without changes
com/classes/Actions.php CHANGED
@@ -98,8 +98,8 @@ class Actions
98
  $key = @$license['key'];
99
  $storeURL = @$license['storeURL'];
100
  $itemId = @$license['itemId'];
101
- $pluginMainFilePath = @$license['file'];
102
- $pluginMainFilePath = SG_POPUP_PLUGIN_PATH.$pluginMainFilePath;
103
 
104
  $licenseKey = trim(get_option('sgpb-license-key-'.$key));
105
  $status = get_option('sgpb-license-status-'.$key);
@@ -108,8 +108,20 @@ class Actions
108
  continue;
109
  }
110
  $this->checkIfLicenseIsActive($licenseKey, $itemId, $storeURL, $key);
111
- $version = @constant('SG_VERSION_'.$key);
112
-
 
 
 
 
 
 
 
 
 
 
 
 
113
  // If the version of the extension is not found, update will not possibly be shown
114
  if(empty($version)) {
115
  continue;
98
  $key = @$license['key'];
99
  $storeURL = @$license['storeURL'];
100
  $itemId = @$license['itemId'];
101
+ $filePath = @$license['file'];
102
+ $pluginMainFilePath = strpos($filePath, SG_POPUP_PLUGIN_PATH) !== 0 ? SG_POPUP_PLUGIN_PATH.$filePath : $filePath;
103
 
104
  $licenseKey = trim(get_option('sgpb-license-key-'.$key));
105
  $status = get_option('sgpb-license-status-'.$key);
108
  continue;
109
  }
110
  $this->checkIfLicenseIsActive($licenseKey, $itemId, $storeURL, $key);
111
+ switch($key) {
112
+ case 'POPUP_SOCIAL':
113
+ $version = @constant('SGPB_SOCIAL_POPUP_VERSION');
114
+ break;
115
+ case 'POPUP_AGE_VERIFICATION':
116
+ $version = @constant('SGPB_AGE_VERIFICATION_POPUP_VERSION');
117
+ break;
118
+ case 'POPUP_GAMIFICATION':
119
+ $version = @constant('POPUP_GAMIFICATION');
120
+ break;
121
+ default :
122
+ $version = @constant('SG_VERSION_'.$key);
123
+ break;
124
+ }
125
  // If the version of the extension is not found, update will not possibly be shown
126
  if(empty($version)) {
127
  continue;
com/classes/ConditionBuilder.php CHANGED
File without changes
com/classes/ConvertToNewVersion.php CHANGED
File without changes
com/classes/Installer.php CHANGED
File without changes
com/classes/Javascript.php CHANGED
File without changes
com/classes/MediaButton.php CHANGED
File without changes
com/classes/PopupChecker.php CHANGED
File without changes
com/classes/PopupGroupFilter.php CHANGED
File without changes
com/classes/PopupInstaller.php CHANGED
File without changes
com/classes/PopupLoader.php CHANGED
File without changes
com/classes/PopupType.php CHANGED
File without changes
com/classes/SGPBRequirementsChecker.php CHANGED
File without changes
com/classes/Style.php CHANGED
File without changes
com/classes/_detection/SgpbPopupVersionDetection.php CHANGED
@@ -20,6 +20,11 @@ class SgpbPopupVersionDetection
20
  $pluginData = get_plugin_data(WP_PLUGIN_DIR.'/'.$plugin["pluginKey"]); // getting plugin registered data
21
  $plugin["name"] = $pluginData["Name"]; // setting name in plugin array! this is for frontend to show full name
22
  $plugin_slug = null;
 
 
 
 
 
23
  if(isset($plugin_info->response[$plugin["pluginKey"]])) {
24
  $plugin_slug = $plugin_info->response[$plugin["pluginKey"]]->slug; // getting current slug generated by wordpress without slug will not update the plugin
25
  }
@@ -28,13 +33,14 @@ class SgpbPopupVersionDetection
28
  $hasLicense = self::getLicenseOfPlugin($plugin);
29
  $hasOldPlugin[] = [
30
  "plugin" => $plugin,
31
- "message" => self::pluginUpdateMessage("extensions", $plugin),
32
  "license" => $hasLicense,
33
  "slug" => $plugin_slug,
34
  ];
35
  }
36
  }
37
  $filteredByLicense = self::pluginUpdateMessage(self::filterPluginsByLicense($hasOldPlugin));
 
38
  return $filteredByLicense;
39
  }
40
 
@@ -86,7 +92,10 @@ class SgpbPopupVersionDetection
86
  $licenses = $licenseClass->getLicenses();
87
 
88
  foreach($licenses as $license) {
89
- if(array_search($license['file'], $oldPlugins) === false) {
 
 
 
90
  continue;
91
  }
92
 
20
  $pluginData = get_plugin_data(WP_PLUGIN_DIR.'/'.$plugin["pluginKey"]); // getting plugin registered data
21
  $plugin["name"] = $pluginData["Name"]; // setting name in plugin array! this is for frontend to show full name
22
  $plugin_slug = null;
23
+ if ($plugin["pluginKey"] === 'popupbuilder-edd/PopupBuilderEdd.php') {
24
+ if (empty($plugin_info->response[$plugin["pluginKey"]])) {
25
+ $plugin["pluginKey"] = str_replace("\\","/",WP_PLUGIN_DIR).'/'.$plugin["pluginKey"];
26
+ }
27
+ }
28
  if(isset($plugin_info->response[$plugin["pluginKey"]])) {
29
  $plugin_slug = $plugin_info->response[$plugin["pluginKey"]]->slug; // getting current slug generated by wordpress without slug will not update the plugin
30
  }
33
  $hasLicense = self::getLicenseOfPlugin($plugin);
34
  $hasOldPlugin[] = [
35
  "plugin" => $plugin,
36
+ "message" => self::pluginUpdateMessage("extensions"),
37
  "license" => $hasLicense,
38
  "slug" => $plugin_slug,
39
  ];
40
  }
41
  }
42
  $filteredByLicense = self::pluginUpdateMessage(self::filterPluginsByLicense($hasOldPlugin));
43
+
44
  return $filteredByLicense;
45
  }
46
 
92
  $licenses = $licenseClass->getLicenses();
93
 
94
  foreach($licenses as $license) {
95
+ if(false === array_search($license['file'], $oldPlugins) && 'POPUP_EDD' !== $license['key']) {
96
+ continue;
97
+ }
98
+ if ('POPUP_EDD' !== $license['key'] && false === array_search(str_replace("\\","/",$license['file']), $oldPlugins)) {
99
  continue;
100
  }
101
 
com/classes/extension/SgpbIPopupExtension.php CHANGED
File without changes
com/classes/extension/SgpbPopupExtensionRegister.php CHANGED
File without changes
com/classes/popups/HtmlPopup.php CHANGED
File without changes
com/classes/popups/PopupData.php CHANGED
File without changes
com/classes/popups/SGPopup.php CHANGED
File without changes
com/classes/popups/SubscriptionPopup.php CHANGED
@@ -254,7 +254,7 @@ class SubscriptionPopup extends SGPopup
254
  'data-error-message-class' => 'sgpb-subs-email-error-message'
255
  ),
256
  'style' => $inputStyles,
257
- 'errorMessageBoxStyles' => $inputStyles["width"]??''
258
  );
259
 
260
  $firstNamePlaceholder = $this->getFieldValue('sgpb-subs-first-placeholder');
@@ -273,7 +273,7 @@ class SubscriptionPopup extends SGPopup
273
  'data-error-message-class' => 'sgpb-subs-first-name-error-message'
274
  ),
275
  'style' => $inputStyles,
276
- 'errorMessageBoxStyles' => $inputStyles['width']??''
277
  );
278
 
279
  $lastNamePlaceholder = $this->getFieldValue('sgpb-subs-last-placeholder');
@@ -292,7 +292,7 @@ class SubscriptionPopup extends SGPopup
292
  'data-error-message-class' => 'sgpb-subs-last-name-error-message'
293
  ),
294
  'style' => $inputStyles,
295
- 'errorMessageBoxStyles' => $inputStyles['width']??''
296
  );
297
 
298
  /* GDPR checkbox */
@@ -310,10 +310,10 @@ class SubscriptionPopup extends SGPopup
310
  'id' => 'sgpb-gdpr-field-label',
311
  'data-error-message-class' => 'sgpb-gdpr-error-message'
312
  ),
313
- 'style' => array('width' => $inputWidth??''),
314
  'label' => $gdprLabel,
315
  'text' => $this->getFieldValue('sgpb-subs-gdpr-text'),
316
- 'errorMessageBoxStyles' => $inputStyles['width']??''
317
  );
318
  /* GDPR checkbox */
319
 
@@ -588,8 +588,8 @@ class SubscriptionPopup extends SGPopup
588
  $styleData = array(
589
  'placeholderColor' => $popupOptions['sgpb-subs-text-placeholder-color'],
590
  'formColor' => $popupOptions['sgpb-subs-form-bg-color'],
591
- 'formPadding' => $popupOptions['sgpb-subs-form-padding']??'',
592
- 'formBackgroundOpacity' => $popupOptions['sgpb-subs-form-bg-opacity']??''
593
  );
594
 
595
  $validateScript = $popupObj->createValidateObj($subsFields, $validationMessages);
254
  'data-error-message-class' => 'sgpb-subs-email-error-message'
255
  ),
256
  'style' => $inputStyles,
257
+ 'errorMessageBoxStyles' => isset($inputStyles["width"]) ?$inputStyles["width"] : ''
258
  );
259
 
260
  $firstNamePlaceholder = $this->getFieldValue('sgpb-subs-first-placeholder');
273
  'data-error-message-class' => 'sgpb-subs-first-name-error-message'
274
  ),
275
  'style' => $inputStyles,
276
+ 'errorMessageBoxStyles' => isset($inputStyles['width']) ? $inputStyles['width'] : ''
277
  );
278
 
279
  $lastNamePlaceholder = $this->getFieldValue('sgpb-subs-last-placeholder');
292
  'data-error-message-class' => 'sgpb-subs-last-name-error-message'
293
  ),
294
  'style' => $inputStyles,
295
+ 'errorMessageBoxStyles' => isset($inputStyles['width']) ? $inputStyles['width'] : ''
296
  );
297
 
298
  /* GDPR checkbox */
310
  'id' => 'sgpb-gdpr-field-label',
311
  'data-error-message-class' => 'sgpb-gdpr-error-message'
312
  ),
313
+ 'style' => array('width' => isset($inputWidth)? $inputWidth :''),
314
  'label' => $gdprLabel,
315
  'text' => $this->getFieldValue('sgpb-subs-gdpr-text'),
316
+ 'errorMessageBoxStyles' => isset($inputStyles['width'])?$inputStyles['width']:''
317
  );
318
  /* GDPR checkbox */
319
 
588
  $styleData = array(
589
  'placeholderColor' => $popupOptions['sgpb-subs-text-placeholder-color'],
590
  'formColor' => $popupOptions['sgpb-subs-form-bg-color'],
591
+ 'formPadding' => isset($popupOptions['sgpb-subs-form-padding'])?$popupOptions['sgpb-subs-form-padding']:'',
592
+ 'formBackgroundOpacity' => isset($popupOptions['sgpb-subs-form-bg-opacity'])?$popupOptions['sgpb-subs-form-bg-opacity']:''
593
  );
594
 
595
  $validateScript = $popupObj->createValidateObj($subsFields, $validationMessages);
com/config/configPackage.php CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
3
  exit();
4
  }
5
 
6
- define('SG_POPUP_VERSION', '4.0');
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', '4.0.1');
7
  define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
8
  define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
com/helpers/Functions.php CHANGED
File without changes
com/helpers/PopupBuilderActivePackage.php CHANGED
File without changes
com/helpers/ScriptsIncluder.php CHANGED
File without changes
com/libs/EDD_SL_Plugin_Updater.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: 4.0
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: 4.0.1
7
  * Author: Sygnoos
8
  * Author URI: https://sygnoos.com
9
  * License: GPLv2
public/css/fonts/FontAwesome.otf CHANGED
File without changes
public/css/fonts/fontawesome-webfont.eot CHANGED
File without changes
public/css/fonts/fontawesome-webfont.svg CHANGED
File without changes
public/css/fonts/fontawesome-webfont.ttf CHANGED
File without changes
public/css/fonts/fontawesome-webfont.woff CHANGED
File without changes
public/css/fonts/fontawesome-webfont.woff2 CHANGED
File without changes
public/css/jquery.dateTimePicker.min.css CHANGED
File without changes
public/css/select2.min.css CHANGED
File without changes
public/css/theme.css CHANGED
File without changes
public/img/CountdownTypeIcon.png CHANGED
File without changes
public/img/adBlockTypeIcon.png CHANGED
File without changes
public/img/ajaxSpinner.gif CHANGED
File without changes
public/img/analyticsTypeIcon.png CHANGED
File without changes
public/img/animationImage.png CHANGED
File without changes
public/img/aweberTypeIcon.png CHANGED
File without changes
public/img/bannerCloseBtn.png CHANGED
File without changes
public/img/bannerEmail.png CHANGED
File without changes
public/img/bannerHeart.png CHANGED
File without changes
public/img/bannerLogo.png CHANGED
File without changes
public/img/bannerMegaphone.png CHANGED
File without changes
public/img/bannerQuestionMark.png CHANGED
File without changes
public/img/bannerSupport.png CHANGED
File without changes
public/img/blog-wp-kicker.png CHANGED
File without changes
public/img/close.png CHANGED
File without changes
public/img/contactFormTypeIcon.png CHANGED
File without changes
public/img/exitIntentTypeIcon.png CHANGED
File without changes
public/img/facebookTypeIcon.png CHANGED
File without changes
public/img/htmlTypeIcon.png CHANGED
File without changes
public/img/iframeTypeIcon.png CHANGED
File without changes
public/img/imageTypeIcon.png CHANGED
File without changes
public/img/mailchimpTypeIcon.png CHANGED
File without changes
public/img/moreIdeas.png CHANGED
File without changes
public/img/preview-eye.png CHANGED
File without changes
public/img/probadge.png CHANGED
File without changes
public/img/rateUsBanner1.png CHANGED
File without changes
public/img/rateUsBanner2.png CHANGED
File without changes
public/img/rateUsBanner3.png CHANGED
File without changes
public/img/recentSales.png CHANGED
File without changes
public/img/restrictionTyoeIcon.png CHANGED
File without changes
public/img/socialTypeIcon.png CHANGED
File without changes
public/img/star.png CHANGED
File without changes
public/img/subscribers_close.png CHANGED
File without changes
public/img/subscriptionTypeIcon.png CHANGED
File without changes
public/img/theme1.jpg CHANGED
File without changes
public/img/theme2.jpg CHANGED
File without changes
public/img/theme3.jpg CHANGED
File without changes
public/img/theme4.jpg CHANGED
File without changes
public/img/theme5.jpg CHANGED
File without changes
public/img/theme6.jpg CHANGED
File without changes
public/img/theme_1/close.png CHANGED
File without changes
public/img/theme_1/overlay.png CHANGED
File without changes
public/img/theme_2/close.png CHANGED
File without changes
public/img/theme_3/close.png CHANGED
File without changes
public/img/theme_5/close.png CHANGED
File without changes
public/img/theme_6/close.png CHANGED
File without changes
public/img/videoTypeIcon.png CHANGED
File without changes
public/img/wooTypeIcon.png CHANGED
File without changes
public/js/Banner.js CHANGED
File without changes
public/js/ExtensionsNotification.js CHANGED
File without changes
public/js/Newsletter.js CHANGED
File without changes
public/js/Popup.js CHANGED
File without changes
public/js/PopupBuilder.js CHANGED
File without changes
public/js/PopupConfig.js CHANGED
File without changes
public/js/Validate.js CHANGED
File without changes
public/js/bootstrap.min.js CHANGED
File without changes
public/js/select2.min.js CHANGED
File without changes
public/js/sgPopupRangeSlider.js CHANGED
File without changes
public/js/sgpbSelect2.js CHANGED
File without changes
public/sound/popupOpenSound.wav CHANGED
File without changes
public/views/behaviorAfterSpecialEventsView.php CHANGED
File without changes
public/views/eventsView.php CHANGED
File without changes
public/views/targetView.php CHANGED
File without changes
readme.txt CHANGED
@@ -8,7 +8,7 @@ Tags: popup, pop up, wordpress popup, popup maker, exit popup, popup builder, wo
8
  Requires at least: 4.2
9
  Tested up to: 5.8
10
  Requires PHP: 5.3.3
11
- Stable tag: 4.0
12
  License: GPLv2 or later
13
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
 
@@ -145,6 +145,9 @@ Go to the Popup Builder settings and set your desired options.
145
 
146
  == Changelog ==
147
 
 
 
 
148
  = Version 4.0 =
149
  * Improvement of design: the whole plugin has been redesigned for a better user experience.
150
  * Improvement of the menu: Descriptions for the menu items have been added.
8
  Requires at least: 4.2
9
  Tested up to: 5.8
10
  Requires PHP: 5.3.3
11
+ Stable tag: 4.0.1
12
  License: GPLv2 or later
13
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
 
145
 
146
  == Changelog ==
147
 
148
+ = Version 4.0.1 =
149
+ * Bug fixed related to issue with PHP version below 7.0
150
+
151
  = Version 4.0 =
152
  * Improvement of design: the whole plugin has been redesigned for a better user experience.
153
  * Improvement of the menu: Descriptions for the menu items have been added.