Popup Builder – Responsive WordPress Pop up - Version 2.4.5

Version Description

Current Version of Popup Builder is 2.4.5

Download this release

Release Info

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

Code changes from version 2.4.4 to 2.4.5

config-pkg.php CHANGED
@@ -1,3 +1,6 @@
1
  <?php
 
 
 
2
  define('POPUP_BUILDER_PKG', POPUP_BUILDER_PKG_FREE);
3
  define('POPUP_BUILDER_BASENAME', 'popup-builder/popup-builder.php');
1
  <?php
2
+ if (!defined( 'ABSPATH' )) {
3
+ exit();
4
+ }
5
  define('POPUP_BUILDER_PKG', POPUP_BUILDER_PKG_FREE);
6
  define('POPUP_BUILDER_BASENAME', 'popup-builder/popup-builder.php');
config.php CHANGED
@@ -12,7 +12,7 @@ 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.43);
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/');
@@ -30,7 +30,6 @@ 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
-
34
  $POPUP_TITLES = array(
35
  'image' => 'Image',
36
  'html' => 'HTML',
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/');
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',
files/sg_functions.php CHANGED
@@ -73,21 +73,46 @@ class SGFunctions
73
 
74
  public static function addReview()
75
  {
76
- return '<div class="updated updated notice is-dismissible reviewPanel sg-review-panel">
77
- <div class="reviewPanelContent">
78
- <span class="reviewPanelSpan">
79
- Dear user, we always do our best to help you and your opinion is very important for us!
80
- </span></br>
81
- <span class="reviewPanelSpan">
82
- So if you liked our <b>Popup Builder Plugin</b> and if our support was helpful for you, we\'ll be thankful if you go ahead and leave a review.
83
- </span>
84
- <span class="reviewPanelSpan">
85
- Please <a class="reviewPanelHref" href="https://wordpress.org/support/view/plugin-reviews/popup-builder?filter=5" target=\"_blank\">rate it 5 stars.</a>
86
- </span>
87
- </div>
88
- <span class="reviewPanelClose">Dont show again</span>
89
- <button type="button" class="notice-dismiss closeButton"></button>
90
- </div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  }
92
 
93
  public static function noticeForShortcode() {
73
 
74
  public static function addReview()
75
  {
76
+ return '<div class="sg-info-panel-wrapper">
77
+ <div class="sg-info-panel-row">
78
+ <div class="sg-info-panel-col-3">
79
+ <p class="sg-info-text sg-info-logo">
80
+ <span class="sg-info-text-white">Popup</span><span class="sg-info-text-highlight">Builder</span>
81
+ </p>
82
+ <p class="sg-info-text">
83
+ If you have any difficulties in using the options, please follow the link to <a href="https://sygnoos.ladesk.com/235213-Popup-Builder" class="sg-info-link">Knowledge Base</a>
84
+ </p>
85
+ </div>
86
+ <div class="sg-info-panel-col-3 sg-info-text-center">
87
+ <a class="sg-info-upgrade-pro sg-info-blink" href="http://popup-builder.com" target="_blank">
88
+ Upgrade NOW
89
+ </a>
90
+ <p class="sg-info-text">
91
+ Want to upgrade to PRO version?<br> Just click on "Upgrade NOW".
92
+ </p>
93
+ </div>
94
+ <div class="sg-info-panel-col-3">
95
+ <ul class="sg-info-menu sg-info-text">
96
+ <li>
97
+ <a class="sg-info-links" target="_blank" href="https://wordpress.org/support/plugin/popup-builder/reviews/?filter=5"><span class="dashicons dashicons-heart sg-info-text-white"></span><span class="sg-info-text"> Rate Us</span></a>
98
+ </li>
99
+ <li>
100
+ <a class="sg-info-links" target="_blank" href="https://sygnoos.ladesk.com/submit_ticket"><span class="dashicons dashicons-megaphone sg-info-text-white"></span></span> Submit Ticket</a>
101
+ </li>
102
+ <li>
103
+ <a class="sg-info-links" target="_blank" href="https://wordpress.org/plugins/popup-builder/faq/"><span class="dashicons dashicons-editor-help sg-info-text-white"></span> FAQ</a>
104
+ </li>
105
+ <li>
106
+ <a class="sg-info-links" target="_blank" href="mailto:support@popup-builder.com?subject=Hello"><span class="dashicons dashicons-email-alt sg-info-text-white"></span></span> Contact</a>
107
+ </li>
108
+ </ul>
109
+ </div>
110
+ </div>
111
+ <div>
112
+ <span class="sg-info-close">+</span>
113
+ <span class="sg-dont-show-agin">Don’t show again.</span>
114
+ </div>
115
+ </div>';
116
  }
117
 
118
  public static function noticeForShortcode() {
files/sg_popup_ajax.php CHANGED
@@ -42,6 +42,7 @@ function sgContactForm()
42
  global $wpdb;
43
  parse_str($_POST['contactParams'], $params);
44
  $adminMail = sanitize_text_field($_POST['receiveMail']);
 
45
  $name = $params['contact-name'];
46
  $subject = $params['contact-subject'];
47
  $userMessage = $params['content-message'];
@@ -68,8 +69,8 @@ function sgContactForm()
68
  $headers = 'MIME-Version: 1.0'."\r\n";
69
  $headers = 'From: '.$adminMail.''."\r\n";
70
  $headers .= 'Content-type: text/html; charset=UTF-8'."\r\n"; //set UTF-8
71
-
72
- $sendStatus = wp_mail($adminMail, 'Popup contact form', $message, $headers); //return true or false
73
  echo $sendStatus;
74
  die();
75
  }
42
  global $wpdb;
43
  parse_str($_POST['contactParams'], $params);
44
  $adminMail = sanitize_text_field($_POST['receiveMail']);
45
+ $popupTitle = sanitize_text_field($_POST['popupTitle']);
46
  $name = $params['contact-name'];
47
  $subject = $params['contact-subject'];
48
  $userMessage = $params['content-message'];
69
  $headers = 'MIME-Version: 1.0'."\r\n";
70
  $headers = 'From: '.$adminMail.''."\r\n";
71
  $headers .= 'Content-type: text/html; charset=UTF-8'."\r\n"; //set UTF-8
72
+
73
+ $sendStatus = wp_mail($adminMail, $popupTitle.'- Popup contact form', $message, $headers); //return true or false
74
  echo $sendStatus;
75
  die();
76
  }
files/sg_popup_create.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- echo SGFunctions::balckFriday();
3
  if(!SG_SHOW_POPUP_REVIEW) {
4
  echo SGFunctions::addReview();
5
  }
1
  <?php
2
+
3
  if(!SG_SHOW_POPUP_REVIEW) {
4
  echo SGFunctions::addReview();
5
  }
files/sg_popup_create_new.php CHANGED
@@ -1024,7 +1024,7 @@
1024
  }
