Version Description
Download this release
Release Info
Developer | Sygnoos |
Plugin | Popup Builder – Responsive WordPress Pop up |
Version | 4.1.11 |
Comparing to | |
See all releases |
Code changes from version 4.1.10 to 4.1.11
- com/classes/ScriptsLoader.php +1 -1
- com/classes/popups/SGPopup.php +1 -1
- com/config/configPackage.php +1 -1
- com/helpers/AdminHelper.php +6 -5
- popup-builder.php +1 -1
- public/js/PopupBuilder.js +2 -2
- readme.txt +7 -2
com/classes/ScriptsLoader.php
CHANGED
@@ -78,7 +78,7 @@ class ScriptsLoader
|
|
78 |
} else {
|
79 |
$popupOptions = json_encode($popupOptions,JSON_UNESCAPED_UNICODE);
|
80 |
}
|
81 |
-
return $popupOptions;
|
82 |
}
|
83 |
|
84 |
// load popup scripts and styles and add popup data to the footer
|
78 |
} else {
|
79 |
$popupOptions = json_encode($popupOptions,JSON_UNESCAPED_UNICODE);
|
80 |
}
|
81 |
+
return base64_encode($popupOptions);
|
82 |
}
|
83 |
|
84 |
// load popup scripts and styles and add popup data to the footer
|
com/classes/popups/SGPopup.php
CHANGED
@@ -847,7 +847,7 @@ abstract class SGPopup
|
|
847 |
}
|
848 |
}
|
849 |
|
850 |
-
$popupOptions = self::getPopupOptionsById($popupId, $saveMode)
|
851 |
if (is_array($popupOptions) && is_array($popupSavedData)) {
|
852 |
$popupSavedData = array_merge($popupSavedData, $popupOptions);
|
853 |
}
|
847 |
}
|
848 |
}
|
849 |
|
850 |
+
$popupOptions = self::getPopupOptionsById($popupId, $saveMode);//
|
851 |
if (is_array($popupOptions) && is_array($popupSavedData)) {
|
852 |
$popupSavedData = array_merge($popupSavedData, $popupOptions);
|
853 |
}
|
com/config/configPackage.php
CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
|
|
3 |
exit();
|
4 |
}
|
5 |
|
6 |
-
define('SG_POPUP_VERSION', '4.1.
|
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.1.11');
|
7 |
define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
|
8 |
define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
|
com/helpers/AdminHelper.php
CHANGED
@@ -965,7 +965,7 @@ class AdminHelper
|
|
965 |
$content = '<div class="sgpb-support-notification-wrapper sgpb-wrapper"><h4 class="sgpb-support-notification-title">'.__('Need some help?', SG_POPUP_TEXT_DOMAIN).'</h4>';
|
966 |
$content .= '<h4 class="sgpb-support-notification-title">'.__('Let us know what you think.', SG_POPUP_TEXT_DOMAIN).'</h4>';
|
967 |
$content .= '<a class="btn btn-info" target="_blank" href="'.SG_POPUP_RATE_US_URL.'"><span class="dashicons sgpb-dashicons-heart sgpb-info-text-white"></span><span class="sg-info-text">'.__('Rate Us', SG_POPUP_TEXT_DOMAIN).'</span></a>';
|
968 |
-
$content .= '<a class="btn btn-info" target="_blank" href="'.SG_POPUP_TICKET_URL.'"><span class="dashicons sgpb-dashicons-megaphone sgpb-info-text-white"></span>'.__('Support
|
969 |
$content .= '<a class="btn btn-info" target="_blank" href="https://wordpress.org/support/plugin/popup-builder"><span class="dashicons sgpb-dashicons-admin-plugins sgpb-info-text-white"></span>'.__('Support Forum', SG_POPUP_TEXT_DOMAIN).'</a>';
|
970 |
$content .= '<a class="btn btn-info" target="_blank" href="'.SG_POPUP_STORE_URL.'"><span class="dashicons sgpb-dashicons-editor-help sgpb-info-text-white"></span>'.__('LIVE chat', SG_POPUP_TEXT_DOMAIN).'</a>';
|
971 |
$content .= '<a class="btn btn-info" target="_blank" href="mailto:support@popup-builder.com?subject=Hello"><span class="dashicons sgpb-dashicons-email-alt sgpb-info-text-white"></span>'.__('Email', SG_POPUP_TEXT_DOMAIN).'</a></div>';
|
@@ -2242,7 +2242,6 @@ class AdminHelper
|
|
2242 |
$allowedPostTags = wp_kses_allowed_html('post');
|
2243 |
$allowed_atts = array(
|
2244 |
'role' => array(),
|
2245 |
-
'onclick' => array(),
|
2246 |
'checked' => array(),
|
2247 |
'align' => array(),
|
2248 |
'preload' => array(),
|
@@ -2302,6 +2301,10 @@ class AdminHelper
|
|
2302 |
'selected' => array(),
|
2303 |
'multiple' => array()
|
2304 |
);
|
|
|
|
|
|
|
|
|
2305 |
$allowedPostTags['select'] = $allowed_atts;
|
2306 |
$allowedPostTags['optgroup'] = $allowed_atts;
|
2307 |
$allowedPostTags['option'] = $allowed_atts;
|
@@ -2314,9 +2317,7 @@ class AdminHelper
|
|
2314 |
$allowedPostTags['source'] = $allowed_atts;
|
2315 |
$allowedPostTags['textarea'] = $allowed_atts;
|
2316 |
$allowedPostTags['iframe'] = $allowed_atts;
|
2317 |
-
|
2318 |
-
$allowedPostTags['script'] = $allowed_atts;
|
2319 |
-
}
|
2320 |
$allowedPostTags['style'] = $allowed_atts;
|
2321 |
$allowedPostTags['strong'] = $allowed_atts;
|
2322 |
$allowedPostTags['small'] = $allowed_atts;
|
965 |
$content = '<div class="sgpb-support-notification-wrapper sgpb-wrapper"><h4 class="sgpb-support-notification-title">'.__('Need some help?', SG_POPUP_TEXT_DOMAIN).'</h4>';
|
966 |
$content .= '<h4 class="sgpb-support-notification-title">'.__('Let us know what you think.', SG_POPUP_TEXT_DOMAIN).'</h4>';
|
967 |
$content .= '<a class="btn btn-info" target="_blank" href="'.SG_POPUP_RATE_US_URL.'"><span class="dashicons sgpb-dashicons-heart sgpb-info-text-white"></span><span class="sg-info-text">'.__('Rate Us', SG_POPUP_TEXT_DOMAIN).'</span></a>';
|
968 |
+
$content .= '<a class="btn btn-info" target="_blank" href="'.SG_POPUP_TICKET_URL.'"><span class="dashicons sgpb-dashicons-megaphone sgpb-info-text-white"></span>'.__('Support Portal', SG_POPUP_TEXT_DOMAIN).'</a>';
|
969 |
$content .= '<a class="btn btn-info" target="_blank" href="https://wordpress.org/support/plugin/popup-builder"><span class="dashicons sgpb-dashicons-admin-plugins sgpb-info-text-white"></span>'.__('Support Forum', SG_POPUP_TEXT_DOMAIN).'</a>';
|
970 |
$content .= '<a class="btn btn-info" target="_blank" href="'.SG_POPUP_STORE_URL.'"><span class="dashicons sgpb-dashicons-editor-help sgpb-info-text-white"></span>'.__('LIVE chat', SG_POPUP_TEXT_DOMAIN).'</a>';
|
971 |
$content .= '<a class="btn btn-info" target="_blank" href="mailto:support@popup-builder.com?subject=Hello"><span class="dashicons sgpb-dashicons-email-alt sgpb-info-text-white"></span>'.__('Email', SG_POPUP_TEXT_DOMAIN).'</a></div>';
|
2242 |
$allowedPostTags = wp_kses_allowed_html('post');
|
2243 |
$allowed_atts = array(
|
2244 |
'role' => array(),
|
|
|
2245 |
'checked' => array(),
|
2246 |
'align' => array(),
|
2247 |
'preload' => array(),
|
2301 |
'selected' => array(),
|
2302 |
'multiple' => array()
|
2303 |
);
|
2304 |
+
if ($allowScript){
|
2305 |
+
$allowedPostTags['script'] = $allowed_atts;
|
2306 |
+
$allowed_atts['onclick'] = array();
|
2307 |
+
}
|
2308 |
$allowedPostTags['select'] = $allowed_atts;
|
2309 |
$allowedPostTags['optgroup'] = $allowed_atts;
|
2310 |
$allowedPostTags['option'] = $allowed_atts;
|
2317 |
$allowedPostTags['source'] = $allowed_atts;
|
2318 |
$allowedPostTags['textarea'] = $allowed_atts;
|
2319 |
$allowedPostTags['iframe'] = $allowed_atts;
|
2320 |
+
|
|
|
|
|
2321 |
$allowedPostTags['style'] = $allowed_atts;
|
2322 |
$allowedPostTags['strong'] = $allowed_atts;
|
2323 |
$allowedPostTags['small'] = $allowed_atts;
|
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.1.
|
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.1.11
|
7 |
* Author: Sygnoos
|
8 |
* Author URI: https://sygnoos.com
|
9 |
* License: GPLv2
|
public/js/PopupBuilder.js
CHANGED
@@ -1870,7 +1870,7 @@ SGPBPopup.prototype.setMaxWidthForResponsiveImage = function()
|
|
1870 |
}
|
1871 |
};
|
1872 |
SGPBPopup.JSONParse = function(data){
|
1873 |
-
return JSON.parse(data);
|
1874 |
};
|
1875 |
|
1876 |
// unused function!
|
@@ -2622,7 +2622,7 @@ SgpbEventListener.prototype.sgpbClick = function(listenerObj, eventData)
|
|
2622 |
jQuery(this).attr('data-popup-id', popupId);
|
2623 |
}
|
2624 |
var currentTarget = jQuery(this);
|
2625 |
-
currentTarget.bind('click', function(e) {
|
2626 |
if (clickCount > 1) {
|
2627 |
return true;
|
2628 |
}
|
1870 |
}
|
1871 |
};
|
1872 |
SGPBPopup.JSONParse = function(data){
|
1873 |
+
return JSON.parse(atob(data, true));
|
1874 |
};
|
1875 |
|
1876 |
// unused function!
|
2622 |
jQuery(this).attr('data-popup-id', popupId);
|
2623 |
}
|
2624 |
var currentTarget = jQuery(this);
|
2625 |
+
currentTarget.bind('click touchstart', function(e) {
|
2626 |
if (clickCount > 1) {
|
2627 |
return true;
|
2628 |
}
|
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: 6.0
|
10 |
Requires PHP: 5.3.3
|
11 |
-
Stable tag: 4.1.
|
12 |
License: GPLv2 or later
|
13 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
14 |
|
@@ -146,6 +146,11 @@ Go to the Popup Builder settings and set your desired options.
|
|
146 |
|
147 |
== Changelog ==
|
148 |
|
|
|
|
|
|
|
|
|
|
|
149 |
= Version 4.1.10 =
|
150 |
* Code improvements and bug fixes
|
151 |
|
@@ -551,4 +556,4 @@ Leave us a good review :)
|
|
551 |
|
552 |
== Upgrade Notice ==
|
553 |
|
554 |
-
Current Version of Popup Builder is 4.1.
|
8 |
Requires at least: 4.2
|
9 |
Tested up to: 6.0
|
10 |
Requires PHP: 5.3.3
|
11 |
+
Stable tag: 4.1.11
|
12 |
License: GPLv2 or later
|
13 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
14 |
|
146 |
|
147 |
== Changelog ==
|
148 |
|
149 |
+
= Version 4.1.11 =
|
150 |
+
* Improvement of code: touch event has been added for mobile devices
|
151 |
+
* Bug fixed related to symbols in text area
|
152 |
+
* Some minor code improvements
|
153 |
+
|
154 |
= Version 4.1.10 =
|
155 |
* Code improvements and bug fixes
|
156 |
|
556 |
|
557 |
== Upgrade Notice ==
|
558 |
|
559 |
+
Current Version of Popup Builder is 4.1.11
|