Popup Builder – Responsive WordPress Pop up - Version 3.68.5.1

Version Description

Current Version of Popup Builder is 3.68.5

Download this release

Release Info

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

Code changes from version 3.68.5 to 3.68.5.1

com/classes/Actions.php CHANGED
File without changes
com/classes/Filters.php CHANGED
File without changes
com/classes/ScriptsLoader.php CHANGED
@@ -112,7 +112,7 @@ class ScriptsLoader
112
  $extraContent = apply_filters('sgpbPopupExtraData', $popupId, $currentUseOptions);
113
  $popupOptions = $this->getEncodedOptionsFromPopup($popup);
114
  $popupOptions = apply_filters('sgpbLoadToFooterOptions', $popupOptions);
115
- add_action('wp_footer', function() use ($popupId, $events, $popupOptions, $popupContent) {
116
  $footerPopupContent = '<div style="position:fixed;bottom: -999999999999999999999px;">
117
  <div class="sg-popup-builder-content" id="sg-popup-content-wrapper-'.$popupId.'" data-id="'.esc_attr($popupId).'" data-events="'.esc_attr($events).'" data-options="'.esc_attr($popupOptions).'">
118
  <div class="sgpb-popup-builder-content-'.esc_attr($popupId).' sgpb-popup-builder-content-html">'.$popupContent.'</div>
112
  $extraContent = apply_filters('sgpbPopupExtraData', $popupId, $currentUseOptions);
113
  $popupOptions = $this->getEncodedOptionsFromPopup($popup);
114
  $popupOptions = apply_filters('sgpbLoadToFooterOptions', $popupOptions);
115
+ add_action('wp_footer', function() use ($popupId, $events, $popupOptions, $popupContent, $extraContent) {
116
  $footerPopupContent = '<div style="position:fixed;bottom: -999999999999999999999px;">
117
  <div class="sg-popup-builder-content" id="sg-popup-content-wrapper-'.$popupId.'" data-id="'.esc_attr($popupId).'" data-events="'.esc_attr($events).'" data-options="'.esc_attr($popupOptions).'">
118
  <div class="sgpb-popup-builder-content-'.esc_attr($popupId).' sgpb-popup-builder-content-html">'.$popupContent.'</div>
com/classes/extension/SgpbPopupExtension.php CHANGED
File without changes
com/classes/popups/SGPopup.php CHANGED
File without changes
com/config/configPackage.php CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
3
  exit();
4
  }
5
 
6
- define('SG_POPUP_VERSION', '3.68.5');
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.68.5.1');
7
  define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
8
  define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
com/config/dataConfig.php CHANGED
File without changes
com/helpers/AdminHelper.php CHANGED
File without changes
com/helpers/ConfigDataHelper.php CHANGED
File without changes
com/helpers/Functions.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: 3.68.5
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.68.5.1
7
  * Author: Sygnoos
8
  * Author URI: https://sygnoos.com
9
  * License: GPLv2
public/css/popupAdminStyles.css CHANGED
File without changes
public/css/theme.css CHANGED
File without changes
public/js/Backend.js CHANGED
File without changes
public/js/Banner.js CHANGED
File without changes
public/js/ExtensionsNotification.js CHANGED
File without changes
public/js/MediaButton.js CHANGED
@@ -1,27 +1 @@
1
- function SGPBMediaButton(){}
2
- SGPBMediaButton.prototype.init=function()
3
- {this.tinymceButton();this.openMediaButtonPopup();};SGPBMediaButton.prototype.tinymceButton=function()
4
- {var that=this;jQuery(document).on('tinymce-editor-setup',function(event,editor){if(editor.settings.toolbar1.indexOf('popupBuilderEditorButton')!==-1){return;}
5
- editor.settings.toolbar1+=', popupBuilderEditorButton';editor.addButton('popupBuilderEditorButton',{icon:'wp-menu-image dashicons-before dashicons-menu-icon-sgpb sgpb-tinymce-button',onclick:function(){that.mediaButtonPopup();}});});};SGPBMediaButton.prototype.openMediaButtonPopup=function()
6
- {var that=this;jQuery('.sgpb-tinymce-button, .sgpb-insert-media-button-js, .sgpb-insert-js-variable').unbind('click').bind('click',function(e){e.preventDefault();that.mediaButtonPopup(jQuery(this));});};SGPBMediaButton.prototype.mediaButtonPopup=function(currentTag)
7
- {var select2Init=1;var that=this;var hiddenDivId=jQuery(currentTag).attr('data-id')||'sgpb-hidden-media-popup';var popupConfigObj=new PopupConfig();popupConfigObj.magicCall('setContentPadding',14);popupConfigObj.magicCall('setContentBorderRadius',4);popupConfigObj.magicCall('setContentBorderRadiusType','px');popupConfigObj.magicCall('setContentBorderWidth',5);popupConfigObj.magicCall('setContentBorderColor','#506274');popupConfigObj.magicCall('setShadowSpread',1);popupConfigObj.magicCall('setContentShadowBlur',4);popupConfigObj.magicCall('setContentShadowColor','#cccccc');popupConfigObj.magicCall('setMinWidth',400);popupConfigObj.magicCall('setSrcElement',hiddenDivId);popupConfigObj.magicCall('setOverlayColor','black');popupConfigObj.magicCall('setOverlayOpacity',40);var config=popupConfigObj.combineConfigObj();var popup=new SGPopup(config);popup.open();jQuery(window).bind('sgpbDidOpen',function(){jQuery('.sgpb-insert-popup').addClass('js-sg-select2');if(mediaButtonParams.currentPostType!==mediaButtonParams.popupBuilderPostType){jQuery('.sgpb-insert-popup-event').addClass('js-sg-select2');if(select2Init===1){that.popupSelect2();}
8
- select2Init++;jQuery('.select2-container--below').remove();that.popupSelect2();}
9
- else{that.popupSelect2();jQuery('.select2-container--below').remove();}
10
- that.closeMediaButtonPopup(popup);});that.insertPopup(popup);};SGPBMediaButton.prototype.closeMediaButtonPopup=function(popup)
11
- {jQuery('.sgpb-close-media-popup-js').on('click',function(){popup.close();});};SGPBMediaButton.prototype.insertPopup=function(popup)
12
- {var insidePopup=false;if(mediaButtonParams.currentPostType===mediaButtonParams.popupBuilderPostType){insidePopup=true;}
13
- jQuery('.sgpb-insert-popup-js').unbind('click').bind('click',function(){var selectedContent='';var selectedPopup=jQuery('.sgpb-insert-popup').val();var selectedPopupEvent=jQuery('.sgpb-insert-popup-event').val();if(typeof selectedPopupEvent!=='undefined'){selectedPopupEvent=' event="'+selectedPopupEvent+'"';}
14
- else{selectedPopupEvent='';if(insidePopup){selectedPopupEvent=' insidePopup="on"';}}
15
- if(selectedPopup===''||selectedPopup===null){popup.close();return;}
16
- if(selectedPopupEvent==='onLoad'&&!insidePopup){window.send_to_editor('[sg_popup id="'+selectedPopup+'"'+selectedPopupEvent+'][/sg_popup]');popup.close();return;}
17
- if(typeof tinyMCE.editors.content!=='undefined'&&(document.getElementById('content').offsetParent===null)){selectedContent=(tinyMCE.activeEditor.selection.getContent())?tinyMCE.activeEditor.selection.getContent():'';}
18
- else{var content=document.getElementById('content');if(typeof document.selection!=='undefined'){content.focus();var sel=document.selection.createRange();selectedContent=sel.text;}
19
- else if(typeof content!=='undefined'&&content!==null){if(typeof content.selectionStart!=='undefined'){var startPos=content.selectionStart;var endPos=content.selectionEnd;selectedContent=content.value.substring(startPos,endPos);}}}
20
- window.send_to_editor('[sg_popup id="'+selectedPopup+'"'+selectedPopupEvent+']'+selectedContent+'[/sg_popup]');popup.close();});jQuery('.sgpb-insert-js-variable-to-editor').unbind('click').bind('click',function(){var jsVariableSelector=jQuery('.sgpb-popup-dialog-main-div-wrapper .sgpb-js-variable-selector').val();var jsVariableAttribute=jQuery('.sgpb-popup-dialog-main-div-wrapper .sgpb-js-variable-attribute').val();jQuery('.sgpb-js-variable-errors').addClass('sg-hide-element');var valid=true;if(jsVariableSelector===''){valid=false;jQuery('.sgpb-js-variable-selector-error').removeClass('sg-hide-element');}
21
- if(jsVariableAttribute===''){valid=false;jQuery('.sgpb-js-variable-attribute-error').removeClass('sg-hide-element');}
22
- if(!valid){return false;}
23
- jQuery('.sgpb-js-variable-errors').addClass('sg-hide-element');window.send_to_editor('[pbvariable selector="'+jsVariableSelector+'" attribute="'+jsVariableAttribute+'"]');popup.close();});};SGPBMediaButton.prototype.popupSelect2=function()
24
- {if(!jQuery('.js-sg-select2').length){return;}
25
- jQuery('select.js-sg-select2').each(function(){var type=jQuery(this).attr('data-select-type');var className=jQuery(this).attr('data-select-class');var options={width:'100%'};if(type==='ajax'){if(typeof SGPB_JS_PARAMS==='undefined'){return;}
26
- options=jQuery.extend(options,{minimumInputLength:1,ajax:{url:SGPB_JS_PARAMS.url,dataType:'json',delay:250,type:'POST',data:function(params){var searchKey=jQuery(this).attr('data-value-param');return{action:'select2_search_data',nonce_ajax:SGPB_JS_PARAMS.nonce,searchTerm:params.term,searchKey:searchKey};},processResults:function(data){return{results:jQuery.map(data.items,function(item){return{text:item.text,id:item.id}});};}}});}
27
- jQuery(this).sgpbselect2(options);});};jQuery(document).ready(function(){var mediaButton=new SGPBMediaButton();jQuery(document).on('tinymce-editor-init',function(event,editor){mediaButton.init();});});
1
+ function SGPBMediaButton(){}SGPBMediaButton.prototype.init=function(){this.tinymceButton(),this.openMediaButtonPopup()},SGPBMediaButton.prototype.tinymceButton=function(){var n=this;jQuery(document).on("tinymce-editor-setup",function(e,t){-1===t.settings.toolbar1.indexOf("popupBuilderEditorButton")&&(t.settings.toolbar1+=", popupBuilderEditorButton",t.addButton("popupBuilderEditorButton",{icon:"wp-menu-image dashicons-before dashicons-menu-icon-sgpb sgpb-tinymce-button",onclick:function(){n.mediaButtonPopup()}}))})},SGPBMediaButton.prototype.openMediaButtonPopup=function(){var t=this;jQuery(".sgpb-tinymce-button, .sgpb-insert-media-button-js, .sgpb-insert-js-variable").unbind("click").bind("click",function(e){e.preventDefault(),t.mediaButtonPopup(jQuery(this))})},SGPBMediaButton.prototype.mediaButtonPopup=function(e){var t=1,n=this,o=jQuery(e).attr("data-id")||"sgpb-hidden-media-popup",i=new PopupConfig;i.magicCall("setContentPadding",14),i.magicCall("setContentBorderRadius",4),i.magicCall("setContentBorderRadiusType","px"),i.magicCall("setContentBorderWidth",5),i.magicCall("setContentBorderColor","#506274"),i.magicCall("setShadowSpread",1),i.magicCall("setContentShadowBlur",4),i.magicCall("setContentShadowColor","#cccccc"),i.magicCall("setMinWidth",400),i.magicCall("setSrcElement",o),i.magicCall("setOverlayColor","black"),i.magicCall("setOverlayOpacity",40);var a=i.combineConfigObj(),r=new SGPopup(a);r.open(),jQuery(window).bind("sgpbDidOpen",function(){jQuery(".sgpb-insert-popup").addClass("js-sg-select2"),mediaButtonParams.currentPostType!==mediaButtonParams.popupBuilderPostType?(jQuery(".sgpb-insert-popup-event").addClass("js-sg-select2"),1===t&&n.popupSelect2(),t++,jQuery(".select2-container--below").remove(),n.popupSelect2()):(n.popupSelect2(),jQuery(".select2-container--below").remove()),n.closeMediaButtonPopup(r)}),n.insertPopup(r)},SGPBMediaButton.prototype.closeMediaButtonPopup=function(e){jQuery(".sgpb-close-media-popup-js").on("click",function(){e.close()})},SGPBMediaButton.prototype.insertPopup=function(r){var s=!1;mediaButtonParams.currentPostType===mediaButtonParams.popupBuilderPostType&&(s=!0),jQuery(".sgpb-insert-popup-js").unbind("click").bind("click",function(){var e,t,n,o="",i=jQuery(".sgpb-insert-popup").val(),a=void 0!==(a=jQuery(".sgpb-insert-popup-event").val())?' event="'+a+'"':s?' insidePopup="on"':"";if(""!==i&&null!==i){if("onLoad"===a&&!s)return window.send_to_editor('[sg_popup id="'+i+'"'+a+"][/sg_popup]"),void r.close();void 0!==tinyMCE.editors.content&&null===document.getElementById("content").offsetParent?o=tinyMCE.activeEditor.selection.getContent()?tinyMCE.activeEditor.selection.getContent():"":(e=document.getElementById("content"),void 0!==document.selection?(e.focus(),o=document.selection.createRange().text):null!=e&&void 0!==e.selectionStart&&(t=e.selectionStart,n=e.selectionEnd,o=e.value.substring(t,n))),window.send_to_editor('[sg_popup id="'+i+'"'+a+"]"+o+"[/sg_popup]"),r.close()}else r.close()}),jQuery(".sgpb-insert-js-variable-to-editor").unbind("click").bind("click",function(){var e=jQuery(".sgpb-popup-dialog-main-div-wrapper .sgpb-js-variable-selector").val(),t=jQuery(".sgpb-popup-dialog-main-div-wrapper .sgpb-js-variable-attribute").val();jQuery(".sgpb-js-variable-errors").addClass("sg-hide-element");var n=!0;if(""===e&&(n=!1,jQuery(".sgpb-js-variable-selector-error").removeClass("sg-hide-element")),""===t&&(n=!1,jQuery(".sgpb-js-variable-attribute-error").removeClass("sg-hide-element")),!n)return!1;jQuery(".sgpb-js-variable-errors").addClass("sg-hide-element"),window.send_to_editor('[pbvariable selector="'+e+'" attribute="'+t+'"]'),r.close()})},SGPBMediaButton.prototype.popupSelect2=function(){jQuery(".js-sg-select2").length&&jQuery("select.js-sg-select2").each(function(){var e=jQuery(this).attr("data-select-type"),t=(jQuery(this).attr("data-select-class"),{width:"100%"});if("ajax"===e){if("undefined"==typeof SGPB_JS_PARAMS)return;t=jQuery.extend(t,{minimumInputLength:1,ajax:{url:SGPB_JS_PARAMS.url,dataType:"json",delay:250,type:"POST",data:function(e){var t=jQuery(this).attr("data-value-param");return{action:"select2_search_data",nonce_ajax:SGPB_JS_PARAMS.nonce,searchTerm:e.term,searchKey:t}},processResults:function(e){return{results:jQuery.map(e.items,function(e){return{text:e.text,id:e.id}})}}}})}jQuery(this).sgpbselect2(t)})},jQuery(document).ready(function(){var n=new SGPBMediaButton;jQuery(document).on("tinymce-editor-init",function(e,t){n.init()})});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/Subscribers.js CHANGED
File without changes
public/js/Subscription.js CHANGED
File without changes
public/views/newsletter.php CHANGED
File without changes
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.5
11
  Requires PHP: 5.3.3
12
- Stable tag: 3.68.5
13
  License: GPLv2 or later
14
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
 
9
  Requires at least: 4.2
10
  Tested up to: 5.5
11
  Requires PHP: 5.3.3
12
+ Stable tag: 3.68.5.1
13
  License: GPLv2 or later
14
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15