Popup Builder – Responsive WordPress Pop up - Version 3.4

Version Description

Current Version of Popup Builder is 3.4

Download this release

Release Info

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

Code changes from version 3.3 to 3.4

com/classes/Actions.php CHANGED
@@ -384,6 +384,9 @@ class Actions
384
 
385
  foreach ($userSavedRoles as $theRole) {
386
  $role = get_role($theRole);
 
 
 
387
 
388
  $role->add_cap('read');
389
  $role->add_cap('read_post');
@@ -454,7 +457,7 @@ class Actions
454
  $insideShortcodeKey = $popupId.$event;
455
 
456
  // for prevent infinity chain
457
- if (in_array($insideShortcodeKey, $this->insideShortcodes)) {
458
  $shortcodeContent = SGPopup::renderPopupContentShortcode($content, $argsId, $event, $args);
459
 
460
  return $shortcodeContent;
384
 
385
  foreach ($userSavedRoles as $theRole) {
386
  $role = get_role($theRole);
387
+ if (empty($role)) {
388
+ continue;
389
+ }
390
 
391
  $role->add_cap('read');
392
  $role->add_cap('read_post');
457
  $insideShortcodeKey = $popupId.$event;
458
 
459
  // for prevent infinity chain
460
+ if (is_array($this->insideShortcodes) && in_array($insideShortcodeKey, $this->insideShortcodes)) {
461
  $shortcodeContent = SGPopup::renderPopupContentShortcode($content, $argsId, $event, $args);
462
 
463
  return $shortcodeContent;
com/classes/Ajax.php CHANGED
@@ -85,9 +85,11 @@ class Ajax
85
  $popupType = $popupData['sgpb-type'];
86
  $popupClassName = SGPopup::getPopupClassNameFormType($popupType);
87
  $popupClassPath = SGPopup::getPopupTypeClassPath($popupType);
88
- require_once($popupClassPath.$popupClassName.'.php');
89
- $popupClassName = __NAMESPACE__.'\\'.$popupClassName;
90
- $popupClassName::create($popupData, '_preview', 1);
 
 
91
 
92
  wp_die();
93
  }
85
  $popupType = $popupData['sgpb-type'];
86
  $popupClassName = SGPopup::getPopupClassNameFormType($popupType);
87
  $popupClassPath = SGPopup::getPopupTypeClassPath($popupType);
88
+ if (file_exists($popupClassPath.$popupClassName.'.php')) {
89
+ require_once($popupClassPath.$popupClassName.'.php');
90
+ $popupClassName = __NAMESPACE__.'\\'.$popupClassName;
91
+ $popupClassName::create($popupData, '_preview', 1);
92
+ }
93
 
94
  wp_die();
95
  }
com/classes/ConditionCreator.php CHANGED
@@ -304,12 +304,13 @@ class ConditionCreator
304
  $savedParam = $saveData[$ruleName];
305
  }
306
  else if (!empty($saveData['hiddenOption'])) {
307
- $savedParam = $saveData['hiddenOption'][$ruleName];
308
  }
309
 
310
  $ruleElementData['ruleName'] = $ruleName;
311
  if ($ruleName == 'value' && !empty($saveData[$conditionDataObj->getTakeValueFrom()])) {
312
- $ruleName = $saveData[$conditionDataObj->getTakeValueFrom()];
 
313
  }
314
 
315
  $type = array();
304
  $savedParam = $saveData[$ruleName];
305
  }
306
  else if (!empty($saveData['hiddenOption'])) {
307
+ $savedParam = @$saveData['hiddenOption'][$ruleName];
308
  }
309
 
310
  $ruleElementData['ruleName'] = $ruleName;
311
  if ($ruleName == 'value' && !empty($saveData[$conditionDataObj->getTakeValueFrom()])) {
312
+ $index = $conditionDataObj->getTakeValueFrom();
313
+ $ruleName = $saveData[$index];
314
  }
315
 
316
  $type = array();
com/classes/Filters.php CHANGED
@@ -26,6 +26,7 @@ class Filters
26
  public function init()
