Popup Builder – Responsive WordPress Pop up - Version 3.67

Version Description

Current Version of Popup Builder is 3.67

Download this release

Release Info

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

Code changes from version 3.66 to 3.67

com/classes/Ajax.php CHANGED
@@ -295,7 +295,6 @@ class Ajax
295
  check_ajax_referer(SG_AJAX_NONCE, 'nonce');
296
  $formId = (int)sanitize_text_field($_POST['popupSubscriptionList']);
297
  $fileURL = sanitize_text_field($_POST['importListURL']);
298
-
299
  ob_start();
300
  require_once SG_POPUP_VIEWS_PATH.'importConfigView.php';
301
  $content = ob_get_contents();
295
  check_ajax_referer(SG_AJAX_NONCE, 'nonce');
296
  $formId = (int)sanitize_text_field($_POST['popupSubscriptionList']);
297
  $fileURL = sanitize_text_field($_POST['importListURL']);
 
298
  ob_start();
299
  require_once SG_POPUP_VIEWS_PATH.'importConfigView.php';
300
  $content = ob_get_contents();
com/classes/Filters.php CHANGED
@@ -50,9 +50,19 @@ class Filters
50
  add_filter('sgpbSystemInformation', array($this, 'systemInformation'), 10, 1);
51
  add_filter('plugin_action_links', array($this, 'pluginActionLinks'), 10, 4);
52
  add_filter('plugin_row_meta', array( $this, 'pluginRowMetas'), 10, 4);
 
53
  }
54
 
55
- public function pluginRowMetas($pluginMeta, $pluginFile, $pluginData, $status)
 
 
 
 
 
 
 
 
 
56
  {
57
  if (empty($pluginFile)) {
58
  return $pluginMeta;
@@ -74,7 +84,7 @@ class Filters
74
  return $pluginMeta;
75
  }
76
 
77
- public function pluginActionLinks($actions, $pluginFile, $pluginData, $context)
78
  {
79
  if (empty($pluginFile)) {
80
  return $actions;
@@ -83,7 +93,7 @@ class Filters
83
  $allExtensions = \SgpbDataConfig::allExtensionsKeys();
84
  $allExtensions = wp_list_pluck($allExtensions, 'pluginKey');
85
  $allExtensions[] = SG_POPUP_FILE_NAME;
86
-
87
  $settingPageUrl = admin_url().'edit.php?post_type='.SG_POPUP_POST_TYPE.'&page='.SG_POPUP_SETTINGS_PAGE;
88
 
89
  $links = array(
@@ -98,8 +108,8 @@ class Filters
98
  $links['upgrade'] = '<a style="color: #4364eb;" href="'.SG_POPUP_BUNDLE_URL.'" target="_blank">'.esc_html__('Upgrade', SG_POPUP_TEXT_DOMAIN).'</a>';
99
  }
100
  }
101
- $actions = array_merge($links, $actions);
102
- }
103
 
104
  return $actions;
105
  }
50
  add_filter('sgpbSystemInformation', array($this, 'systemInformation'), 10, 1);
51
  add_filter('plugin_action_links', array($this, 'pluginActionLinks'), 10, 4);
52
  add_filter('plugin_row_meta', array( $this, 'pluginRowMetas'), 10, 4);
53
+ add_filter( 'rank_math/sitemap/exclude_post_type', array($this, 'excludeRankMath'), 10, 2 );
54
  }
55
 