1025
 
1026
  }
1027
- echo SGFunctions::balckFriday();
1028
  if(!SG_SHOW_POPUP_REVIEW) {
1029
  echo SGFunctions::addReview();
1030
  }
1024
  }
1025
 
1026
  }
1027
+
1028
  if(!SG_SHOW_POPUP_REVIEW) {
1029
  echo SGFunctions::addReview();
1030
  }
files/sg_popup_main.php CHANGED
@@ -5,7 +5,6 @@ $allData = SGPopup::findAll();
5
  if(!SG_SHOW_POPUP_REVIEW) {
6
  echo SGFunctions::addReview();
7
  }
8
- echo SGFunctions::balckFriday();
9
  ?>
10
  <div class="wrap">
11
  <div class="headers-wrapper">
5
  if(!SG_SHOW_POPUP_REVIEW) {
6
  echo SGFunctions::addReview();
7
  }
 
8
  ?>
9
  <div class="wrap">
10
  <div class="headers-wrapper">
img/sg-shopping-cart.png ADDED
Binary file
javascript/sg_popup_backend.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function($){
2
  this.titleNotEmpty(); /* Check title is Empty */
3
  this.showThemePicture(); /* Show themes pictures */
4
  this.showEffects(); /* Show effect type */
5
  this.pageAcordion(); /* For page acordion divs */
6
  this.fixedPostionSelection(); /* Fuctionality for selected postion */
7
  this.showInfo(); /* Show description options */
8
  this.opasictyRange(); /* Opcity range */
9
  this.subOptionContents();
10
  this.addCountries();
11
  this.showCloseTextFieldForTheme();
12
  this.popupReview();
13
  this.popupTimer();
14
  this.colorPicekr(); /* Color picker */
15
  this.switchPopupActive();
16
  });
 
