Version Description
Download this release
Release Info
Developer | danieliser |
Plugin | Popup Maker – Popup Forms, Optins & More |
Version | 1.1.8 |
Comparing to | |
See all releases |
Code changes from version 1.1.7 to 1.1.8
- assets/scripts/popup-maker-site.js +141 -46
- assets/scripts/popup-maker-site.min.js +22 -19
- assets/styles/popup-maker-site.css +7 -2
- assets/styles/popup-maker-site.min.css +1 -1
- includes/admin/admin-setup.php +5 -1
- includes/admin/popups/metabox-admin-debug-fields.php +17 -0
- includes/admin/popups/metabox-display-fields.php +25 -0
- includes/admin/popups/metabox-targeting-condition-fields.php +27 -0
- includes/admin/popups/metabox.php +37 -0
- includes/defaults.php +32 -22
- includes/load-popups.php +9 -8
- includes/popup-functions.php +30 -6
- includes/post-types.php +1 -1
- includes/scripts.php +42 -12
- popup-maker.php +3 -2
- readme.txt +27 -13
assets/scripts/popup-maker-site.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* Popup Maker v1.1.
|
3 |
*/
|
4 |
(function (jQuery) {
|
5 |
"use strict";
|
@@ -236,7 +236,7 @@
|
|
236 |
reposition.my = jQuery.trim(reposition.my);
|
237 |
reposition.at = jQuery.trim(reposition.at);
|
238 |
reposition.of = window;
|
239 |
-
reposition.collision = '
|
240 |
reposition.using = typeof callback === "function" ? callback : jQuery.fn.popmake.callbacks.reposition_using;
|
241 |
|
242 |
if ($this.is(':hidden')) {
|
@@ -306,7 +306,8 @@
|
|
306 |
close_inset = theme.close.boxshadow_inset === 'yes' ? 'inset ' : '';
|
307 |
|
308 |
$overlay.removeAttr('style').css({
|
309 |
-
backgroundColor: jQuery.fn.popmake.utilities.convert_hex(theme.overlay.background_color, theme.overlay.background_opacity)
|
|
|
310 |
});
|
311 |
$container.css({
|
312 |
padding: theme.container.padding + 'px',
|
@@ -315,7 +316,8 @@
|
|
315 |
borderColor: theme.container.border_color,
|
316 |
borderWidth: theme.container.border_width + 'px',
|
317 |
borderRadius: theme.container.border_radius + 'px',
|
318 |
-
boxShadow: container_inset + theme.container.boxshadow_horizontal + 'px ' + theme.container.boxshadow_vertical + 'px ' + theme.container.boxshadow_blur + 'px ' + theme.container.boxshadow_spread + 'px ' + jQuery.fn.popmake.utilities.convert_hex(theme.container.boxshadow_color, theme.container.boxshadow_opacity)
|
|
|
319 |
});
|
320 |
$title.css({
|
321 |
color: theme.title.font_color,
|
@@ -485,6 +487,102 @@
|
|
485 |
}
|
486 |
};
|
487 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
488 |
jQuery.fn.popmake.utilities = {
|
489 |
convert_hex: function (hex, opacity) {
|
490 |
hex = hex.replace('#', '');
|
@@ -1006,13 +1104,10 @@
|
|
1006 |
var $this = jQuery(this),
|
1007 |
settings = $this.data('popmake'),
|
1008 |
click_open = settings.meta.click_open,
|
1009 |
-
auto_open = settings.meta.auto_open,
|
1010 |
trigger_selector = '.popmake-' + settings.id + ', .popmake-' + settings.slug,
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
setCookie,
|
1015 |
-
cookie_trigger;
|
1016 |
|
1017 |
if (click_open !== undefined && click_open.extra_selectors !== '') {
|
1018 |
trigger_selector += ', ' + click_open.extra_selectors;
|
@@ -1020,53 +1115,53 @@
|
|
1020 |
|
1021 |
jQuery(trigger_selector).css({cursor: "pointer"});
|
1022 |
jQuery(document).on('click', trigger_selector, function (event) {
|
1023 |
-
console.log(this);
|
1024 |
event.preventDefault();
|
1025 |
event.stopPropagation();
|
1026 |
jQuery.fn.popmake.last_open_trigger = jQuery.fn.popmake.utilities.getXPath(this);
|
1027 |
$this.popmake('open');
|
1028 |
});
|
1029 |
|
|
|
|
|
|
|
|
|
|
|
1030 |
if (auto_open !== undefined && auto_open.enabled) {
|
1031 |
-
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
1035 |
-
cookie = jQuery.cookie(cookieName);
|
1036 |
-
setCookie = function () {
|
1037 |
-
if (auto_open.cookie_time !== '') {
|
1038 |
-
cookieDate = new Date();
|
1039 |
-
cookieDate.setTime(jQuery.fn.popmake.utilities.strtotime("+" + auto_open.cookie_time) * 1000);
|
1040 |
-
jQuery.cookie(cookieName, {opened: true, expires: cookieDate}, {
|
1041 |
-
expires: cookieDate,
|
1042 |
-
path: auto_open.cookie_path
|
1043 |
-
});
|
1044 |
-
}
|
1045 |
};
|
1046 |
-
|
1047 |
-
|
1048 |
-
if (
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
$this.on('popmakeBeforeClose', function () {
|
1056 |
-
setCookie();
|
1057 |
-
});
|
1058 |
-
}
|
1059 |
-
if (cookie_trigger === 'manual') {
|
1060 |
-
$this.on('manualCookie', function () {
|
1061 |
-
setCookie();
|
1062 |
-
});
|
1063 |
-
}
|
1064 |
}
|
1065 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1066 |
jQuery.fn.popmake.last_open_trigger = 'Auto Open Popups ID-' + settings.id;
|
1067 |
$this.popmake('open');
|
1068 |
-
}
|
1069 |
-
}
|
1070 |
}
|
1071 |
});
|
1072 |
});
|
1 |
/**
|
2 |
+
* Popup Maker v1.1.8
|
3 |
*/
|
4 |
(function (jQuery) {
|
5 |
"use strict";
|
236 |
reposition.my = jQuery.trim(reposition.my);
|
237 |
reposition.at = jQuery.trim(reposition.at);
|
238 |
reposition.of = window;
|
239 |
+
reposition.collision = 'none';
|
240 |
reposition.using = typeof callback === "function" ? callback : jQuery.fn.popmake.callbacks.reposition_using;
|
241 |
|
242 |
if ($this.is(':hidden')) {
|
306 |
close_inset = theme.close.boxshadow_inset === 'yes' ? 'inset ' : '';
|
307 |
|
308 |
$overlay.removeAttr('style').css({
|
309 |
+
backgroundColor: jQuery.fn.popmake.utilities.convert_hex(theme.overlay.background_color, theme.overlay.background_opacity),
|
310 |
+
zIndex: settings.meta.display.overlay_zindex || 998
|
311 |
});
|
312 |
$container.css({
|
313 |
padding: theme.container.padding + 'px',
|
316 |
borderColor: theme.container.border_color,
|
317 |
borderWidth: theme.container.border_width + 'px',
|
318 |
borderRadius: theme.container.border_radius + 'px',
|
319 |
+
boxShadow: container_inset + theme.container.boxshadow_horizontal + 'px ' + theme.container.boxshadow_vertical + 'px ' + theme.container.boxshadow_blur + 'px ' + theme.container.boxshadow_spread + 'px ' + jQuery.fn.popmake.utilities.convert_hex(theme.container.boxshadow_color, theme.container.boxshadow_opacity),
|
320 |
+
zIndex: settings.meta.display.zindex || 999
|
321 |
});
|
322 |
$title.css({
|
323 |
color: theme.title.font_color,
|
487 |
}
|
488 |
};
|
489 |
|
490 |
+
jQuery.fn.popmake.cookie = {
|
491 |
+
defaults: {},
|
492 |
+
raw: false,
|
493 |
+
json: true,
|
494 |
+
pluses: /\+/g,
|
495 |
+
encode: function (s) {
|
496 |
+
return jQuery.fn.popmake.cookie.raw ? s : encodeURIComponent(s);
|
497 |
+
},
|
498 |
+
decode: function (s) {
|
499 |
+
return jQuery.fn.popmake.cookie.raw ? s : decodeURIComponent(s);
|
500 |
+
},
|
501 |
+
stringifyCookieValue: function (value) {
|
502 |
+
return jQuery.fn.popmake.cookie.encode(jQuery.fn.popmake.cookie.json ? JSON.stringify(value) : String(value));
|
503 |
+
},
|
504 |
+
parseCookieValue: function (s) {
|
505 |
+
if (s.indexOf('"') === 0) {
|
506 |
+
// This is a quoted cookie as according to RFC2068, unescape...
|
507 |
+
s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
|
508 |
+
}
|
509 |
+
|
510 |
+
try {
|
511 |
+
// Replace server-side written pluses with spaces.
|
512 |
+
// If we can't decode the cookie, ignore it, it's unusable.
|
513 |
+
// If we can't parse the cookie, ignore it, it's unusable.
|
514 |
+
s = decodeURIComponent(s.replace(jQuery.fn.popmake.cookie.pluses, ' '));
|
515 |
+
return jQuery.fn.popmake.cookie.json ? JSON.parse(s) : s;
|
516 |
+
} catch (ignore) {}
|
517 |
+
},
|
518 |
+
read: function (s, converter) {
|
519 |
+
var value = jQuery.fn.popmake.cookie.raw ? s : jQuery.fn.popmake.cookie.parseCookieValue(s);
|
520 |
+
return jQuery.isFunction(converter) ? converter(value) : value;
|
521 |
+
},
|
522 |
+
process: function (key, value, expires, path) {
|
523 |
+
var result = key ? undefined : {},
|
524 |
+
t = new Date(),
|
525 |
+
cookies = document.cookie ? document.cookie.split('; ') : [],
|
526 |
+
parts,
|
527 |
+
name,
|
528 |
+
cookie,
|
529 |
+
i,
|
530 |
+
l;
|
531 |
+
// Write
|
532 |
+
|
533 |
+
if (value !== undefined && !jQuery.isFunction(value)) {
|
534 |
+
|
535 |
+
switch (typeof expires) {
|
536 |
+
case 'number':
|
537 |
+
t.setTime(+t + expires * 864e+5);
|
538 |
+
expires = t;
|
539 |
+
break;
|
540 |
+
case 'string':
|
541 |
+
t.setTime(jQuery.fn.popmake.utilities.strtotime("+" + expires) * 1000);
|
542 |
+
expires = t;
|
543 |
+
break;
|
544 |
+
}
|
545 |
+
|
546 |
+
document.cookie = [
|
547 |
+
jQuery.fn.popmake.cookie.encode(key), '=', jQuery.fn.popmake.cookie.stringifyCookieValue(value),
|
548 |
+
expires ? '; expires=' + expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
|
549 |
+
path ? '; path=' + path : ''
|
550 |
+
].join('');
|
551 |
+
return;
|
552 |
+
}
|
553 |
+
|
554 |
+
for (i = 0, l = cookies.length; i < l; i += 1) {
|
555 |
+
parts = cookies[i].split('=');
|
556 |
+
name = jQuery.fn.popmake.cookie.decode(parts.shift());
|
557 |
+
cookie = parts.join('=');
|
558 |
+
|
559 |
+
if (key && key === name) {
|
560 |
+
// If second argument (value) is a function it's a converter...
|
561 |
+
result = jQuery.fn.popmake.cookie.read(cookie, value);
|
562 |
+
break;
|
563 |
+
}
|
564 |
+
|
565 |
+
// Prevent storing a cookie that we couldn't decode.
|
566 |
+
cookie = jQuery.fn.popmake.cookie.read(cookie);
|
567 |
+
if (!key && cookie !== undefined) {
|
568 |
+
result[name] = cookie;
|
569 |
+
}
|
570 |
+
}
|
571 |
+
|
572 |
+
return result;
|
573 |
+
},
|
574 |
+
remove: function (key) {
|
575 |
+
if (jQuery.pm_cookie(key) === undefined) {
|
576 |
+
return false;
|
577 |
+
}
|
578 |
+
jQuery.pm_cookie(key, '', -1);
|
579 |
+
return !jQuery.pm_cookie(key);
|
580 |
+
}
|
581 |
+
};
|
582 |
+
|
583 |
+
jQuery.pm_cookie = jQuery.fn.popmake.cookie.process;
|
584 |
+
jQuery.pm_remove_cookie = jQuery.fn.popmake.cookie.remove;
|
585 |
+
|
586 |
jQuery.fn.popmake.utilities = {
|
587 |
convert_hex: function (hex, opacity) {
|
588 |
hex = hex.replace('#', '');
|
1104 |
var $this = jQuery(this),
|
1105 |
settings = $this.data('popmake'),
|
1106 |
click_open = settings.meta.click_open,
|
|
|
1107 |
trigger_selector = '.popmake-' + settings.id + ', .popmake-' + settings.slug,
|
1108 |
+
admin_debug = settings.meta.admin_debug,
|
1109 |
+
auto_open = settings.meta.auto_open,
|
1110 |
+
noCookieCheck;
|
|
|
|
|
1111 |
|
1112 |
if (click_open !== undefined && click_open.extra_selectors !== '') {
|
1113 |
trigger_selector += ', ' + click_open.extra_selectors;
|
1115 |
|
1116 |
jQuery(trigger_selector).css({cursor: "pointer"});
|
1117 |
jQuery(document).on('click', trigger_selector, function (event) {
|
|
|
1118 |
event.preventDefault();
|
1119 |
event.stopPropagation();
|
1120 |
jQuery.fn.popmake.last_open_trigger = jQuery.fn.popmake.utilities.getXPath(this);
|
1121 |
$this.popmake('open');
|
1122 |
});
|
1123 |
|
1124 |
+
if (admin_debug !== undefined && admin_debug.enabled) {
|
1125 |
+
$this.popmake('open');
|
1126 |
+
return;
|
1127 |
+
}
|
1128 |
+
|
1129 |
if (auto_open !== undefined && auto_open.enabled) {
|
1130 |
+
|
1131 |
+
noCookieCheck = function () {
|
1132 |
+
return jQuery.pm_cookie("popmake-auto-open-" + settings.id + "-" + auto_open.cookie_key) === undefined;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1133 |
};
|
1134 |
+
|
1135 |
+
$this.on('popmakeSetCookie', function () {
|
1136 |
+
if (auto_open.cookie_time !== '' && noCookieCheck()) {
|
1137 |
+
jQuery.pm_cookie(
|
1138 |
+
"popmake-auto-open-" + settings.id + "-" + auto_open.cookie_key,
|
1139 |
+
true,
|
1140 |
+
auto_open.cookie_time,
|
1141 |
+
auto_open.cookie_path
|
1142 |
+
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1143 |
}
|
1144 |
+
});
|
1145 |
+
|
1146 |
+
switch (auto_open.cookie_trigger) {
|
1147 |
+
case "open":
|
1148 |
+
$this.on('popmakeAfterOpen', function () {
|
1149 |
+
$this.trigger('popmakeSetCookie');
|
1150 |
+
});
|
1151 |
+
break;
|
1152 |
+
case "close":
|
1153 |
+
$this.on('popmakeBeforeClose', function () {
|
1154 |
+
$this.trigger('popmakeSetCookie');
|
1155 |
+
});
|
1156 |
+
break;
|
1157 |
+
}
|
1158 |
+
|
1159 |
+
setTimeout(function () {
|
1160 |
+
if (noCookieCheck()) {
|
1161 |
jQuery.fn.popmake.last_open_trigger = 'Auto Open Popups ID-' + settings.id;
|
1162 |
$this.popmake('open');
|
1163 |
+
}
|
1164 |
+
}, auto_open.delay);
|
1165 |
}
|
1166 |
});
|
1167 |
});
|
assets/scripts/popup-maker-site.min.js
CHANGED
@@ -1,25 +1,28 @@
|
|
1 |
/**
|
2 |
-
* Popup Maker v1.1.
|
3 |
*/
|
4 |
(function(c){c.isFunction(c.fn.on)||(c.fn.on=function(a,c,d){return this.delegate(c,a,d)},c.fn.off=function(a,c,d){return this.undelegate(c,a,d)});c.fn.popmake=function(a){if(c.fn.popmake.methods[a])return c.fn.popmake.methods[a].apply(this,Array.prototype.slice.call(arguments,1));if("object"===typeof a||!a)return c.fn.popmake.methods.init.apply(this,arguments);c.error("Method "+a+" does not exist on jQuery.fn.popmake")};c.fn.popmake.last_open_popup=null;c.fn.popmake.last_open_trigger=null;c.fn.popmake.last_close_trigger=
|
5 |
null;c.fn.popmake.methods={init:function(a){return this.each(function(){var e=c(this),d=c.extend(!0,{},c.fn.popmake.defaults,e.data("popmake"),a);e.parent().is("body")||e.appendTo("body");c("#"+d.overlay.attr.id).length||c("<div>").attr(d.overlay.attr).appendTo("body");c(window).on("resize",function(){e.hasClass("active")&&c.fn.popmake.utilities.throttle(setTimeout(function(){e.popmake("reposition")},25),500,!1)});"string"===typeof popmake_powered_by&&""!==popmake_powered_by&&c(".popmake-content",
|
6 |
-
e).append(c(popmake_powered_by));e.data("popmake",d).on("popmakeBeforeOpen.hide_popup",function(){c(this).css({visibility:"visible"}).hide().addClass(d.container.active_class);d.meta.display.stackable||e.popmake("close_all")}).on("popmakeAfterClose.close_overlay",function(){var a=c("#"+d.overlay.attr.id);a.length&&a.is(":visible")&&a.fadeOut(d.close.close_speed)}).on("popmakeAfterClose.reset_videos",function(){c("iframe",e).filter('[src*="youtube"],[src*="vimeo"]').each(function(){var a=c(this).attr("src")
|
7 |
-
c(this).attr("src","").attr("src",a)})}).on("popmakeBeforeOpen.setup_close",function(){e.popmake("setup_close")}).on("popmakeBeforeOpen.retheme",function(){e.popmake("retheme")}).on("popmakeBeforeOpen.reposition",function(){e.popmake("reposition")}).trigger("popmakeInit");return this})},setup_close:function(){var a=c(this),e=a.data("popmake"),d=c("#"+e.overlay.attr.id),b=c("."+e.close.attr["class"],a);b.off("click.popmake").on("click.popmake",function(b){b.preventDefault();b.stopPropagation();
|
8 |
-
"Close Button";a.popmake("close")});if(e.meta.close.esc_press||e.meta.close.f4_press)c(window).off("keyup.popmake").on("keyup.popmake",function(b){27===b.keyCode&&e.meta.close.esc_press&&(c.fn.popmake.last_close_trigger="ESC Key",a.popmake("close"));115===b.keyCode&&e.meta.close.f4_press&&(c.fn.popmake.last_close_trigger="F4 Key",a.popmake("close"))});if(e.meta.close.overlay_click)d.off("click.popmake").on("click.popmake",function(b){b.preventDefault();b.stopPropagation();
|
9 |
-
"Overlay Click";a.popmake("close")});a.on("popmakeAfterClose",function(){c(window).off("keyup.popmake");d.off("click.popmake");b.off("click.popmake")}).trigger("popmakeSetupClose")},open:function(a){var e=c(this),d=e.data("popmake");e.trigger("popmakeBeforeOpen").popmake("animate",d.meta.display.animation_type,function(){e.addClass("active").trigger("popmakeAfterOpen");c.fn.popmake.last_open_popup=e;void 0!==a&&a()});return this},close:function(){return this.each(function(){var a=
|
10 |
-
a.trigger("popmakeBeforeClose").fadeOut(e.close.close_speed,function(){a.removeClass("active").trigger("popmakeAfterClose")});return this})},close_all:function(){var a=c(this).data("popmake");c("."+a.container.attr["class"]).removeClass("active").hide(0);return this},reposition:function(a){c(this).trigger("popmakeBeforeReposition");var e=c(this),d=e.data("popmake"),b=d.meta.display,g=b.location,f={my:"",at:""},h=!1;0<=g.indexOf("left")&&(f={my:f.my+" left"+(0!==b.position_left?
|
11 |
-
""),at:f.at+" left"});0<=g.indexOf("right")&&(f={my:f.my+" right"+(0!==b.position_right?"-"+b.position_right:""),at:f.at+" right"});0<=g.indexOf("center")&&(f="center"===g?{my:"center",at:"center"}:{my:f.my+" center",at:f.at+" center"});0<=g.indexOf("top")&&(f={my:f.my+" top"+(0!==b.position_top?"+"+b.position_top:""),at:f.at+" top"});0<=g.indexOf("bottom")&&(f={my:f.my+" bottom"+(0!==b.position_bottom?"-"+b.position_bottom:""),at:f.at+" bottom"});f.my=c.trim(f.my);f.at=c.trim(f.at);
|
12 |
-
"
|
13 |
-
d.meta.display.responsive_min_width_unit}),""!==d.meta.display.responsive_max_width&&e.css({maxWidth:d.meta.display.responsive_max_width+d.meta.display.responsive_max_width_unit}));e.addClass("custom-position").position(f).trigger("popmakeAfterReposition");h&&e.css({opacity:h}).hide();return this},retheme:function(a){c(this).trigger("popmakeBeforeRetheme");var e=c(this),d=e.data("popmake"),b=c("#"+d.overlay.attr.id),g=c("."+d.title.attr["class"],
|
14 |
-
e),k;void 0===a&&(a=c.fn.popmake.themes[d.theme_id],void 0===a&&(a=c.fn.popmake.themes[1]));
|
15 |
-
borderColor:a.container.border_color,borderWidth:a.container.border_width+"px",borderRadius:a.container.border_radius+"px",boxShadow:
|
16 |
-
fontWeight:a.title.font_weight,fontStyle:a.title.font_style,textAlign:a.title.text_align,textShadow:a.title.textshadow_horizontal+"px "+a.title.textshadow_vertical+"px "+a.title.textshadow_blur+"px "+c.fn.popmake.utilities.convert_hex(a.title.textshadow_color,a.title.textshadow_opacity)});f.css({color:a.content.font_color,fontFamily:a.content.font_family,fontWeight:a.content.font_weight,fontStyle:a.content.font_style});
|
17 |
-
h.html(a.close.text).css({padding:a.close.padding+"px",backgroundColor:c.fn.popmake.utilities.convert_hex(a.close.background_color,a.close.background_opacity),color:a.close.font_color,lineHeight:a.close.line_height+"px",fontSize:a.close.font_size+"px",fontWeight:a.close.font_weight,fontStyle:a.close.font_style,fontFamily:a.close.font_family,borderStyle:a.close.border_style,borderColor:a.close.border_color,borderWidth:a.close.border_width+
|
18 |
-
"px "+a.close.boxshadow_vertical+"px "+a.close.boxshadow_blur+"px "+a.close.boxshadow_spread+"px "+c.fn.popmake.utilities.convert_hex(a.close.boxshadow_color,a.close.boxshadow_opacity),textShadow:a.close.textshadow_horizontal+"px "+a.close.textshadow_vertical+"px "+a.close.textshadow_blur+"px "+c.fn.popmake.utilities.convert_hex(a.close.textshadow_color,a.close.textshadow_opacity)});switch(a.close.location){case "topleft":h.css({top:a.close.position_top+
|
19 |
-
case "topright":h.css({top:a.close.position_top+"px",right:a.close.position_right+"px"});break;case "bottomleft":h.css({bottom:a.close.position_bottom+"px",left:a.close.position_left+"px"});break;case "bottomright":h.css({bottom:a.close.position_bottom+"px",right:a.close.position_right+"px"})}e.trigger("popmakeAfterRetheme",[a]);return this},animate_overlay:function(a,e,d){if(c(this).data("popmake").meta.display.overlay_disabled)d();else{if(c.fn.popmake.overlay_animations[a])return c.fn.popmake.overlay_animations[a].apply(this,
|
20 |
Array.prototype.slice.call(arguments,1));c.error("Animation style "+c.fn.popmake.overlay_animations+" does not exist.")}return this},animate:function(a,e){if(c.fn.popmake.animations[a])return c.fn.popmake.animations[a].apply(this,Array.prototype.slice.call(arguments,1));c.error("Animation style "+c.fn.popmake.animations+" does not exist.");return this},animation_origin:function(a){var e=c(this),d={my:"",at:""};switch(a){case "top":d={my:"left+"+e.offset().left+" bottom-100",at:"left top"};break;case "bottom":d=
|
21 |
{my:"left+"+e.offset().left+" top+100",at:"left bottom"};break;case "left":d={my:"right top+"+e.offset().top,at:"left top"};break;case "right":d={my:"left top+"+e.offset().top,at:"right top"};break;default:0<=a.indexOf("left")&&(d={my:d.my+" right",at:d.at+" left"}),0<=a.indexOf("right")&&(d={my:d.my+" left",at:d.at+" right"}),0<=a.indexOf("center")&&(d={my:d.my+" center",at:d.at+" center"}),0<=a.indexOf("top")&&(d={my:d.my+" bottom-100",at:d.at+" top"}),0<=a.indexOf("bottom")&&(d={my:d.my+" top+100",
|
22 |
-
at:d.at+" bottom"}),d.my=c.trim(d.my),d.at=c.trim(d.at)}d.of=window;d.collision="none";return d}};c.fn.popmake.callbacks={reposition_using:function(a){c(this).css(a)}};c.fn.popmake.
|
|
|
|
|
|
|
23 |
g)},c)}},throttle:function(a,c){var d=!1,b=function(){d=!1};return function(){d||(a.apply(this,arguments),window.setTimeout(b,c),d=!0)}},getXPath:function(a){var e=[],d,b,g,f,h;c.each(c(a).parents(),function(a,l){d=c(l);b=d.attr("id")||"";g=d.attr("class")||"";f=d.get(0).tagName.toLowerCase();h=d.parent().children(f).index(d);if("body"===f)return!1;0<g.length&&(g=g.split(" "),g=g[0]);e.push(f+(0<b.length?"#"+b:0<g.length?"."+g.split(" ").join("."):":eq("+h+")"))});return e.reverse().join(" > ")},
|
24 |
strtotime:function(a,c){function d(a){var b=a.split(" ");a=b[0];var c=b[1].substring(0,3),d=/\d+/.test(a),e=("last"===a?-1:1)*("ago"===b[2]?-1:1);d&&(e*=parseInt(a,10));if(k.hasOwnProperty(c)&&!b[1].match(/^mon(day|\.)?$/i))return f["set"+k[c]](f["get"+k[c]]()+e);if("wee"===c)return f.setDate(f.getDate()+7*e);if("next"===a||"last"===a)b=e,c=h[c],void 0!==c&&(c-=f.getDay(),0===c?c=7*b:0<c&&"last"===a?c-=7:0>c&&"next"===a&&(c+=7),f.setDate(f.getDate()+c));else if(!d)return!1;return!0}var b,g,f,h,k,
|
25 |
l;if(!a)return!1;a=a.replace(/^\s+|\s+$/g,"").replace(/\s{2,}/g," ").replace(/[\t\r\n]/g,"").toLowerCase();if((b=a.match(/^(\d{1,4})([\-\.\/\:])(\d{1,2})([\-\.\/\:])(\d{1,4})(?:\s(\d{1,2}):(\d{2})?:?(\d{2})?)?(?:\s([A-Z]+)?)?$/))&&b[2]===b[4])if(1901<b[1])switch(b[2]){case "-":return 12<b[3]||31<b[5]?!1:new Date(b[1],parseInt(b[3],10)-1,b[5],b[6]||0,b[7]||0,b[8]||0,b[9]||0)/1E3;case ".":return!1;case "/":return 12<b[3]||31<b[5]?!1:new Date(b[1],parseInt(b[3],10)-1,b[5],b[6]||0,b[7]||0,b[8]||0,b[9]||
|
@@ -33,6 +36,6 @@ b=d.meta.display.animation_speed/2E3,d=e.popmake("animation_origin",d.meta.displ
|
|
33 |
"fade",1E3*d,function(){TweenLite.to(e,d,{opacity:1,onComplete:function(){void 0!==a&&a()}})});return this},fadeAndSlide:function(a){var e=c(this).show(0).css({opacity:0}),d=e.data("popmake"),b=d.meta.display.animation_speed/2E3,d=e.popmake("animation_origin",d.meta.display.animation_origin);c("html").css("overflow-x","hidden");e.position(d).popmake("animate_overlay","fade",1E3*b,function(){e.popmake("reposition",function(d){TweenLite.to(e,b,c.extend(d,{opacity:1,onComplete:function(){c("html").css("overflow-x",
|
34 |
"inherit");void 0!==a&&a()}}))})});return this},grow:function(a){var e=c(this).show(0).css({opacity:0}),d=e.data("popmake"),b=d.meta.display.animation_speed/2E3,d=d.meta.display.animation_origin;if("top"===d||"bottom"===d)d="center "+d;if("left"===d||"right"===d)d+=" center";TweenLite.to(e,0,{transformOrigin:d,scale:0,opacity:1});e.popmake("animate_overlay","fade",1E3*b,function(){e.popmake("reposition",function(c){TweenLite.to(e,b,{scale:1,onComplete:function(){void 0!==a&&a()}})})});return this},
|
35 |
growAndSlide:function(a){var e=c(this).show(0).css({opacity:0}),d=e.data("popmake"),b=d.meta.display.animation_speed/2E3,d=e.popmake("animation_origin",d.meta.display.animation_origin);c("html").css("overflow-x","hidden");e.position(d);TweenLite.to(e,0,{scale:0,opacity:1,transformOrigin:"0 0"});e.popmake("animate_overlay","fade",1E3*b,function(){e.popmake("reposition",function(d){TweenLite.to(e,b,c.extend(d,{scale:1,transformOrigin:"50% 50%",onComplete:function(){c("html").css("overflow-x","inherit");
|
36 |
-
void 0!==a&&a()}}))})});return this}};c(".popmake").css({visibility:"visible"}).hide();c(document).ready(function(){c(".popmake").popmake().each(function(){var a=c(this),e=a.data("popmake"),d=e.meta.click_open,b=
|
37 |
-
a.popmake("open")});if(void 0!==
|
38 |
-
"Auto Open Popups ID-"+e.id
|
1 |
/**
|
2 |
+
* Popup Maker v1.1.8
|
3 |
*/
|
4 |
(function(c){c.isFunction(c.fn.on)||(c.fn.on=function(a,c,d){return this.delegate(c,a,d)},c.fn.off=function(a,c,d){return this.undelegate(c,a,d)});c.fn.popmake=function(a){if(c.fn.popmake.methods[a])return c.fn.popmake.methods[a].apply(this,Array.prototype.slice.call(arguments,1));if("object"===typeof a||!a)return c.fn.popmake.methods.init.apply(this,arguments);c.error("Method "+a+" does not exist on jQuery.fn.popmake")};c.fn.popmake.last_open_popup=null;c.fn.popmake.last_open_trigger=null;c.fn.popmake.last_close_trigger=
|
5 |
null;c.fn.popmake.methods={init:function(a){return this.each(function(){var e=c(this),d=c.extend(!0,{},c.fn.popmake.defaults,e.data("popmake"),a);e.parent().is("body")||e.appendTo("body");c("#"+d.overlay.attr.id).length||c("<div>").attr(d.overlay.attr).appendTo("body");c(window).on("resize",function(){e.hasClass("active")&&c.fn.popmake.utilities.throttle(setTimeout(function(){e.popmake("reposition")},25),500,!1)});"string"===typeof popmake_powered_by&&""!==popmake_powered_by&&c(".popmake-content",
|
6 |
+
e).append(c(popmake_powered_by));e.data("popmake",d).on("popmakeBeforeOpen.hide_popup",function(){c(this).css({visibility:"visible"}).hide().addClass(d.container.active_class);d.meta.display.stackable||e.popmake("close_all")}).on("popmakeAfterClose.close_overlay",function(){var a=c("#"+d.overlay.attr.id);a.length&&a.is(":visible")&&a.fadeOut(d.close.close_speed)}).on("popmakeAfterClose.reset_videos",function(){c("iframe",e).filter('[src*="youtube"],[src*="vimeo"]').each(function(){var a=c(this).attr("src").replace("autoplay=1",
|
7 |
+
"1=1");console.log(a);c(this).attr("src","").attr("src",a)})}).on("popmakeBeforeOpen.setup_close",function(){e.popmake("setup_close")}).on("popmakeBeforeOpen.retheme",function(){e.popmake("retheme")}).on("popmakeBeforeOpen.reposition",function(){e.popmake("reposition")}).trigger("popmakeInit");return this})},setup_close:function(){var a=c(this),e=a.data("popmake"),d=c("#"+e.overlay.attr.id),b=c("."+e.close.attr["class"],a);b.off("click.popmake").on("click.popmake",function(b){b.preventDefault();b.stopPropagation();
|
8 |
+
c.fn.popmake.last_close_trigger="Close Button";a.popmake("close")});if(e.meta.close.esc_press||e.meta.close.f4_press)c(window).off("keyup.popmake").on("keyup.popmake",function(b){27===b.keyCode&&e.meta.close.esc_press&&(c.fn.popmake.last_close_trigger="ESC Key",a.popmake("close"));115===b.keyCode&&e.meta.close.f4_press&&(c.fn.popmake.last_close_trigger="F4 Key",a.popmake("close"))});if(e.meta.close.overlay_click)d.off("click.popmake").on("click.popmake",function(b){b.preventDefault();b.stopPropagation();
|
9 |
+
c.fn.popmake.last_close_trigger="Overlay Click";a.popmake("close")});a.on("popmakeAfterClose",function(){c(window).off("keyup.popmake");d.off("click.popmake");b.off("click.popmake")}).trigger("popmakeSetupClose")},open:function(a){var e=c(this),d=e.data("popmake");e.trigger("popmakeBeforeOpen").popmake("animate",d.meta.display.animation_type,function(){e.addClass("active").trigger("popmakeAfterOpen");c.fn.popmake.last_open_popup=e;void 0!==a&&a()});return this},close:function(){return this.each(function(){var a=
|
10 |
+
c(this),e=a.data("popmake");a.trigger("popmakeBeforeClose").fadeOut(e.close.close_speed,function(){a.removeClass("active").trigger("popmakeAfterClose")});return this})},close_all:function(){var a=c(this).data("popmake");c("."+a.container.attr["class"]).removeClass("active").hide(0);return this},reposition:function(a){c(this).trigger("popmakeBeforeReposition");var e=c(this),d=e.data("popmake"),b=d.meta.display,g=b.location,f={my:"",at:""},h=!1;0<=g.indexOf("left")&&(f={my:f.my+" left"+(0!==b.position_left?
|
11 |
+
"+"+b.position_left:""),at:f.at+" left"});0<=g.indexOf("right")&&(f={my:f.my+" right"+(0!==b.position_right?"-"+b.position_right:""),at:f.at+" right"});0<=g.indexOf("center")&&(f="center"===g?{my:"center",at:"center"}:{my:f.my+" center",at:f.at+" center"});0<=g.indexOf("top")&&(f={my:f.my+" top"+(0!==b.position_top?"+"+b.position_top:""),at:f.at+" top"});0<=g.indexOf("bottom")&&(f={my:f.my+" bottom"+(0!==b.position_bottom?"-"+b.position_bottom:""),at:f.at+" bottom"});f.my=c.trim(f.my);f.at=c.trim(f.at);
|
12 |
+
f.of=window;f.collision="none";f.using="function"===typeof a?a:c.fn.popmake.callbacks.reposition_using;e.is(":hidden")&&(h=e.css("opacity"),e.css({opacity:0}).show());b.position_fixed?e.addClass("fixed"):e.removeClass("fixed");"custom"===d.meta.display.size?e.css({width:d.meta.display.custom_width+d.meta.display.custom_width_unit,height:d.meta.display.custom_height_auto?"auto":d.meta.display.custom_height+d.meta.display.custom_height_unit}):"auto"!==d.meta.display.size&&(""!==d.meta.display.responsive_min_width&&
|
13 |
+
e.css({mixWidth:d.meta.display.responsive_min_width+d.meta.display.responsive_min_width_unit}),""!==d.meta.display.responsive_max_width&&e.css({maxWidth:d.meta.display.responsive_max_width+d.meta.display.responsive_max_width_unit}));e.addClass("custom-position").position(f).trigger("popmakeAfterReposition");h&&e.css({opacity:h}).hide();return this},retheme:function(a){c(this).trigger("popmakeBeforeRetheme");var e=c(this),d=e.data("popmake"),b=c("#"+d.overlay.attr.id),g=c("."+d.title.attr["class"],
|
14 |
+
e),f=c("> ."+d.content.attr["class"],e),h=c("> ."+d.close.attr["class"],e),k,l;void 0===a&&(a=c.fn.popmake.themes[d.theme_id],void 0===a&&(a=c.fn.popmake.themes[1]));k="yes"===a.container.boxshadow_inset?"inset ":"";l="yes"===a.close.boxshadow_inset?"inset ":"";b.removeAttr("style").css({backgroundColor:c.fn.popmake.utilities.convert_hex(a.overlay.background_color,a.overlay.background_opacity),zIndex:d.meta.display.overlay_zindex||998});e.css({padding:a.container.padding+"px",backgroundColor:c.fn.popmake.utilities.convert_hex(a.container.background_color,
|
15 |
+
a.container.background_opacity),borderStyle:a.container.border_style,borderColor:a.container.border_color,borderWidth:a.container.border_width+"px",borderRadius:a.container.border_radius+"px",boxShadow:k+a.container.boxshadow_horizontal+"px "+a.container.boxshadow_vertical+"px "+a.container.boxshadow_blur+"px "+a.container.boxshadow_spread+"px "+c.fn.popmake.utilities.convert_hex(a.container.boxshadow_color,a.container.boxshadow_opacity),zIndex:d.meta.display.zindex||999});g.css({color:a.title.font_color,
|
16 |
+
lineHeight:a.title.line_height+"px",fontSize:a.title.font_size+"px",fontFamily:a.title.font_family,fontWeight:a.title.font_weight,fontStyle:a.title.font_style,textAlign:a.title.text_align,textShadow:a.title.textshadow_horizontal+"px "+a.title.textshadow_vertical+"px "+a.title.textshadow_blur+"px "+c.fn.popmake.utilities.convert_hex(a.title.textshadow_color,a.title.textshadow_opacity)});f.css({color:a.content.font_color,fontFamily:a.content.font_family,fontWeight:a.content.font_weight,fontStyle:a.content.font_style});
|
17 |
+
c("p, label",f).css({color:a.content.font_color,fontFamily:a.content.font_family});h.html(a.close.text).css({padding:a.close.padding+"px",backgroundColor:c.fn.popmake.utilities.convert_hex(a.close.background_color,a.close.background_opacity),color:a.close.font_color,lineHeight:a.close.line_height+"px",fontSize:a.close.font_size+"px",fontWeight:a.close.font_weight,fontStyle:a.close.font_style,fontFamily:a.close.font_family,borderStyle:a.close.border_style,borderColor:a.close.border_color,borderWidth:a.close.border_width+
|
18 |
+
"px",borderRadius:a.close.border_radius+"px",boxShadow:l+a.close.boxshadow_horizontal+"px "+a.close.boxshadow_vertical+"px "+a.close.boxshadow_blur+"px "+a.close.boxshadow_spread+"px "+c.fn.popmake.utilities.convert_hex(a.close.boxshadow_color,a.close.boxshadow_opacity),textShadow:a.close.textshadow_horizontal+"px "+a.close.textshadow_vertical+"px "+a.close.textshadow_blur+"px "+c.fn.popmake.utilities.convert_hex(a.close.textshadow_color,a.close.textshadow_opacity)});switch(a.close.location){case "topleft":h.css({top:a.close.position_top+
|
19 |
+
"px",left:a.close.position_left+"px"});break;case "topright":h.css({top:a.close.position_top+"px",right:a.close.position_right+"px"});break;case "bottomleft":h.css({bottom:a.close.position_bottom+"px",left:a.close.position_left+"px"});break;case "bottomright":h.css({bottom:a.close.position_bottom+"px",right:a.close.position_right+"px"})}e.trigger("popmakeAfterRetheme",[a]);return this},animate_overlay:function(a,e,d){if(c(this).data("popmake").meta.display.overlay_disabled)d();else{if(c.fn.popmake.overlay_animations[a])return c.fn.popmake.overlay_animations[a].apply(this,
|
20 |
Array.prototype.slice.call(arguments,1));c.error("Animation style "+c.fn.popmake.overlay_animations+" does not exist.")}return this},animate:function(a,e){if(c.fn.popmake.animations[a])return c.fn.popmake.animations[a].apply(this,Array.prototype.slice.call(arguments,1));c.error("Animation style "+c.fn.popmake.animations+" does not exist.");return this},animation_origin:function(a){var e=c(this),d={my:"",at:""};switch(a){case "top":d={my:"left+"+e.offset().left+" bottom-100",at:"left top"};break;case "bottom":d=
|
21 |
{my:"left+"+e.offset().left+" top+100",at:"left bottom"};break;case "left":d={my:"right top+"+e.offset().top,at:"left top"};break;case "right":d={my:"left top+"+e.offset().top,at:"right top"};break;default:0<=a.indexOf("left")&&(d={my:d.my+" right",at:d.at+" left"}),0<=a.indexOf("right")&&(d={my:d.my+" left",at:d.at+" right"}),0<=a.indexOf("center")&&(d={my:d.my+" center",at:d.at+" center"}),0<=a.indexOf("top")&&(d={my:d.my+" bottom-100",at:d.at+" top"}),0<=a.indexOf("bottom")&&(d={my:d.my+" top+100",
|
22 |
+
at:d.at+" bottom"}),d.my=c.trim(d.my),d.at=c.trim(d.at)}d.of=window;d.collision="none";return d}};c.fn.popmake.callbacks={reposition_using:function(a){c(this).css(a)}};c.fn.popmake.cookie={defaults:{},raw:!1,json:!0,pluses:/\+/g,encode:function(a){return c.fn.popmake.cookie.raw?a:encodeURIComponent(a)},decode:function(a){return c.fn.popmake.cookie.raw?a:decodeURIComponent(a)},stringifyCookieValue:function(a){return c.fn.popmake.cookie.encode(c.fn.popmake.cookie.json?JSON.stringify(a):String(a))},
|
23 |
+
parseCookieValue:function(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(c.fn.popmake.cookie.pluses," ")),c.fn.popmake.cookie.json?JSON.parse(a):a}catch(e){}},read:function(a,e){var d=c.fn.popmake.cookie.raw?a:c.fn.popmake.cookie.parseCookieValue(a);return c.isFunction(e)?e(d):d},process:function(a,e,d,b){var g=a?void 0:{},f=new Date,h=document.cookie?document.cookie.split("; "):[],k;if(void 0===e||c.isFunction(e)){b=0;
|
24 |
+
for(f=h.length;b<f;b+=1){k=h[b].split("=");d=c.fn.popmake.cookie.decode(k.shift());k=k.join("=");if(a&&a===d){g=c.fn.popmake.cookie.read(k,e);break}k=c.fn.popmake.cookie.read(k);a||void 0===k||(g[d]=k)}return g}switch(typeof d){case "number":f.setTime(+f+864E5*d);d=f;break;case "string":f.setTime(1E3*c.fn.popmake.utilities.strtotime("+"+d)),d=f}document.cookie=[c.fn.popmake.cookie.encode(a),"=",c.fn.popmake.cookie.stringifyCookieValue(e),d?"; expires="+d.toUTCString():"",b?"; path="+b:""].join("")},
|
25 |
+
remove:function(a){if(void 0===c.pm_cookie(a))return!1;c.pm_cookie(a,"",-1);return!c.pm_cookie(a)}};c.pm_cookie=c.fn.popmake.cookie.process;c.pm_remove_cookie=c.fn.popmake.cookie.remove;c.fn.popmake.utilities={convert_hex:function(a,c){a=a.replace("#","");var d=parseInt(a.substring(0,2),16),b=parseInt(a.substring(2,4),16),g=parseInt(a.substring(4,6),16);return"rgba("+d+","+b+","+g+","+c/100+")"},debounce:function(a,c){var d;return function(){var b=this,g=arguments;window.clearTimeout(d);d=window.setTimeout(function(){a.apply(b,
|
26 |
g)},c)}},throttle:function(a,c){var d=!1,b=function(){d=!1};return function(){d||(a.apply(this,arguments),window.setTimeout(b,c),d=!0)}},getXPath:function(a){var e=[],d,b,g,f,h;c.each(c(a).parents(),function(a,l){d=c(l);b=d.attr("id")||"";g=d.attr("class")||"";f=d.get(0).tagName.toLowerCase();h=d.parent().children(f).index(d);if("body"===f)return!1;0<g.length&&(g=g.split(" "),g=g[0]);e.push(f+(0<b.length?"#"+b:0<g.length?"."+g.split(" ").join("."):":eq("+h+")"))});return e.reverse().join(" > ")},
|
27 |
strtotime:function(a,c){function d(a){var b=a.split(" ");a=b[0];var c=b[1].substring(0,3),d=/\d+/.test(a),e=("last"===a?-1:1)*("ago"===b[2]?-1:1);d&&(e*=parseInt(a,10));if(k.hasOwnProperty(c)&&!b[1].match(/^mon(day|\.)?$/i))return f["set"+k[c]](f["get"+k[c]]()+e);if("wee"===c)return f.setDate(f.getDate()+7*e);if("next"===a||"last"===a)b=e,c=h[c],void 0!==c&&(c-=f.getDay(),0===c?c=7*b:0<c&&"last"===a?c-=7:0>c&&"next"===a&&(c+=7),f.setDate(f.getDate()+c));else if(!d)return!1;return!0}var b,g,f,h,k,
|
28 |
l;if(!a)return!1;a=a.replace(/^\s+|\s+$/g,"").replace(/\s{2,}/g," ").replace(/[\t\r\n]/g,"").toLowerCase();if((b=a.match(/^(\d{1,4})([\-\.\/\:])(\d{1,2})([\-\.\/\:])(\d{1,4})(?:\s(\d{1,2}):(\d{2})?:?(\d{2})?)?(?:\s([A-Z]+)?)?$/))&&b[2]===b[4])if(1901<b[1])switch(b[2]){case "-":return 12<b[3]||31<b[5]?!1:new Date(b[1],parseInt(b[3],10)-1,b[5],b[6]||0,b[7]||0,b[8]||0,b[9]||0)/1E3;case ".":return!1;case "/":return 12<b[3]||31<b[5]?!1:new Date(b[1],parseInt(b[3],10)-1,b[5],b[6]||0,b[7]||0,b[8]||0,b[9]||
|
36 |
"fade",1E3*d,function(){TweenLite.to(e,d,{opacity:1,onComplete:function(){void 0!==a&&a()}})});return this},fadeAndSlide:function(a){var e=c(this).show(0).css({opacity:0}),d=e.data("popmake"),b=d.meta.display.animation_speed/2E3,d=e.popmake("animation_origin",d.meta.display.animation_origin);c("html").css("overflow-x","hidden");e.position(d).popmake("animate_overlay","fade",1E3*b,function(){e.popmake("reposition",function(d){TweenLite.to(e,b,c.extend(d,{opacity:1,onComplete:function(){c("html").css("overflow-x",
|
37 |
"inherit");void 0!==a&&a()}}))})});return this},grow:function(a){var e=c(this).show(0).css({opacity:0}),d=e.data("popmake"),b=d.meta.display.animation_speed/2E3,d=d.meta.display.animation_origin;if("top"===d||"bottom"===d)d="center "+d;if("left"===d||"right"===d)d+=" center";TweenLite.to(e,0,{transformOrigin:d,scale:0,opacity:1});e.popmake("animate_overlay","fade",1E3*b,function(){e.popmake("reposition",function(c){TweenLite.to(e,b,{scale:1,onComplete:function(){void 0!==a&&a()}})})});return this},
|
38 |
growAndSlide:function(a){var e=c(this).show(0).css({opacity:0}),d=e.data("popmake"),b=d.meta.display.animation_speed/2E3,d=e.popmake("animation_origin",d.meta.display.animation_origin);c("html").css("overflow-x","hidden");e.position(d);TweenLite.to(e,0,{scale:0,opacity:1,transformOrigin:"0 0"});e.popmake("animate_overlay","fade",1E3*b,function(){e.popmake("reposition",function(d){TweenLite.to(e,b,c.extend(d,{scale:1,transformOrigin:"50% 50%",onComplete:function(){c("html").css("overflow-x","inherit");
|
39 |
+
void 0!==a&&a()}}))})});return this}};c(".popmake").css({visibility:"visible"}).hide();c(document).ready(function(){c(".popmake").popmake().each(function(){var a=c(this),e=a.data("popmake"),d=e.meta.click_open,b=".popmake-"+e.id+", .popmake-"+e.slug,g=e.meta.admin_debug,f=e.meta.auto_open,h;void 0!==d&&""!==d.extra_selectors&&(b+=", "+d.extra_selectors);c(b).css({cursor:"pointer"});c(document).on("click",b,function(b){b.preventDefault();b.stopPropagation();c.fn.popmake.last_open_trigger=c.fn.popmake.utilities.getXPath(this);
|
40 |
+
a.popmake("open")});if(void 0!==g&&g.enabled)a.popmake("open");else if(void 0!==f&&f.enabled){h=function(){return void 0===c.pm_cookie("popmake-auto-open-"+e.id+"-"+f.cookie_key)};a.on("popmakeSetCookie",function(){""!==f.cookie_time&&h()&&c.pm_cookie("popmake-auto-open-"+e.id+"-"+f.cookie_key,!0,f.cookie_time,f.cookie_path)});switch(f.cookie_trigger){case "open":a.on("popmakeAfterOpen",function(){a.trigger("popmakeSetCookie")});break;case "close":a.on("popmakeBeforeClose",function(){a.trigger("popmakeSetCookie")})}setTimeout(function(){h()&&
|
41 |
+
(c.fn.popmake.last_open_trigger="Auto Open Popups ID-"+e.id,a.popmake("open"))},f.delay)}})})})(jQuery);
|
assets/styles/popup-maker-site.css
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
height:100%;
|
9 |
top:0;
|
10 |
left:0;
|
11 |
-
z-index:998
|
12 |
}
|
13 |
|
14 |
.popmake {
|
@@ -16,7 +16,7 @@
|
|
16 |
visibility: hidden;
|
17 |
position: absolute;
|
18 |
display:none;
|
19 |
-
z-index: 999
|
20 |
}
|
21 |
|
22 |
.popmake > .popmake-close {
|
@@ -37,6 +37,11 @@
|
|
37 |
overflow:visible;
|
38 |
}
|
39 |
|
|
|
|
|
|
|
|
|
|
|
40 |
@media only screen and (min-width: 768px){
|
41 |
.popmake.size-nano {
|
42 |
margin-left: -5%;
|
8 |
height:100%;
|
9 |
top:0;
|
10 |
left:0;
|
11 |
+
z-index:998;
|
12 |
}
|
13 |
|
14 |
.popmake {
|
16 |
visibility: hidden;
|
17 |
position: absolute;
|
18 |
display:none;
|
19 |
+
z-index: 999;
|
20 |
}
|
21 |
|
22 |
.popmake > .popmake-close {
|
37 |
overflow:visible;
|
38 |
}
|
39 |
|
40 |
+
.popmake.responsive .popmake-content img {
|
41 |
+
max-width:100%;
|
42 |
+
height: auto;
|
43 |
+
}
|
44 |
+
|
45 |
@media only screen and (min-width: 768px){
|
46 |
.popmake.size-nano {
|
47 |
margin-left: -5%;
|
assets/styles/popup-maker-site.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.popmake,.popmake:before,.popmake:after{-moz-box-sizing:border-box}.popmake-overlay{position:fixed;display:none;width:100%;height:100%;top:0;left:0;z-index:998
|
1 |
+
.popmake,.popmake:before,.popmake:after{-moz-box-sizing:border-box}.popmake-overlay{position:fixed;display:none;width:100%;height:100%;top:0;left:0;z-index:998}.popmake{top:100px;visibility:hidden;position:absolute;display:none;z-index:999}.popmake>.popmake-close{text-decoration:none;text-align:center;line-height:1;position:absolute;font-weight:700;cursor:pointer;min-width:1em}.popmake.responsive{left:50%;margin-left:-40%;width:80%;height:auto;overflow:visible}.popmake.responsive .popmake-content img{max-width:100%;height:auto}@media only screen and (min-width:768px){.popmake.size-nano{margin-left:-5%;width:10%}.popmake.size-micro{margin-left:-10%;width:20%}.popmake.size-tiny{margin-left:-15%;width:30%}.popmake.size-small{margin-left:-20%;width:40%}.popmake.size-medium{margin-left:-30%;width:60%}.popmake.size-large{margin-left:-35%;width:70%}.popmake.size-xlarge{margin-left:-47.5%;width:95%}}.popmake.fixed{position:fixed}.popmake.custom-position{left:auto;top:auto;margin-left:inherit}.popmake.scrollable .popmake-content{overflow:auto;overflow-y:scroll;max-height:95%}.popmake .popmake-content:last-child{margin-bottom:0}.popmake iframe.formidable{width:100%;overflow:visible}.powered-by-popmake{bottom:-28px;display:block;left:0;margin:0 auto;position:absolute;text-align:center;width:100%}.powered-by-popmake>a{display:inline-block;max-width:205px}.powered-by-popmake img{max-width:100%;width:100%}.powered-by-popmake.small{bottom:-22px}.powered-by-popmake.small>a{max-width:125px}.powered-by-popmake.large{bottom:-30px}.powered-by-popmake.large>a{max-width:285px}
|
includes/admin/admin-setup.php
CHANGED
@@ -26,7 +26,11 @@ add_action('admin_header', 'popmake_admin_header');
|
|
26 |
|
27 |
function popmake_admin_notice() {
|
28 |
if(popmake_is_admin_page()) {
|
29 |
-
|
|
|
|
|
|
|
|
|
30 |
<div class="popmake-optin popmake-newsletter-optin">
|
31 |
<a href="https://wppopupmaker.com/newsletter-sign-up?utm_source=Popmake+WP+Admin&utm_medium=Notification+Banner&utm_campaign=Newsletter+Signup" target="_blank" class="newsletter-banner">
|
32 |
<img src="<?php echo POPMAKE_URL; ?>/assets/images/admin/newsletter-banner_v3.png"/>
|
26 |
|
27 |
function popmake_admin_notice() {
|
28 |
if(popmake_is_admin_page()) {
|
29 |
+
$banner_v1 = get_user_meta( get_current_user_id(), '_popmake_dismiss_optin_newsletter_promo_banner_v1', true );
|
30 |
+
$banner_v2 = get_user_meta( get_current_user_id(), '_popmake_dismiss_optin_newsletter_promo_banner_v2', true );
|
31 |
+
$banner_v3 = get_user_meta( get_current_user_id(), '_popmake_dismiss_optin_newsletter_promo_banner_v3', true );
|
32 |
+
|
33 |
+
if(!$banner_v2 && !$banner_v3) {?>
|
34 |
<div class="popmake-optin popmake-newsletter-optin">
|
35 |
<a href="https://wppopupmaker.com/newsletter-sign-up?utm_source=Popmake+WP+Admin&utm_medium=Notification+Banner&utm_campaign=Newsletter+Signup" target="_blank" class="newsletter-banner">
|
36 |
<img src="<?php echo POPMAKE_URL; ?>/assets/images/admin/newsletter-banner_v3.png"/>
|
includes/admin/popups/metabox-admin-debug-fields.php
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Renders popup click open fields
|
4 |
+
* @since 1.0
|
5 |
+
* @param $post_id
|
6 |
+
*/
|
7 |
+
|
8 |
+
add_action('popmake_popup_admin_debug_meta_box_fields', 'popmake_popup_admin_debug_meta_box_field_extra_selectors', 10);
|
9 |
+
function popmake_popup_admin_debug_meta_box_field_extra_selectors( $popup_id ) {
|
10 |
+
?><tr>
|
11 |
+
<th scope="row"><?php _e( 'Enable Admin Debug', 'popup-maker' );?></th>
|
12 |
+
<td>
|
13 |
+
<input type="checkbox" value="true" name="popup_admin_debug_enabled" id="popup_admin_debug_enabled" <?php echo popmake_get_popup_admin_debug( $popup_id, 'enabled' ) ? 'checked="checked" ' : '';?>/>
|
14 |
+
<label for="popup_admin_debug_enabled" class="description"><?php _e( 'When Enabled, the popup will show immediately on the given page for admins.', 'popup-maker' );?></label>
|
15 |
+
</td>
|
16 |
+
</tr><?php
|
17 |
+
}
|
includes/admin/popups/metabox-display-fields.php
CHANGED
@@ -311,4 +311,29 @@ function popmake_admin_popup_form_display_tab_settings_position( $popup_id ) {
|
|
311 |
<p class="description"><?php _e( 'Distance from the right edge of the screen.', 'popup-maker' ); ?></p>
|
312 |
</td>
|
313 |
</tr><?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
314 |
}
|
311 |
<p class="description"><?php _e( 'Distance from the right edge of the screen.', 'popup-maker' ); ?></p>
|
312 |
</td>
|
313 |
</tr><?php
|
314 |
+
}
|
315 |
+
|
316 |
+
add_action('popmake_popup_display_meta_box_fields', 'popmake_admin_popup_form_display_tab_settings_zindex', 70);
|
317 |
+
function popmake_admin_popup_form_display_tab_settings_zindex( $popup_id ) {
|
318 |
+
?><tr class="title-divider">
|
319 |
+
<th colspan="2"><h3 class="title"><?php _e( 'Z Index', 'popup-maker' );?></h3></th>
|
320 |
+
</tr>
|
321 |
+
<tr>
|
322 |
+
<th scope="row">
|
323 |
+
<label for="popup_display_overlay_zindex"><?php _e( 'Overlay Z-Index', 'popup-maker' );?></label>
|
324 |
+
</th>
|
325 |
+
<td>
|
326 |
+
<input type="number" max="2147483647" min="0" name="popup_display_overlay_zindex" id="popup_display_overlay_zindex" value="<?php esc_attr_e(popmake_get_popup_display( $popup_id, 'overlay_zindex')); ?>">
|
327 |
+
<p class="description"><?php _e( 'Change the z-index layer level for the overlay.', 'popup-maker' ); ?></p>
|
328 |
+
</td>
|
329 |
+
</tr>
|
330 |
+
<tr>
|
331 |
+
<th scope="row">
|
332 |
+
<label for="popup_display_zindex"><?php _e( 'Popup Z-Index', 'popup-maker' );?></label>
|
333 |
+
</th>
|
334 |
+
<td>
|
335 |
+
<input type="number" max="2147483647" min="0" name="popup_display_zindex" id="popup_display_zindex" value="<?php esc_attr_e(popmake_get_popup_display( $popup_id, 'zindex')); ?>">
|
336 |
+
<p class="description"><?php _e( 'Change the z-index layer level for the popup.', 'popup-maker' ); ?></p>
|
337 |
+
</td>
|
338 |
+
</tr><?php
|
339 |
}
|
includes/admin/popups/metabox-targeting-condition-fields.php
CHANGED
@@ -59,6 +59,30 @@ function popmake_popup_targeting_condition_meta_box_fields( $popup_id ) {
|
|
59 |
<div class="options">
|
60 |
<?php do_action("popmake_popup_targeting_condition_exclude_on_home_options", $targeting_condition); ?>
|
61 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
</div><?php
|
63 |
|
64 |
$includes = popmake_get_popup_targeting_condition_includes( $popup_id );
|
@@ -67,6 +91,9 @@ function popmake_popup_targeting_condition_meta_box_fields( $popup_id ) {
|
|
67 |
foreach( popmake_get_supported_types() as $pt ) {
|
68 |
$is_post_type = get_post_type_object( $pt );
|
69 |
$labels = $is_post_type ? $is_post_type : get_taxonomy( $pt );
|
|
|
|
|
|
|
70 |
$plural = esc_attr( strtolower( $labels->labels->name ) );
|
71 |
|
72 |
foreach(array('include', 'exclude') as $include_exclude) {
|
59 |
<div class="options">
|
60 |
<?php do_action("popmake_popup_targeting_condition_exclude_on_home_options", $targeting_condition); ?>
|
61 |
</div>
|
62 |
+
</div>
|
63 |
+
<div id="targeting_condition-on_blog" class="targeting_condition form-table">
|
64 |
+
<input type="checkbox"
|
65 |
+
id="popup_targeting_condition_on_blog"
|
66 |
+
name="popup_targeting_condition_on_blog"
|
67 |
+
value="true"
|
68 |
+
<?php if(!empty($targeting_condition['on_blog'])) echo 'checked="checked" '; ?>
|
69 |
+
/>
|
70 |
+
<label for="popup_targeting_condition_on_blog"><?php _e( 'On Blog Index', 'popup-maker' ); ?></label>
|
71 |
+
<div class="options">
|
72 |
+
<?php do_action("popmake_popup_targeting_condition_on_blog_options", $targeting_condition); ?>
|
73 |
+
</div>
|
74 |
+
</div>
|
75 |
+
<div id="targeting_condition-exclude_on_blog" class="targeting_condition form-table">
|
76 |
+
<input type="checkbox"
|
77 |
+
id="popup_targeting_condition_exclude_on_blog"
|
78 |
+
name="popup_targeting_condition_exclude_on_blog"
|
79 |
+
value="true"
|
80 |
+
<?php if(!empty($targeting_condition['exclude_on_blog'])) echo 'checked="checked" '; ?>
|
81 |
+
/>
|
82 |
+
<label for="popup_targeting_condition_exclude_on_blog"><?php _e( 'Exclude on Blog Index', 'popup-maker' ); ?></label>
|
83 |
+
<div class="options">
|
84 |
+
<?php do_action("popmake_popup_targeting_condition_exclude_on_blog_options", $targeting_condition); ?>
|
85 |
+
</div>
|
86 |
</div><?php
|
87 |
|
88 |
$includes = popmake_get_popup_targeting_condition_includes( $popup_id );
|
91 |
foreach( popmake_get_supported_types() as $pt ) {
|
92 |
$is_post_type = get_post_type_object( $pt );
|
93 |
$labels = $is_post_type ? $is_post_type : get_taxonomy( $pt );
|
94 |
+
if(!$labels) {
|
95 |
+
continue;
|
96 |
+
}
|
97 |
$plural = esc_attr( strtolower( $labels->labels->name ) );
|
98 |
|
99 |
foreach(array('include', 'exclude') as $include_exclude) {
|
includes/admin/popups/metabox.php
CHANGED
@@ -34,6 +34,9 @@ function popmake_add_popup_meta_box() {
|
|
34 |
/** Auto Open Popups Meta **/
|
35 |
add_meta_box( 'popmake_popup_auto_open', __( 'Auto Open Settings', 'popup-maker' ), 'popmake_render_popup_auto_open_meta_box', 'popup', 'normal', 'high' );
|
36 |
|
|
|
|
|
|
|
37 |
/** Support Meta **/
|
38 |
add_meta_box( 'popmake_popup_support', __( 'Support', 'popup-maker' ), 'popmake_render_support_meta_box', 'popup', 'side', 'default' );
|
39 |
/** Share Meta **/
|
@@ -52,6 +55,8 @@ function popmake_popup_meta_fields() {
|
|
52 |
'popup_targeting_condition_on_entire_site',
|
53 |
'popup_targeting_condition_on_home',
|
54 |
'popup_targeting_condition_exclude_on_home',
|
|
|
|
|
55 |
'popup_targeting_condition_on_search',
|
56 |
'popup_targeting_condition_exclude_on_search',
|
57 |
'popup_targeting_condition_on_404',
|
@@ -79,6 +84,7 @@ function popmake_popup_meta_field_groups() {
|
|
79 |
'close',
|
80 |
'click_open',
|
81 |
'auto_open',
|
|
|
82 |
);
|
83 |
return apply_filters( 'popmake_popup_meta_field_groups', $groups );
|
84 |
}
|
@@ -107,6 +113,8 @@ function popmake_popup_meta_field_group_display() {
|
|
107 |
'animation_type',
|
108 |
'animation_speed',
|
109 |
'animation_origin',
|
|
|
|
|
110 |
);
|
111 |
}
|
112 |
add_filter('popmake_popup_meta_field_group_display', 'popmake_popup_meta_field_group_display', 0);
|
@@ -143,6 +151,14 @@ function popmake_popup_meta_field_group_auto_open( $fields ) {
|
|
143 |
add_filter('popmake_popup_meta_field_group_auto_open', 'popmake_popup_meta_field_group_auto_open', 0);
|
144 |
|
145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
/**
|
147 |
* Save post meta when the save_post action is called
|
148 |
*
|
@@ -374,6 +390,27 @@ function popmake_render_popup_auto_open_meta_box() {
|
|
374 |
}
|
375 |
|
376 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
377 |
/**
|
378 |
* Adds Popup meta fields to revisions.
|
379 |
*
|
34 |
/** Auto Open Popups Meta **/
|
35 |
add_meta_box( 'popmake_popup_auto_open', __( 'Auto Open Settings', 'popup-maker' ), 'popmake_render_popup_auto_open_meta_box', 'popup', 'normal', 'high' );
|
36 |
|
37 |
+
/** Admin Debug **/
|
38 |
+
add_meta_box( 'popmake_popup_admin_debug', __( 'Admin Debug Settings', 'popup-maker' ), 'popmake_render_popup_admin_debug_meta_box', 'popup', 'normal', 'low' );
|
39 |
+
|
40 |
/** Support Meta **/
|
41 |
add_meta_box( 'popmake_popup_support', __( 'Support', 'popup-maker' ), 'popmake_render_support_meta_box', 'popup', 'side', 'default' );
|
42 |
/** Share Meta **/
|
55 |
'popup_targeting_condition_on_entire_site',
|
56 |
'popup_targeting_condition_on_home',
|
57 |
'popup_targeting_condition_exclude_on_home',
|
58 |
+
'popup_targeting_condition_on_blog',
|
59 |
+
'popup_targeting_condition_exclude_on_blog',
|
60 |
'popup_targeting_condition_on_search',
|
61 |
'popup_targeting_condition_exclude_on_search',
|
62 |
'popup_targeting_condition_on_404',
|
84 |
'close',
|
85 |
'click_open',
|
86 |
'auto_open',
|
87 |
+
'admin_debug',
|
88 |
);
|
89 |
return apply_filters( 'popmake_popup_meta_field_groups', $groups );
|
90 |
}
|
113 |
'animation_type',
|
114 |
'animation_speed',
|
115 |
'animation_origin',
|
116 |
+
'overlay_zindex',
|
117 |
+
'zindex',
|
118 |
);
|
119 |
}
|
120 |
add_filter('popmake_popup_meta_field_group_display', 'popmake_popup_meta_field_group_display', 0);
|
151 |
add_filter('popmake_popup_meta_field_group_auto_open', 'popmake_popup_meta_field_group_auto_open', 0);
|
152 |
|
153 |
|
154 |
+
function popmake_popup_meta_field_group_admin_debug( $fields ) {
|
155 |
+
return array_merge( $fields, array(
|
156 |
+
'enabled',
|
157 |
+
));
|
158 |
+
}
|
159 |
+
add_filter('popmake_popup_meta_field_group_admin_debug', 'popmake_popup_meta_field_group_admin_debug', 0);
|
160 |
+
|
161 |
+
|
162 |
/**
|
163 |
* Save post meta when the save_post action is called
|
164 |
*
|
390 |
}
|
391 |
|
392 |
|
393 |
+
/**
|
394 |
+
* Popup Admin Debug Metabox
|
395 |
+
*
|
396 |
+
* Extensions (as well as the core plugin) can add items to the popup debug
|
397 |
+
* configuration metabox via the `popmake_popup_admin_debug_meta_box_fields` action.
|
398 |
+
*
|
399 |
+
* @since 1.0
|
400 |
+
* @return void
|
401 |
+
*/
|
402 |
+
function popmake_render_popup_admin_debug_meta_box() {
|
403 |
+
global $post, $popmake_options;?>
|
404 |
+
<div id="popmake_popup_admin_debug_fields" class="popmake_meta_table_wrap">
|
405 |
+
<table class="form-table">
|
406 |
+
<tbody>
|
407 |
+
<?php do_action( 'popmake_popup_admin_debug_meta_box_fields', $post->ID );?>
|
408 |
+
</tbody>
|
409 |
+
</table>
|
410 |
+
</div><?php
|
411 |
+
}
|
412 |
+
|
413 |
+
|
414 |
/**
|
415 |
* Adds Popup meta fields to revisions.
|
416 |
*
|
includes/defaults.php
CHANGED
@@ -12,28 +12,30 @@ add_filter('popmake_popup_display_defaults', 'popmake_popup_display_defaults', 0
|
|
12 |
*/
|
13 |
function popmake_popup_display_defaults( $defaults = array() ) {
|
14 |
return array_merge( $defaults, array(
|
15 |
-
'overlay_disabled'
|
16 |
-
'scrollable_content'
|
17 |
-
'size'
|
18 |
-
'responsive_min_width'
|
19 |
-
'responsive_min_width_unit'
|
20 |
-
'responsive_max_width'
|
21 |
-
'responsive_max_width_unit'
|
22 |
-
'custom_width'
|
23 |
-
'custom_width_unit'
|
24 |
-
'custom_width_unit'
|
25 |
-
'custom_height'
|
26 |
-
'custom_height_unit'
|
27 |
-
'custom_height_auto'
|
28 |
-
'location'
|
29 |
-
'position_top'
|
30 |
-
'position_left'
|
31 |
-
'position_bottom'
|
32 |
-
'position_right'
|
33 |
-
'position_fixed'
|
34 |
-
'animation_type'
|
35 |
-
'animation_speed'
|
36 |
-
'animation_origin'
|
|
|
|
|
37 |
));
|
38 |
}
|
39 |
|
@@ -69,6 +71,14 @@ function popmake_popup_auto_open_defaults( $defaults ) {
|
|
69 |
}
|
70 |
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
add_filter('popmake_popup_theme_overlay_defaults', 'popmake_popup_theme_overlay_defaults', 0);
|
73 |
function popmake_popup_theme_overlay_defaults( $defaults ) {
|
74 |
return array_merge( $defaults, array(
|
12 |
*/
|
13 |
function popmake_popup_display_defaults( $defaults = array() ) {
|
14 |
return array_merge( $defaults, array(
|
15 |
+
'overlay_disabled' => false,
|
16 |
+
'scrollable_content' => false,
|
17 |
+
'size' => 'medium',
|
18 |
+
'responsive_min_width' => '',
|
19 |
+
'responsive_min_width_unit' => 'px',
|
20 |
+
'responsive_max_width' => '',
|
21 |
+
'responsive_max_width_unit' => 'px',
|
22 |
+
'custom_width' => 640,
|
23 |
+
'custom_width_unit' => 'px',
|
24 |
+
'custom_width_unit' => 'px',
|
25 |
+
'custom_height' => 380,
|
26 |
+
'custom_height_unit' => 'px',
|
27 |
+
'custom_height_auto' => true,
|
28 |
+
'location' => 'center top',
|
29 |
+
'position_top' => 100,
|
30 |
+
'position_left' => 0,
|
31 |
+
'position_bottom' => 0,
|
32 |
+
'position_right' => 0,
|
33 |
+
'position_fixed' => true,
|
34 |
+
'animation_type' => 'fade',
|
35 |
+
'animation_speed' => 350,
|
36 |
+
'animation_origin' => 'center top',
|
37 |
+
'overlay_zindex' => 998,
|
38 |
+
'zindex' => 999,
|
39 |
));
|
40 |
}
|
41 |
|
71 |
}
|
72 |
|
73 |
|
74 |
+
add_filter('popmake_popup_admin_debug_defaults', 'popmake_popup_admin_debug_defaults');
|
75 |
+
function popmake_popup_admin_debug_defaults( $defaults ) {
|
76 |
+
return array_merge( $defaults, array(
|
77 |
+
'enabled' => NULL,
|
78 |
+
));
|
79 |
+
}
|
80 |
+
|
81 |
+
|
82 |
add_filter('popmake_popup_theme_overlay_defaults', 'popmake_popup_theme_overlay_defaults', 0);
|
83 |
function popmake_popup_theme_overlay_defaults( $defaults ) {
|
84 |
return array_merge( $defaults, array(
|
includes/load-popups.php
CHANGED
@@ -25,12 +25,13 @@ function popmake_load_popup( int $id ) {
|
|
25 |
'post_type' => 'popup',
|
26 |
'p' => $id
|
27 |
));
|
28 |
-
$
|
29 |
-
if ( $
|
30 |
-
while ( $
|
31 |
-
do_action( 'popmake_preload_popup', $
|
32 |
-
$popmake_loaded_popups->posts[] = $
|
33 |
$popmake_loaded_popups->post_count++;
|
|
|
34 |
endwhile;
|
35 |
}
|
36 |
}
|
@@ -72,8 +73,7 @@ function popmake_preload_popups() {
|
|
72 |
|
73 |
}
|
74 |
}
|
75 |
-
add_action('wp_head', 'popmake_preload_popups', 1000);
|
76 |
-
add_action('wp_footer', 'popmake_render_popups', 1);
|
77 |
|
78 |
|
79 |
function popmake_render_popups() {
|
@@ -84,4 +84,5 @@ function popmake_render_popups() {
|
|
84 |
endwhile;
|
85 |
wp_reset_postdata();
|
86 |
}
|
87 |
-
}
|
|
25 |
'post_type' => 'popup',
|
26 |
'p' => $id
|
27 |
));
|
28 |
+
$query = new WP_Query( $args1 );
|
29 |
+
if ( $query->have_posts() ) {
|
30 |
+
while ( $query->have_posts() ) : $query->next_post();
|
31 |
+
do_action( 'popmake_preload_popup', $query->post->ID );
|
32 |
+
$popmake_loaded_popups->posts[] = $query->post;
|
33 |
$popmake_loaded_popups->post_count++;
|
34 |
+
popmake_enqueue_scripts( $query->post->ID );
|
35 |
endwhile;
|
36 |
}
|
37 |
}
|
73 |
|
74 |
}
|
75 |
}
|
76 |
+
add_action( 'wp_head', 'popmake_preload_popups', 1000 );
|
|
|
77 |
|
78 |
|
79 |
function popmake_render_popups() {
|
84 |
endwhile;
|
85 |
wp_reset_postdata();
|
86 |
}
|
87 |
+
}
|
88 |
+
add_action('wp_footer', 'popmake_render_popups', 1);
|
includes/popup-functions.php
CHANGED
@@ -50,10 +50,11 @@ function popmake_get_the_popup_data_attr( $popup_id = null ) {
|
|
50 |
'id' => $popup_id,
|
51 |
'slug' => $post->post_name,
|
52 |
'meta' => array(
|
53 |
-
'display'
|
54 |
-
'close'
|
55 |
-
'click_open'
|
56 |
-
'auto_open'
|
|
|
57 |
)
|
58 |
);
|
59 |
return apply_filters('popmake_get_the_popup_data_attr', $data_attr, $popup_id );
|
@@ -264,6 +265,18 @@ function popmake_get_popup_auto_open( $popup_id = NULL, $key = NULL ) {
|
|
264 |
}
|
265 |
|
266 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
|
268 |
function popmake_popup_content_container( $content ) {
|
269 |
global $post;
|
@@ -290,9 +303,9 @@ function popmake_popup_is_loadable( $popup_id ) {
|
|
290 |
$is_loadable = true;
|
291 |
}
|
292 |
/**
|
293 |
-
*
|
294 |
*/
|
295 |
-
if( is_front_page()
|
296 |
if( !$sitewide && array_key_exists('on_home', $conditions) ) {
|
297 |
$is_loadable = true;
|
298 |
}
|
@@ -300,6 +313,17 @@ function popmake_popup_is_loadable( $popup_id ) {
|
|
300 |
$is_loadable = false;
|
301 |
}
|
302 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
303 |
/**
|
304 |
* Page Checks
|
305 |
*/
|
50 |
'id' => $popup_id,
|
51 |
'slug' => $post->post_name,
|
52 |
'meta' => array(
|
53 |
+
'display' => popmake_get_popup_display( $popup_id ),
|
54 |
+
'close' => popmake_get_popup_close( $popup_id ),
|
55 |
+
'click_open' => popmake_get_popup_click_open( $popup_id ),
|
56 |
+
'auto_open' => popmake_get_popup_auto_open( $popup_id ),
|
57 |
+
'admin_debug' => popmake_get_popup_admin_debug( $popup_id ),
|
58 |
)
|
59 |
);
|
60 |
return apply_filters('popmake_get_the_popup_data_attr', $data_attr, $popup_id );
|
265 |
}
|
266 |
|
267 |
|
268 |
+
/**
|
269 |
+
* Returns the auto open meta of a popup.
|
270 |
+
*
|
271 |
+
* @since 1.1.8
|
272 |
+
* @param int $popup_id ID number of the popup to retrieve a admin debug meta for
|
273 |
+
* @return mixed array|string of the popup admin debug meta
|
274 |
+
*/
|
275 |
+
function popmake_get_popup_admin_debug( $popup_id = NULL, $key = NULL ) {
|
276 |
+
return popmake_get_popup_meta_group( 'admin_debug', $popup_id, $key );
|
277 |
+
}
|
278 |
+
|
279 |
+
|
280 |
|
281 |
function popmake_popup_content_container( $content ) {
|
282 |
global $post;
|
303 |
$is_loadable = true;
|
304 |
}
|
305 |
/**
|
306 |
+
* Front Page Checks
|
307 |
*/
|
308 |
+
if( is_front_page() ) {
|
309 |
if( !$sitewide && array_key_exists('on_home', $conditions) ) {
|
310 |
$is_loadable = true;
|
311 |
}
|
313 |
$is_loadable = false;
|
314 |
}
|
315 |
}
|
316 |
+
/**
|
317 |
+
* Blog Index Page Checks
|
318 |
+
*/
|
319 |
+
if( is_home() ) {
|
320 |
+
if( !$sitewide && array_key_exists('on_blog', $conditions) ) {
|
321 |
+
$is_loadable = true;
|
322 |
+
}
|
323 |
+
elseif( $sitewide && array_key_exists('exclude_on_blog', $conditions) ) {
|
324 |
+
$is_loadable = false;
|
325 |
+
}
|
326 |
+
}
|
327 |
/**
|
328 |
* Page Checks
|
329 |
*/
|
includes/post-types.php
CHANGED
@@ -40,7 +40,7 @@ function popmake_setup_post_types() {
|
|
40 |
'show_ui' => true,
|
41 |
'query_var' => false,
|
42 |
'menu_icon' => POPMAKE_URL.'/assets/images/admin/dashboard-icon.png',
|
43 |
-
'menu_position' => 20,
|
44 |
'supports' => apply_filters( 'popmake_popup_supports', array( 'title', 'editor', 'revisions', 'author' ) ),
|
45 |
);
|
46 |
$popup_post_type = register_post_type( 'popup', apply_filters( 'popmake_popup_post_type_args', $popup_args ) );
|
40 |
'show_ui' => true,
|
41 |
'query_var' => false,
|
42 |
'menu_icon' => POPMAKE_URL.'/assets/images/admin/dashboard-icon.png',
|
43 |
+
'menu_position' => 20.292892729,
|
44 |
'supports' => apply_filters( 'popmake_popup_supports', array( 'title', 'editor', 'revisions', 'author' ) ),
|
45 |
);
|
46 |
$popup_post_type = register_post_type( 'popup', apply_filters( 'popmake_popup_post_type_args', $popup_args ) );
|
includes/scripts.php
CHANGED
@@ -12,6 +12,7 @@
|
|
12 |
// Exit if accessed directly
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
14 |
|
|
|
15 |
/**
|
16 |
* Load Scripts
|
17 |
*
|
@@ -24,23 +25,24 @@ function popmake_load_site_scripts() {
|
|
24 |
global $popmake_options;
|
25 |
$js_dir = POPMAKE_URL . '/assets/scripts/';
|
26 |
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '.js' : '.min.js';
|
27 |
-
wp_register_script('TweenMax', $js_dir . '/gsap/TweenMax.min.js', false, '1.14.2', true);
|
28 |
-
wp_register_script('jquery-gsap', $js_dir . '/gsap/jquery.gsap.min.js', array('jquery', 'TweenMax'), '0.1.9', true);
|
29 |
-
wp_register_script('jquery-cookie', $js_dir . 'jquery.cookie' . $suffix, array('jquery'), '1.4.1', true);
|
30 |
-
|
31 |
-
wp_localize_script('popup-maker-site', 'ajaxurl', admin_url('admin-ajax.php') );
|
32 |
-
wp_localize_script('popup-maker-site', 'popmake_default_theme', popmake_get_default_popup_theme() );
|
33 |
-
wp_localize_script('popup-maker-site', 'popmake_themes', array('l10n_print_after' => 'popmake_themes = ' . json_encode( popmake_get_popup_themes_data() ) . ';'));
|
34 |
if(isset($popmake_options['popmake_powered_by_opt_in']) && $popmake_options['popmake_powered_by_opt_in']) {
|
35 |
$size = !empty($popmake_options['popmake_powered_by_size']) ? $popmake_options['popmake_powered_by_size'] : '';
|
36 |
wp_localize_script('popup-maker-site', 'popmake_powered_by', '<div class="powered-by-popmake '. $size .'"><a href="https://wppopupmaker.com?utm_source=Powered+By&utm_medium=Powered+By&utm_campaign=Powered+By" target="_blank"><img src="' . POPMAKE_URL . '/assets/images/admin/powered-by-popup-maker.png" alt="'. __( 'Powered By Popup Maker', 'popup-maker' ) .'"/></a></div>' );
|
37 |
}
|
38 |
if(isset($popmake_options['enable_easy_modal_compatibility_mode'])) {
|
39 |
-
|
40 |
}
|
41 |
|
42 |
}
|
43 |
-
add_action( 'wp_enqueue_scripts', 'popmake_load_site_scripts' );
|
|
|
44 |
|
45 |
/**
|
46 |
* Load Styles
|
@@ -54,7 +56,7 @@ function popmake_load_site_styles() {
|
|
54 |
global $popmake_options, $popmake_needed_google_fonts;
|
55 |
$css_dir = POPMAKE_URL . '/assets/styles/';
|
56 |
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '.css' : '.min.css';
|
57 |
-
|
58 |
if(!empty($popmake_needed_google_fonts) && !isset($popmake_options['disable_google_font_loading'])) {
|
59 |
$link = "//fonts.googleapis.com/css?family=";
|
60 |
foreach($popmake_needed_google_fonts as $font_family => $variants) {
|
@@ -67,7 +69,7 @@ function popmake_load_site_styles() {
|
|
67 |
$link .= implode(',', $variants);
|
68 |
}
|
69 |
}
|
70 |
-
|
71 |
}
|
72 |
}
|
73 |
add_action( 'wp_enqueue_scripts', 'popmake_load_site_styles' );
|
@@ -131,4 +133,32 @@ function popmake_defer_js_url( $url )
|
|
131 |
}
|
132 |
return "$url' defer='defer";
|
133 |
}
|
134 |
-
add_filter( 'clean_url', 'popmake_defer_js_url', 11, 1 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
// Exit if accessed directly
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
14 |
|
15 |
+
|
16 |
/**
|
17 |
* Load Scripts
|
18 |
*
|
25 |
global $popmake_options;
|
26 |
$js_dir = POPMAKE_URL . '/assets/scripts/';
|
27 |
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '.js' : '.min.js';
|
28 |
+
wp_register_script( 'TweenMax', $js_dir . '/gsap/TweenMax.min.js', false, '1.14.2', true);
|
29 |
+
wp_register_script( 'jquery-gsap', $js_dir . '/gsap/jquery.gsap.min.js', array('jquery', 'TweenMax'), '0.1.9', true);
|
30 |
+
wp_register_script( 'jquery-cookie', $js_dir . 'jquery.cookie' . $suffix, array('jquery'), '1.4.1', true);
|
31 |
+
wp_register_script( 'popup-maker-site', $js_dir . 'popup-maker-site' . $suffix . '?defer', array('jquery', 'jquery-ui-core', 'jquery-ui-position', 'jquery-gsap'), '1.1.8', true);
|
32 |
+
wp_localize_script( 'popup-maker-site', 'ajaxurl', admin_url('admin-ajax.php') );
|
33 |
+
wp_localize_script( 'popup-maker-site', 'popmake_default_theme', popmake_get_default_popup_theme() );
|
34 |
+
wp_localize_script( 'popup-maker-site', 'popmake_themes', array('l10n_print_after' => 'popmake_themes = ' . json_encode( popmake_get_popup_themes_data() ) . ';'));
|
35 |
if(isset($popmake_options['popmake_powered_by_opt_in']) && $popmake_options['popmake_powered_by_opt_in']) {
|
36 |
$size = !empty($popmake_options['popmake_powered_by_size']) ? $popmake_options['popmake_powered_by_size'] : '';
|
37 |
wp_localize_script('popup-maker-site', 'popmake_powered_by', '<div class="powered-by-popmake '. $size .'"><a href="https://wppopupmaker.com?utm_source=Powered+By&utm_medium=Powered+By&utm_campaign=Powered+By" target="_blank"><img src="' . POPMAKE_URL . '/assets/images/admin/powered-by-popup-maker.png" alt="'. __( 'Powered By Popup Maker', 'popup-maker' ) .'"/></a></div>' );
|
38 |
}
|
39 |
if(isset($popmake_options['enable_easy_modal_compatibility_mode'])) {
|
40 |
+
wp_register_script('popup-maker-easy-modal-importer-site', $js_dir . 'popup-maker-easy-modal-importer-site' . $suffix . '?defer', array('popup-maker-site'), '1.0', true);
|
41 |
}
|
42 |
|
43 |
}
|
44 |
+
add_action( 'wp_enqueue_scripts', 'popmake_load_site_scripts', 1000 );
|
45 |
+
|
46 |
|
47 |
/**
|
48 |
* Load Styles
|
56 |
global $popmake_options, $popmake_needed_google_fonts;
|
57 |
$css_dir = POPMAKE_URL . '/assets/styles/';
|
58 |
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '.css' : '.min.css';
|
59 |
+
wp_register_style('popup-maker-site', $css_dir . 'popup-maker-site' . $suffix, false, '1.0');
|
60 |
if(!empty($popmake_needed_google_fonts) && !isset($popmake_options['disable_google_font_loading'])) {
|
61 |
$link = "//fonts.googleapis.com/css?family=";
|
62 |
foreach($popmake_needed_google_fonts as $font_family => $variants) {
|
69 |
$link .= implode(',', $variants);
|
70 |
}
|
71 |
}
|
72 |
+
wp_register_style('popup-maker-google-fonts', $link);
|
73 |
}
|
74 |
}
|
75 |
add_action( 'wp_enqueue_scripts', 'popmake_load_site_styles' );
|
133 |
}
|
134 |
return "$url' defer='defer";
|
135 |
}
|
136 |
+
add_filter( 'clean_url', 'popmake_defer_js_url', 11, 1 );
|
137 |
+
|
138 |
+
|
139 |
+
function popmake_script_loading_enabled() {
|
140 |
+
global $wp_query;
|
141 |
+
if( has_shortcode( $wp_query->post->post_content, 'popup' ) || ( defined("POPMAKE_FORCE_SCRIPTS") && POPMAKE_FORCE_SCRIPTS ) ){
|
142 |
+
popmake_enqueue_scripts();
|
143 |
+
}
|
144 |
+
}
|
145 |
+
add_action( 'wp_head', 'popmake_script_loading_enabled' );
|
146 |
+
|
147 |
+
|
148 |
+
function popmake_enqueue_scripts( $popup_id = NULL ) {
|
149 |
+
$scripts_needed = apply_filters( 'popmake_enqueue_scripts', array( 'popup-maker-site','popup-maker-easy-modal-importer-site' ), $popup_id );
|
150 |
+
foreach( $scripts_needed as $script ) {
|
151 |
+
if( wp_script_is( $script, 'registered' ) ) {
|
152 |
+
wp_enqueue_script( $script );
|
153 |
+
}
|
154 |
+
}
|
155 |
+
|
156 |
+
$styles_needed = apply_filters( 'popmake_enqueue_styles', array( 'popup-maker-site', 'popup-maker-google-fonts' ), $popup_id );
|
157 |
+
foreach( $styles_needed as $style ) {
|
158 |
+
if( wp_style_is( $style, 'registered' ) ) {
|
159 |
+
wp_enqueue_style( $style );
|
160 |
+
}
|
161 |
+
}
|
162 |
+
}
|
163 |
+
add_action( 'popmake_preload_popup', 'popmake_enqueue_scripts' );
|
164 |
+
|
popup-maker.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://wppopupmaker.com
|
5 |
* Description: Easily create & style popups with any content. Theme editor to quickly style your popups. Add forms, social media boxes, videos & more.
|
6 |
* Author: Daniel Iser
|
7 |
-
* Version: 1.1.
|
8 |
* Author URI: https://wppopupmaker.com
|
9 |
* Text Domain: popup-maker
|
10 |
*
|
@@ -144,7 +144,7 @@ final class Popup_Maker {
|
|
144 |
}
|
145 |
|
146 |
if ( !defined('POPMAKE_VERSION') ) {
|
147 |
-
define('POPMAKE_VERSION', '1.1.
|
148 |
}
|
149 |
|
150 |
if ( !defined('POPMAKE_DB_VERSION') ) {
|
@@ -207,6 +207,7 @@ final class Popup_Maker {
|
|
207 |
require_once POPMAKE_DIR . 'includes/admin/popups/metabox-click-open-fields.php';
|
208 |
require_once POPMAKE_DIR . 'includes/admin/popups/metabox-targeting-condition-fields.php';
|
209 |
require_once POPMAKE_DIR . 'includes/admin/popups/metabox-auto-open-popups-fields.php';
|
|
|
210 |
require_once POPMAKE_DIR . 'includes/admin/popups/post-type-item-metaboxes.php';
|
211 |
require_once POPMAKE_DIR . 'includes/admin/themes/metabox.php';
|
212 |
require_once POPMAKE_DIR . 'includes/admin/themes/metabox-close-fields.php';
|
4 |
* Plugin URI: https://wppopupmaker.com
|
5 |
* Description: Easily create & style popups with any content. Theme editor to quickly style your popups. Add forms, social media boxes, videos & more.
|
6 |
* Author: Daniel Iser
|
7 |
+
* Version: 1.1.8
|
8 |
* Author URI: https://wppopupmaker.com
|
9 |
* Text Domain: popup-maker
|
10 |
*
|
144 |
}
|
145 |
|
146 |
if ( !defined('POPMAKE_VERSION') ) {
|
147 |
+
define('POPMAKE_VERSION', '1.1.8' );
|
148 |
}
|
149 |
|
150 |
if ( !defined('POPMAKE_DB_VERSION') ) {
|
207 |
require_once POPMAKE_DIR . 'includes/admin/popups/metabox-click-open-fields.php';
|
208 |
require_once POPMAKE_DIR . 'includes/admin/popups/metabox-targeting-condition-fields.php';
|
209 |
require_once POPMAKE_DIR . 'includes/admin/popups/metabox-auto-open-popups-fields.php';
|
210 |
+
require_once POPMAKE_DIR . 'includes/admin/popups/metabox-admin-debug-fields.php';
|
211 |
require_once POPMAKE_DIR . 'includes/admin/popups/post-type-item-metaboxes.php';
|
212 |
require_once POPMAKE_DIR . 'includes/admin/themes/metabox.php';
|
213 |
require_once POPMAKE_DIR . 'includes/admin/themes/metabox-close-fields.php';
|
readme.txt
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
=== Popup Maker ===
|
2 |
Contributors: danieliser
|
3 |
-
Author URI: https://
|
4 |
Plugin URI: https://wppopupmaker.com?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Plugin+URI
|
5 |
Donate link:
|
6 |
-
Tags: popup,popups,modal,modals,popup form,form modal,conversion,conversions,dialog box,auto
|
7 |
Requires at least: 3.4
|
8 |
-
Tested up to: 4.
|
9 |
-
Stable tag: 1.1.
|
10 |
|
11 |
License: GNU Version 2 or Any Later Version
|
12 |
Easily turn users into cash using Popup Maker - the most versatile & expansive popup plugin for WordPress!
|
@@ -31,7 +31,7 @@ Use any of your forms from the most popular form plugins, out-of-the-box, inside
|
|
31 |
* Unlimited Content Customization
|
32 |
* Use the Popup Maker WYSIWIG Content Editor to easily create as many popups as you like with any content you like! Plus, use Short Codes, HTML, and other code to give your popups ultimate power! Adding content and popups in Popup Maker is just like adding content and pages in WordPress.
|
33 |
* Use Popups Conditionally
|
34 |
-
* Target specific users for your popups! Our Targeting Conditions feature allows you to tailor your popups to specific users by giving you the ability to use popups exactly where you want. Use
|
35 |
* One (1) Customizable Popup Theme
|
36 |
* Customize every aspect of our default theme to match your needs - from colors to Google Fonts. To differentiate your popup themes on your popups, you can create unlimited themes by upgrading to the [Unlimited Themes Extension](https://wppopupmaker.com/extensions/unlimited-themes?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Unlimited+Themes "Unlimited Popup Themes").
|
37 |
* Auto Open Popups
|
@@ -53,18 +53,18 @@ Use any of your forms from the most popular form plugins, out-of-the-box, inside
|
|
53 |
* [Exit Intent Popups](https://wppopupmaker.com/extensions/exit-intent-popups?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Exit+Intent "Exit Intent Popups")
|
54 |
* [Advanced Targeting Conditions](https://wppopupmaker.com/extensions/advanced-targeting-conditions?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Advanced+Targeting+Conditions "Advanced Targeting Conditions")
|
55 |
* [Forced Interaction](https://wppopupmaker.com/extensions/forced-interaction?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Forced+Interaction "Forced Interaction")
|
56 |
-
* [AJAX Login Modals](?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=AJAX+Login+Modals "AJAX Login Modals")
|
57 |
-
* [Scroll Triggered Popups](?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Scroll+Triggered "Scroll Triggered Popups")
|
58 |
-
* [Age Verification Modals](?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Age+Verification+Modals "Age Verification Modals")
|
59 |
-
* [Advanced Theme Builder](?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Advanced+Theme+Builder "Advanced Theme Builder")
|
60 |
-
* [Unlimited Themes](?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Unlimited+Themes "Unlimited Themes")
|
61 |
-
* [Secure Idle User Logout](?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Secure+Idle+User+Logout "Secure Idle User Logout")
|
62 |
-
* Popup Analytics
|
63 |
* A/B/Z Split Testing (coming soon)
|
64 |
|
65 |
For more information, visit [Popup Maker](https://wppopupmaker.com?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Home+Page "WordPress Popup Maker")!
|
66 |
|
67 |
-
[Plugin Developers Site](http://
|
68 |
|
69 |
== Screenshots ==
|
70 |
|
@@ -76,6 +76,20 @@ For more information, visit [Popup Maker](https://wppopupmaker.com?utm_source=Wo
|
|
76 |
|
77 |
== Changelog ==
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
= v1.1.7 =
|
80 |
* Fixed undefined function popmake_default_settings.
|
81 |
* Fixed specific pages not saving properly.
|
1 |
=== Popup Maker ===
|
2 |
Contributors: danieliser
|
3 |
+
Author URI: https://danieliser.com
|
4 |
Plugin URI: https://wppopupmaker.com?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Plugin+URI
|
5 |
Donate link:
|
6 |
+
Tags: popup,popups,modal,modals,popup form,form modal,conversion,conversions,dialog box,auto openwordpress popup,popup,popups,modal,modals,popup form,conversion,conversions,exit intent,full page popup,full screen pop,full screen popup,optin popup,pop-up,pop-ups,popup box,popup message,popup window,unblockable,automatic popup,custom popup,fancy box,fancy popup,onclick popup,popup ads,popup advertising,age restriction,age verification,marketing,popup
|
7 |
Requires at least: 3.4
|
8 |
+
Tested up to: 4.2
|
9 |
+
Stable tag: 1.1.8
|
10 |
|
11 |
License: GNU Version 2 or Any Later Version
|
12 |
Easily turn users into cash using Popup Maker - the most versatile & expansive popup plugin for WordPress!
|
31 |
* Unlimited Content Customization
|
32 |
* Use the Popup Maker WYSIWIG Content Editor to easily create as many popups as you like with any content you like! Plus, use Short Codes, HTML, and other code to give your popups ultimate power! Adding content and popups in Popup Maker is just like adding content and pages in WordPress.
|
33 |
* Use Popups Conditionally
|
34 |
+
* Target specific users for your popups! Our Targeting Conditions feature allows you to tailor your popups to specific users by giving you the ability to use popups exactly where you want. Use Auto Open or check out the [Scroll Triggered](https://wppopupmaker.com/extensions/scroll-triggered-popups?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Scroll+Triggered "Scroll Triggered Popups") & [Exit Intent](https://wppopupmaker.com/extensions/exit-intent-popups?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Exit+Intent "Exit Intent Popups") Popup Extensions to enhance your popups' effectiveness.
|
35 |
* One (1) Customizable Popup Theme
|
36 |
* Customize every aspect of our default theme to match your needs - from colors to Google Fonts. To differentiate your popup themes on your popups, you can create unlimited themes by upgrading to the [Unlimited Themes Extension](https://wppopupmaker.com/extensions/unlimited-themes?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Unlimited+Themes "Unlimited Popup Themes").
|
37 |
* Auto Open Popups
|
53 |
* [Exit Intent Popups](https://wppopupmaker.com/extensions/exit-intent-popups?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Exit+Intent "Exit Intent Popups")
|
54 |
* [Advanced Targeting Conditions](https://wppopupmaker.com/extensions/advanced-targeting-conditions?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Advanced+Targeting+Conditions "Advanced Targeting Conditions")
|
55 |
* [Forced Interaction](https://wppopupmaker.com/extensions/forced-interaction?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Forced+Interaction "Forced Interaction")
|
56 |
+
* [AJAX Login Modals](https://wppopupmaker.com/extensions/ajax-login-modals?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=AJAX+Login+Modals "AJAX Login Modals")
|
57 |
+
* [Scroll Triggered Popups](https://wppopupmaker.com/extensions/scroll-triggered-popups?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Scroll+Triggered "Scroll Triggered Popups")
|
58 |
+
* [Age Verification Modals](https://wppopupmaker.com/extensions/age-verification-modals?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Age+Verification+Modals "Age Verification Modals")
|
59 |
+
* [Advanced Theme Builder](https://wppopupmaker.com/extensions/advanced-theme-builder?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Advanced+Theme+Builder "Advanced Theme Builder")
|
60 |
+
* [Unlimited Themes](https://wppopupmaker.com/extensions/unlimited-themes?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Unlimited+Themes "Unlimited Themes")
|
61 |
+
* [Secure Idle User Logout](https://wppopupmaker.com/extensions/secure-idle-user-logout?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Secure+Idle+User+Logout "Secure Idle User Logout")
|
62 |
+
* [Popup Analytics](https://wppopupmaker.com/extensions/popup-analytics?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Popup+Analytics "Popup Analytics")
|
63 |
* A/B/Z Split Testing (coming soon)
|
64 |
|
65 |
For more information, visit [Popup Maker](https://wppopupmaker.com?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Home+Page "WordPress Popup Maker")!
|
66 |
|
67 |
+
[Plugin Developers Site](http://danieliser.com "Web Developer & WordPress Enthusiast") - Daniel Iser
|
68 |
|
69 |
== Screenshots ==
|
70 |
|
76 |
|
77 |
== Changelog ==
|
78 |
|
79 |
+
= v1.1.8 =
|
80 |
+
* Fixed issue with admin menu position collisions.
|
81 |
+
* Fixed issue with banner not staying dismissed.
|
82 |
+
* Removed dependency jQuery.cookie
|
83 |
+
* Fixed bug in auto open when cookie was set before delay was up.
|
84 |
+
* Added new setCookie JS event. Used to manually set a popups cookies. Usage jQuery('#popmake-123').trigger('popmakeSetCookie');
|
85 |
+
* Added new z-index override values. This helps with theme compatibility and future multi popup capability.
|
86 |
+
* Added Blog Index support. Available under targeting conditions 'On Blog Index' & 'Exclude On Blog Index'.
|
87 |
+
* Added better responsive image handling.
|
88 |
+
* Added Admin Debug option for popups.
|
89 |
+
* Changed jquery-ui-position collission property to none to solve positioning issues.
|
90 |
+
* Disabled Popup Maker JS & CSS when no popups detected to load.
|
91 |
+
* Added new function popmake_enqueue_scripts() which allows manual enqueuing of scripts and styles.
|
92 |
+
|
93 |
= v1.1.7 =
|
94 |
* Fixed undefined function popmake_default_settings.
|
95 |
* Fixed specific pages not saving properly.
|