27
  {
28
  add_filter('admin_url', array($this, 'addNewPostUrl'), 10, 2);
 
29
  add_filter('admin_menu', array($this, 'removeAddNewSubmenu'), 10, 2);
30
  add_filter('manage_'.SG_POPUP_POST_TYPE.'_posts_columns', array($this, 'popupsTableColumns'));
31
  add_filter('post_row_actions', array($this, 'quickRowLinksManager'), 10, 2);
@@ -45,6 +46,20 @@ class Filters
45
  add_filter('sgpbAdvancedOptionsDefaultValues', array($this, 'defaultAdvancedOptionsValues'), 10, 1);
46
  }
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  public function defaultAdvancedOptionsValues($options = array())
49
  {
50
  $enablePopupOverlay = PopupBuilderActivePackage::canUseOption('sgpb-enable-popup-overlay');
@@ -238,7 +253,11 @@ class Filters
238
  if (!empty($post) && $post->post_type == SG_POPUP_POST_TYPE) {
239
  $popupId = $post->ID;
240
  $targets = get_post_meta($popupId, 'sg_popup_target_preview', true);
241
- if ((isset($targets['sgpb-target'][0][0]['param']) && $targets['sgpb-target'][0][0]['param'] == 'not_rule') || !isset($targets['sgpb-target'][0][0]['param'])) {
 
 
 
 
242
  $previewLink = home_url();
243
  $previewLink .= '/?sg_popup_preview_id='.$popupId;
244
 
26
  public function init()
27
  {
28
  add_filter('admin_url', array($this, 'addNewPostUrl'), 10, 2);
29
+ add_filter('wpseo_sitemap_exclude_post_type', array($this, 'excludeSitemapsYoast'), 10, 2);
30
  add_filter('admin_menu', array($this, 'removeAddNewSubmenu'), 10, 2);
31
  add_filter('manage_'.SG_POPUP_POST_TYPE.'_posts_columns', array($this, 'popupsTableColumns'));
32
  add_filter('post_row_actions', array($this, 'quickRowLinksManager'), 10, 2);
46
  add_filter('sgpbAdvancedOptionsDefaultValues', array($this, 'defaultAdvancedOptionsValues'), 10, 1);
47
  }
48
 
49
+ public function excludeSitemapsYoast($exclude = false, $postType)
50
+ {
51
+ $postTypeObject = get_post_type_object($postType);
52
+ if (!is_object($postTypeObject)) {
53
+ return $exclude;
54
+ }
55
+
56
+ if ($postTypeObject->public === false || $postType == SG_POPUP_POST_TYPE) {
57
+ return true;
58
+ }
59
+
60
+ return $exclude;
61
+ }
62
+
63
  public function defaultAdvancedOptionsValues($options = array())
64
  {
65
  $enablePopupOverlay = PopupBuilderActivePackage::canUseOption('sgpb-enable-popup-overlay');
253
  if (!empty($post) && $post->post_type == SG_POPUP_POST_TYPE) {
254
  $popupId = $post->ID;
255
  $targets = get_post_meta($popupId, 'sg_popup_target_preview', true);
256
+ if (empty($targets['sgpb-target'][0])) {
257
+ return $previewLink .= '/?sg_popup_preview_id='.$popupId;
258
+ }
259
+ $targetParams = $targets['sgpb-target'][0][0]['param'];
260
+ if ((!empty($targetParams) && $targetParams == 'not_rule') || empty($targetParams)) {
261
  $previewLink = home_url();
262
  $previewLink .= '/?sg_popup_preview_id='.$popupId;
263
 
com/classes/PopupLoader.php CHANGED
@@ -51,6 +51,7 @@ class PopupLoader
51
  {
52
  if (isset($_GET['sg_popup_id']) || isset($_GET['sg_popup_preview_id'])) {
53
  $args = array();
 
54
  $getterId = isset($_GET['sg_popup_id']) ? (int)$_GET['sg_popup_id'] : 0;
55
  $previewedPopupId = isset($_GET['sg_popup_preview_id']) ? (int)$_GET['sg_popup_preview_id'] : 0;
56
  if (isset($_GET['sg_popup_preview_id'])) {
@@ -73,6 +74,10 @@ class PopupLoader
73
  }
74
  $popupFromUrl->setEvents($defaultEvent);
75
  $popupsToLoad[] = $popupFromUrl;
 
 
 
 
76
  }
77
  }
78
 
51
  {
52
  if (isset($_GET['sg_popup_id']) || isset($_GET['sg_popup_preview_id'])) {
53
  $args = array();
54
+ $previewPopups = array();
55
  $getterId = isset($_GET['sg_popup_id']) ? (int)$_GET['sg_popup_id'] : 0;
56
  $previewedPopupId = isset($_GET['sg_popup_preview_id']) ? (int)$_GET['sg_popup_preview_id'] : 0;
57
  if (isset($_GET['sg_popup_preview_id'])) {
74
  }
75
  $popupFromUrl->setEvents($defaultEvent);
76
  $popupsToLoad[] = $popupFromUrl;
77
+ $previewPopups[] = $popupFromUrl;
78
+ if (isset($_GET['sg_popup_preview_id'])) {
79
+ $popupsToLoad = $previewPopups;
80
+ }
81
  }
82
  }
83
 
com/classes/popups/SGPopup.php CHANGED
@@ -428,10 +428,10 @@ abstract class SGPopup
428
  if (strpos($key, 'sgpb') === 0) {
429
  $popupData[$key] = $value;
430
  }
431
- if (isset($value['name']) && strpos($value['name'], 'sgpb') === 0) {
432
  $popupData[$value['name']] = $value['value'];
433
  }
434
- else if (isset($value['name']) && strpos($value['name'], 'post_ID') === 0) {
435
  $popupData['sgpb-post-id'] = $value['value'];
436
  }
437
  }
@@ -456,6 +456,7 @@ abstract class SGPopup
456
  $obj->insertIntoSanitizedData(array('name' => $name,'value' => $sanitizedValue));
457
  }
458
  }
 
459
  $obj->setSavedPopupById($data['sgpb-post-id']);
460
  $result = $obj->save();
461
 
428
  if (strpos($key, 'sgpb') === 0) {
429
  $popupData[$key] = $value;
430
  }
431
+ if (is_array($value) && isset($value['name']) && strpos($value['name'], 'sgpb') === 0) {
432
  $popupData[$value['name']] = $value['value'];
433
  }
434
+ else if (is_array($value) && isset($value['name']) && strpos($value['name'], 'post_ID') === 0) {
435
  $popupData['sgpb-post-id'] = $value['value'];
436
  }
437
  }
456
  $obj->insertIntoSanitizedData(array('name' => $name,'value' => $sanitizedValue));
457
  }
458
  }
459
+
460
  $obj->setSavedPopupById($data['sgpb-post-id']);
461
  $result = $obj->save();
462
 
com/classes/popups/SubscriptionPopup.php CHANGED
@@ -193,52 +193,52 @@ class SubscriptionPopup extends SGPopup
193
  $formData = array();
194
  $inputStyles = array();
195
  $submitStyles = array();
196
- $emailPlaceholder = $this->getFieldValue('sgpb-subs-email-placeholder');
197
- if ($this->getFieldValue('sgpb-subs-text-width')) {
198
- $inputWidth = $this->getFieldValue('sgpb-subs-text-width');
199
  $inputStyles['width'] = AdminHelper::getCSSSafeSize($inputWidth);
200
  }
201
- if ($this->getFieldValue('sgpb-subs-text-height')) {
202
- $inputHeight = $this->getFieldValue('sgpb-subs-text-height');
203
  $inputStyles['height'] = AdminHelper::getCSSSafeSize($inputHeight);
204
  }
205
- if ($this->getFieldValue('sgpb-subs-text-border-width')) {
206
- $inputBorderWidth = $this->getFieldValue('sgpb-subs-text-border-width');
207
  $inputStyles['border-width'] = AdminHelper::getCSSSafeSize($inputBorderWidth);
208
  }
209
- if ($this->getFieldValue('sgpb-subs-text-border-color')) {
210
- $inputStyles['border-color'] = $this->getFieldValue('sgpb-subs-text-border-color');
211
  }
212
- if ($this->getFieldValue('sgpb-subs-text-bg-color')) {
213
- $inputStyles['background-color'] = $this->getFieldValue('sgpb-subs-text-bg-color');
214
  }
215
- if ($this->getFieldValue('sgpb-subs-text-color')) {
216
- $inputStyles['color'] = $this->getFieldValue('sgpb-subs-text-color');
217
  }
218
  $inputStyles['autocomplete'] = 'off';
219
 
220
- if ($this->getFieldValue('sgpb-subs-btn-width')) {
221
- $submitWidth = $this->getFieldValue('sgpb-subs-btn-width');
222
  $submitStyles['width'] = AdminHelper::getCSSSafeSize($submitWidth);
223
  }
224
- if ($this->getFieldValue('sgpb-subs-btn-height')) {
225
- $submitHeight = $this->getFieldValue('sgpb-subs-btn-height');
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';
@@ -257,10 +257,10 @@ class SubscriptionPopup extends SGPopup
257
  'errorMessageBoxStyles' => $inputStyles['width']
258
  );
259
 
260
- $firstNamePlaceholder = $this->getFieldValue('sgpb-subs-first-placeholder');
261
  $firstNameRequired = $this->getOptionValueFromSavedData('sgpb-subs-first-name-required');
262
  $firstNameRequired = (!empty($firstNameRequired)) ? true : false;
263
- $isShow = ($this->getFieldValue('sgpb-subs-first-name-status')) ? true : false;
264
 
265
  $formData['first-name'] = array(
266
  'isShow' => $isShow,
@@ -276,10 +276,10 @@ class SubscriptionPopup extends SGPopup
276
  'errorMessageBoxStyles' => $inputStyles['width']
277
  );
278
 
279
- $lastNamePlaceholder = $this->getFieldValue('sgpb-subs-last-placeholder');
280
  $lastNameRequired = $this->getOptionValueFromSavedData('sgpb-subs-last-name-required');
