Version Description
Current Version of Popup Builder is 3.73
Download this release
Release Info
Developer | Sygnoos |
Plugin | Popup Builder – Responsive WordPress Pop up |
Version | 3.73 |
Comparing to | |
See all releases |
Code changes from version 3.72 to 3.73
- com/classes/Ajax.php +37 -33
- com/config/configPackage.php +1 -1
- com/helpers/AdminHelper.php +6 -6
- popup-builder.php +1 -1
- readme.txt +7 -2
com/classes/Ajax.php
CHANGED
@@ -8,10 +8,7 @@ class Ajax
|
|
8 |
|
9 |
public function __construct()
|
10 |
{
|
11 |
-
$
|
12 |
-
if ($allowToAction) {
|
13 |
-
$this->actions();
|
14 |
-
}
|
15 |
}
|
16 |
|
17 |
public function setPostData($postData)
|
@@ -47,36 +44,43 @@ class Ajax
|
|
47 |
|
48 |
public function actions()
|
49 |
{
|
50 |
-
|
51 |
-
add_action('wp_ajax_add_condition_rule_row', array($this, 'addConditionRuleRow'));
|
52 |
-
add_action('wp_ajax_change_condition_rule_row', array($this, 'changeConditionRuleRow'));
|
53 |
-
add_action('wp_ajax_select2_search_data', array($this, 'select2SearchData'));
|
54 |
-
add_action('wp_ajax_sgpb_subscription_submission', array($this, 'subscriptionSubmission'));
|
55 |
-
add_action('wp_ajax_nopriv_sgpb_subscription_submission', array($this, 'subscriptionSubmission'));
|
56 |
-
add_action('wp_ajax_sgpb_process_after_submission', array($this, 'sgpbSubsciptionFormSubmittedAction'));
|
57 |
-
add_action('wp_ajax_nopriv_sgpb_process_after_submission', array($this, 'sgpbSubsciptionFormSubmittedAction'));
|
58 |
-
add_action('wp_ajax_change_popup_status', array($this, 'changePopupStatus'));
|
59 |
-
// proStartGold
|
60 |
-
add_action('wp_ajax_check_same_origin', array($this, 'checkSameOrigin'));
|
61 |
-
// proEndGold
|
62 |
-
add_action('wp_ajax_sgpb_subscribers_delete', array($this, 'deleteSubscribers'));
|
63 |
-
add_action('wp_ajax_sgpb_add_subscribers', array($this, 'addSubscribers'));
|
64 |
-
add_action('wp_ajax_sgpb_import_subscribers', array($this, 'importSubscribers'));
|
65 |
-
add_action('wp_ajax_sgpb_save_imported_subscribers', array($this, 'saveImportedSubscribers'));
|
66 |
-
add_action('wp_ajax_sgpb_send_newsletter', array($this, 'sendNewsletter'));
|
67 |
-
add_action('wp_ajax_sgpb_send_to_open_counter', array($this, 'addToCounter'));
|
68 |
-
add_action('wp_ajax_sgpb_change_review_popup_show_period', array($this, 'changeReviewPopupPeriod'));
|
69 |
-
add_action('wp_ajax_sgpb_dont_show_review_popup', array($this, 'dontShowReviewPopup'));
|
70 |
add_action('wp_ajax_nopriv_sgpb_send_to_open_counter', array($this, 'addToCounter'));
|
71 |
-
|
72 |
-
|
73 |
-
add_action('
|
74 |
-
|
75 |
-
|
76 |
-
add_action('
|
77 |
-
|
78 |
-
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
}
|
81 |
|
82 |
public function sgpbAutosave()
|
8 |
|
9 |
public function __construct()
|
10 |
{
|
11 |
+
$this->actions();
|
|
|
|
|
|
|
12 |
}
|
13 |
|
14 |
public function setPostData($postData)
|
44 |
|
45 |
public function actions()
|
46 |
{
|
47 |
+
add_action('wp_ajax_sgpb_send_to_open_counter', array($this, 'addToCounter'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
add_action('wp_ajax_nopriv_sgpb_send_to_open_counter', array($this, 'addToCounter'));
|
49 |
+
|
50 |
+
add_action('wp_ajax_sgpb_process_after_submission', array($this, 'sgpbSubsciptionFormSubmittedAction'));
|
51 |
+
add_action('wp_ajax_nopriv_sgpb_process_after_submission', array($this, 'sgpbSubsciptionFormSubmittedAction'));
|
52 |
+
|
53 |
+
add_action('wp_ajax_sgpb_subscription_submission', array($this, 'subscriptionSubmission'));
|
54 |
+
add_action('wp_ajax_nopriv_sgpb_subscription_submission', array($this, 'subscriptionSubmission'));
|
55 |
+
|
56 |
+
$allowToAction = AdminHelper::userCanAccessTo();
|
57 |
+
|
58 |
+
if ($allowToAction) {
|
59 |
+
add_action('wp_ajax_add_condition_group_row', array($this, 'addConditionGroupRow'));
|
60 |
+
add_action('wp_ajax_add_condition_rule_row', array($this, 'addConditionRuleRow'));
|
61 |
+
add_action('wp_ajax_change_condition_rule_row', array($this, 'changeConditionRuleRow'));
|
62 |
+
add_action('wp_ajax_select2_search_data', array($this, 'select2SearchData'));
|
63 |
+
add_action('wp_ajax_change_popup_status', array($this, 'changePopupStatus'));
|
64 |
+
// proStartGold
|
65 |
+
add_action('wp_ajax_check_same_origin', array($this, 'checkSameOrigin'));
|
66 |
+
// proEndGold
|
67 |
+
add_action('wp_ajax_sgpb_subscribers_delete', array($this, 'deleteSubscribers'));
|
68 |
+
add_action('wp_ajax_sgpb_add_subscribers', array($this, 'addSubscribers'));
|
69 |
+
add_action('wp_ajax_sgpb_import_subscribers', array($this, 'importSubscribers'));
|
70 |
+
add_action('wp_ajax_sgpb_save_imported_subscribers', array($this, 'saveImportedSubscribers'));
|
71 |
+
add_action('wp_ajax_sgpb_send_newsletter', array($this, 'sendNewsletter'));
|
72 |
+
add_action('wp_ajax_sgpb_change_review_popup_show_period', array($this, 'changeReviewPopupPeriod'));
|
73 |
+
add_action('wp_ajax_sgpb_dont_show_review_popup', array($this, 'dontShowReviewPopup'));
|
74 |
+
add_action('wp_ajax_sgpb_close_banner', array($this, 'closeMainRateUsBanner'));
|
75 |
+
add_action('wp_ajax_sgpb_close_license_notice', array($this, 'closeLicenseNoticeBanner'));
|
76 |
+
add_action('wp_ajax_sgpb_hide_ask_review_popup', array($this, 'dontShowAskReviewBanner'));
|
77 |
+
add_action('wp_ajax_sgpb_reset_popup_opening_count', array($this, 'resetPopupOpeningCount'));
|
78 |
+
/*Extension notification panel*/
|
79 |
+
add_action('wp_ajax_sgpb_dont_show_extension_panel', array($this, 'extensionNotificationPanel'));
|
80 |
+
add_action('wp_ajax_sgpb_dont_show_problem_alert', array($this, 'dontShowProblemAlert'));
|
81 |
+
// autosave
|
82 |
+
add_action('wp_ajax_sgpb_autosave', array($this, 'sgpbAutosave'));
|
83 |
+
}
|
84 |
}
|
85 |
|
86 |
public function sgpbAutosave()
|
com/config/configPackage.php
CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
|
|
3 |
exit();
|
4 |
}
|
5 |
|
6 |
-
define('SG_POPUP_VERSION', '3.
|
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.73');
|
7 |
define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
|
8 |
define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
|
com/helpers/AdminHelper.php
CHANGED
@@ -575,11 +575,11 @@ class AdminHelper
|
|
575 |
$role = $userRoleName;
|
576 |
}
|
577 |
else {
|
578 |
-
|
579 |
-
|
|
|
|
|
580 |
}
|
581 |
-
$currentUser = wp_get_current_user();
|
582 |
-
$role = $currentUser->roles;
|
583 |
}
|
584 |
|
585 |
return $role;
|
@@ -1178,7 +1178,7 @@ class AdminHelper
|
|
1178 |
{
|
1179 |
$contentType = 'text/html';
|
1180 |
$charset = 'UTF-8';
|
1181 |
-
$
|
1182 |
|
1183 |
if (!empty($args['contentType'])) {
|
1184 |
$contentType = $args['contentType'];
|
@@ -1188,7 +1188,7 @@ class AdminHelper
|
|
1188 |
}
|
1189 |
|
1190 |
$headers = 'MIME-Version: 1.0'."\r\n";
|
1191 |
-
$headers
|
1192 |
$headers .= 'Content-type: '.$contentType.'; charset='.$charset.''."\r\n"; //set UTF-8
|
1193 |
|
1194 |
return $headers;
|
575 |
$role = $userRoleName;
|
576 |
}
|
577 |
else {
|
578 |
+
global $current_user;
|
579 |
+
if ($current_user) {
|
580 |
+
$currentUser = wp_get_current_user();
|
581 |
+
$role = $currentUser->roles;
|
582 |
}
|
|
|
|
|
583 |
}
|
584 |
|
585 |
return $role;
|
1178 |
{
|
1179 |
$contentType = 'text/html';
|
1180 |
$charset = 'UTF-8';
|
1181 |
+
$blogInfo = get_bloginfo();
|
1182 |
|
1183 |
if (!empty($args['contentType'])) {
|
1184 |
$contentType = $args['contentType'];
|
1188 |
}
|
1189 |
|
1190 |
$headers = 'MIME-Version: 1.0'."\r\n";
|
1191 |
+
$headers .= 'From: "'.$blogInfo.'" <'.$fromEmail.'>'."\r\n";
|
1192 |
$headers .= 'Content-type: '.$contentType.'; charset='.$charset.''."\r\n"; //set UTF-8
|
1193 |
|
1194 |
return $headers;
|
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.
|
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.73
|
7 |
* Author: Sygnoos
|
8 |
* Author URI: https://sygnoos.com
|
9 |
* License: GPLv2
|
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.6
|
11 |
Requires PHP: 5.3.3
|
12 |
-
Stable tag: 3.
|
13 |
License: GPLv2 or later
|
14 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
15 |
|
@@ -186,6 +186,11 @@ Go to the Popup Builder settings and set your desired options.
|
|
186 |
|
187 |
== Changelog ==
|
188 |
|
|
|
|
|
|
|
|
|
|
|
189 |
= Version 3.72 =
|
190 |
* Option added to enable/disable AJAX for counting popup opening stats.
|
191 |
* Bug fixed related to multisite issue.
|
@@ -1264,7 +1269,7 @@ Leave us a good review :)
|
|
1264 |
|
1265 |
== Upgrade Notice ==
|
1266 |
|
1267 |
-
Current Version of Popup Builder is 3.
|
1268 |
|
1269 |
== Other Notes ==
|
1270 |
|
9 |
Requires at least: 4.2
|
10 |
Tested up to: 5.6
|
11 |
Requires PHP: 5.3.3
|
12 |
+
Stable tag: 3.73
|
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.73 =
|
190 |
+
* Bug fixed related to AJAX.
|
191 |
+
* Bug fixed related to Subscription form's submitting.
|
192 |
+
* Bug fixed related to conflict with Post SMTP.
|
193 |
+
|
194 |
= Version 3.72 =
|
195 |
* Option added to enable/disable AJAX for counting popup opening stats.
|
196 |
* Bug fixed related to multisite issue.
|
1269 |
|
1270 |
== Upgrade Notice ==
|
1271 |
|
1272 |
+
Current Version of Popup Builder is 3.73
|
1273 |
|
1274 |
== Other Notes ==
|
1275 |
|