Popup Builder – Responsive WordPress Pop up - Version 3.0.7

Version Description

Current Version of Popup Builder is 3.0.5

Download this release

Release Info

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

Code changes from version 3.0.6 to 3.0.7

com/classes/Actions.php CHANGED
@@ -17,6 +17,7 @@ class Actions
17
  {
18
  add_action('init', array($this, 'postTypeInit'), 9999);
19
  add_action('admin_menu', array($this, 'addSubMenu'));
 
20
  add_filter('get_sample_permalink_html', array($this, 'removePostPermalink'), 1, 1);
21
  add_action('manage_'.SG_POPUP_POST_TYPE.'_posts_custom_column' , array($this, 'popupsTableColumnsValues'), 10, 2);
22
  add_action('media_buttons', array($this, 'popupMediaButton'));
@@ -172,11 +173,12 @@ class Actions
172
  {
173
  $versionPopup = get_option('SG_POPUP_VERSION');
174
  $convert = get_option('sgpbConvertToNewVersion');
175
- $unsubscribeColumn = get_option('sgpbUnsubscribeColumn');
176
 
177
- if (!$unsubscribeColumn) {
178
  AdminHelper::addUnsubscribeColumn();
179
- update_option('sgpbUnsubscribeColumn', 1);
 
180
  }
181
 
182
  if ($versionPopup && !$convert) {
@@ -548,6 +550,13 @@ class Actions
548
  $this->customPostTypeObj->addPopupMetaboxes();
549
  }
550
 
 
 
 
 
 
 
 
551
  public function savePost($postId = 0, $post = array(), $update = false)
552
  {
553
  $postData = SGPopup::parsePopupDataFromData($_POST);
17
  {
18
  add_action('init', array($this, 'postTypeInit'), 9999);
19
  add_action('admin_menu', array($this, 'addSubMenu'));
20
+ add_action('admin_menu', array($this, 'supportLinks'), 999);
21
  add_filter('get_sample_permalink_html', array($this, 'removePostPermalink'), 1, 1);
22
  add_action('manage_'.SG_POPUP_POST_TYPE.'_posts_custom_column' , array($this, 'popupsTableColumnsValues'), 10, 2);
23
  add_action('media_buttons', array($this, 'popupMediaButton'));
173
  {
174
  $versionPopup = get_option('SG_POPUP_VERSION');
175
  $convert = get_option('sgpbConvertToNewVersion');
176
+ $unsubscribeColumnFixed = get_option('sgpbUnsubscribeColumnFixed');
177
 
178
+ if (!$unsubscribeColumnFixed) {
179
  AdminHelper::addUnsubscribeColumn();
180
+ update_option('sgpbUnsubscribeColumnFixed', 1);
181
+ delete_option('sgpbUnsubscribeColumn', 1);
182
  }
183
 
184
  if ($versionPopup && !$convert) {
550
  $this->customPostTypeObj->addPopupMetaboxes();
551
  }
552
 
553
+ public function supportLinks()
554
+ {
555
+ if (SGPB_POPUP_PKG == SGPB_POPUP_PKG_FREE) {
556
+ $this->customPostTypeObj->supportLinks();
557
+ }
558
+ }
559
+
560
  public function savePost($postId = 0, $post = array(), $update = false)
561
  {
562
  $postData = SGPopup::parsePopupDataFromData($_POST);
com/classes/RegisterPostType.php CHANGED
@@ -304,6 +304,27 @@ class RegisterPostType
304
  );
305
  }
306
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
307
  public function addSubMenu()
308
  {
309
  add_submenu_page(
@@ -343,6 +364,16 @@ class RegisterPostType
343
  );
344
  }
345
 
 
 
 
 
 
 
 
 
 
 
346
  public function addOptionsMetaBox()
347
  {
348
  add_meta_box(
@@ -371,7 +402,7 @@ class RegisterPostType
371
  $priority = 'low';
372
  $filepath = $additionalMetabox['filePath'];
373
  $popupTypeObj = $this->getPopupTypeObj();
374
-
375
  if (!empty($additionalMetabox['context'])) {
376
  $context = $additionalMetabox['context'];
377
  }
@@ -390,7 +421,7 @@ class RegisterPostType
390
  $priority
391
  );
392
  }
393
-
394
  return true;
395
  }
396
 
304
  );
305
  }
306
 
307
+ public function supportLinks()
308
+ {
309
+ add_submenu_page(
310
+ 'edit.php?post_type='.SG_POPUP_POST_TYPE,
311
+ __('Extend', SG_POPUP_TEXT_DOMAIN),
312
+ __('Extend', SG_POPUP_TEXT_DOMAIN),
313
+ 'sgpb_manage_options',
314
+ SG_POPUP_EXTEND_PAGE,
315
+ array($this, 'extendLink')
316
+ );
317
+
318
+ add_submenu_page(
319
+ 'edit.php?post_type='.SG_POPUP_POST_TYPE,
320
+ __('Support', SG_POPUP_TEXT_DOMAIN),
321
+ __('Support', SG_POPUP_TEXT_DOMAIN),
322
+ 'sgpb_manage_options',
323
+ 'support',
324
+ array($this, 'supportLink')
325
+ );
326
+ }
327
+
328
  public function addSubMenu()
329
  {
330
  add_submenu_page(
364
  );
365
  }
366
 
367
+ public function supportLink()
368
+ {
369
+ wp_redirect(SG_POPUP_SUPPORT_URL);
370
+ }
371
+
372
+ public function extendLink()
373
+ {
374
+ wp_redirect(SG_POPUP_EXTENSIONS_URL);
375
+ }
376
+
377
  public function addOptionsMetaBox()
378
  {
379
  add_meta_box(
402
  $priority = 'low';
403
  $filepath = $additionalMetabox['filePath'];
404
  $popupTypeObj = $this->getPopupTypeObj();
405
+
406
  if (!empty($additionalMetabox['context'])) {
407
  $context = $additionalMetabox['context'];
408
  }
421
  $priority
422
  );
423
  }
424
+
425
  return true;
426
  }