56
+ public function excludeRankMath($exclude, $type)
57
+ {
58
+ if ($type == SG_POPUP_POST_TYPE) {
59
+ $exclude = true;
60
+ }
61
+
62
+ return $exclude;
63
+ }
64
+
65
+ public function pluginRowMetas($pluginMeta, $pluginFile, $pluginData, $status)
66
  {
67
  if (empty($pluginFile)) {
68
  return $pluginMeta;
84
  return $pluginMeta;
85
  }
86
 
87
+ public function pluginActionLinks($actions, $pluginFile, $pluginData, $context)
88
  {
89
  if (empty($pluginFile)) {
90
  return $actions;
93
  $allExtensions = \SgpbDataConfig::allExtensionsKeys();
94
  $allExtensions = wp_list_pluck($allExtensions, 'pluginKey');
95
  $allExtensions[] = SG_POPUP_FILE_NAME;
96
+
97
  $settingPageUrl = admin_url().'edit.php?post_type='.SG_POPUP_POST_TYPE.'&page='.SG_POPUP_SETTINGS_PAGE;
98
 
99
  $links = array(
108
  $links['upgrade'] = '<a style="color: #4364eb;" href="'.SG_POPUP_BUNDLE_URL.'" target="_blank">'.esc_html__('Upgrade', SG_POPUP_TEXT_DOMAIN).'</a>';
109
  }
110
  }
111
+ $actions = array_merge($links, $actions);
112
+ }
113
 
114
  return $actions;
115
  }
com/classes/PopupLoader.php CHANGED
@@ -115,6 +115,9 @@ class PopupLoader
115
  }
116
  if (@$foundPopup->post_type == SG_POPUP_POST_TYPE) {
117
  $popup = SGPopup::find($foundPopup);
 
 
 
118
 
119
  $popup->setEvents($SGPB_DATA_CONFIG_ARRAY['events']['initialData'][0]);
120
  $this->addLoadablePopup($popup);
115
  }
116
  if (@$foundPopup->post_type == SG_POPUP_POST_TYPE) {
117
  $popup = SGPopup::find($foundPopup);
118
+ if (empty($popup)) {
119
+ return;
120
+ }
121
 
122
  $popup->setEvents($SGPB_DATA_CONFIG_ARRAY['events']['initialData'][0]);
123
  $this->addLoadablePopup($popup);
com/classes/popups/SubscriptionPopup.php CHANGED
@@ -226,19 +226,19 @@ class SubscriptionPopup extends SGPopup
226
  $submitStyles['height'] = AdminHelper::getCSSSafeSize($submitHeight);
227
  }
228
  if ($this->getFieldValue('sgpb-subs-btn-bg-color')) {
229
- $submitStyles['background-color'] = $this->getFieldValue('sgpb-subs-btn-bg-color');
230
  }
231
  if ($this->getFieldValue('sgpb-subs-btn-text-color')) {
232
  $submitStyles['color'] = $this->getFieldValue('sgpb-subs-btn-text-color');
233
  }
234
  if ($this->getFieldValue('sgpb-subs-btn-border-radius')) {
235
- $submitStyles['border-radius'] = AdminHelper::getCSSSafeSize($this->getFieldValue('sgpb-subs-btn-border-radius'));
236
  }
237
  if ($this->getFieldValue('sgpb-subs-btn-border-width')) {
238
- $submitStyles['border-width'] = AdminHelper::getCSSSafeSize($this->getFieldValue('sgpb-subs-btn-border-width'));
239
  }
240
  if ($this->getFieldValue('sgpb-subs-btn-border-color')) {
241
- $submitStyles['border-color'] = $this->getFieldValue('sgpb-subs-btn-border-color');
242
  }
243
  $submitStyles['text-transform'] = 'none !important';
244
  $submitStyles['border-style'] = 'solid';
226
  $submitStyles['height'] = AdminHelper::getCSSSafeSize($submitHeight);
227
  }
228
  if ($this->getFieldValue('sgpb-subs-btn-bg-color')) {
229
+ $submitStyles['background-color'] = $this->getFieldValue('sgpb-subs-btn-bg-color').' !important';
230
  }
231
  if ($this->getFieldValue('sgpb-subs-btn-text-color')) {
232
  $submitStyles['color'] = $this->getFieldValue('sgpb-subs-btn-text-color');
233
  }
234
  if ($this->getFieldValue('sgpb-subs-btn-border-radius')) {
235
+ $submitStyles['border-radius'] = AdminHelper::getCSSSafeSize($this->getFieldValue('sgpb-subs-btn-border-radius')).' !important';
236
  }
