Version Description
Download this release
Release Info
Developer | Sygnoos |
Plugin | Popup Builder – Responsive WordPress Pop up |
Version | 4.1.10 |
Comparing to | |
See all releases |
Code changes from version 4.1.9 to 4.1.10
- com/classes/popups/SGPopup.php +3 -0
- com/classes/popups/SubscriptionPopup.php +1 -1
- com/config/configPackage.php +1 -1
- com/helpers/AdminHelper.php +4 -2
- com/helpers/Functions.php +1 -1
- popup-builder.php +1 -1
- public/js/Subscription.js +1 -1
- readme.txt +6 -3
com/classes/popups/SGPopup.php
CHANGED
@@ -886,6 +886,9 @@ abstract class SGPopup
|
|
886 |
$optionsData = array();
|
887 |
if (get_post_meta($popupId, 'sg_popup_options'.$saveMode, true)) {
|
888 |
$optionsData = get_post_meta($popupId, 'sg_popup_options'.$saveMode, true);
|
|
|
|
|
|
|
889 |
}
|
890 |
|
891 |
return $optionsData;
|
886 |
$optionsData = array();
|
887 |
if (get_post_meta($popupId, 'sg_popup_options'.$saveMode, true)) {
|
888 |
$optionsData = get_post_meta($popupId, 'sg_popup_options'.$saveMode, true);
|
889 |
+
if (isset($optionsData['sgpb-subs-gdpr-text'])){
|
890 |
+
$optionsData['sgpb-subs-gdpr-text'] = wp_kses($optionsData['sgpb-subs-gdpr-text'], AdminHelper::allowed_html_tags(false));
|
891 |
+
}
|
892 |
}
|
893 |
|
894 |
return $optionsData;
|
com/classes/popups/SubscriptionPopup.php
CHANGED
@@ -312,7 +312,7 @@ class SubscriptionPopup extends SGPopup
|
|
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 */
|
312 |
),
|
313 |
'style' => array('width' => isset($inputWidth)? $inputWidth :''),
|
314 |
'label' => $gdprLabel,
|
315 |
+
'text' => wp_kses($this->getFieldValue('sgpb-subs-gdpr-text'), AdminHelper::allowed_html_tags(false)),
|
316 |
'errorMessageBoxStyles' => isset($inputStyles['width'])?$inputStyles['width']:''
|
317 |
);
|
318 |
/* GDPR checkbox */
|
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.10');
|
7 |
define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
|
8 |
define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
|
com/helpers/AdminHelper.php
CHANGED
@@ -2236,7 +2236,7 @@ class AdminHelper
|
|
2236 |
}
|
2237 |
}
|
2238 |
|
2239 |
-
public static function allowed_html_tags()
|
2240 |
{
|
2241 |
$allowedPostTags = array();
|
2242 |
$allowedPostTags = wp_kses_allowed_html('post');
|
@@ -2314,7 +2314,9 @@ class AdminHelper
|
|
2314 |
$allowedPostTags['source'] = $allowed_atts;
|
2315 |
$allowedPostTags['textarea'] = $allowed_atts;
|
2316 |
$allowedPostTags['iframe'] = $allowed_atts;
|
2317 |
-
|
|
|
|
|
2318 |
$allowedPostTags['style'] = $allowed_atts;
|
2319 |
$allowedPostTags['strong'] = $allowed_atts;
|
2320 |
$allowedPostTags['small'] = $allowed_atts;
|
2236 |
}
|
2237 |
}
|
2238 |
|
2239 |
+
public static function allowed_html_tags($allowScript = true)
|
2240 |
{
|
2241 |
$allowedPostTags = array();
|
2242 |
$allowedPostTags = wp_kses_allowed_html('post');
|
2314 |
$allowedPostTags['source'] = $allowed_atts;
|
2315 |
$allowedPostTags['textarea'] = $allowed_atts;
|
2316 |
$allowedPostTags['iframe'] = $allowed_atts;
|
2317 |
+
if ($allowScript){
|
2318 |
+
$allowedPostTags['script'] = $allowed_atts;
|
2319 |
+
}
|
2320 |
$allowedPostTags['style'] = $allowed_atts;
|
2321 |
$allowedPostTags['strong'] = $allowed_atts;
|
2322 |
$allowedPostTags['small'] = $allowed_atts;
|
com/helpers/Functions.php
CHANGED
@@ -167,7 +167,7 @@ class Functions
|
|
167 |
return $inputElement;
|
168 |
}
|
169 |
$text = html_entity_decode($text);
|
170 |
-
$inputElement .= '<div class="sgpb-alert-info sgpb-alert sgpb-gdpr-info js-subs-text-checkbox sgpb-gdpr-text-js" '.$styles.'>'
|
171 |
|
172 |
return $inputElement;
|
173 |
}
|
167 |
return $inputElement;
|
168 |
}
|
169 |
$text = html_entity_decode($text);
|
170 |
+
$inputElement .= '<div class="sgpb-alert-info sgpb-alert sgpb-gdpr-info js-subs-text-checkbox sgpb-gdpr-text-js" '.$styles.'>'.wp_kses($text, AdminHelper::allowed_html_tags(false)).'</div>';
|
171 |
|
172 |
return $inputElement;
|
173 |
}
|
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.10
|
7 |
* Author: Sygnoos
|
8 |
* Author URI: https://sygnoos.com
|
9 |
* License: GPLv2
|
public/js/Subscription.js
CHANGED
@@ -41,7 +41,7 @@ jQuery('.js-subs-color-picker').each(function(){var currentColorPicker=jQuery(th
|
|
41 |
colorValue=SGPBBackend.hexToRgba(colorValue,opacity);var styleType=colorPicker.attr('data-style-type');var selector=colorPicker.attr('data-subs-rel');if('placeholder'===styleType){that.setupPlaceholderColor(selector,colorValue);return false;}
|
42 |
var styleObj={};styleObj[styleType]=colorValue;jQuery('.'+selector).each(function(){jQuery(this).css(styleObj);});};SGPBSubscription.prototype.changeButtonTitle=function()
|
43 |
{jQuery('.js-subs-btn-title').bind('input',function(){var className=jQuery(this).attr('data-subs-rel');var val=jQuery(this).val();jQuery('.'+className).val(val);});};SGPBSubscription.prototype.changeLabels=function()
|
44 |
-
{jQuery('#sgpb-subs-gdpr-text').on('change',function(){var text=jQuery(this).val();jQuery(this).text('');jQuery(this).text(text);jQuery('.sgpb-gdpr-text-js').html(text);});jQuery('.js-subs-field-placeholder').each(function(){jQuery(this).bind('input',function(){var className=jQuery(this).attr('data-subs-rel');var placeholderText=jQuery(this).val();if(className==='js-subs-gdpr-label'){jQuery('.'+className).next().text(placeholderText);}
|
45 |
else{jQuery('.'+className).attr('placeholder',placeholderText);}});});};SGPBSubscription.prototype.binding=function()
|
46 |
{var that=this;jQuery('.js-checkbox-field-status').bind('click',function(){var isChecked=jQuery(this).is(':checked');var elementClassName=jQuery(this).attr('data-subs-field-wrapper');var element=jQuery('.'+elementClassName);that.toggleVisible(element,isChecked);});jQuery('.js-checkbox-acordion').each(function(){var isChecked=jQuery(this).is(':checked');var elementClassName=jQuery(this).attr('data-subs-rel');var element=jQuery('.'+elementClassName);that.toggleVisible(element,isChecked);});};SGPBSubscription.prototype.toggleVisible=function(toggleElement,elementStatus)
|
47 |
{if(elementStatus){toggleElement.css({'display':'block'});}
|
41 |
colorValue=SGPBBackend.hexToRgba(colorValue,opacity);var styleType=colorPicker.attr('data-style-type');var selector=colorPicker.attr('data-subs-rel');if('placeholder'===styleType){that.setupPlaceholderColor(selector,colorValue);return false;}
|
42 |
var styleObj={};styleObj[styleType]=colorValue;jQuery('.'+selector).each(function(){jQuery(this).css(styleObj);});};SGPBSubscription.prototype.changeButtonTitle=function()
|
43 |
{jQuery('.js-subs-btn-title').bind('input',function(){var className=jQuery(this).attr('data-subs-rel');var val=jQuery(this).val();jQuery('.'+className).val(val);});};SGPBSubscription.prototype.changeLabels=function()
|
44 |
+
{jQuery('#sgpb-subs-gdpr-text').on('change',function(){var text=jQuery(this).val();text=text.toLowerCase().replaceAll("<script","<script");text=text.toLowerCase().replaceAll("script>","script>");jQuery(this).text('');jQuery(this).text(text);jQuery('.sgpb-gdpr-text-js').html(text);});jQuery('.js-subs-field-placeholder').each(function(){jQuery(this).bind('input',function(){var className=jQuery(this).attr('data-subs-rel');var placeholderText=jQuery(this).val();if(className==='js-subs-gdpr-label'){jQuery('.'+className).next().text(placeholderText);}
|
45 |
else{jQuery('.'+className).attr('placeholder',placeholderText);}});});};SGPBSubscription.prototype.binding=function()
|
46 |
{var that=this;jQuery('.js-checkbox-field-status').bind('click',function(){var isChecked=jQuery(this).is(':checked');var elementClassName=jQuery(this).attr('data-subs-field-wrapper');var element=jQuery('.'+elementClassName);that.toggleVisible(element,isChecked);});jQuery('.js-checkbox-acordion').each(function(){var isChecked=jQuery(this).is(':checked');var elementClassName=jQuery(this).attr('data-subs-rel');var element=jQuery('.'+elementClassName);that.toggleVisible(element,isChecked);});};SGPBSubscription.prototype.toggleVisible=function(toggleElement,elementStatus)
|
47 |
{if(elementStatus){toggleElement.css({'display':'block'});}
|
readme.txt
CHANGED
@@ -6,9 +6,9 @@ Plugin URI: https://popup-builder.com
|
|
6 |
Donate link: https://popup-builder.com
|
7 |
Tags: popup, pop up, wordpress popup, popup maker, exit popup, popup builder, wordpress popup plugin
|
8 |
Requires at least: 4.2
|
9 |
-
Tested up to:
|
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,9 @@ Go to the Popup Builder settings and set your desired options.
|
|
146 |
|
147 |
== Changelog ==
|
148 |
|
|
|
|
|
|
|
149 |
= Version 4.1.9 =
|
150 |
* Bug fixed related to popups that are set to appear with shortcodes and conditions
|
151 |
|
@@ -548,4 +551,4 @@ Leave us a good review :)
|
|
548 |
|
549 |
== Upgrade Notice ==
|
550 |
|
551 |
-
Current Version of Popup Builder is 4.1.
|
6 |
Donate link: https://popup-builder.com
|
7 |
Tags: popup, pop up, wordpress popup, popup maker, exit popup, popup builder, wordpress popup plugin
|
8 |
Requires at least: 4.2
|
9 |
+
Tested up to: 6.0
|
10 |
Requires PHP: 5.3.3
|
11 |
+
Stable tag: 4.1.10
|
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.10 =
|
150 |
+
* Code improvements and bug fixes
|
151 |
+
|
152 |
= Version 4.1.9 =
|
153 |
* Bug fixed related to popups that are set to appear with shortcodes and conditions
|
154 |
|
551 |
|
552 |
== Upgrade Notice ==
|
553 |
|
554 |
+
Current Version of Popup Builder is 4.1.10
|