427
 
com/classes/extension/SgpbPopupExtension.php CHANGED
@@ -27,7 +27,9 @@ class SgpbPopupExtension implements SgpbIPopupExtension
27
  'handle' => 'ExtensionsNotification.js',
28
  'name' => 'SGPB_JS_EXTENSIONS_PARAMS',
29
  'data' => array(
30
- 'nonce' => wp_create_nonce(SG_AJAX_NONCE)
 
 
31
  )
32
  );
33
 
27
  'handle' => 'ExtensionsNotification.js',
28
  'name' => 'SGPB_JS_EXTENSIONS_PARAMS',
29
  'data' => array(
30
+ 'nonce' => wp_create_nonce(SG_AJAX_NONCE),
31
+ 'popupPostType' => SG_POPUP_POST_TYPE,
32
+ 'extendPage' => SG_POPUP_EXTEND_PAGE
33
  )
34
  );
35
 
com/config/config.php CHANGED
@@ -18,6 +18,8 @@ class SgpbPopupConfig
18
  self::addDefine('SGPB_POPUP_PKG_GOLD', 3);
19
  self::addDefine('SGPB_POPUP_PKG_PLATINUM', 4);
20
  self::addDefine('SG_POPUP_PRO_URL', 'https://popup-builder.com/#prices');
 
 
21
  self::addDefine('SG_POPUP_TICKET_URL', 'https://sygnoos.ladesk.com/submit_ticket');
22
  self::addDefine('SG_POPUP_RATE_US_URL', 'https://wordpress.org/support/plugin/popup-builder/reviews/?filter=5');
23
  self::addDefine('SG_POPUP_AD_BLOCK_URL', 'https://popup-builder.com/downloads/adblock/');
@@ -57,6 +59,7 @@ class SgpbPopupConfig
57
  self::addDefine('SG_POPUP_NEWSLETTER_PAGE', 'newsletter');
58
  self::addDefine('SG_POPUP_SETTINGS_PAGE', 'settings');
