Popup Builder – Responsive WordPress Pop up - Version 3.48

Version Description

Current Version of Popup Builder is 3.46

Download this release

Release Info

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

Code changes from version 3.47 to 3.48

com/classes/Actions.php CHANGED
@@ -763,7 +763,9 @@ class Actions
763
  public function supportLinks()
764
  {
765
  if (SGPB_POPUP_PKG == SGPB_POPUP_PKG_FREE) {
766
- $this->customPostTypeObj->supportLinks();
 
 
767
  }
768
  }
769
 
763
  public function supportLinks()
764
  {
765
  if (SGPB_POPUP_PKG == SGPB_POPUP_PKG_FREE) {
766
+ if (method_exists($this->customPostTypeObj, 'supportLinks')) {
767
+ $this->customPostTypeObj->supportLinks();
768
+ }
769
  }
770
  }
771
 
com/classes/ConditionCreator.php CHANGED
@@ -113,10 +113,10 @@ class ConditionCreator
113
  ?>
114
  </div>
115
  <?php endif; ?>
116
- <?php if (($conditionName == 'hiddenOption')): ?>
117
  <?php $hiddenContent = self::getHiddenDataContent($conditionDataObj); ?>
118
- <div class="sg-hide-condition-row"><div id="<?php echo $idHiddenDiv;?>"><?php echo $hiddenContent; ?></div></div><?php
119
- endif; ?>
120
  <?php endforeach;?>
121
  <?php echo self::createConditionOperators($conditionDataObj, $idHiddenDiv); ?>
122
  </div>
113
  ?>
114
  </div>
115
  <?php endif; ?>
116
+
117
  <?php $hiddenContent = self::getHiddenDataContent($conditionDataObj); ?>
118
+ <div class="sg-hide-condition-row"><div id="<?php echo $idHiddenDiv;?>"><?php echo $hiddenContent; ?></div></div>
119
+
120
  <?php endforeach;?>
121
  <?php echo self::createConditionOperators($conditionDataObj, $idHiddenDiv); ?>
122
  </div>
com/classes/Filters.php CHANGED
@@ -3,6 +3,7 @@ namespace sgpb;
3
  use \WP_Query;
4
  use \SgpbPopupConfig;
5
  use sgpb\PopupBuilderActivePackage;
 
6
 
7
  class Filters
8
  {
3
  use \WP_Query;
4
  use \SgpbPopupConfig;
5
  use sgpb\PopupBuilderActivePackage;
6
+ use sgpb\SGPopup;
7
 
8
  class Filters
9
  {
com/classes/PopupChecker.php CHANGED
@@ -157,18 +157,16 @@ class PopupChecker
157
  }
158
  }
159
  }
 
160
  $permissiveOptions = $conditions['permissive'];
161
  if (!empty($permissiveOptions)) {
162
  foreach ($permissiveOptions as $permissiveOption) {
163
  $isPermissiveConditions = $this->isSatisfyForConditionsOptions($permissiveOption);
164
-
165
- if ($isPermissiveConditions) {
166
  return $isPermissiveConditions;
167
  }
168
 
169
  }
170
-
171
- return false;
172
  }
173
 
174
  return true;
@@ -180,8 +178,6 @@ class PopupChecker
180
  $paramName = $option['param'];
181
  $defaultStatus = false;
182
  $isAllowedConditionFilters = array();
183
-
184
- // proStartSilver
185
  if ($paramName == 'select_role') {
186
  return true;
187
  }
@@ -189,6 +185,7 @@ class PopupChecker
189
  if (!$defaultStatus && do_action('isAllowedForConditions', $option, $post)) {
190
  $defaultStatus = true;
191
  }
 
192
  $isAllowedConditionFilters = apply_filters('isAllowedConditionFilters', array($option));
193
  if (isset($isAllowedConditionFilters['status']) && $isAllowedConditionFilters['status'] === true) {
194
  $defaultStatus = true;
157
  }
158
  }
159
  }
160
+
161
  $permissiveOptions = $conditions['permissive'];
162
  if (!empty($permissiveOptions)) {
163
  foreach ($permissiveOptions as $permissiveOption) {
164
  $isPermissiveConditions = $this->isSatisfyForConditionsOptions($permissiveOption);
165
+ if (!$isPermissiveConditions) {
 
166
  return $isPermissiveConditions;
167
  }
168
 
169
  }
 
 
170
  }
171
 
172
  return true;
178
  $paramName = $option['param'];
179
  $defaultStatus = false;
180
  $isAllowedConditionFilters = array();
 
 
181
  if ($paramName == 'select_role') {
182
  return true;
183
  }
185
  if (!$defaultStatus && do_action('isAllowedForConditions', $option, $post)) {
186
  $defaultStatus = true;
187
  }
188
+
189
  $isAllowedConditionFilters = apply_filters('isAllowedConditionFilters', array($option));
190
  if (isset($isAllowedConditionFilters['status']) && $isAllowedConditionFilters['status'] === true) {
191
  $defaultStatus = true;
com/config/configPackage.php CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
3
  exit();
4
  }
5
 
6
- define('SG_POPUP_VERSION', '3.47');
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.48');
7
  define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
8
  define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
com/helpers/AdminHelper.php CHANGED
@@ -199,6 +199,10 @@ class AdminHelper
199
  if (isset($selectedValue)) {
200
  $savedData = $selectedValue;
201
  }
 
 
 
 
202
  if (!empty($attrs) && isset($attrs)) {
203
 
204
  foreach ($attrs as $attrName => $attrValue) {
@@ -208,6 +212,7 @@ class AdminHelper
208
  $attrString .= ''.$attrName.'="'.$attrValue.'" ';
209
  }
210
  }
 
211
  $input = "<input $attrString value=\"".esc_attr($savedData)."\">";
212
 
213
  return $input;
199
  if (isset($selectedValue)) {
200
  $savedData = $selectedValue;
201
  }
202
+ if (empty($savedData)) {
203
+ $savedData = '';
204
+ }
205
+
206
  if (!empty($attrs) && isset($attrs)) {
207
 
208
  foreach ($attrs as $attrName => $attrValue) {
212
  $attrString .= ''.$attrName.'="'.$attrValue.'" ';
213
  }
214
  }
215
+
216
  $input = "<input $attrString value=\"".esc_attr($savedData)."\">";
217
 
218
  return $input;
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.47
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.48
7
  * Author: Sygnoos
8
  * Author URI: https://sygnoos.com
9
  * License: GPLv2
readme.txt CHANGED
@@ -9,7 +9,7 @@ Tags: popup, pop up, wordpress popup, popup maker, exit popup, popup builder, wo
9
  Requires at least: 3.8
10
  Tested up to: 5.3
11
  Requires PHP: 5.3.3
12
- Stable tag: 3.47
13
  License: GPLv2 or later
14
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
 
@@ -185,6 +185,12 @@ Go to the Popup Builder settings and set your desired options.
185
 
186
  == Changelog ==
187
 
 
 
 
 
 
 
188
  = Version 3.47 =
189
  * Bug fixed related to onclick event.
190
 
9
  Requires at least: 3.8
10
  Tested up to: 5.3
11
  Requires PHP: 5.3.3
12
+ Stable tag: 3.48
13
  License: GPLv2 or later
14
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
 
185
 
186
  == Changelog ==
187
 
188
+ = Version 3.48 =
189
+ * Code improvements and minor bug fixes.
190
+ * Popup speed improvements.
191
+ * Popup triggering events synchronisation.
192
+ * PHP notices fixed.
193
+
194
  = Version 3.47 =
195
  * Bug fixed related to onclick event.
196