237
  if ($this->getFieldValue('sgpb-subs-btn-border-width')) {
238
+ $submitStyles['border-width'] = AdminHelper::getCSSSafeSize($this->getFieldValue('sgpb-subs-btn-border-width')).' !important';
239
  }
240
  if ($this->getFieldValue('sgpb-subs-btn-border-color')) {
241
+ $submitStyles['border-color'] = $this->getFieldValue('sgpb-subs-btn-border-color').' !important';
242
  }
243
  $submitStyles['text-transform'] = 'none !important';
244
  $submitStyles['border-style'] = 'solid';
com/config/configPackage.php CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
3
  exit();
4
  }
5
 
6
- define('SG_POPUP_VERSION', '3.66');
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.67');
7
  define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
8
  define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
com/helpers/ConfigDataHelper.php CHANGED
@@ -511,7 +511,8 @@ class ConfigDataHelper
511
  'countries' => __('Countries', SG_POPUP_TEXT_DOMAIN),
512
  'detect-by-url' => __('Detect by URL', SG_POPUP_TEXT_DOMAIN),
513
  'cookie-detection' => __('Cookie Detection', SG_POPUP_TEXT_DOMAIN),
514
- 'operation-system' => __('Operating System', SG_POPUP_TEXT_DOMAIN)
 
515
  );
516
 
517
  $data['closeButtonPositions'] = array(
511
  'countries' => __('Countries', SG_POPUP_TEXT_DOMAIN),
512
  'detect-by-url' => __('Detect by URL', SG_POPUP_TEXT_DOMAIN),
513
  'cookie-detection' => __('Cookie Detection', SG_POPUP_TEXT_DOMAIN),
514
+ 'operation-system' => __('Operating System', SG_POPUP_TEXT_DOMAIN),
515
+ 'browser-detection' => __('Web Browser', SG_POPUP_TEXT_DOMAIN)
516
  );
517
 
