Popup Builder – Responsive WordPress Pop up - Version 3.69.6

Version Description

Current Version of Popup Builder is 3.69.6

Download this release

Release Info

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

Code changes from version 3.69.5 to 3.69.6

com/config/configPackage.php CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
3
  exit();
4
  }
5
 
6
- define('SG_POPUP_VERSION', '3.69.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.69.6');
7
  define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
8
  define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
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.69.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.69.6
7
  * Author: Sygnoos
8
  * Author URI: https://sygnoos.com
9
  * License: GPLv2
public/js/PopupBuilder.js CHANGED
@@ -584,7 +584,7 @@ SGPBPopup.prototype.forceCheckCurrentPopupType = function(popupObj)
584
  var popupConfig = new PopupConfig();
585
  var className = this.popupData['sgpb-type'];
586
  /* make the first letter of a string uppercase, then concat prefix (uppercase all prefix string) */
587
- className = popupConfig.prefix.toUpperCase() + className.firstToUpperCase();
588
  /* hasOwnProperty returns boolean value */
589
  if (window.hasOwnProperty(className)) {
590
  className = eval(className);
@@ -642,7 +642,7 @@ SGPBPopup.prototype.checkCurrentPopupType = function()
642
  }
643
 
644
  /* make the first letter of a string uppercase, then concat prefix (uppercase all prefix string) */
645
- className = popupConfig.prefix.toUpperCase() + className.firstToUpperCase();
646
  /* hasOwnProperty returns boolean value */