281
  $lastNameRequired = (!empty($lastNameRequired)) ? true : false;
282
- $isShow = ($this->getFieldValue('sgpb-subs-last-name-status')) ? true : false;
283
 
284
  $formData['last-name'] = array(
285
  'isShow' => $isShow,
@@ -312,7 +312,7 @@ class SubscriptionPopup extends SGPopup
312
  ),
313
  'style' => array('width' => $inputWidth),
314
  'label' => $gdprLabel,
315
- 'text' => $this->getFieldValue('sgpb-subs-gdpr-text'),
316
  'errorMessageBoxStyles' => $inputStyles['width']
317
  );
318
  /* GDPR checkbox */
@@ -333,8 +333,8 @@ class SubscriptionPopup extends SGPopup
333
  'style' => $hiddenChecker
334
  );
335
 
336
- $submitTitle = $this->getFieldValue('sgpb-subs-btn-title');
337
- $progressTitle = $this->getFieldValue('sgpb-subs-btn-progress-title');
338
  $formData['submit'] = array(
339
  'isShow' => true,
340
  'attrs' => array(
@@ -379,7 +379,7 @@ class SubscriptionPopup extends SGPopup
379
  if (empty($requiredMessage)) {
380
  $requiredMessage = SGPB_SUBSCRIPTION_VALIDATION_MESSAGE;
381
  }
382
-
383
  $rules = 'rules: { ';
384
  $messages = 'messages: { ';
385
 
193
  $formData = array();
194
  $inputStyles = array();
195
  $submitStyles = array();
196
+ $emailPlaceholder = $this->getOptionValue('sgpb-subs-email-placeholder');
197
+ if ($this->getOptionValue('sgpb-subs-text-width')) {
198
+ $inputWidth = $this->getOptionValue('sgpb-subs-text-width');
199
  $inputStyles['width'] = AdminHelper::getCSSSafeSize($inputWidth);
200
  }
201
+ if ($this->getOptionValue('sgpb-subs-text-height')) {
202
+ $inputHeight = $this->getOptionValue('sgpb-subs-text-height');
203
  $inputStyles['height'] = AdminHelper::getCSSSafeSize($inputHeight);
204
  }
205
+ if ($this->getOptionValue('sgpb-subs-text-border-width')) {
206
+ $inputBorderWidth = $this->getOptionValue('sgpb-subs-text-border-width');
207
  $inputStyles['border-width'] = AdminHelper::getCSSSafeSize($inputBorderWidth);
208
  }
209
+ if ($this->getOptionValue('sgpb-subs-text-border-color')) {
210
+ $inputStyles['border-color'] = $this->getOptionValue('sgpb-subs-text-border-color');
211
  }
212
+ if ($this->getOptionValue('sgpb-subs-text-bg-color')) {
213
+ $inputStyles['background-color'] = $this->getOptionValue('sgpb-subs-text-bg-color');
214
  }
215
+ if ($this->getOptionValue('sgpb-subs-text-color')) {
216
+ $inputStyles['color'] = $this->getOptionValue('sgpb-subs-text-color');
217
  }
218
  $inputStyles['autocomplete'] = 'off';
219
 
220
+ if ($this->getOptionValue('sgpb-subs-btn-width')) {
221
+ $submitWidth = $this->getOptionValue('sgpb-subs-btn-width');
222
  $submitStyles['width'] = AdminHelper::getCSSSafeSize($submitWidth);
223
  }
224
+ if ($this->getOptionValue('sgpb-subs-btn-height')) {
225
+ $submitHeight = $this->getOptionValue('sgpb-subs-btn-height');
226
  $submitStyles['height'] = AdminHelper::getCSSSafeSize($submitHeight);
227
  }
228
+ if ($this->getOptionValue('sgpb-subs-btn-bg-color')) {
229
+ $submitStyles['background-color'] = $this->getOptionValue('sgpb-subs-btn-bg-color');
230
  }
231
+ if ($this->getOptionValue('sgpb-subs-btn-text-color')) {
232
+ $submitStyles['color'] = $this->getOptionValue('sgpb-subs-btn-text-color');
233
  }
234
+ if ($this->getOptionValue('sgpb-subs-btn-border-radius')) {
235
+ $submitStyles['border-radius'] = AdminHelper::getCSSSafeSize($this->getOptionValue('sgpb-subs-btn-border-radius'));
236
  }
237
+ if ($this->getOptionValue('sgpb-subs-btn-border-width')) {
238
+ $submitStyles['border-width'] = AdminHelper::getCSSSafeSize($this->getOptionValue('sgpb-subs-btn-border-width'));
239
  }
240
+ if ($this->getOptionValue('sgpb-subs-btn-border-color')) {
241
+ $submitStyles['border-color'] = $this->getOptionValue('sgpb-subs-btn-border-color');
242
  }
243
  $submitStyles['text-transform'] = 'none !important';
244
  $submitStyles['border-style'] = 'solid';
257
  'errorMessageBoxStyles' => $inputStyles['width']
258
  );
259
 
260
+ $firstNamePlaceholder = $this->getOptionValue('sgpb-subs-first-placeholder');
261
  $firstNameRequired = $this->getOptionValueFromSavedData('sgpb-subs-first-name-required');
262
  $firstNameRequired = (!empty($firstNameRequired)) ? true : false;
263
+ $isShow = ($this->getOptionValue('sgpb-subs-first-name-status')) ? true : false;
264
 
265
  $formData['first-name'] = array(
266
  'isShow' => $isShow,
276
  'errorMessageBoxStyles' => $inputStyles['width']
277
  );
278
 
279
+ $lastNamePlaceholder = $this->getOptionValue('sgpb-subs-last-placeholder');
280
  $lastNameRequired = $this->getOptionValueFromSavedData('sgpb-subs-last-name-required');
281
  $lastNameRequired = (!empty($lastNameRequired)) ? true : false;
282
+ $isShow = ($this->getOptionValue('sgpb-subs-last-name-status')) ? true : false;
283
 
284
  $formData['last-name'] = array(
285
  'isShow' => $isShow,
312
  ),
313
  'style' => array('width' => $inputWidth),
314
  'label' => $gdprLabel,
315
+ 'text' => $this->getOptionValue('sgpb-subs-gdpr-text'),
316
  'errorMessageBoxStyles' => $inputStyles['width']
317
  );
318
  /* GDPR checkbox */
333
  'style' => $hiddenChecker
334
  );
335
 