518
  $data['closeButtonPositions'] = array(
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.66
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.67
7
  * Author: Sygnoos
8
  * Author URI: https://sygnoos.com
9
  * License: GPLv2
public/views/conditionsView.php CHANGED
@@ -202,6 +202,22 @@ $defaultConditions = $defaultData['freeConditions'];
202
  <label><?php _e('Is at least', SG_POPUP_TEXT_DOMAIN);?></label>
203
  </div>
204
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
205
  <div class="row form-group">
206
  <div class="col-md-3">
207
  <?php echo AdminHelper::createSelectBox($defaultConditions, 'after-x', array('class' => 'js-sg-select2')); ?>
202
  <label><?php _e('Is at least', SG_POPUP_TEXT_DOMAIN);?></label>
203
  </div>
204
  </div>
205
+ <div class="row form-group">
206
+ <div class="col-md-3">
207
+ <?php echo AdminHelper::createSelectBox($defaultConditions, 'browser-detection', array('class' => 'js-sg-select2')); ?>
208
+ </div>
209
+ <div class="col-md-3">
210
+ <?php echo AdminHelper::createSelectBox(array('is' => __('Is', SG_POPUP_TEXT_DOMAIN), 'is-not' => __('Is not', SG_POPUP_TEXT_DOMAIN)), 'is', array('class' => 'js-sg-select2')); ?>
211
+ </div>
212
+ <div class="col-md-3">
213
+ <input type="text" class="sgpb-full-width-events form-control" value="<?php _e('Select browser', SG_POPUP_TEXT_DOMAIN);?>">
214
+ </div>
215
+ <div class="col-md-3">
216
+ <a href="<?php echo SG_POPUP_ADVANCED_TARGETING_URL;?>" target="_blank" class="btn btn-warning btn-xs sgpb-advanced-targeting-pro-label">
217
+ <?php _e('UNLOCK OPTION', SG_POPUP_TEXT_DOMAIN);?>
218
+ </a>
219
+ </div>
220
+ </div>
221
  <div class="row form-group">
222
  <div class="col-md-3">
223
  <?php echo AdminHelper::createSelectBox($defaultConditions, 'after-x', array('class' => 'js-sg-select2')); ?>
public/views/importConfigView.php CHANGED
@@ -52,4 +52,4 @@ $formData = array('' => 'Select Field') + AdminHelper::getSubscriptionColumnsBy
52
  <input type="hidden" class="sgpb-to-import-popup-id" value="<?php echo esc_attr($formId)?>">
53
  <input type="hidden" class="sgpb-imported-file-url" value="<?php echo esc_attr($fileURL)?>">
54
  </div>
55
- </div>
52
  <input type="hidden" class="sgpb-to-import-popup-id" value="<?php echo esc_attr($formId)?>">
53
  <input type="hidden" class="sgpb-imported-file-url" value="<?php echo esc_attr($fileURL)?>">
54
  </div>
55
+ </div>
public/views/optionsView.php CHANGED
@@ -324,19 +324,9 @@ if (!empty($removedOptions['content-copy-to-clipboard'])) {
324
  <?php endif; ?>
325
  <?php if ($autoClose && empty($removedOptions['sgpb-auto-close-time'])): ?>
326
  <div class="sg-full-width">
327
- <div class="row form-group">
328
- <label class="col-md-5 sgpb-static-padding-top sgpb-sub-option">
329
- <?php _e('Auto close after', SG_POPUP_TEXT_DOMAIN); ?>:
330
- </label>
331
- <div class="col-md-6">
332
- <input type="number" min="0" class="form-control sgpb-full-width-events" name="sgpb-auto-close-time" value="<?php echo $popupTypeObj->getOptionValue('sgpb-auto-close-time'); ?>">
333
- </div>
334
- <div class="col-md-1">
335
- <span class="sgpb-restriction-unit">
336
- <?php _e('Second(s)', SG_POPUP_TEXT_DOMAIN) ?>
337
- </span>
338
- </div>
339
- </div>
340
  </div>
341
  <?php endif; ?>
342
  <?php if (empty($removedOptions['sgpb-close-after-page-scroll'])): ?>
324
  <?php endif; ?>
325
  <?php if ($autoClose && empty($removedOptions['sgpb-auto-close-time'])): ?>
326
  <div class="sg-full-width">
327
+ <?php
328
+ do_action('autoCloseOptions', $popupTypeObj);
329
+ ?>
 
 
 
 
 
 
 
 
 
 
330
  </div>
331
  <?php endif; ?>
332
  <?php if (empty($removedOptions['sgpb-close-after-page-scroll'])): ?>
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.4
11
  Requires PHP: 5.3.3
12
- Stable tag: 3.66
13
  License: GPLv2 or later
14
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
 
@@ -185,6 +185,11 @@ Go to the Popup Builder settings and set your desired options.
185
 
186
  == Changelog ==
187
 
 
 
 
 
 
188
  = Version 3.66 =
189
  * Compatability issues fixed related to Gutenberg.
190
  * Minor improvements.
@@ -1171,7 +1176,7 @@ Leave us a good review :)
1171
 
1172
  == Upgrade Notice ==
1173
 
1174
- Current Version of Popup Builder is 3.66
1175
 
1176
  == Other Notes ==
1177
 
9
  Requires at least: 3.8
10
  Tested up to: 5.4
11
  Requires PHP: 5.3.3
12
+ Stable tag: 3.67
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.67 =
189
+ * The Popup Builder posts were removed from sitemaps which is being generated by WordPress SEO Plugin – Rank Math.
190
+ * The design of Subscription popup field issues (when some themes overwrite the colors) are fixed now.
191
+ * Compatibility issues in the PHP version are fixed.
192
+
193
  = Version 3.66 =
194
  * Compatability issues fixed related to Gutenberg.
195
  * Minor improvements.
1176
 
1177
  == Upgrade Notice ==
1178
 
1179
+ Current Version of Popup Builder is 3.67
1180
 
1181
  == Other Notes ==
1182