647
  if (window.hasOwnProperty(className)) {
648
  className = eval(className);
584
  var popupConfig = new PopupConfig();
585
  var className = this.popupData['sgpb-type'];
586
  /* make the first letter of a string uppercase, then concat prefix (uppercase all prefix string) */
587
+ className = popupConfig.prefix.toUpperCase() + PopupConfig.firstToUpperCase(className);
588
  /* hasOwnProperty returns boolean value */
589
  if (window.hasOwnProperty(className)) {
590
  className = eval(className);
642
  }
643
 
644
  /* make the first letter of a string uppercase, then concat prefix (uppercase all prefix string) */
645
+ className = popupConfig.prefix.toUpperCase() + PopupConfig.firstToUpperCase(className);
646
  /* hasOwnProperty returns boolean value */
647
  if (window.hasOwnProperty(className)) {
648
  className = eval(className);
public/js/PopupConfig.js CHANGED
@@ -1,16 +1,6 @@
1
- function PopupConfig()
2
- {this.prefix='sgpb';this.popupId;this.popupData;this.openDelay=0;this.currentObj={};this.allowed=true;this.showButton=true;this.buttonPosition='topRight';this.buttonInside=true;this.autoclose=false;this.overlayShouldClose=true;this.contentShouldClose=false;this.escShouldClose=true;this.closeButtonImage='img/close.png';this.popupTheme=1;this.popupType='html';this.closeButtonWidth=21;this.closeButtonHeight=21;this.closeButtonWidthType='px';this.closeButtonHeightType='px';this.closeButtonType='IMG';this.closeButtonText='Close';this.closeButtonDelay=0;this.overlayVisible=true;this.overlayColor='black';this.overlayOpacity=80;this.overlayAddClass='sgpb-popup-overlay sg-popup-overlay';this.contentPadding=8;this.zIndex=9999;this.contentShowBackground=true;this.contentBackgroundColor='#ffffff';this.contentBackgroundImage='';this.contentBackgroundMode='none';this.contentBackgroundPosition='';this.contentBorderStyle='solid';this.contentBorderRadius=0;this.contentBorderRadiusType='%';this.contentBorderColor='#f00';this.contentBorderWidth=0;this.boxBorderWidth=0;this.contentShadowColor='#ccc';this.contentShadowBlur=0;this.scrollingEnabled=false;this.shadowSpread=0;this.contentAddClass='class2';this.contents=false;this.positionRight=false;this.positionTop=false;this.positionBottom=false;this.positionLeft=false;this.width='-1';this.height='-1';this.maxWidth='-1';this.maxHeight='-1';this.minWidth='-1';this.minHeight='-1';this.srcElement='';this.openAnimationEffect='';this.openAnimationSpeed=0;this.openAnimationStatus=false;this.closeAnimationEffect='';this.closeAnimationSpeed=0;this.closeAnimationStatus=false;this.customShouldOpen=false;this.customShouldClose=false;}
3
- String.prototype.firstToLowerCase=function()
4
- {return this.charAt(0).toLowerCase()+this.slice(1);};String.prototype.firstToUpperCase=function()
5
- {return this.charAt(0).toUpperCase()+this.slice(1);};PopupConfig.prototype.magicCall=function(functionName,arrgname)
6
- {if(functionName.indexOf('get')!=-1){var param=functionName.replace(/^get/g,"").firstToLowerCase();return this[param];}
7
- else{var param=functionName.replace(/^set/g,"").firstToLowerCase();this[param]=arrgname;}};PopupConfig.prototype.isIE=function()
8
- {var ua=navigator.userAgent;var isIE=ua.indexOf('MSIE ')>-1||ua.indexOf('Trident/')>-1;return isIE;};PopupConfig.prototype.addCustomEvent=function(eventName,args)
9
- {if(this.isIE()){var event=document.createEvent('CustomEvent');event.initCustomEvent(eventName,true,true,args);}
10
- else{var event=new CustomEvent(eventName,{detail:args,bubbles:true,cancelable:true});}
11
- window.dispatchEvent(event);};PopupConfig.prototype.combineConfigObj=function()
12
- {var that=this;var eventSendArgs={'popupId':that.popupId,'popupData':that.popupData,'currentObj':that.currentObj};window.sgWindowOldWidth=window.innerWidth;window.sgWindowOldHeight=window.innerHeight;var config={popupId:that.popupId,openDelay:this.openDelay,popupTheme:this.popupTheme,popupType:this.popupType,closeBehavior:{allowed:this.allowed,showButton:this.showButton,buttonPosition:this.buttonPosition,buttonInside:this.buttonInside,autoclose:this.autoclose,overlayShouldClose:this.overlayShouldClose,contentShouldClose:this.contentShouldClose,escShouldClose:this.escShouldClose,right:this.closeButtonPositionRight,top:this.closeButtonPositionTop,bottom:this.closeButtonPositionBottom,left:this.closeButtonPositionLeft},openAnimation:{type:this.openAnimationEffect,speed:this.openAnimationSpeed,status:this.openAnimationStatus},closeAnimation:{type:this.closeAnimationEffect,speed:this.closeAnimationSpeed,status:this.closeAnimationStatus},closeButton:{data:this.buttonImage,width:this.closeButtonWidth,height:this.closeButtonHeight,widthType:this.closeButtonWidthType,heightType:this.closeButtonHeightType,type:this.closeButtonType,text:this.closeButtonText},overlay:{visible:this.overlayVisible,color:this.overlayColor,opacity:this.overlayOpacity,addClass:this.overlayAddClass},contentBox:{padding:this.contentPadding,zIndex:this.zIndex,showBackground:this.contentShowBackground,backgroundColor:this.contentBackgroundColor,backgroundImage:this.contentBackgroundImage,backgroundMode:this.contentBackgroundMode,backgroundPosition:this.contentBackgroundPosition,borderStyle:this.contentBorderStyle,borderRadius:this.contentBorderRadius,borderRadiusType:this.contentBorderRadiusType,borderColor:this.contentBorderColor,borderWidth:this.contentBorderWidth,boxBorderWidth:this.boxBorderWidth,shadowColor:this.contentShadowColor,shadowBlur:this.contentShadowBlur,scrollingEnabled:this.scrollingEnabled,shadowSpread:this.shadowSpread,addClass:this.contentAddClass},contents:this.contents,inline:this.srcElement,iframe:false,position:{right:this.positionRight,top:this.positionTop,bottom:this.positionBottom,left:this.positionLeft},sizingRanges:[{screenFrom:{width:0,height:0},screenTo:{width:300,height:3000},width:'100%',height:this.height,maxWidth:this.maxWidth,maxHeight:this.maxHeight,minWidth:this.minWidth,minHeight:this.minHeight},{screenFrom:{width:300,height:0},screenTo:{width:5000,height:3000},width:this.width,height:this.height,maxWidth:this.maxWidth,maxHeight:this.maxHeight,minWidth:this.minWidth,minHeight:this.minHeight}],shouldOpen:function(){return true;},willOpen:function(){that.addCustomEvent('sgpbWillOpen',eventSendArgs);},didOpen:function(args){if(that.isIE()){var finalArgs=[args,eventSendArgs],finalArgs=finalArgs.reduce(function(r,o){Object.keys(o).forEach(function(k){r[k]=o[k];});return r;},{});}
13
- else{var finalArgs=Object.assign(args,eventSendArgs);}
14
- that.addCustomEvent('sgpbDidOpen',finalArgs);},shouldClose:function(){return true;},willClose:function(){that.addCustomEvent('sgpbWillClose',eventSendArgs);},didClose:function(){that.addCustomEvent('sgpbDidClose',eventSendArgs);}};if(this.customShouldOpen){config.shouldOpen=this.customShouldOpen;}
15
- if(this.customShouldClose){config.shouldClose=this.customShouldClose;}
16
- return config;};var obj=new PopupConfig();
1
+ function PopupConfig(){this.prefix="sgpb";this.popupId;this.popupData;this.openDelay=0;this.currentObj={};this.allowed=!0;this.showButton=!0;this.buttonPosition="topRight";this.buttonInside=!0;this.autoclose=!1;this.overlayShouldClose=!0;this.contentShouldClose=!1;this.escShouldClose=!0;this.closeButtonImage="img/close.png";this.popupTheme=1;this.popupType="html";this.closeButtonWidth=21;this.closeButtonHeight=21;this.closeButtonWidthType="px";this.closeButtonHeightType="px";this.closeButtonType="IMG";this.closeButtonText="Close";this.closeButtonDelay=0;this.overlayVisible=!0;this.overlayColor="black";this.overlayOpacity=80;this.overlayAddClass="sgpb-popup-overlay sg-popup-overlay";this.contentPadding=8;this.zIndex=9999;this.contentShowBackground=!0;this.contentBackgroundColor="#ffffff";this.contentBackgroundImage="";this.contentBackgroundMode="none";this.contentBackgroundPosition="";this.contentBorderStyle="solid";this.contentBorderRadius=0;this.contentBorderRadiusType="%";this.contentBorderColor="#f00";this.contentBorderWidth=0;this.boxBorderWidth=0;this.contentShadowColor="#ccc";this.contentShadowBlur=0;this.scrollingEnabled=!1;this.shadowSpread=0;this.contentAddClass="class2";this.contents=!1;this.positionRight=!1;this.positionTop=!1;this.positionBottom=!1;this.positionLeft=!1;this.width="-1";this.height="-1";this.maxWidth="-1";this.maxHeight="-1";this.minWidth="-1";this.minHeight="-1";this.srcElement="";this.openAnimationEffect="";this.openAnimationSpeed=0;this.openAnimationStatus=!1;this.closeAnimationEffect="";this.closeAnimationSpeed=0;this.closeAnimationStatus=!1;this.customShouldOpen=!1;this.customShouldClose=!1}
2
+ PopupConfig.firstToUpperCase=function(string){return string[0].toUpperCase()+string.slice(1)};PopupConfig.firstToLowerCase=function(string){return string[0].toLowerCase()+string.slice(1)};PopupConfig.prototype.magicCall=function(functionName,arrgname){if(functionName.indexOf("get")!=-1){var param=functionName.replace(/^get/g,"");var param=PopupConfig.firstToLowerCase(functionName.replace(/^get/g,""));return this[param]}else{var param=PopupConfig.firstToLowerCase(functionName.replace(/^set/g,""));this[param]=arrgname}};PopupConfig.prototype.isIE=function(){var ua=navigator.userAgent;var isIE=ua.indexOf("MSIE ")>-1||ua.indexOf("Trident/")>-1;return isIE};PopupConfig.prototype.addCustomEvent=function(eventName,args){if(this.isIE()){var event=document.createEvent("CustomEvent");event.initCustomEvent(eventName,!0,!0,args)}else{var event=new CustomEvent(eventName,{detail:args,bubbles:!0,cancelable:!0})}
3
+ window.dispatchEvent(event)};PopupConfig.prototype.combineConfigObj=function(){var that=this;var eventSendArgs={popupId:that.popupId,popupData:that.popupData,currentObj:that.currentObj};window.sgWindowOldWidth=window.innerWidth;window.sgWindowOldHeight=window.innerHeight;var config={popupId:that.popupId,openDelay:this.openDelay,popupTheme:this.popupTheme,popupType:this.popupType,closeBehavior:{allowed:this.allowed,showButton:this.showButton,buttonPosition:this.buttonPosition,buttonInside:this.buttonInside,autoclose:this.autoclose,overlayShouldClose:this.overlayShouldClose,contentShouldClose:this.contentShouldClose,escShouldClose:this.escShouldClose,right:this.closeButtonPositionRight,top:this.closeButtonPositionTop,bottom:this.closeButtonPositionBottom,left:this.closeButtonPositionLeft,},openAnimation:{type:this.openAnimationEffect,speed:this.openAnimationSpeed,status:this.openAnimationStatus},closeAnimation:{type:this.closeAnimationEffect,speed:this.closeAnimationSpeed,status:this.closeAnimationStatus},closeButton:{data:this.buttonImage,width:this.closeButtonWidth,height:this.closeButtonHeight,widthType:this.closeButtonWidthType,heightType:this.closeButtonHeightType,type:this.closeButtonType,text:this.closeButtonText,},overlay:{visible:this.overlayVisible,color:this.overlayColor,opacity:this.overlayOpacity,addClass:this.overlayAddClass},contentBox:{padding:this.contentPadding,zIndex:this.zIndex,showBackground:this.contentShowBackground,backgroundColor:this.contentBackgroundColor,backgroundImage:this.contentBackgroundImage,backgroundMode:this.contentBackgroundMode,backgroundPosition:this.contentBackgroundPosition,borderStyle:this.contentBorderStyle,borderRadius:this.contentBorderRadius,borderRadiusType:this.contentBorderRadiusType,borderColor:this.contentBorderColor,borderWidth:this.contentBorderWidth,boxBorderWidth:this.boxBorderWidth,shadowColor:this.contentShadowColor,shadowBlur:this.contentShadowBlur,scrollingEnabled:this.scrollingEnabled,shadowSpread:this.shadowSpread,addClass:this.contentAddClass,},contents:this.contents,inline:this.srcElement,iframe:!1,position:{right:this.positionRight,top:this.positionTop,bottom:this.positionBottom,left:this.positionLeft},sizingRanges:[{screenFrom:{width:0,height:0},screenTo:{width:300,height:3000},width:"100%",height:this.height,maxWidth:this.maxWidth,maxHeight:this.maxHeight,minWidth:this.minWidth,minHeight:this.minHeight},{screenFrom:{width:300,height:0},screenTo:{width:5000,height:3000},width:this.width,height:this.height,maxWidth:this.maxWidth,maxHeight:this.maxHeight,minWidth:this.minWidth,minHeight:this.minHeight},],shouldOpen:function(){return!0},willOpen:function(){that.addCustomEvent("sgpbWillOpen",eventSendArgs)},didOpen:function(args){if(that.isIE()){var finalArgs=[args,eventSendArgs],finalArgs=finalArgs.reduce(function(r,o){Object.keys(o).forEach(function(k){r[k]=o[k]});return r},{})}else{var finalArgs=Object.assign(args,eventSendArgs)}
4
+ that.addCustomEvent("sgpbDidOpen",finalArgs)},shouldClose:function(){return!0},willClose:function(){that.addCustomEvent("sgpbWillClose",eventSendArgs)},didClose:function(){that.addCustomEvent("sgpbDidClose",eventSendArgs)},};if(this.customShouldOpen){config.shouldOpen=this.customShouldOpen}
5
+ if(this.customShouldClose){config.shouldClose=this.customShouldClose}
6
+ return config};var obj=new PopupConfig()
 
 
 
 
 
 
 
 
 
 
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.69.5
13
  License: GPLv2 or later
14
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
 
@@ -186,6 +186,10 @@ Go to the Popup Builder settings and set your desired options.
186
 
187
  == Changelog ==
188
 
 
 
 
 
189
  = Version 3.69.5 =
190
  * Improvement of "Display Rules" settings: Everywhere is auto selected which helps to prevent invisible popups.
191
  * Improvement of close button, image source is changed to url instead of base64.
@@ -1245,7 +1249,7 @@ Leave us a good review :)
1245
 
1246
  == Upgrade Notice ==
1247
 
1248
- Current Version of Popup Builder is 3.69.5
1249
 
1250
  == Other Notes ==
1251
 
9
  Requires at least: 4.2
10
  Tested up to: 5.5
11
  Requires PHP: 5.3.3
12
+ Stable tag: 3.69.6
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.69.6 =
190
+ * JavaScript improvements.
191
+ * Bug fixes.
192
+
193
  = Version 3.69.5 =
194
  * Improvement of "Display Rules" settings: Everywhere is auto selected which helps to prevent invisible popups.
195
  * Improvement of close button, image source is changed to url instead of base64.
1249
 
1250
  == Upgrade Notice ==
1251
 
1252
+ Current Version of Popup Builder is 3.69.6
1253
 
1254
  == Other Notes ==
1255