17
  this.titleNotEmpty(); /* Check title is Empty */
18
  this.showThemePicture(); /* Show themes pictures */
19
  this.showEffects(); /* Show effect type */
20
  this.pageAcordion(); /* For page acordion divs */
21
  this.fixedPostionSelection(); /* Fuctionality for selected postion */
22
  this.showInfo(); /* Show description options */
23
  this.opasictyRange(); /* Opcity range */
24
  this.subOptionContents();
25
  this.addCountries();
26
  this.showCloseTextFieldForTheme();
27
  this.popupReview();
28
  this.colorPicekr(); /* Color picker */
29
  this.switchPopupActive();
30
  });
31
  jQuery('.sg-info-close').on('click', function() {
32
  jQuery( ".sg-info-panel-wrapper" ).hide(300);
33
  });
 
1
  this.titleNotEmpty(); /* Check title is Empty */
2
  this.showThemePicture(); /* Show themes pictures */
3
  this.showEffects(); /* Show effect type */
4
  this.pageAcordion(); /* For page acordion divs */
5
  this.fixedPostionSelection(); /* Fuctionality for selected postion */
6
  this.showInfo(); /* Show description options */
7
  this.opasictyRange(); /* Opcity range */
8
  this.subOptionContents();
9
  this.addCountries();
10
  this.showCloseTextFieldForTheme();
11
  this.popupReview();
12
  this.popupTimer();
13
  this.colorPicekr(); /* Color picker */
14
  this.switchPopupActive();
15
  });
16
+ jQuery(document).ready(function($){
17
  this.titleNotEmpty(); /* Check title is Empty */
18
  this.showThemePicture(); /* Show themes pictures */
19
  this.showEffects(); /* Show effect type */
20
  this.pageAcordion(); /* For page acordion divs */
21
  this.fixedPostionSelection(); /* Fuctionality for selected postion */
22
  this.showInfo(); /* Show description options */
23
  this.opasictyRange(); /* Opcity range */
24
  this.subOptionContents();
25
  this.addCountries();
26
  this.showCloseTextFieldForTheme();
27
  this.popupReview();
28
  this.colorPicekr(); /* Color picker */
29
  this.switchPopupActive();
30
  });
31
  jQuery('.sg-info-close').on('click', function() {
32
  jQuery( ".sg-info-panel-wrapper" ).hide(300);
33
  });