336
+ $submitTitle = $this->getOptionValue('sgpb-subs-btn-title');
337
+ $progressTitle = $this->getOptionValue('sgpb-subs-btn-progress-title');
338
  $formData['submit'] = array(
339
  'isShow' => true,
340
  'attrs' => array(
379
  if (empty($requiredMessage)) {
380
  $requiredMessage = SGPB_SUBSCRIPTION_VALIDATION_MESSAGE;
381
  }
382
+
383
  $rules = 'rules: { ';
384
  $messages = 'messages: { ';
385
 
com/config/config.php CHANGED
@@ -34,7 +34,7 @@ class SgpbPopupConfig
34
  self::addDefine('SG_POPUP_VIDEO_URL', 'https://popup-builder.com/downloads/video/');
35
  self::addDefine('SG_POPUP_SOCIAL_URL', 'https://popup-builder.com/downloads/social/');
36
  self::addDefine('SG_POPUP_COUNTDOWN_URL', 'https://popup-builder.com/downloads/countdown/');
37
- self::addDefine('SG_POPUP_RESTRICTION_URL', 'https://popup-builder.com/downloads/age-restriction-popup/');
38
  self::addDefine('SG_POPUP_CONTACT_FORM_URL', 'https://popup-builder.com/downloads/contact-popup/');
39
  self::addDefine('SG_POPUP_INACTIVITY_URL', 'https://popup-builder.com/downloads/inactivity/');
40
  self::addDefine('SG_POPUP_SCHEDULING_URL', 'https://popup-builder.com/downloads/scheduling/');
@@ -50,6 +50,7 @@ class SgpbPopupConfig
50
  self::addDefine('SGPB_EDD_PLUGIN_URL', 'https://popup-builder.com/downloads/easy-digital-downloads-edd-popup/');
51
  self::addDefine('SGPB_PDF_PLUGIN_URL', 'https://popup-builder.com/downloads/pdf-popup/');
52
  self::addDefine('SGPB_GAMIFICATION_PLUGIN_URL', 'https://popup-builder.com/downloads/pick-a-gift-popup/');
 
53
  self::addDefine('SG_POPUP_ADMIN_URL', admin_url());
54
  self::addDefine('SG_POPUP_BUILDER_URL', plugins_url().'/'.SG_POPUP_FOLDER_NAME.'/');
55
  self::addDefine('SG_POPUP_PLUGIN_PATH', WP_PLUGIN_DIR.'/');
34
  self::addDefine('SG_POPUP_VIDEO_URL', 'https://popup-builder.com/downloads/video/');
35
  self::addDefine('SG_POPUP_SOCIAL_URL', 'https://popup-builder.com/downloads/social/');
36
  self::addDefine('SG_POPUP_COUNTDOWN_URL', 'https://popup-builder.com/downloads/countdown/');
37
+ self::addDefine('SG_POPUP_RESTRICTION_URL', 'https://popup-builder.com/downloads/yes-no-button-popup/');
38
  self::addDefine('SG_POPUP_CONTACT_FORM_URL', 'https://popup-builder.com/downloads/contact-popup/');
39
  self::addDefine('SG_POPUP_INACTIVITY_URL', 'https://popup-builder.com/downloads/inactivity/');
40
  self::addDefine('SG_POPUP_SCHEDULING_URL', 'https://popup-builder.com/downloads/scheduling/');
50
  self::addDefine('SGPB_EDD_PLUGIN_URL', 'https://popup-builder.com/downloads/easy-digital-downloads-edd-popup/');
51
  self::addDefine('SGPB_PDF_PLUGIN_URL', 'https://popup-builder.com/downloads/pdf-popup/');
52
  self::addDefine('SGPB_GAMIFICATION_PLUGIN_URL', 'https://popup-builder.com/downloads/pick-a-gift-popup/');
53
+ self::addDefine('SGPB_AGE_VERIFICATION_PLUGIN_URL', 'https://popup-builder.com/downloads/age-restriction-popup/');
54
  self::addDefine('SG_POPUP_ADMIN_URL', admin_url());
55
  self::addDefine('SG_POPUP_BUILDER_URL', plugins_url().'/'.SG_POPUP_FOLDER_NAME.'/');
56
  self::addDefine('SG_POPUP_PLUGIN_PATH', WP_PLUGIN_DIR.'/');
com/config/configPackage.php CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
3
  exit();
4
  }
5
 
6
- define('SG_POPUP_VERSION', '3.3');
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.4');
7
  define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
8
  define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
com/config/dataConfig.php CHANGED
@@ -499,6 +499,12 @@ class SgpbDataConfig
499
  {
500
  $keys = array();
501
 
 
 
 
 
 
 
502
  $keys[] = array(
503
  'label' => __('Gamification', SG_POPUP_TEXT_DOMAIN),
504
  'pluginKey' => 'popupbuilder-gamification/PopupBuilderGamification.php',
499
  {
500
  $keys = array();
501
 
502
+ $keys[] = array(
503
+ 'label' => __('Age Restriction', SG_POPUP_TEXT_DOMAIN),
504
+ 'pluginKey' => 'popupbuilder-age-verification/PopupBuilderAgeverification.php',
505
+ 'key' => 'ageVerification',
506
+ 'url' => SGPB_AGE_VERIFICATION_PLUGIN_URL
507
+ );
508
  $keys[] = array(
509
  'label' => __('Gamification', SG_POPUP_TEXT_DOMAIN),
510
  'pluginKey' => 'popupbuilder-gamification/PopupBuilderGamification.php',
com/helpers/AdminHelper.php CHANGED
@@ -823,6 +823,10 @@ class AdminHelper
823
  $currentPostType = $post_type;
824
  }
825
 
 
 
 
 
826
  return $currentPostType;
827
  }
828
 
823
  $currentPostType = $post_type;
824
  }
825
 
826
+ if (empty($currentPostType) && !empty($_GET['post'])) {
827
+ $currentPostType = get_post_type($_GET['post']);
828
+ }
829
+
830
  return $currentPostType;
831
  }
832
 
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.3
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.4
7
  * Author: Sygnoos
8
  * Author URI: https://sygnoos.com
9
  * License: GPLv2
public/css/SubscriptionForm.css CHANGED
@@ -51,35 +51,6 @@
51
  }
52
 
53
  /*Subscription form messages*/
54
- .sgpb-alert {
55
- padding: 15px;
56
- border: 1px solid transparent;
57
- border-radius: 4px;
58
- text-align: center;
59
- }
60
-
61
- .sgpb-alert-info {
62
- color: #31708f;
63
- background-color: #d9edf7;
64
- border-color: #bce8f1;
65
- }
66
-
67
- .sgpb-alert-success {
68
- color: #3c763d;
69
- background-color: #dff0d8;
70
- border-color: #d6e9c6;
71
- }
72
-
73
- .sgpb-alert-danger {
74
- color: #a94442;
75
- background-color: #f2dede;
76
- border-color: #ebccd1;
77
- }
78
-
79
- .sgpb-alert p {
80
- margin-bottom: 0px;
81
- }
82
-
83
  #sgpb-gdpr-field-label {
84
  margin: 4px 0 0 0;
85
  max-width: 5% !important;
51
  }
52
 