59
  self::addDefine('SGPB_POPUP_LICENSE', 'license');
 
60
  self::addDefine('SGPB_FILTER_REPEAT_INTERVAL', 50);
61
  self::addDefine('SG_POPUP_TEXT_DOMAIN', 'popupBuilder');
62
  self::addDefine('SG_POPUP_STORE_URL', 'https://popup-builder.com/');
18
  self::addDefine('SGPB_POPUP_PKG_GOLD', 3);
19
  self::addDefine('SGPB_POPUP_PKG_PLATINUM', 4);
20
  self::addDefine('SG_POPUP_PRO_URL', 'https://popup-builder.com/#prices');
21
+ self::addDefine('SG_POPUP_EXTENSIONS_URL', 'https://popup-builder.com/#extensions');
22
+ self::addDefine('SG_POPUP_SUPPORT_URL', 'https://wordpress.org/support/plugin/popup-builder');
23
  self::addDefine('SG_POPUP_TICKET_URL', 'https://sygnoos.ladesk.com/submit_ticket');
24
  self::addDefine('SG_POPUP_RATE_US_URL', 'https://wordpress.org/support/plugin/popup-builder/reviews/?filter=5');
25
  self::addDefine('SG_POPUP_AD_BLOCK_URL', 'https://popup-builder.com/downloads/adblock/');
59
  self::addDefine('SG_POPUP_NEWSLETTER_PAGE', 'newsletter');
60
  self::addDefine('SG_POPUP_SETTINGS_PAGE', 'settings');
61
  self::addDefine('SGPB_POPUP_LICENSE', 'license');
62
+ self::addDefine('SG_POPUP_EXTEND_PAGE', 'extend');
63
  self::addDefine('SGPB_FILTER_REPEAT_INTERVAL', 50);
64
  self::addDefine('SG_POPUP_TEXT_DOMAIN', 'popupBuilder');
65
  self::addDefine('SG_POPUP_STORE_URL', 'https://popup-builder.com/');
com/config/configPackage.php CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
3
  exit();
4
  }
5
 
6
- define('SG_POPUP_VERSION', '3.0.6');
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.7');
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.6
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.7
7
  * Author: Sygnoos
8
  * Author URI: https://sygnoos.com
9
  * License: GPLv2
public/js/ExtensionsNotification.js CHANGED
@@ -9,7 +9,14 @@ SGPBExtensionsNotification.prototype.init = function()
9
  this.dontShowAgain();
10
 
11
  this.closeProblemAlert();
12
- this.dontShowAgainProblemAlert()
 
 
 
 
 
 
 
13
  };
14
 
15
  SGPBExtensionsNotification.prototype.closeProblemAlert = function()
9
  this.dontShowAgain();
10
 
11
  this.closeProblemAlert();
12
+ this.dontShowAgainProblemAlert();
13
+
14
+ this.addToPopupMenuLinkColor();
15
+ };
16
+
17
+ SGPBExtensionsNotification.prototype.addToPopupMenuLinkColor = function()
18
+ {
19
+ jQuery('a[href="edit.php?post_type='+SGPB_JS_EXTENSIONS_PARAMS.popupPostType+'&page='+SGPB_JS_EXTENSIONS_PARAMS.extendPage+'"]').css({color: "#55efc4"})
20
  };
21
 
22
  SGPBExtensionsNotification.prototype.closeProblemAlert = function()
readme.txt CHANGED
@@ -174,6 +174,9 @@ Go to the Popup Builder settings and set your desired options.
174
 
175
  == Changelog ==
176
 
 
 
 
177
  = Version 3.0.6 =
178
  * Added new option 'unsubscribe' for newsletter.
179
  * Opening and closing animation can be a float value now.
174
 
175
  == Changelog ==
176
 
177
+ = Version 3.0.7 =
178
+ * Hot fix connected to subscribers table.
179
+
180
  = Version 3.0.6 =
181
  * Added new option 'unsubscribe' for newsletter.
182
  * Opening and closing animation can be a float value now.