Popup Builder – Responsive WordPress Pop up - Version 2.4.6

Version Description

Current Version of Popup Builder is 2.4.6

Download this release

Release Info

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

Code changes from version 2.4.5 to 2.4.6

classes/SGPopupBuilderMain.php CHANGED
@@ -72,7 +72,7 @@ class SGPopupBuilderMain {
72
  public function popupPluginActionLinks($links) {
73
 
74
  $popupActionLinks = array(
75
- '<a href="' . SG_POPUP_EXTENTIONS_URL . '" target="_blank">Extensions</a>',
76
  );
77
 
78
  if(POPUP_BUILDER_PKG == POPUP_BUILDER_PKG_FREE) {
72
  public function popupPluginActionLinks($links) {
73
 
74
  $popupActionLinks = array(
75
+ '<a href="' . SG_POPUP_EXTENSION_URL . '" target="_blank">Extensions</a>',
76
  );
77
 
78
  if(POPUP_BUILDER_PKG == POPUP_BUILDER_PKG_FREE) {
config.php CHANGED
@@ -12,13 +12,13 @@ define('SG_APP_POPUP_CLASSES', SG_APP_POPUP_PATH . '/classes');
12
  define('SG_APP_POPUP_JS', SG_APP_POPUP_PATH . '/javascript');
13
  define('SG_APP_POPUP_HELPERS', SG_APP_POPUP_PATH . '/helpers/');
14
  define('SG_APP_POPUP_TABLE_LIMIT', 15);
15
- define('SG_POPUP_VERSION', 2.45);
16
  define('SG_POPUP_PRO_URL', 'http://popup-builder.com/');
17
- define('SG_POPUP_EXTENTIONS_URL', 'http://popup-builder.com/extensions');
18
- define('SG_MAILCHIMP_EXTENTION_URL', 'http://popup-builder.com/mailchimp/');
 
 
19
  define('SG_IP_TO_COUNTRY_SERVICE_TIMEOUT', 2);
20
- define('SG_IP_TO_COUNTRY_SERVICE_URL', 'http://sygnoos.in/ip2data/?ip=');
21
- define('SG_IP_TO_COUNTRY_SERVICE_TOKEN', 'd=b32e509a0c6da4147e7903f4bc0b60aa');
22
  define("SG_SHOW_POPUP_REVIEW", get_option("SG_COLOSE_REVIEW_BLOCK"));
23
  define("SG_POSTS_PER_PAGE", 1000);
24
  /*Example 1 minute*/
@@ -30,6 +30,10 @@ define('POPUP_BUILDER_PKG_FREE', 1);
30
  define('POPUP_BUILDER_PKG_SILVER', 2);
31
  define('POPUP_BUILDER_PKG_GOLD', 3);
32
  define('POPUP_BUILDER_PKG_PLATINUM', 4);
 
 
 
 
33
  $POPUP_TITLES = array(
34
  'image' => 'Image',
35
  'html' => 'HTML',
@@ -45,4 +49,11 @@ $POPUP_TITLES = array(
45
  'contactForm' => 'Contact Form',
46
  );
47
 
 
 
 
 
 
 
 
48
  require_once(dirname(__FILE__).'/config-pkg.php');
12
  define('SG_APP_POPUP_JS', SG_APP_POPUP_PATH . '/javascript');
13
  define('SG_APP_POPUP_HELPERS', SG_APP_POPUP_PATH . '/helpers/');
14
  define('SG_APP_POPUP_TABLE_LIMIT', 15);
15
+ define('SG_POPUP_VERSION', 2.46);
16
  define('SG_POPUP_PRO_URL', 'http://popup-builder.com/');
17
+ define('SG_POPUP_EXTENSION_URL', 'http://popup-builder.com/extensions');
18
+ define('SG_MAILCHIMP_EXTENSION_URL', 'http://popup-builder.com/downloads/mailchimp/');
19
+ define('SG_ANALYTICS_EXTENSION_URL', 'http://popup-builder.com/downloads/analytics/');
20
+ define('SG_AWEBER_EXTENSION_URL', 'http://popup-builder.com/downloads/aweber/');
21
  define('SG_IP_TO_COUNTRY_SERVICE_TIMEOUT', 2);
 
 
22
  define("SG_SHOW_POPUP_REVIEW", get_option("SG_COLOSE_REVIEW_BLOCK"));
23
  define("SG_POSTS_PER_PAGE", 1000);
24
  /*Example 1 minute*/
30
  define('POPUP_BUILDER_PKG_SILVER', 2);
31
  define('POPUP_BUILDER_PKG_GOLD', 3);
32
  define('POPUP_BUILDER_PKG_PLATINUM', 4);
33
+
34
+ global $POPUP_TITLES;
35
+ global $POPUP_ADDONS;
36
+
37
  $POPUP_TITLES = array(
38
  'image' => 'Image',
39
  'html' => 'HTML',
49
  'contactForm' => 'Contact Form',
50
  );
51
 
52
+ $POPUP_ADDONS = array(
53
+ 'aweber',
54
+ 'mailchimp',
55
+ 'analytics'
56
+ );
57
+
58
+
59
  require_once(dirname(__FILE__).'/config-pkg.php');
files/sg_popup_create.php CHANGED
@@ -5,8 +5,7 @@ if(!SG_SHOW_POPUP_REVIEW) {
5
  }
6
 
7
  $externalPlugins = IntegrateExternalSettings::getAllExternalPlugins();
8
- $mailchimpExist = IntegrateExternalSettings::isExtensionExists('mailchimp');
9
- $analyticsExist = IntegrateExternalSettings::isExtensionExists('analyitics');
10
  ?>
11
  <h2>Add New Popup</h2>
12
  <div class="popups-wrapper">
@@ -60,7 +59,7 @@ $analyticsExist = IntegrateExternalSettings::isExtensionExists('analyitics');
60
  <div class="popups-div sg-contact-form">
61
  </div>
62
  </a>
63
- <?php endif; ?>
64
  <?php endif; ?>
65
  <?php
66
  if(!empty($externalPlugins)) {
@@ -110,16 +109,25 @@ $analyticsExist = IntegrateExternalSettings::isExtensionExists('analyitics');
110
 
111
  </div>
112
 
113
- <?php if (POPUP_BUILDER_PKG == POPUP_BUILDER_PKG_FREE && !$mailchimpExist): ?>
114
- <div class="add-new-extentions-wrapper">
115
- <span class="add-new-extentions">
 
 
116
  Extensions
117
  </span>
118
  </div>
119
- <?php if(!$mailchimpExist): ?>
120
- <a class="create-popup-link" href="<?php echo SG_MAILCHIMP_EXTENTION_URL;?>" target="_blank">
121
- <div class="popups-div mailchimp-pro">
122
- </div>
123
- </a>
124
- <?php endif;?>
125
- <?php endif;?>
 
 
 
 
 
 
 
5
  }
6
 
7
  $externalPlugins = IntegrateExternalSettings::getAllExternalPlugins();
8
+ $doesntHaveAnyActiveExtensions = IntegrateExternalSettings::doesntHaveAnyActiveExtensions();
 
9
  ?>
10
  <h2>Add New Popup</h2>
11
  <div class="popups-wrapper">
59
  <div class="popups-div sg-contact-form">
60
  </div>
61
  </a>
62
+ <?php endif; ?>
63
  <?php endif; ?>
64
  <?php
65
  if(!empty($externalPlugins)) {
109
 
110
  </div>
111
 
112
+ <?php
113
+
114
+ if ($doesntHaveAnyActiveExtensions) : ?>
115
+ <div class="add-new-extensions-wrapper">
116
+ <span class="add-new-extensions">
117
  Extensions
118
  </span>
119
  </div>
120
+ <?php
121
+ global $POPUP_ADDONS;
122
+ foreach ($POPUP_ADDONS as $addonName) {
123
+ $isExtension = IntegrateExternalSettings::isExtensionExists($addonName);
124
+ if(!$isExtension) :
125
+ $defineString = 'SG_'.strtoupper($addonName).'_EXTENSION_URL';
126
+ $urlDefine = constant($defineString);?>
127
+ <a class="create-popup-link" href="<?php echo $urlDefine;?>" target="_blank">
128
+ <div class="popups-div" <?php echo "id='".$addonName."-pro'";?>>
129
+ </div>
130
+ </a>
131
+ <?php endif;
132
+ } ?>
133
+ <?php endif; ?>
helpers/Integrate_external_settings.php CHANGED
@@ -15,6 +15,36 @@ Class IntegrateExternalSettings {
15
  return $addons;
16
  }
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  public static function isExtensionExists($extensionName) {
19
 
20
  global $wpdb;
@@ -137,6 +167,8 @@ Class IntegrateExternalSettings {
137
  'noButtonTextColor' => sgSanitize('noButtonTextColor'),
138
  'yesButtonRadius' => (int)sgSanitize('yesButtonRadius'),
139
  'noButtonRadius' => (int)sgSanitize('noButtonRadius'),
 
 
140
  'pushToBottom' => sgSanitize('pushToBottom'),
141
  'onceExpiresTime' => sgSanitize('onceExpiresTime'),
142
  'sgOverlayCustomClasss' => sgSanitize('sgOverlayCustomClasss'),
15
  return $addons;
16
  }
17
 
18
+ public static function getAllAddons() {
19
+
20
+ global $wpdb;
21
+
22
+ $query = "SELECT name FROM ". $wpdb->prefix ."sg_popup_addons";
23
+ $addons = $wpdb->get_results($query, ARRAY_A);
24
+
25
+ if(empty($addons)) {
26
+ return false;
27
+ }
28
+ return $addons;
29
+ }
30
+
31
+ public static function doesntHaveAnyActiveExtensions() {
32
+
33
+ $addons = self::getAllAddons();
34
+
35
+ if(empty($addons)) {
36
+ return true;
37
+ }
38
+ global $POPUP_ADDONS;
39
+ $activeExtensionsCount = sizeof($addons);
40
+ $allSizeOf = sizeof($POPUP_ADDONS);
41
+
42
+ if($allSizeOf > $activeExtensionsCount) {
43
+ return true;
44
+ }
45
+ return false;
46
+ }
47
+
48
  public static function isExtensionExists($extensionName) {
49
 
50
  global $wpdb;
167
  'noButtonTextColor' => sgSanitize('noButtonTextColor'),
168
  'yesButtonRadius' => (int)sgSanitize('yesButtonRadius'),
169
  'noButtonRadius' => (int)sgSanitize('noButtonRadius'),
170
+ 'sgRestrictionExpirationTime' => (int)sgSanitize('sgRestrictionExpirationTime'),
171
+ 'restrictionCookeSavingLevel' => sgSanitize('restrictionCookeSavingLevel'),
172
  'pushToBottom' => sgSanitize('pushToBottom'),
173
  'onceExpiresTime' => sgSanitize('onceExpiresTime'),
174
  'sgOverlayCustomClasss' => sgSanitize('sgOverlayCustomClasss'),
img/AWeberPro.png ADDED
Binary file
img/analiticsPro.png ADDED
Binary file
popup-builder.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Popup Builder
4
  * Plugin URI: http://sygnoos.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: 2.4.5
7
  * Author: Sygnoos
8
  * Author URI: http://www.sygnoos.com
9
  * License: GPLv2
3
  * Plugin Name: Popup Builder
4
  * Plugin URI: http://sygnoos.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: 2.4.6
7
  * Author: Sygnoos
8
  * Author URI: http://www.sygnoos.com
9
  * License: GPLv2
readme.txt CHANGED
@@ -155,6 +155,9 @@ Go to the Popup Builder settings and set your desired options.
155
 
156
  == Changelog ==
157
 
 
 
 
158
  = Version 2.4.5 =
159
  * Backend JS optimization.
160
  * Frontend JS optimization.
@@ -165,7 +168,7 @@ Go to the Popup Builder settings and set your desired options.
165
  = Version 2.4.3 =
166
  * Added empty index.php file inside every directory to prevent directory listing.
167
  * Shortcode functionality improvements.
168
- * Prevented direct access to plugin’s php file.
169
  * Bug fixes.
170
 
171
  = Version 2.4.2 =
@@ -543,7 +546,7 @@ Leave us a good review :)
543
 
544
  == Upgrade Notice ==
545
 
546
- Current Version of Popup Builder is 2.4.5
547
 
548
  == Other Notes ==
549
 
@@ -560,7 +563,7 @@ There are several options' sections available where you can configure the popup
560
 
561
  You are writing about an awesome topic and want your ideas to stand out in the crowd? Well, you can easily do it by making use of an image popup thus adding a topic image to the plot.
562
  The installed image popup allows to determine the image dimensions, which, in its turn, are resized/repositioned automatically when the window is being resized. This popup provides options for choosing the image frame theme and effects that vary in the duration of the popup animation as well. There is also the possibility to specify how long the ready-made popup appearance should be delayed after loading the page (in sec).
563
- With the help of both basic and advanced options, you are able to freely regulate the dismissal, display, colour and location of the image popup. It can appear at the top right/left corner, at the bottom or in the center. You can choose to show the popup whenever the user scrolls the page or ensure its permanent occurrence by disabling popup closing in any possible way. On the other hand, the popup can be chosen to close automatically, be dismissed when the user clicks inside or beyond of the popup area. Also, it's up to you to decide on your popup accessibility on different devices (PC, mobile, etc.).
564
 
565
 
566
  = ShortCode Popup =
155
 
156
  == Changelog ==
157
 
158
+ = Version 2.4.6 =
159
+ * UX modifications.
160
+
161
  = Version 2.4.5 =
162
  * Backend JS optimization.
163
  * Frontend JS optimization.
168
  = Version 2.4.3 =
169
  * Added empty index.php file inside every directory to prevent directory listing.
170
  * Shortcode functionality improvements.
171
+ * Prevented direct access to plugins php file.
172
  * Bug fixes.
173
 
174
  = Version 2.4.2 =
546
 
547
  == Upgrade Notice ==
548
 
549
+ Current Version of Popup Builder is 2.4.6
550
 
551
  == Other Notes ==
552
 
563
 
564
  You are writing about an awesome topic and want your ideas to stand out in the crowd? Well, you can easily do it by making use of an image popup thus adding a topic image to the plot.
565
  The installed image popup allows to determine the image dimensions, which, in its turn, are resized/repositioned automatically when the window is being resized. This popup provides options for choosing the image frame theme and effects that vary in the duration of the popup animation as well. There is also the possibility to specify how long the ready-made popup appearance should be delayed after loading the page (in sec).
566
+ With the help of both basic and advanced options, you are able to freely regulate the dismissal, display, color and location of the image popup. It can appear at the top right/left corner, at the bottom or in the center. You can choose to show the popup whenever the user scrolls the page or ensure its permanent occurrence by disabling popup closing in any possible way. On the other hand, the popup can be chosen to close automatically, be dismissed when the user clicks inside or beyond of the popup area. Also, it's up to you to decide on your popup accessibility on different devices (PC, mobile, etc.).
567
 
568
 
569
  = ShortCode Popup =
style/sg_popup_style.css CHANGED
@@ -402,7 +402,7 @@ span.phpErrorStyle {
402
  transform: scale(1.05);
403
  }
404
 
405
- .add-new-extentions-wrapper {
406
  width: 100%;
407
  height: 20px;
408
  border-bottom: 1px solid #DEDEDE;
@@ -410,7 +410,7 @@ span.phpErrorStyle {
410
  margin-bottom: 25px;
411
  }
412
 
413
- .add-new-extentions {
414
  font-size: 35px;
415
  background-color: #F1F1F1;
416
  padding: 0 12px;
@@ -502,10 +502,18 @@ span.phpErrorStyle {
502
  background-image: url("../img/ContactFormButtonPro.png");
503
  }
504
 
505
- .mailchimp-pro {
506
  background-image: url("../img/mailchimpPro.png");
507
  }
508
 
 
 
 
 
 
 
 
 
509
  .pro-options {
510
  clear: both;
511
  width: 100%;
@@ -1221,6 +1229,10 @@ input[name="theme"] {
1221
  float: none !important;
1222
  }
1223
 
 
 
 
 
1224
  .sg-selectbox {
1225
  width: 30%;
1226
  }
402
  transform: scale(1.05);
403
  }
404
 
405
+ .add-new-extensions-wrapper {
406
  width: 100%;
407
  height: 20px;
408
  border-bottom: 1px solid #DEDEDE;
410
  margin-bottom: 25px;
411
  }
412
 
413
+ .add-new-extensions {
414
  font-size: 35px;
415
  background-color: #F1F1F1;
416
  padding: 0 12px;
502
  background-image: url("../img/ContactFormButtonPro.png");
503
  }
504
 
505
+ #mailchimp-pro{
506
  background-image: url("../img/mailchimpPro.png");
507
  }
508
 
509
+ #analytics-pro {
510
+ background-image: url("../img/analiticsPro.png");
511
+ }
512
+
513
+ #aweber-pro {
514
+ background-image: url("../img/AWeberPro.png");
515
+ }
516
+
517
  .pro-options {
518
  clear: both;
519
  width: 100%;
1229
  float: none !important;
1230
  }
1231
 
1232
+ .sg-newsletter-label-margin {
1233
+ margin-top: 15px !important;
1234
+ }
1235
+
1236
  .sg-selectbox {
1237
  width: 30%;
1238
  }