53
  /*Subscription form messages*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  #sgpb-gdpr-field-label {
55
  margin: 4px 0 0 0;
56
  max-width: 5% !important;
public/css/fonts/popupbuilder-button-icon.eot ADDED
Binary file
public/css/fonts/popupbuilder-button-icon.svg ADDED
@@ -0,0 +1 @@
 
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" ><svg xmlns="http://www.w3.org/2000/svg"><metadata>Generated by Glyphter</metadata><defs><font id="Glyphter" horiz-adv-x="0"><font-face units-per-em="1024" ascent="1024" descent="0" font-family="Glyphter" font-weight="normal" /><missing-glyph horiz-adv-x="0" /><glyph unicode="&#x0042;" d="M699.228,262.795C699.228,262.795,274.551,262.795,274.551,262.795C215.551,262.795,167.71,310.635,167.71,369.636C167.71,369.636,167.71,369.636,167.71,369.636C167.71,428.637,215.551,476.477,274.551,476.477C274.551,476.477,699.228,476.477,699.228,476.477C758.228,476.477,806.069,428.637,806.069,369.636C806.069,369.636,806.069,369.636,806.069,369.636C806.069,310.61,758.228,262.795,699.228,262.795C699.228,262.795,699.228,262.795,699.228,262.795M1024,783.203C1024,832.708,983.89,872.818,934.386,872.818C896.528,872.818,864.148,849.32,851.042,816.121C851.042,816.121,0,816.121,0,816.121C0,816.121,0,151.5,0,151.5C0,151.5,975.136,151.5,975.136,151.5C975.136,151.5,975.136,703.393,975.136,703.393C1004.137,718.213,1024,748.392,1024,783.203C1024,783.203,1024,783.203,1024,783.203M949.539,177.097C949.539,177.097,25.597,177.097,25.597,177.097C25.597,177.097,25.597,790.524,25.597,790.524C25.597,790.524,844.285,790.524,844.285,790.524C844.387,788.4,844.566,786.301,844.797,784.202C844.797,783.869,844.771,783.536,844.771,783.203C844.771,734.851,883.064,695.458,930.981,693.666C936.305,692.821,941.757,692.36,947.286,692.36C948.029,692.36,948.771,692.36,949.513,692.386C949.513,692.386,949.513,177.097,949.513,177.097C949.513,177.097,949.539,177.097,949.539,177.097M970.759,737.616C968.634,737.385,966.817,740.892,964.897,742.786C955.349,752.257,945.802,761.753,936.382,771.352C934.693,773.067,933.822,773.246,932.031,771.429C921.229,760.422,910.248,749.595,899.395,738.639C898.115,737.36,897.347,736.976,896.118,738.588C894.864,740.252,892.023,741.429,892.125,743.221C892.228,744.783,894.685,746.19,896.144,747.649C906.204,757.709,916.237,767.794,926.348,777.777C927.833,779.236,927.705,779.978,926.323,781.36C915.239,792.341,904.284,803.425,893.175,814.38C891.741,815.788,891.869,816.479,893.226,817.657C894.762,819.013,896.093,820.6,897.654,822.187C906.255,813.561,914.727,805.089,923.2,796.591C926.22,793.57,929.343,790.601,932.261,787.478C933.694,785.942,934.514,785.891,936.049,787.427C946.954,798.459,957.96,809.363,968.864,820.396C970.221,821.778,971.04,822.008,972.32,820.421C973.6,818.834,976.236,817.426,976.211,815.993C976.185,814.483,973.702,812.998,972.243,811.565C962.184,801.505,952.175,791.42,942.039,781.412C940.503,779.901,940.606,779.108,942.09,777.623C953.302,766.54,964.411,755.354,975.571,744.22C975.929,743.861,976.262,743.477,976.62,743.093C974.649,741.122,972.858,737.846,970.759,737.616C970.759,737.616,970.759,737.616,970.759,737.616" class="icon-Gor"/></font></defs></svg>
public/css/fonts/popupbuilder-button-icon.ttf ADDED
Binary file
public/css/fonts/popupbuilder-button-icon.woff ADDED
Binary file
public/css/popupAdminStyles.css CHANGED
@@ -411,6 +411,19 @@
411
  background-color: #ffdd73 !important;
412
  }
413
 
 
 
 
 
 
 
 
 
 
 
 
 
 
414
  .sgpb-extensions-wrapper .sgpb-ageRestriction-div {
415
  background-color: #ffdd73 !important;
416
  }
@@ -1927,6 +1940,40 @@ input:checked + .sgpb-slider:before {
1927
  padding-left: 5px !important;
1928
  }
1929
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1930
  /*banner start*/
