Version Description
Download this release
Release Info
Developer | Sygnoos |
Plugin | Popup Builder – Responsive WordPress Pop up |
Version | 4.1.6 |
Comparing to | |
See all releases |
Code changes from version 4.1.5 to 4.1.6
- com/classes/MediaButton.php +4 -2
- com/classes/PopupLoader.php +1 -1
- com/classes/popups/SGPopup.php +1 -1
- com/config/configPackage.php +1 -1
- com/config/dataConfig.php +1 -1
- popup-builder.php +1 -1
- public/js/Backend.js +2 -1
- public/js/MediaButton.js +2 -1
- public/views/popupDesignView.php +1 -4
- readme.txt +7 -2
com/classes/MediaButton.php
CHANGED
@@ -97,10 +97,12 @@ class MediaButton
|
|
97 |
ob_end_clean();
|
98 |
|
99 |
$showCurrentUser = AdminHelper::showMenuForCurrentUser();
|
100 |
-
|
101 |
-
|
|
|
102 |
return '';
|
103 |
}
|
|
|
104 |
$buttonTitle = __('Insert popup', SG_POPUP_TEXT_DOMAIN);
|
105 |
|
106 |
$img = '<span class="dashicons dashicons-welcome-widgets-menus" style="padding: 3px 2px 0px 0px"></span>';
|
97 |
ob_end_clean();
|
98 |
|
99 |
$showCurrentUser = AdminHelper::showMenuForCurrentUser();
|
100 |
+
$screen = get_current_screen();
|
101 |
+
$hideInNewsletter = isset($screen) ? $screen->id === 'popupbuilder_page_sgpbNewsletter' : false;
|
102 |
+
if (!$showCurrentUser || $hideInNewsletter) {
|
103 |
return '';
|
104 |
}
|
105 |
+
|
106 |
$buttonTitle = __('Insert popup', SG_POPUP_TEXT_DOMAIN);
|
107 |
|
108 |
$img = '<span class="dashicons dashicons-welcome-widgets-menus" style="padding: 3px 2px 0px 0px"></span>';
|
com/classes/PopupLoader.php
CHANGED
@@ -75,7 +75,7 @@ class PopupLoader
|
|
75 |
if (!empty($popupFromUrl)) {
|
76 |
$defaultEvent = array();
|
77 |
$customDelay = $popupFromUrl->getOptionValue('sgpb-popup-delay');
|
78 |
-
$defaultEvent[] = \SgpbDataConfig::websiteDefaultConfigs()[0];
|
79 |
$defaultEvent[0]['value'] = 0;
|
80 |
if ($customDelay) {
|
81 |
$defaultEvent[0]['value'] = $customDelay;
|
75 |
if (!empty($popupFromUrl)) {
|
76 |
$defaultEvent = array();
|
77 |
$customDelay = $popupFromUrl->getOptionValue('sgpb-popup-delay');
|
78 |
+
$defaultEvent[] = \SgpbDataConfig::websiteDefaultConfigs()['events'][0];
|
79 |
$defaultEvent[0]['value'] = 0;
|
80 |
if ($customDelay) {
|
81 |
$defaultEvent[0]['value'] = $customDelay;
|
com/classes/popups/SGPopup.php
CHANGED
@@ -307,7 +307,7 @@ abstract class SGPopup
|
|
307 |
}
|
308 |
$savedData = apply_filters('sgpbPopupSavedData', $savedData);
|
309 |
|
310 |
-
if (empty($savedData)) {
|
311 |
return false;
|
312 |
}
|
313 |
|
307 |
}
|
308 |
$savedData = apply_filters('sgpbPopupSavedData', $savedData);
|
309 |
|
310 |
+
if (empty($savedData) && $currentPostStatus !== 'trash') {
|
311 |
return false;
|
312 |
}
|
313 |
|
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.6');
|
7 |
define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
|
8 |
define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
|
com/config/dataConfig.php
CHANGED
@@ -907,7 +907,7 @@ class SgpbDataConfig
|
|
907 |
$options[] = array('name' => 'sgpb-enable-popup-overlay', 'type' => 'checkbox', 'defaultValue' => 'on', 'min-version' => SGPB_POPUP_PRO_MIN_VERSION, 'min-pkg' => SGPB_POPUP_PKG_SILVER);
|
908 |
$options[] = array('name' => 'sgpb-overlay-custom-class', 'type' => 'text', 'defaultValue' => 'sgpb-popup-overlay');
|
909 |
$options[] = array('name' => 'sgpb-overlay-color', 'type' => 'text', 'defaultValue' => '');
|
910 |
-
$options[] = array('name' => 'sgpb-background-color', 'type' => 'text', 'defaultValue' => '');
|
911 |
$options[] = array('name' => 'sgpb-overlay-opacity', 'type' => 'text', 'defaultValue' => 0.8);
|
912 |
$options[] = array('name' => 'sgpb-content-opacity', 'type' => 'text', 'defaultValue' => 0.8);
|
913 |
$options[] = array('name' => 'sgpb-background-image', 'type' => 'text', 'defaultValue' => '');
|
907 |
$options[] = array('name' => 'sgpb-enable-popup-overlay', 'type' => 'checkbox', 'defaultValue' => 'on', 'min-version' => SGPB_POPUP_PRO_MIN_VERSION, 'min-pkg' => SGPB_POPUP_PKG_SILVER);
|
908 |
$options[] = array('name' => 'sgpb-overlay-custom-class', 'type' => 'text', 'defaultValue' => 'sgpb-popup-overlay');
|
909 |
$options[] = array('name' => 'sgpb-overlay-color', 'type' => 'text', 'defaultValue' => '');
|
910 |
+
$options[] = array('name' => 'sgpb-background-color', 'type' => 'text', 'defaultValue' => '#FFFFFF');
|
911 |
$options[] = array('name' => 'sgpb-overlay-opacity', 'type' => 'text', 'defaultValue' => 0.8);
|
912 |
$options[] = array('name' => 'sgpb-content-opacity', 'type' => 'text', 'defaultValue' => 0.8);
|
913 |
$options[] = array('name' => 'sgpb-background-image', 'type' => 'text', 'defaultValue' => '');
|
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.6
|
7 |
* Author: Sygnoos
|
8 |
* Author URI: https://sygnoos.com
|
9 |
* License: GPLv2
|
public/js/Backend.js
CHANGED
@@ -12,7 +12,8 @@ else if(element.attachEvent){element.attachEvent('on'+eventName,fn);}};SGPBBacke
|
|
12 |
SGPBBackend.prototype.changeTab=function(tab)
|
13 |
{jQuery('#sgpb-editor-options-tab-content-wrapper-'+tab).css('display','none');var i,tabContent,tabLinks;tabContent=jQuery('.sgpb-editor-options-tab-content-wrapper');tabContent.each(function(){jQuery(this).css('display','none');});tabLinks=jQuery('.sgpb-tab-link');tabLinks.each(function(){jQuery(this).removeClass('sgpb-tab-active');});jQuery('#sgpb-editor-options-tab-content-wrapper-'+tab).css('display','block');jQuery('.sgpb-tab-'+tab).addClass('sgpb-tab-active');this.rangeSlider();};SGPBBackend.prototype.downloadSystemInfoFile=function(){if(!jQuery('.sgpb-download-system-info').length){return false;}
|
14 |
jQuery('.sgpb-download-system-info').bind('click',function(){window.location.href=SGPB_JS_PARAMS.postUrl+'?action=sgpb_system_info';});};SGPBBackend.prototype.popupBuilderButton=function()
|
15 |
-
{var that=this;jQuery(document).on('tinymce-editor-setup',function(event,editor){if(editor.settings.
|
|
|
16 |
editor.settings.toolbar1+=', popupBuilderHtmlButton';editor.addButton('popupBuilderHtmlButton',{text:'Popup Builder Button',tooltip:'Popup Builder Custom HTML Button',icon:'wp-menu-image dashicons-before dashicons-menu-icon-sgpb-button',onclick:function(){that.mediaButtonPopup('sgpb-custom-button-wrapper');}});});};SGPBBackend.popups=[];SGPBBackend.prototype.mediaButtonPopup=function(hiddenDivId)
|
17 |
{var select2Init=1;var that=this;var popupConfigObj=new PopupConfig();popupConfigObj.magicCall('setContentPadding',14);popupConfigObj.magicCall('setContentBorderRadius',4);popupConfigObj.magicCall('setContentBorderRadiusType','px');popupConfigObj.magicCall('setScrollingEnabled',true);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('contents',document.getElementById(hiddenDivId));popupConfigObj.magicCall('setOverlayColor','black');popupConfigObj.magicCall('setOverlayOpacity',40);var config=popupConfigObj.combineConfigObj();var popup=new SGPopup(config);if(!SGPBBackend.popups.length){SGPBBackend.popups.push(popup);}
|
18 |
SGPBBackend.popups[0].open();jQuery(window).bind('sgpbDidOpen',function(){jQuery('.sgpb-insert-popup').addClass('js-sg-select2');if(select2Init===1){that.popupSelect2();}
|
12 |
SGPBBackend.prototype.changeTab=function(tab)
|
13 |
{jQuery('#sgpb-editor-options-tab-content-wrapper-'+tab).css('display','none');var i,tabContent,tabLinks;tabContent=jQuery('.sgpb-editor-options-tab-content-wrapper');tabContent.each(function(){jQuery(this).css('display','none');});tabLinks=jQuery('.sgpb-tab-link');tabLinks.each(function(){jQuery(this).removeClass('sgpb-tab-active');});jQuery('#sgpb-editor-options-tab-content-wrapper-'+tab).css('display','block');jQuery('.sgpb-tab-'+tab).addClass('sgpb-tab-active');this.rangeSlider();};SGPBBackend.prototype.downloadSystemInfoFile=function(){if(!jQuery('.sgpb-download-system-info').length){return false;}
|
14 |
jQuery('.sgpb-download-system-info').bind('click',function(){window.location.href=SGPB_JS_PARAMS.postUrl+'?action=sgpb_system_info';});};SGPBBackend.prototype.popupBuilderButton=function()
|
15 |
+
{var that=this;jQuery(document).on('tinymce-editor-setup',function(event,editor){if('sgpb-newsletter-text'===editor.settings.id){return;}
|
16 |
+
if(editor.settings.toolbar1.indexOf('popupBuilderHtmlButton')!==-1){return;}
|
17 |
editor.settings.toolbar1+=', popupBuilderHtmlButton';editor.addButton('popupBuilderHtmlButton',{text:'Popup Builder Button',tooltip:'Popup Builder Custom HTML Button',icon:'wp-menu-image dashicons-before dashicons-menu-icon-sgpb-button',onclick:function(){that.mediaButtonPopup('sgpb-custom-button-wrapper');}});});};SGPBBackend.popups=[];SGPBBackend.prototype.mediaButtonPopup=function(hiddenDivId)
|
18 |
{var select2Init=1;var that=this;var popupConfigObj=new PopupConfig();popupConfigObj.magicCall('setContentPadding',14);popupConfigObj.magicCall('setContentBorderRadius',4);popupConfigObj.magicCall('setContentBorderRadiusType','px');popupConfigObj.magicCall('setScrollingEnabled',true);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('contents',document.getElementById(hiddenDivId));popupConfigObj.magicCall('setOverlayColor','black');popupConfigObj.magicCall('setOverlayOpacity',40);var config=popupConfigObj.combineConfigObj();var popup=new SGPopup(config);if(!SGPBBackend.popups.length){SGPBBackend.popups.push(popup);}
|
19 |
SGPBBackend.popups[0].open();jQuery(window).bind('sgpbDidOpen',function(){jQuery('.sgpb-insert-popup').addClass('js-sg-select2');if(select2Init===1){that.popupSelect2();}
|
public/js/MediaButton.js
CHANGED
@@ -1,7 +1,8 @@
|
|
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.
|
|
|
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',0);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();}
|
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('sgpb-newsletter-text'===editor.settings.id){return;}
|
5 |
+
if(editor.settings.toolbar1.indexOf('popupBuilderEditorButton')!==-1){return;}
|
6 |
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()
|
7 |
{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)
|
8 |
{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',0);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();}
|
public/views/popupDesignView.php
CHANGED
@@ -156,11 +156,8 @@ if ($popupTheme == 'sgpb-theme-2' || $popupTheme == 'sgpb-theme-3') {
|
|
156 |
</div>
|
157 |
</div>
|
158 |
<?php if (empty($removedOptions['sgpb-show-background'])) :?>
|
159 |
-
<div class="formItem formItem_itemsCentered">
|
160 |
-
<span class="formItem__title"><?php esc_html_e('Background options', SG_POPUP_TEXT_DOMAIN)?>:</span>
|
161 |
-
</div>
|
162 |
<div class="formItem formItem_lessMargin">
|
163 |
-
<span class="formItem__title"><?php esc_html_e('
|
164 |
<div class="sgpb-onOffSwitch sgpb-onOffSwitch_smallLeftMargin">
|
165 |
<input type="checkbox" class="sgpb-onOffSwitch-checkbox js-checkbox-accordion" id="sgpb-show-background" name="sgpb-show-background" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-show-background')); ?>>
|
166 |
<label class="sgpb-onOffSwitch__label" for="sgpb-show-background">
|
156 |
</div>
|
157 |
</div>
|
158 |
<?php if (empty($removedOptions['sgpb-show-background'])) :?>
|
|
|
|
|
|
|
159 |
<div class="formItem formItem_lessMargin">
|
160 |
+
<span class="formItem__title"><?php esc_html_e('Background settings', SG_POPUP_TEXT_DOMAIN)?>:</span>
|
161 |
<div class="sgpb-onOffSwitch sgpb-onOffSwitch_smallLeftMargin">
|
162 |
<input type="checkbox" class="sgpb-onOffSwitch-checkbox js-checkbox-accordion" id="sgpb-show-background" name="sgpb-show-background" <?php echo esc_attr($popupTypeObj->getOptionValue('sgpb-show-background')); ?>>
|
163 |
<label class="sgpb-onOffSwitch__label" for="sgpb-show-background">
|
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: 5.9
|
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.5 =
|
150 |
* Improvement of code, some queries are optimized
|
151 |
* Bug fixed related to popup opening issues on iOS devices
|
@@ -525,4 +530,4 @@ Leave us a good review :)
|
|
525 |
|
526 |
== Upgrade Notice ==
|
527 |
|
528 |
-
Current Version of Popup Builder is 4.1.
|
8 |
Requires at least: 4.2
|
9 |
Tested up to: 5.9
|
10 |
Requires PHP: 5.3.3
|
11 |
+
Stable tag: 4.1.6
|
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.6 =
|
150 |
+
* Bug fixed related to draft popups that were not visible in trash
|
151 |
+
* Bug fixed related to Popup Builder's button that was visible in Newsletter
|
152 |
+
* Improvement of popup's background settings
|
153 |
+
|
154 |
= Version 4.1.5 =
|
155 |
* Improvement of code, some queries are optimized
|
156 |
* Bug fixed related to popup opening issues on iOS devices
|
530 |
|
531 |
== Upgrade Notice ==
|
532 |
|
533 |
+
Current Version of Popup Builder is 4.1.6
|