javascript/sg_popup_frontend.js CHANGED
@@ -274,6 +274,11 @@ SGPopup.prototype.getPositionPercent = function(needPercent, screenDimension, di
274
  SGPopup.prototype.showPopup = function(id, isOnLoad) {
275
  var that = this;
276
 
 
 
 
 
 
277
  this.popupData = SG_POPUP_DATA[id];
278
  if(typeof this.popupData == "undefined") {
279
  return;
274
  SGPopup.prototype.showPopup = function(id, isOnLoad) {
275
  var that = this;
276
 
277
+ /*When id does not exist*/
278
+ if(!id) {
279
+ return;
280
+ }
281
+
282
  this.popupData = SG_POPUP_DATA[id];
283
  if(typeof this.popupData == "undefined") {
284
  return;
javascript/sg_popup_javascript.php CHANGED
@@ -20,7 +20,7 @@ function sg_popup_admin_scripts($hook) {
20
  wp_enqueue_script('sg_popup_pro');
21
  }
22
  }
23
- else if('toplevel_page_PopupBuilder' == $hook || 'toplevel_page_popup-settings'){
24
  wp_register_script('javascript', SG_APP_POPUP_URL . '/javascript/sg_popup_backend.js', array('jquery', 'wp-color-picker'));
25
  wp_enqueue_script('jquery');
26
  wp_enqueue_script('javascript');
20
  wp_enqueue_script('sg_popup_pro');
21
  }
22
  }
23
+ else if('toplevel_page_PopupBuilder' == $hook || $hook == 'toplevel_page_popup-settings'){
24
  wp_register_script('javascript', SG_APP_POPUP_URL . '/javascript/sg_popup_backend.js', array('jquery', 'wp-color-picker'));
25
  wp_enqueue_script('jquery');
26
  wp_enqueue_script('javascript');
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.4
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.5
7
  * Author: Sygnoos
8
  * Author URI: http://www.sygnoos.com
9
  * License: GPLv2
readme.txt CHANGED
@@ -3,9 +3,9 @@ Plugin Name: Popup
3
  Contributors: Sygnoos, Popup By Sygnoos
4
  Author: Sygnoos
5
  Donate link: http://popup-builder.com
6
- Tags: popup, pop up, modal popup, responsive popup, lightbox, youtube, video popup, iframe popup, vimeo, contact form, html popup, social popup, age restriction popup, countdown popup, facebook popup, subscription popup, exit intent popup
7
  Requires at least: 3.8
8
- Tested up to: 4.6.1
9
  Stable tag: trunk
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -155,13 +155,17 @@ Go to the Popup Builder settings and set your desired options.
155
 
156
  == Changelog ==
157
 
 
 
 
 
158
  = Version 2.4.4 =
159
  * Bug fixed connected to timezone.
160
 
161
  = Version 2.4.3 =
162
  * Added empty index.php file inside every directory to prevent directory listing.
163
  * Shortcode functionality improvements.
164
- * Prevented direct access to plugins php file.
165
  * Bug fixes.
166
 
167
  = Version 2.4.2 =
@@ -539,7 +543,7 @@ Leave us a good review :)
539
 
540
  == Upgrade Notice ==
541
 
542
- Current Version of Popup Builder is 2.4.4
543
 
544
  == Other Notes ==
545
 
3
  Contributors: Sygnoos, Popup By Sygnoos
4
  Author: Sygnoos
5
  Donate link: http://popup-builder.com
6
+ Tags: popup, restriction popup, exit intent popup, subscription popup
7
  Requires at least: 3.8
8
+ Tested up to: 4.7
9
  Stable tag: trunk
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
155
 
156
  == Changelog ==
157
 
158
+ = Version 2.4.5 =
159
+ * Backend JS optimization.
160
+ * Frontend JS optimization.
161
+
162
  = Version 2.4.4 =
163
  * Bug fixed connected to timezone.
164
 
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
 
544
  == Upgrade Notice ==
545
 
546
+ Current Version of Popup Builder is 2.4.5
547
 
548
  == Other Notes ==
549
 
style/sg_popup_style.php CHANGED
@@ -12,6 +12,8 @@ function sg_popup_admin_style($hook) {
12
  }
13
  wp_register_style('sg_popup_style', SG_APP_POPUP_URL . '/style/sg_popup_style.css', false, '1.0.0');
14
  wp_enqueue_style('sg_popup_style');
 
 
15
  wp_register_style('sg_popup_animate', SG_APP_POPUP_URL . '/style/animate.css');
16
  wp_enqueue_style('sg_popup_animate');
17
  if (POPUP_BUILDER_PKG > POPUP_BUILDER_PKG_SILVER) {
12
  }
13
  wp_register_style('sg_popup_style', SG_APP_POPUP_URL . '/style/sg_popup_style.css', false, '1.0.0');
14
  wp_enqueue_style('sg_popup_style');
15
+ wp_register_style('sg_popup_review_panel_style', SG_APP_POPUP_URL . '/style/sg_review_panel.css', false, '1.0.0');
16
+ wp_enqueue_style('sg_popup_review_panel_style');
17
  wp_register_style('sg_popup_animate', SG_APP_POPUP_URL . '/style/animate.css');
18
  wp_enqueue_style('sg_popup_animate');
19
  if (POPUP_BUILDER_PKG > POPUP_BUILDER_PKG_SILVER) {
style/sg_review_panel.css ADDED
@@ -0,0 +1 @@
 
1
+ .sg-info-text,.sg-info-text-center{text-align:center}.sg-info-panel-wrapper{position:relative;width:100%;background-color:#181a1e;color:#fff;padding-bottom:10px;padding-top:5px;line-height:1.231}.sg-info-panel-wrapper .dashicons{line-height:1.231;margin-left:10px;margin-right:10px}.sg-info-panel-wrapper:after{content:"";display:table;clear:both}.sg-info-panel-row{width:100%}.sg-info-panel-row [class*=sg-info-panel-col]:first-child{margin-left:3%}.sg-info-panel-col-3{display:block;float:left;width:30%;min-height:30px;margin-left:2%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.sg-info-text{margin-top:10px;margin-bottom:10px;font-size:20px}.sg-info-text-white{color:#fff}.sg-info-link,.sg-info-text-highlight{color:#30c2f3}.sg-info-link{font-style:italic}.sg-info-links{color:#30c2f3;text-decoration:none}.sg-info-logo{font-size:35px;margin-bottom:15px}.sg-info-upgrade-pro{position:relative;border:1px solid #30c2f3;font-size:30px;color:#fff;text-decoration:none;border-radius:2px;display:inline-block;margin-top:10px;text-align:center;padding:10px 15px 10px 60px}.sg-info-upgrade-pro:before{content:'';display:block;position:absolute;width:32px;height:32px;-webkit-mask:url(../img/sg-shopping-cart.png) no-repeat;mask:url(..plugins/popup-builder-platinum/img/sg-shopping-cart.png) no-repeat;background-color:#fff;left:10px;top:50%;margin-top:-16px}.sg-info-upgrade-pro:hover{border-color:#fff;color:#30c2f3}.sg-info-upgrade-pro:hover:before{background-color:#30c2f3}.sg-info-menu{text-align:left;list-style-type:none}.sg-info-menu li{padding-bottom:5px}.sg-info-blink{animation:sg-info-blinker 11s infinite;-webkit-animation:sg-info-blinker 11s infinite}.sg-info-close{float:right;color:#fff;position:absolute;right:11px;font-size:30px;top:3px;cursor:pointer;transform:rotate(45deg);margin:-3px -3px 0}.sg-dont-show-agin{position:absolute;bottom:10px;right:12px;cursor:pointer}@keyframes sg-info-blinker{0%{opacity:0}10%,100%{opacity:1}}@media (min-width:992px) and (max-width:1199px){.sg-info-panel-wrapper .dashicons,.sg-info-text{font-size:15px}.sg-info-logo,.sg-info-upgrade-pro{font-size:25px}}@media (min-width:768px) and (max-width:991px){.sg-info-panel-wrapper .dashicons,.sg-info-text{font-size:13px}.sg-info-logo,.sg-info-upgrade-pro{font-size:20px}}@media (max-width:767px){.sg-info-panel-wrapper .dashicons,.sg-info-text{font-size:12px}.sg-info-logo,.sg-info-upgrade-pro{font-size:18px}}@media (max-width:480px){.sg-info-panel-col-3{width:45%}.sg-info-panel-wrapper .dashicons,.sg-info-text{font-size:10px}.sg-info-logo,.sg-info-upgrade-pro{font-size:15px}}