1931
  .sgpb-banner-logo-link {
1932
  display: block;
@@ -2212,7 +2259,7 @@ input:checked + .sgpb-slider:before {
2212
 
2213
  .subscribers-wrapper .tablenav.top,
2214
  .subscribers-wrapper .tablenav.bottom {
2215
- margin-left: -8px !important;
2216
  }
2217
 
2218
  .mce-widget .dashicons-menu-icon-sgpb:before {
411
  background-color: #ffdd73 !important;
412
  }
413
 
414
+ .ageVerification-popup,
415
+ .ageVerification-popup-pro {
416
+ background-image: url('../img/ageVerificationTypeIcon.png');
417
+ }
418
+
419
+ .sgpb-ageVerification-div {
420
+ background-color: #d22215 !important;
421
+ }
422
+
423
+ .sgpb-ageVerification-div:hover {
424
+ background-color: #f34133 !important;
425
+ }
426
+
427
  .sgpb-extensions-wrapper .sgpb-ageRestriction-div {
428
  background-color: #ffdd73 !important;
429
  }
1940
  padding-left: 5px !important;
1941
  }
1942
 
1943
+ @font-face {
1944
+ font-family: 'popupbuilder-button-icon';
1945
+ src: url('fonts/popupbuilder-button-icon.eot');
1946
+ src: url('fonts/popupbuilder-button-icon.eot?#iefix') format('embedded-opentype'),
1947
+ url('fonts/popupbuilder-button-icon.woff') format('woff'),
1948
+ url('fonts/popupbuilder-button-icon.ttf') format('truetype'),
1949
+ url('fonts/popupbuilder-button-icon.svg#popupbuilder-button-icon') format('svg');
1950
+ font-weight: normal;
1951
+ font-style: normal;
1952
+ }
1953
+
1954
+ [class*='dashicons-menu-icon-sgpb-button']:before {
1955
+ display: inline-block;
1956
+ font-family: 'popupbuilder-button-icon';
1957
+ font-style: normal;
1958
+ font-weight: normal;
1959
+ line-height: 1;
1960
+ -webkit-font-smoothing: antialiased;
1961
+ -moz-osx-font-smoothing: grayscale
1962
+ }
1963
+
1964
+ .dashicons-menu-icon-sgpb-button:before {
1965
+ content:'\0042';
1966
+ margin: 0px 9px 0px -5px !important;
1967
+ }
1968
+
1969
+ .dashicons-menu-icon-sgpb-button {
1970
+ padding-left: 5px !important;
1971
+ }
1972
+
1973
+ .dashicons-menu-icon-sgpb-button + span {
1974
+ vertical-align: middle !important;
1975
+ }
1976
+
1977
  /*banner start*/
1978
  .sgpb-banner-logo-link {
1979
  display: block;
2259
 
2260
  .subscribers-wrapper .tablenav.top,
2261
  .subscribers-wrapper .tablenav.bottom {
2262
+ margin-left: -8px !important;
2263
  }
2264
 
2265
  .mce-widget .dashicons-menu-icon-sgpb:before {
public/css/theme.css CHANGED
@@ -13,7 +13,7 @@ iframe{margin:0
13
  h1{text-align:center}.sgpb-video-error-message-wrapper h3:last-child{padding:0}#sgpb-yes-button,#sgpb-no-button{text-transform:none !important}.sg-fb-buttons-wrapper{text-align:center;min-height:25px}@media only screen and (max-width: 600px){.sgpb-scroll-wrapper{overflow:auto !important}}@media (min-width: 600px){.sgpb-fb-wrapper-standard{min-width:450px !important;overflow:hidden}}@media (min-width: 521px) and (max-width: 599px){.sgpb-fb-wrapper-standard{min-width:450px !important;overflow:scroll}#sg-facebook-like{overflow:hidden}}@media (max-width: 520px){.sgpb-fb-wrapper-standard{min-width:380px !important;max-width:380px !important;overflow:hidden}.sgpb-fb-wrapper-standard .fb-like{max-width:380px !important}#sg-facebook-like{overflow:hidden}}@media (max-width: 420px){.sgpb-fb-wrapper-standard{min-width:350px !important;max-width:350px !important;overflow:hidden}}@media (max-width: 400px){.sgpb-fb-wrapper-standard{min-width:330px !important;max-width:330px !important;overflow:scroll}}@media (max-width: 320px){.sgpb-fb-wrapper-standard{min-width:270px !important;max-width:270px !important;overflow:scroll}}.sg-hide-element{display:none}a.sg-show-popup{cursor:pointer !important}.sgpb-cursor-pointer{cursor:pointer}/*/*/.sgpb-theme-1-content{border-radius:6px;padding-bottom:0;box-shadow:rgba(0, 0, 0, 0.6) 0px 0px 0px 14px !important;border-bottom-width:35px !important;border-bottom-color:#fff !important}.sgpb-theme-4-content{padding-bottom:0;border-radius:7px !important;border-bottom-width:35px !important;border-bottom-color:#fff !important}.sgpb-popup-close-button-4{height:auto !important}.sgpb-popup-dialog-main-div-theme-wrapper-5{border:8px
14
  solid #555;outline:1px
15
  solid #8A8A8A;background-color:#707070}.sgpb-theme-5-content{border-radius:3px !important;box-shadow:0 0 10px #222 !important}.sgpb-theme-6-content{box-shadow:#646161 0px 0px 8px 3px !important}.sgpb-popup-close-button-1:hover,.sgpb-popup-close-button-2:hover,.sgpb-popup-close-button-5:hover{opacity:0.8}.sgpb-popup-close-button-3:hover{opacity:0.9}.sgpb-popup-close-button-2{border-radius:2px}.sgpb-main-image-content-wrapper
16
- img{height:auto;max-width:100%}.sgpb-overflow-hidden{overflow:hidden !important;height:100%}.sgpb-popup-content-direction-right{direction:rtl !important}.sgpb-popup-content-direction-right input[type="url"],
17
  .sgpb-popup-content-direction-right input[type="email"],
18
  .sgpb-popup-content-direction-right .sg-fb-buttons-wrapper,
19
  .sgpb-popup-content-direction-right .sgpb-alert{text-align:right !important}/**/@charset "UTF-8";.sg-animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:none;animation-fill-mode:none}.sg-animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.sg-animated.hinge{-webkit-animation-duration:2s;animation-duration:2s}.sg-animated.bounceIn,.sg-animated.bounceOut,.sg-animated.flipOutX,.sg-animated.flipOutY{-webkit-animation-duration: .75s;animation-duration: .75s}@-webkit-keyframes
@@ -166,4 +166,6 @@ slideOutLeft{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0
166
  slideOutRight{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0)}}@keyframes
167
  slideOutRight{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes
168
  slideOutUp{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0)}}@keyframes
169
- slideOutUp{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.sgpb-slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}.sgpb-iframe-spiner{background:url('data:image/gif;base64,R0lGODlh8ABAAaIHALa2tmNjY8XFxdbW1oyMjO/v7+bm5v///yH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjY0QTk5QUJDNTA1RDExRTA4NTIwQzAwMjQyRkFEMkEyIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjY0QTk5QUJENTA1RDExRTA4NT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GKeWUVFY5ZAIAIfkEBQoABwAsAAAAAPAAQAEAA/94utz+MMpJq7046827/2AojmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvter/gsHhMLpvP6LR6zW673/C4fE6v2+/4vH7P7/v/gIGCg4SFhoeIiYqLjI2Oj5CRkpOUlZaXmJmam5ydnp+goaKjpKWmp6ipqqusra6vsLGys7S1tre4ubq7vL2+v8DBwsPExcbHyMnKy8zNzs/Q0dLT1NXW19jZ2tvc3d7f4OHi4+Tl5ufo6err7O3u7/Dx8vP09fb3+Pn6+/z9/v8AAwocSLCgwYMIEypcyLCEgAAQAciDSBEivAIVKRZ4NyD/I0QB5goMMOCgo8cBJVFyy+jAY4AGDymCzOYSZsaZCkxWVGkN48kGOnkqcPnyms6KEi0QxWbAJU4KS7HVvBBzp7aMJDFkTKptAICnGAwAALCxodmzlAoQWEuAxNix0tSyXSvi7dtoc9kK5eDVLtxnedmC8HsXcOC2Hwj/dXZ474a+fqHJnVs3crTJiCsvRsu58yKRWTUUMFB2m4DTpzUMWL3aNGrUGFjL1vYadegJImW3xlag9unbEgzo3o3Nt4DSCgz8bpBbN23fMGsDHe4aNgPjYJ13Q74AOzzv78CHly7vtefz6NOrX8++vfv38OPLn0+/vv37+PPr38+/v///ZAAGKOCABBZo4IEIJqjgggw26OCDEEYo4YQUVmjhhRhmqOGGHHbo4YcghijiiCSWaOKJKKao4oostujiizDGKOOMNNZo44045qjjjjz26OOPQAYp5JBEFmnkkUgmqeSSTDbJYwIAOw==') center center no-repeat}[id*="__lpform_sgpb-"]{position:fixed !important}
 
 
13
  h1{text-align:center}.sgpb-video-error-message-wrapper h3:last-child{padding:0}#sgpb-yes-button,#sgpb-no-button{text-transform:none !important}.sg-fb-buttons-wrapper{text-align:center;min-height:25px}@media only screen and (max-width: 600px){.sgpb-scroll-wrapper{overflow:auto !important}}@media (min-width: 600px){.sgpb-fb-wrapper-standard{min-width:450px !important;overflow:hidden}}@media (min-width: 521px) and (max-width: 599px){.sgpb-fb-wrapper-standard{min-width:450px !important;overflow:scroll}#sg-facebook-like{overflow:hidden}}@media (max-width: 520px){.sgpb-fb-wrapper-standard{min-width:380px !important;max-width:380px !important;overflow:hidden}.sgpb-fb-wrapper-standard .fb-like{max-width:380px !important}#sg-facebook-like{overflow:hidden}}@media (max-width: 420px){.sgpb-fb-wrapper-standard{min-width:350px !important;max-width:350px !important;overflow:hidden}}@media (max-width: 400px){.sgpb-fb-wrapper-standard{min-width:330px !important;max-width:330px !important;overflow:scroll}}@media (max-width: 320px){.sgpb-fb-wrapper-standard{min-width:270px !important;max-width:270px !important;overflow:scroll}}.sg-hide-element{display:none}a.sg-show-popup{cursor:pointer !important}.sgpb-cursor-pointer{cursor:pointer}/*/*/.sgpb-theme-1-content{border-radius:6px;padding-bottom:0;box-shadow:rgba(0, 0, 0, 0.6) 0px 0px 0px 14px !important;border-bottom-width:35px !important;border-bottom-color:#fff !important}.sgpb-theme-4-content{padding-bottom:0;border-radius:7px !important;border-bottom-width:35px !important;border-bottom-color:#fff !important}.sgpb-popup-close-button-4{height:auto !important}.sgpb-popup-dialog-main-div-theme-wrapper-5{border:8px
14
  solid #555;outline:1px
15
  solid #8A8A8A;background-color:#707070}.sgpb-theme-5-content{border-radius:3px !important;box-shadow:0 0 10px #222 !important}.sgpb-theme-6-content{box-shadow:#646161 0px 0px 8px 3px !important}.sgpb-popup-close-button-1:hover,.sgpb-popup-close-button-2:hover,.sgpb-popup-close-button-5:hover{opacity:0.8}.sgpb-popup-close-button-3:hover{opacity:0.9}.sgpb-popup-close-button-2{border-radius:2px}.sgpb-main-image-content-wrapper
16
+ img{height:auto;max-width:100%}.sgpb-overflow-hidden{overflow:hidden !important}.sgpb-popup-content-direction-right{direction:rtl !important}.sgpb-popup-content-direction-right input[type="url"],
17
  .sgpb-popup-content-direction-right input[type="email"],
18
  .sgpb-popup-content-direction-right .sg-fb-buttons-wrapper,
19
  .sgpb-popup-content-direction-right .sgpb-alert{text-align:right !important}/**/@charset "UTF-8";.sg-animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:none;animation-fill-mode:none}.sg-animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.sg-animated.hinge{-webkit-animation-duration:2s;animation-duration:2s}.sg-animated.bounceIn,.sg-animated.bounceOut,.sg-animated.flipOutX,.sg-animated.flipOutY{-webkit-animation-duration: .75s;animation-duration: .75s}@-webkit-keyframes
