Popup Builder – Responsive WordPress Pop up - Version 3.0.9.1

Version Description

Current Version of Popup Builder is 3.0.9

Download this release

Release Info

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

Code changes from version 3.0.9 to 3.0.9.1

com/classes/Ajax.php CHANGED
@@ -436,7 +436,7 @@ class Ajax
436
  }
437
  }
438
  }
439
- $savedData['value'] = @$conditionConfig['paramsData'][$paramName];
440
  $savedData['hiddenOption'] = @$conditionConfig['hiddenOptionData'][$paramName];
441
 
442
  $builderObj->setPopupId($popupId);
436
  }
437
  }
438
  }
439
+ $savedData['value'] = array();
440
  $savedData['hiddenOption'] = @$conditionConfig['hiddenOptionData'][$paramName];
441
 
442
  $builderObj->setPopupId($popupId);
com/classes/Filters.php CHANGED
@@ -353,15 +353,6 @@ class Filters
353
  $jsFiles['jsFiles'][] = array('folderUrl' => SG_POPUP_JS_URL, 'filename' => 'PopupConfig.js');
354
  $jsFiles['jsFiles'][] = array('folderUrl' => SG_POPUP_JS_URL, 'filename' => 'MediaButton.js');
355
 
356
- $jsFiles['localizeData'][] = array(
357
- 'handle' => 'MediaButton.js',
358
- 'name' => 'SGPB_JS_PARAMS',
359
- 'data' => array(
360
- 'ajaxUrl' => admin_url('admin-ajax.php'),
361
- 'nonce' => wp_create_nonce(SG_AJAX_NONCE)
362
- )
363
- );
364
-
365
  $jsFiles['localizeData'][] = array(
366
  'handle' => 'Popup.js',
367
  'name' => 'sgpbPublicUrl',
@@ -373,7 +364,9 @@ class Filters
373
  'name' => 'mediaButtonParams',
374
  'data' => array(
375
  'currentPostType' => get_post_type(),
376
- 'popupBuilderPostType' => SG_POPUP_POST_TYPE
 
 
377
  )
378
  );
379
  }
353
  $jsFiles['jsFiles'][] = array('folderUrl' => SG_POPUP_JS_URL, 'filename' => 'PopupConfig.js');
354
  $jsFiles['jsFiles'][] = array('folderUrl' => SG_POPUP_JS_URL, 'filename' => 'MediaButton.js');
355
 
 
 
 
 
 
 
 
 
 
356
  $jsFiles['localizeData'][] = array(
357
  'handle' => 'Popup.js',
358
  'name' => 'sgpbPublicUrl',
364
  'name' => 'mediaButtonParams',
365
  'data' => array(
366
  'currentPostType' => get_post_type(),
367
+ 'popupBuilderPostType' => SG_POPUP_POST_TYPE,
368
+ 'ajaxUrl' => admin_url('admin-ajax.php'),
369
+ 'nonce' => wp_create_nonce(SG_AJAX_NONCE)
370
  )
371
  );
372
  }
com/config/configPackage.php CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
3
  exit();
4
  }
5
 
6
- define('SG_POPUP_VERSION', '3.0.9');
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.0.9.1');
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.0.9
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.0.9.1
7
  * Author: Sygnoos
8
  * Author URI: https://sygnoos.com
9
  * License: GPLv2
public/js/MediaButton.js CHANGED
@@ -19,5 +19,6 @@ if(jsVariableAttribute==''){valid=false;jQuery('.sgpb-js-variable-attribute-erro
19
  if(!valid){return false;}
20
  jQuery('.sgpb-js-variable-errors').addClass('sg-hide-element');window.send_to_editor('[pbvariable selector="'+jsVariableSelector+'" attribute="'+jsVariableAttribute+'"]');popup.close();});};SGPBMediaButton.prototype.popupSelect2=function()
21
  {if(!jQuery('.js-sg-select2').length){return;}
22
- 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'){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}})};}}});}
 
23
  jQuery(this).sgpbselect2(options);});};jQuery(document).ready(function(){var mediaButton=new SGPBMediaButton();mediaButton.init();});
19
  if(!valid){return false;}
20
  jQuery('.sgpb-js-variable-errors').addClass('sg-hide-element');window.send_to_editor('[pbvariable selector="'+jsVariableSelector+'" attribute="'+jsVariableAttribute+'"]');popup.close();});};SGPBMediaButton.prototype.popupSelect2=function()
21
  {if(!jQuery('.js-sg-select2').length){return;}
22
+ 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;}
23
+ 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}})};}}});}
24
  jQuery(this).sgpbselect2(options);});};jQuery(document).ready(function(){var mediaButton=new SGPBMediaButton();mediaButton.init();});
readme.txt CHANGED
@@ -5,9 +5,9 @@ Author: Popup Builder
5
  Donate link: https://popup-builder.com
6
  Tags: popup, pop up, wordpress popup, popup maker, exit popup, popup builder, wordpress popup plugin
7
  Requires at least: 3.8
8
- Tested up to: 4.9.8
9
  Requires PHP: 5.3.3
10
- Stable tag: trunk
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -174,6 +174,11 @@ Go to the Popup Builder settings and set your desired options.
174
 
175
  == Changelog ==
176
 
 
 
 
 
 
177
  = Version 3.0.9 =
178
  * Bug fixed connected to page scrolling when after popup appearance page srolled up.
179
  * Bug fixed for the admin side related to subscribers export list.
5
  Donate link: https://popup-builder.com
6
  Tags: popup, pop up, wordpress popup, popup maker, exit popup, popup builder, wordpress popup plugin
7
  Requires at least: 3.8
8
+ Tested up to: 5.0
9
  Requires PHP: 5.3.3
10
+ Stable tag: 3.0.9
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
174
 
175
  == Changelog ==
176
 
177
+ = Version 3.0.9.1 =
178
+ * Deafult values added for conditions section.
179
+ * Media button dublicate localization removed.
180
+ * Bug fixed related to page/post selection.
181
+
182
  = Version 3.0.9 =
183
  * Bug fixed connected to page scrolling when after popup appearance page srolled up.
184
  * Bug fixed for the admin side related to subscribers export list.