Version Description
Current Version of Popup Builder is 2.2.9
Download this release
Release Info
Developer | Sygnoos |
Plugin | Popup Builder – Responsive WordPress Pop up |
Version | 2.2.9 |
Comparing to | |
See all releases |
Code changes from version 2.2.8 to 2.2.9
- javascript/sg_popup_frontend.js +22 -18
- popup-builder.php +1 -1
- readme.txt +4 -1
javascript/sg_popup_frontend.js
CHANGED
@@ -73,7 +73,7 @@ SGPopup.prototype.canOpenPopup = function(id, openOnce, isOnLoad) {
|
|
73 |
if (!isOnLoad) {
|
74 |
return true;
|
75 |
}
|
76 |
-
if(openOnce && typeof jQuery.cookie('sgPopupDetails') != 'undefined') {
|
77 |
return this.canOpenOnce(id);
|
78 |
}
|
79 |
|
@@ -313,6 +313,7 @@ SGPopup.prototype.sgShowColorboxWithOptions = function() {
|
|
313 |
if(contentBackgroundColor) {
|
314 |
jQuery("#sgcboxLoadedContent").css({'background-color' : contentBackgroundColor})
|
315 |
}
|
|
|
316 |
jQuery('#sgcolorbox').trigger("sgColorboxOnCompleate", [pushToBottom]);
|
317 |
if(popupWidth == '' && popupHeight == '') {
|
318 |
jQuery.sgcolorbox.resize();
|
@@ -325,6 +326,7 @@ SGPopup.prototype.sgShowColorboxWithOptions = function() {
|
|
325 |
|
326 |
},
|
327 |
onClosed: function() {
|
|
|
328 |
jQuery('#sgcolorbox').trigger("sgPopupClose", []);
|
329 |
},
|
330 |
trapFocus: that.sgTrapFocus,
|
@@ -358,13 +360,13 @@ SGPopup.prototype.sgShowColorboxWithOptions = function() {
|
|
358 |
if (that.popupData['id'] && that.isOnLoad==true && that.openOnce != '') {
|
359 |
sgCookieData = '';
|
360 |
jQuery.cookie.defaults = {path:'/'};
|
361 |
-
var currentCookie = jQuery.cookie('sgPopupDetails');
|
362 |
|
363 |
if(typeof currentCookie == 'undefined') {
|
364 |
openCounter = 1;
|
365 |
}
|
366 |
else {
|
367 |
-
var currentCookie = JSON.parse(jQuery.cookie('sgPopupDetails'));
|
368 |
openCounter = currentCookie.openCounter+=1;
|
369 |
}
|
370 |
sgCookieData = {
|
@@ -372,25 +374,27 @@ SGPopup.prototype.sgShowColorboxWithOptions = function() {
|
|
372 |
'openCounter': openCounter,
|
373 |
'openLimit': that.numberLimit
|
374 |
}
|
375 |
-
jQuery.cookie("sgPopupDetails",JSON.stringify(sgCookieData), { expires: onceExpiresTime});
|
376 |
}
|
377 |
|
378 |
if (that.popupContentClick) {
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
}
|
386 |
-
jQuery('#sgcolorbox').bind('click',function() {
|
387 |
-
if(contentClickBehavior == 'close' || clickRedirectToUrl == '' || typeof contentClickBehavior == 'undefined') {
|
388 |
-
jQuery.sgcolorbox.close();
|
389 |
-
}
|
390 |
-
else {
|
391 |
-
window.location = clickRedirectToUrl;
|
392 |
}
|
393 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
394 |
});
|
395 |
}
|
396 |
|
73 |
if (!isOnLoad) {
|
74 |
return true;
|
75 |
}
|
76 |
+
if(openOnce && typeof jQuery.cookie('sgPopupDetails'+id) != 'undefined') {
|
77 |
return this.canOpenOnce(id);
|
78 |
}
|
79 |
|
313 |
if(contentBackgroundColor) {
|
314 |
jQuery("#sgcboxLoadedContent").css({'background-color' : contentBackgroundColor})
|
315 |
}
|
316 |
+
jQuery("#sgcboxLoadedContent").addClass("sg-current-popup-"+that.popupData['id'])
|
317 |
jQuery('#sgcolorbox').trigger("sgColorboxOnCompleate", [pushToBottom]);
|
318 |
if(popupWidth == '' && popupHeight == '') {
|
319 |
jQuery.sgcolorbox.resize();
|
326 |
|
327 |
},
|
328 |
onClosed: function() {
|
329 |
+
jQuery("#sgcboxLoadedContent").removeClass("sg-current-popup-"+that.popupData['id'])
|
330 |
jQuery('#sgcolorbox').trigger("sgPopupClose", []);
|
331 |
},
|
332 |
trapFocus: that.sgTrapFocus,
|
360 |
if (that.popupData['id'] && that.isOnLoad==true && that.openOnce != '') {
|
361 |
sgCookieData = '';
|
362 |
jQuery.cookie.defaults = {path:'/'};
|
363 |
+
var currentCookie = jQuery.cookie('sgPopupDetails'+that.popupData['id']);
|
364 |
|
365 |
if(typeof currentCookie == 'undefined') {
|
366 |
openCounter = 1;
|
367 |
}
|
368 |
else {
|
369 |
+
var currentCookie = JSON.parse(jQuery.cookie('sgPopupDetails'+that.popupData['id']));
|
370 |
openCounter = currentCookie.openCounter+=1;
|
371 |
}
|
372 |
sgCookieData = {
|
374 |
'openCounter': openCounter,
|
375 |
'openLimit': that.numberLimit
|
376 |
}
|
377 |
+
jQuery.cookie("sgPopupDetails"+that.popupData['id'],JSON.stringify(sgCookieData), { expires: onceExpiresTime});
|
378 |
}
|
379 |
|
380 |
if (that.popupContentClick) {
|
381 |
+
jQuery("#sgcolorbox").bind("sgColorboxOnCompleate", function() {
|
382 |
+
/* If has url for redirect */
|
383 |
+
if((contentClickBehavior !== 'close' || clickRedirectToUrl !== '') && typeof contentClickBehavior !== 'undefined') {
|
384 |
+
jQuery('#sgcolorbox').css({
|
385 |
+
"cursor": 'pointer'
|
386 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
387 |
}
|
388 |
+
|
389 |
+
jQuery(".sg-current-popup-"+that.popupData['id']).bind('click',function() {
|
390 |
+
if(contentClickBehavior == 'close' || clickRedirectToUrl == '' || typeof contentClickBehavior == 'undefined') {
|
391 |
+
jQuery.sgcolorbox.close();
|
392 |
+
}
|
393 |
+
else {
|
394 |
+
window.location = clickRedirectToUrl;
|
395 |
+
}
|
396 |
+
|
397 |
+
});
|
398 |
});
|
399 |
}
|
400 |
|
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.2.
|
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.2.9
|
7 |
* Author: Sygnoos
|
8 |
* Author URI: http://www.sygnoos.com
|
9 |
* License: GPLv2
|
readme.txt
CHANGED
@@ -134,6 +134,9 @@ Go to the Popup Builder settings and set your desired options.
|
|
134 |
|
135 |
== Changelog ==
|
136 |
|
|
|
|
|
|
|
137 |
= Version 2.2.8 =
|
138 |
* Bug fixed connected to version 2.2.7
|
139 |
|
@@ -360,7 +363,7 @@ Leave us a good review :)
|
|
360 |
|
361 |
== Upgrade Notice ==
|
362 |
|
363 |
-
Current Version of Popup Builder is 2.2.
|
364 |
|
365 |
== Other Notes ==
|
366 |
|
134 |
|
135 |
== Changelog ==
|
136 |
|
137 |
+
= Version 2.2.9 =
|
138 |
+
* Bug fixed connected to redirection on popup click.
|
139 |
+
|
140 |
= Version 2.2.8 =
|
141 |
* Bug fixed connected to version 2.2.7
|
142 |
|
363 |
|
364 |
== Upgrade Notice ==
|
365 |
|
366 |
+
Current Version of Popup Builder is 2.2.9
|
367 |
|
368 |
== Other Notes ==
|
369 |
|