166
  slideOutRight{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0)}}@keyframes
167
  slideOutRight{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes
168
  slideOutUp{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0)}}@keyframes
169
+ slideOutUp{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.sgpb-slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}.sgpb-iframe-spiner{background:url('data:image/gif;base64,R0lGODlh8ABAAaIHALa2tmNjY8XFxdbW1oyMjO/v7+bm5v///yH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3Nyw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0tSyXSvi7dtoc9kK5eDVLtxnedmC8HsXcOC2Hwj/dXZ474a+fqHJnVs3crTJiCsvRsu58yKRWTUUMFB2m4DTpzUMWL3aNGrUGFjL1vYadegJImW3xlag9unbEgzo3o3Nt4DSCgz8bpBbN23fMGsDHe4aNgPjYJ13Q74AOzzv78CHly7vtefz6NOrX8++vfv38OPLn0+/vv37+PPr38+/v///ZAAGKOCABBZo4IEIJqjgggw26OCDEEYo4YQUVmjhhRhmqOGGHHbo4YcghijiiCSWaOKJKKao4oostujiizDGKOOMNNZo44045qjjjjz26OOPQAYp5JBEFmnkkUgmqeSSTDbJYwIAOw==') center center no-repeat}.sgpb-alert{padding:15px;border:1px
170
+ solid transparent;border-radius:4px;text-align:center}.sgpb-alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.sgpb-alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.sgpb-alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.sgpb-alert
171
+ p{margin-bottom:0px}[id*="__lpform_sgpb-"]{position:fixed !important}
public/img/ageVerificationTypeIcon.png ADDED
Binary file
public/js/Backend.js CHANGED
@@ -89,7 +89,9 @@ SGPBBackend.prototype.popupBuilderButton = function()
89
  }
90
  editor.settings.toolbar1 += ', popupBuilderHtmlButton';
91
  editor.addButton('popupBuilderHtmlButton', {
92
- text: 'Popup Builder Custom Button',
 
 
93
  onclick: function () {
94
  that.mediaButtonPopup('sgpb-custom-button-wrapper');
95
  }
89
  }
90
  editor.settings.toolbar1 += ', popupBuilderHtmlButton';
91
  editor.addButton('popupBuilderHtmlButton', {
92
+ text: 'Popup Builder Button',
93
+ tooltip: 'Popup Builder Custom HTML Button',
94
+ icon: 'wp-menu-image dashicons-before dashicons-menu-icon-sgpb-button',
95
  onclick: function () {
96
  that.mediaButtonPopup('sgpb-custom-button-wrapper');
97
  }
public/js/PopupBuilder.js CHANGED
@@ -116,7 +116,16 @@ SGPBPopup.listeners = function () {
116
  });
117
 
118
  sgAddEvent(window, 'sgpbDidOpen', function(e) {
119
- window.dispatchEvent(new Event('resize'));
 
 
 
 
 
 
 
 
 
120
  SGPBPopup.mobileSafariAdditionalSettings(e);
121
  var args = e.detail;
122
  var popupOptions = args.popupData;
@@ -1038,6 +1047,12 @@ SGPBPopup.prototype.themeCustomizations = function()
1038
  var overlayColor = popupData['sgpb-overlay-color'];
1039
  var popupTheme = popupData['sgpb-popup-themes'];
1040
  var popupType = popupData['sgpb-type'];
 
 
 
 
 
 
1041
 
1042
  if (typeof showContentBackground == 'undefined') {
1043
  contentBgColor = '';
@@ -1083,6 +1098,9 @@ SGPBPopup.prototype.themeCustomizations = function()
1083
  }
1084
 
1085
  popupConfig.magicCall('setOverlayVisible', SGPBPopup.varToBool(popupData['sgpb-enable-popup-overlay']));
 
 
 
1086
  if (SGPBPopup.varToBool(popupData['sgpb-enable-popup-overlay'])) {
1087
  popupConfig.magicCall('setOverlayAddClass', overlayClasses + ' ' + popupData['sgpb-overlay-custom-class']);
1088
  var overlayOpacity = popupData['sgpb-overlay-opacity'] || 0.8;
@@ -1217,7 +1235,13 @@ SGPBPopup.prototype.replaceWithCustomShortcode = function(popupId)
1217
  continue;
1218
  }
1219
 
1220
- var replaceName = jQuery(searchAttributes['selector']).attr(searchAttributes['attribute']);
 
 
 
 
 
 
1221
 
1222
  if (typeof replaceName == 'undefined') {
1223
  that.replaceShortCode(currentSearchData['replaceString'], '', popupId);
@@ -2372,6 +2396,7 @@ SgpbEventListener.prototype.sgpbLoad = function(listenerObj, eventData)
2372
  {
2373
  var timeout = parseInt(eventData.value);
2374
  var popupObj = listenerObj.getPopupObj();
 
2375
  timeout = timeout*1000;
2376
  var timerId,
2377
  repetitiveTimeout = null;
@@ -2383,6 +2408,7 @@ SgpbEventListener.prototype.sgpbLoad = function(listenerObj, eventData)
2383
 
2384
  var openOnLoadPopup = function() {
2385
  setTimeout(function() {
 
2386
  popupObj.prepareOpen();
2387
  }, timeout);
2388
  };
@@ -2395,7 +2421,6 @@ SgpbEventListener.prototype.sgpbLoad = function(listenerObj, eventData)
2395
  sgAddEvent(window, 'sgpbDidClose', function(e) {
2396
  var args = e.detail;
2397
  var options = popupObj.getPopupData();
2398
-
2399
  if (SGPBPopup.varToBool(eventData['repetitive'])) {
2400
  var intervalTime = parseInt(eventData['value'])*1000;
2401
  repetitiveTimeout = setInterval(function() {
116
  });
117
 
118
  sgAddEvent(window, 'sgpbDidOpen', function(e) {
119
+ /*for mobile landscape issue*/
120
+ if (typeof (Event) === 'function') {
121
+ var event = new Event('resize');
122
+ }
123
+ else {
124
+ var event = document.createEvent('Event');
125
+ event.initEvent('resize', true, true);
126
+ }
127
+ window.dispatchEvent(event);
128
+
129
  SGPBPopup.mobileSafariAdditionalSettings(e);
130
  var args = e.detail;
131
  var popupOptions = args.popupData;
1047
  var overlayColor = popupData['sgpb-overlay-color'];
1048
  var popupTheme = popupData['sgpb-popup-themes'];
1049
  var popupType = popupData['sgpb-type'];
1050
+ if (typeof popupData['sgpb-overlay-custom-class'] == 'undefined') {
1051
+ popupData['sgpb-overlay-custom-class'] = 'sgpb-popup-overlay';
1052
+ }
1053
+ if (typeof popupData['sgpb-popup-themes'] == 'undefined') {
1054
+ popupTheme = 'sgpb-theme-2';
1055
+ }
1056
 
1057
  if (typeof showContentBackground == 'undefined') {
1058
  contentBgColor = '';
1098
  }
1099
 
1100
  popupConfig.magicCall('setOverlayVisible', SGPBPopup.varToBool(popupData['sgpb-enable-popup-overlay']));
1101
+ if (typeof SgpbRecentSalesPopupType != 'undefined') {
1102
+ popupConfig.magicCall('setOverlayVisible', false);
1103
+ }
1104
  if (SGPBPopup.varToBool(popupData['sgpb-enable-popup-overlay'])) {
1105
  popupConfig.magicCall('setOverlayAddClass', overlayClasses + ' ' + popupData['sgpb-overlay-custom-class']);
1106
  var overlayOpacity = popupData['sgpb-overlay-opacity'] || 0.8;
1235
  continue;
1236
  }
1237
 
1238
+ if (searchAttributes['attribute'] == 'text') {
1239
+ var replaceName = jQuery(searchAttributes['selector']).text();
1240
+ }
1241
+ else {
1242
+ var replaceName = jQuery(searchAttributes['selector']).attr(searchAttributes['attribute']);
1243
+ }
1244
+
1245
 
1246
  if (typeof replaceName == 'undefined') {
1247
  that.replaceShortCode(currentSearchData['replaceString'], '', popupId);
2396
  {
2397
  var timeout = parseInt(eventData.value);
2398
  var popupObj = listenerObj.getPopupObj();
2399
+ var popupOptions = popupObj.getPopupData();
2400
  timeout = timeout*1000;
2401
  var timerId,
2402
  repetitiveTimeout = null;
2408
 
2409
  var openOnLoadPopup = function() {
2410
  setTimeout(function() {
2411
+ jQuery(window).trigger('sgpbLoadEvent', popupOptions);
2412
  popupObj.prepareOpen();
2413
  }, timeout);
2414
  };
2421
  sgAddEvent(window, 'sgpbDidClose', function(e) {
2422
  var args = e.detail;
2423
  var options = popupObj.getPopupData();
 
2424
  if (SGPBPopup.varToBool(eventData['repetitive'])) {
2425
  var intervalTime = parseInt(eventData['value'])*1000;
2426
  repetitiveTimeout = setInterval(function() {
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.2
11
  Requires PHP: 5.3.3
12
- Stable tag: 3.3
13
  License: GPLv2 or later
14
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
 
@@ -185,9 +185,18 @@ Go to the Popup Builder settings and set your desired options.
185
 
186
  == Changelog ==
187
 
 
 
 
 
 
 
 
 
 
188
  = Version 3.3 =
189
  * Popup preview fixes.
190
- * Improvement: If the popup is setup on the Link and the popup opening condition doesnt meet the current state, the default Link functionality will be triggered.
191
  * Added a Button element inside the WP editor.
192
  * Fix: Mobile landscape issue, in all cases the popup sizes will be changed, if the window orientation is changed (mobile/desktop).
193
  * Completely works with almost all page builders.
@@ -1000,7 +1009,7 @@ Leave us a good review :)
1000
 
1001
  == Upgrade Notice ==
1002
 
1003
- Current Version of Popup Builder is 3.2
1004
 
1005
  == Other Notes ==
1006
 
9
  Requires at least: 3.8
10
  Tested up to: 5.2
11
  Requires PHP: 5.3.3
12
+ Stable tag: 3.4
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.4 =
189
+ * Popup Builder post type removed from Yoast sitemap and other SEO plugins.
190
+ * Custom JS variable improvements.
191
+ * Bug fixed related to PHP version notice.
192
+ * Bug fixed related to page level cookie.
193
+ * Popup speed optimization.
194
+ * Bug fixed related to page scrolling when the pages moves up.
195
+ * New extension added Age Restriction popup.
196
+
197
  = Version 3.3 =
198
  * Popup preview fixes.
199
+ * Improvement: If the popup is setup on the Link and the popup opening condition doesn't meet the current state, the default Link functionality will be triggered.
200
  * Added a Button element inside the WP editor.
201
  * Fix: Mobile landscape issue, in all cases the popup sizes will be changed, if the window orientation is changed (mobile/desktop).
202
  * Completely works with almost all page builders.
1009
 
1010
  == Upgrade Notice ==
1011
 
1012
+ Current Version of Popup Builder is 3.4
1013
 
1014
  == Other Notes ==
1015