Popup Maker – Popup Forms, Optins & More - Version 1.7.30

Version Description

Download this release

Release Info

Developer danieliser
Plugin Icon 128x128 Popup Maker – Popup Forms, Optins & More
Version 1.7.30
Comparing to
See all releases

Code changes from version 1.7.29 to 1.7.30

assets/js/site.js CHANGED
@@ -169,6 +169,9 @@ var PUM;
169
  getCookie: function (cookie_name) {
170
  return $.pm_cookie(cookie_name);
171
  },
 
 
 
172
  setCookie: function (el, settings) {
173
  var $popup = PUM.getPopup(el);
174
 
@@ -753,7 +756,8 @@ var PUM_Accessibility;
753
  var $top_level_elements,
754
  focusableElementsString = "a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",
755
  previouslyFocused,
756
- currentModal
 
757
 
758
  PUM_Accessibility = {
759
  // Accessibility: Checks focus events to ensure they stay inside the modal.
@@ -799,7 +803,7 @@ var PUM_Accessibility;
799
  };
800
 
801
  $(document)
802
- .on('pumInit', '.pum', function () {
803
  PUM.getPopup(this).find('[tabindex]').each(function () {
804
  var $this = $(this);
805
  $this
@@ -808,9 +812,7 @@ var PUM_Accessibility;
808
 
809
  });
810
  })
811
-
812
-
813
- .on('pumBeforeOpen', '.pum', function () {
814
  var $popup = PUM.getPopup(this),
815
  $focused = $(':focus');
816
 
@@ -834,15 +836,13 @@ var PUM_Accessibility;
834
  // Accessibility: Focus on the modal.
835
  PUM_Accessibility.setFocusToFirstItem();
836
  })
837
- .on('pumAfterOpen', '.pum', function () {
838
 
839
  })
840
-
841
-
842
- .on('pumBeforeClose', '.pum', function () {
843
 
844
  })
845
- .on('pumAfterClose', '.pum', function () {
846
  var $popup = PUM.getPopup(this);
847
 
848
  $popup
@@ -866,19 +866,19 @@ var PUM_Accessibility;
866
  $(document).off('focusin.pum_accessibility');
867
  })
868
 
869
- .on('pumSetupClose', '.pum', function () {
870
 
871
  })
872
 
873
- .on('pumOpenPrevented', '.pum', function () {
874
 
875
  })
876
 
877
- .on('pumClosePrevented', '.pum', function () {
878
 
879
  })
880
 
881
- .on('pumBeforeReposition', '.pum', function () {
882
 
883
  });
884
 
169
  getCookie: function (cookie_name) {
170
  return $.pm_cookie(cookie_name);
171
  },
172
+ getJSONCookie: function (cookie_name) {
173
+ return $.pm_cookie_json(cookie_name);
174
+ },
175
  setCookie: function (el, settings) {
176
  var $popup = PUM.getPopup(el);
177
 
756
  var $top_level_elements,
757
  focusableElementsString = "a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",
758
  previouslyFocused,
759
+ currentModal,
760
+ selector = '.pum:not(.pum-accessibility-disabled)';
761
 
762
  PUM_Accessibility = {
763
  // Accessibility: Checks focus events to ensure they stay inside the modal.
803
  };
804
 
805
  $(document)
806
+ .on('pumInit', selector, function () {
807
  PUM.getPopup(this).find('[tabindex]').each(function () {
808
  var $this = $(this);
809
  $this
812
 
813
  });
814
  })
815
+ .on('pumBeforeOpen', selector, function () {
 
 
816
  var $popup = PUM.getPopup(this),
817
  $focused = $(':focus');
818
 
836
  // Accessibility: Focus on the modal.
837
  PUM_Accessibility.setFocusToFirstItem();
838
  })
839
+ .on('pumAfterOpen', selector, function () {
840
 
841
  })
842
+ .on('pumBeforeClose', selector, function () {
 
 
843
 
844
  })
845
+ .on('pumAfterClose', selector, function () {
846
  var $popup = PUM.getPopup(this);
847
 
848
  $popup
866
  $(document).off('focusin.pum_accessibility');
867
  })
868
 
869
+ .on('pumSetupClose', selector, function () {
870
 
871
  })
872
 
873
+ .on('pumOpenPrevented', selector, function () {
874
 
875
  })
876
 
877
+ .on('pumClosePrevented', selector, function () {
878
 
879
  })
880
 
881
+ .on('pumBeforeReposition', selector, function () {
882
 
883
  });
884
 
assets/js/site.min.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e){"use strict";void 0===e.fn.on&&(e.fn.on=function(e,o,t){return this.delegate(o,e,t)}),void 0===e.fn.off&&(e.fn.off=function(e,o,t){return this.undelegate(o,e,t)}),void 0===e.fn.bindFirst&&(e.fn.bindFirst=function(o,t){var n,i,s=e(this);s.unbind(o,t),s.bind(o,t),n=e._data(s[0]).events,i=n[o],i.unshift(i.pop()),n[o]=i}),void 0===e.fn.outerHtml&&(e.fn.outerHtml=function(){var o=e(this).clone(),t=e("<div/>").append(o);return t.html()}),void 0===Date.now&&(Date.now=function(){return(new Date).getTime()})}(jQuery);var PUM;!function(e,o,t){"use strict";function n(e){return!isNaN(e)&&parseInt(Number(e))===parseInt(e)&&!isNaN(parseInt(e,10))}function i(){var e={},o=function(o,n,i){"boolean"==typeof n&&(i=n,n=!1);var s=n?n.selector+" "+o:o;return(t===e[s]||i)&&(e[s]=n?n.find(o):jQuery(o)),e[s]};return o.elementCache=e,o}function s(e,o){function t(e,o,t){return o?e[o.slice(0,t?-1:o.length)]:e}function n(e,o){return o?o.split("[").reduce(t,e):e}return o.split(".").reduce(n,e)}window.pum_vars=window.pum_vars||{default_theme:"0",home_url:"/",version:1.7,ajaxurl:"",restapi:!1,rest_nonce:null,debug_mode:!1,disable_tracking:!0,message_position:"top",core_sub_forms_enabled:!0,popups:{}},window.pum_popups=window.pum_popups||{},window.pum_vars.popups=window.pum_popups,PUM={get:new i,getPopup:function(o){var t;return t=n(o)?PUM.get("#pum-"+o):"current"===o?PUM.get(".pum-overlay.pum-active:eq(0)",!0):"open"===o?PUM.get(".pum-overlay.pum-active",!0):"closed"===o?PUM.get(".pum-overlay:not(.pum-active)",!0):o instanceof jQuery?o:e(o),t.hasClass("pum-overlay")?t:t.hasClass("popmake")?t.parents(".pum-overlay"):t.parents(".pum-overlay").length?t.parents(".pum-overlay"):e()},open:function(e,o){PUM.getPopup(e).popmake("open",o)},close:function(e,o){PUM.getPopup(e).popmake("close",o)},preventOpen:function(e){PUM.getPopup(e).addClass("preventOpen")},getSettings:function(e){var o=PUM.getPopup(e);return o.popmake("getSettings")},getSetting:function(e,o,n){var i=PUM.getSettings(e),r=s(i,o);return"undefined"!=typeof r?r:n!==t?n:null},checkConditions:function(e){return PUM.getPopup(e).popmake("checkConditions")},getCookie:function(o){return e.pm_cookie(o)},setCookie:function(e,o){var t=PUM.getPopup(e);t.popmake("setCookie",jQuery.extend({name:"pum-"+PUM.getSetting(e,"id"),expires:"+30 days"},o))},clearCookie:function(o,t){e.pm_remove_cookie(o),"function"==typeof t&&t()},clearCookies:function(o,n){var i,s=PUM.getPopup(o),r=s.popmake("getSettings"),a=r.cookies;if(a!==t&&a.length)for(i=0;a.length>i;i+=1)e.pm_remove_cookie(a[i].settings.name);"function"==typeof n&&n()},getClickTriggerSelector:function(e,o){var t=PUM.getPopup(e),n=PUM.getSettings(e),i=[".popmake-"+n.id,".popmake-"+decodeURIComponent(n.slug),'a[href$="#popmake-'+n.id+'"]'];return o.extra_selectors&&""!==o.extra_selectors&&i.push(o.extra_selectors),i=pum.hooks.applyFilters("pum.trigger.click_open.selectors",i,o,t),i.join(", ")},disableClickTriggers:function(n,i){if(n!==t)if(i!==t){var s=PUM.getClickTriggerSelector(n,i);e(s).removeClass("pum-trigger"),e(o).off("click.pumTrigger click.popmakeOpen",s)}else{var r=PUM.getSetting(n,"triggers",[]);if(r.length)for(var a=0;r.length>a;a++)if(pum.hooks.applyFilters("pum.disableClickTriggers.clickTriggerTypes",["click_open"]).indexOf(r[a].type)!==-1){var s=PUM.getClickTriggerSelector(n,r[a].settings);e(s).removeClass("pum-trigger"),e(o).off("click.pumTrigger click.popmakeOpen",s)}}}},e.fn.popmake=function(t){return e.fn.popmake.methods[t]?(e(o).trigger("pumMethodCall",arguments),e.fn.popmake.methods[t].apply(this,Array.prototype.slice.call(arguments,1))):"object"!=typeof t&&t?void(window.console&&console.warn("Method "+t+" does not exist on $.fn.popmake")):e.fn.popmake.methods.init.apply(this,arguments)},e.fn.popmake.methods={init:function(){return this.each(function(){var o=PUM.getPopup(this),n=o.popmake("getSettings");return n.theme_id<=0&&(n.theme_id=pum_vars.default_theme),n.disable_reposition!==t&&n.disable_reposition||e(window).on("resize",function(){(o.hasClass("pum-active")||o.find(".popmake.active").length)&&e.fn.popmake.utilities.throttle(setTimeout(function(){o.popmake("reposition")},25),500,!1)}),o.find(".pum-container").data("popmake",n),o.data("popmake",n).trigger("pumInit"),this})},getOverlay:function(){return PUM.getPopup(this)},getContainer:function(){return PUM.getPopup(this).find(".pum-container")},getTitle:function(){return PUM.getPopup(this).find(".pum-title")||null},getContent:function(){return PUM.getPopup(this).find(".pum-content")||null},getClose:function(){return PUM.getPopup(this).find(".pum-content + .pum-close")||null},getSettings:function(){var o=PUM.getPopup(this);return e.extend(!0,{},e.fn.popmake.defaults,o.data("popmake")||{},"object"==typeof pum_popups&&"undefined"!=typeof pum_popups[o.attr("id")]?pum_popups[o.attr("id")]:{})},state:function(e){var o=PUM.getPopup(this);if(t!==e)switch(e){case"isOpen":return o.hasClass("pum-open")||o.popmake("getContainer").hasClass("active");case"isClosed":return!o.hasClass("pum-open")&&!o.popmake("getContainer").hasClass("active")}},open:function(o){var n=PUM.getPopup(this),i=n.popmake("getContainer"),s=n.popmake("getClose"),r=n.popmake("getSettings"),a=e("html");return n.trigger("pumBeforeOpen"),n.hasClass("preventOpen")||i.hasClass("preventOpen")?(console.log("prevented"),n.removeClass("preventOpen").removeClass("pum-active").trigger("pumOpenPrevented"),this):(r.stackable||n.popmake("close_all"),n.addClass("pum-active"),r.close_button_delay>0&&s.fadeOut(0),a.addClass("pum-open"),r.overlay_disabled?a.addClass("pum-open-overlay-disabled"):a.addClass("pum-open-overlay"),r.position_fixed?a.addClass("pum-open-fixed"):a.addClass("pum-open-scrollable"),n.popmake("setup_close").popmake("reposition").popmake("animate",r.animation_type,function(){r.close_button_delay>0&&setTimeout(function(){s.fadeIn()},r.close_button_delay),n.trigger("pumAfterOpen"),e.fn.popmake.last_open_popup=n,o!==t&&o()}),this)},setup_close:function(){var n=PUM.getPopup(this),i=n.popmake("getClose"),s=n.popmake("getSettings");return i=i.add(e(".popmake-close, .pum-close",n).not(i)),i.off("click.pum").on("click.pum",function(o){var i=e(this),s=i.hasClass("pum-do-default")||i.data("do-default")!==t&&i.data("do-default");s||o.preventDefault(),e.fn.popmake.last_close_trigger="Close Button",n.popmake("close")}),(s.close_on_esc_press||s.close_on_f4_press)&&e(window).off("keyup.popmake").on("keyup.popmake",function(o){27===o.keyCode&&s.close_on_esc_press&&(e.fn.popmake.last_close_trigger="ESC Key",n.popmake("close")),115===o.keyCode&&s.close_on_f4_press&&(e.fn.popmake.last_close_trigger="F4 Key",n.popmake("close"))}),s.close_on_overlay_click&&(n.on("pumAfterOpen",function(){e(o).on("click.pumCloseOverlay",function(o){var t=e(o.target),i=t.closest(".pum-container");i.length||(e.fn.popmake.last_close_trigger="Overlay Click",n.popmake("close"))})}),n.on("pumAfterClose",function(){e(o).off("click.pumCloseOverlay")})),n.trigger("pumSetupClose"),this},close:function(o){return this.each(function(){var n=PUM.getPopup(this),i=n.popmake("getContainer"),s=n.popmake("getClose");return s=s.add(e(".popmake-close, .pum-close",n).not(s)),n.trigger("pumBeforeClose"),n.hasClass("preventClose")||i.hasClass("preventClose")?(n.removeClass("preventClose").trigger("pumClosePrevented"),this):(i.fadeOut("fast",function(){n.is(":visible")&&n.fadeOut("fast"),e(window).off("keyup.popmake"),n.off("click.popmake"),s.off("click.popmake"),1===e(".pum-active").length&&e("html").removeClass("pum-open").removeClass("pum-open-scrollable").removeClass("pum-open-overlay").removeClass("pum-open-overlay-disabled").removeClass("pum-open-fixed"),n.removeClass("pum-active").trigger("pumAfterClose"),i.find("iframe").filter('[src*="youtube"],[src*="vimeo"]').each(function(){var o=e(this),t=o.attr("src"),n=t.replace("autoplay=1","1=1");n!==t&&(t=n),o.prop("src",t)}),i.find("video").each(function(){this.pause()}),o!==t&&o()}),this)})},close_all:function(){return e(".pum-active").popmake("close"),this},reposition:function(o){var t=PUM.getPopup(this).trigger("pumBeforeReposition"),n=t.popmake("getContainer"),i=t.popmake("getSettings"),s=i.location,r={my:"",at:"",of:window,collision:"none",using:"function"==typeof o?o:e.fn.popmake.callbacks.reposition_using},a={overlay:null,container:null},p=null;try{p=e(e.fn.popmake.last_open_trigger)}catch(u){p=e()}return i.position_from_trigger&&p.length?(r.of=p,s.indexOf("left")>=0&&(r.my+=" right",r.at+=" left"+(0!==i.position_left?"-"+i.position_left:"")),s.indexOf("right")>=0&&(r.my+=" left",r.at+=" right"+(0!==i.position_right?"+"+i.position_right:"")),s.indexOf("center")>=0&&(r.my="center"===s?"center":r.my+" center",r.at="center"===s?"center":r.at+" center"),s.indexOf("top")>=0&&(r.my+=" bottom",r.at+=" top"+(0!==i.position_top?"-"+i.position_top:"")),s.indexOf("bottom")>=0&&(r.my+=" top",r.at+=" bottom"+(0!==i.position_bottom?"+"+i.position_bottom:""))):(s.indexOf("left")>=0&&(r.my+=" left"+(0!==i.position_left?"+"+i.position_left:""),r.at+=" left"),s.indexOf("right")>=0&&(r.my+=" right"+(0!==i.position_right?"-"+i.position_right:""),r.at+=" right"),s.indexOf("center")>=0&&(r.my="center"===s?"center":r.my+" center",r.at="center"===s?"center":r.at+" center"),s.indexOf("top")>=0&&(r.my+=" top"+(0!==i.position_top?"+"+(e("body").hasClass("admin-bar")?parseInt(i.position_top,10)+32:i.position_top):""),r.at+=" top"),s.indexOf("bottom")>=0&&(r.my+=" bottom"+(0!==i.position_bottom?"-"+i.position_bottom:""),r.at+=" bottom")),r.my=e.trim(r.my),r.at=e.trim(r.at),t.is(":hidden")&&(a.overlay=t.css("opacity"),t.css({opacity:0}).show(0)),n.is(":hidden")&&(a.container=n.css("opacity"),n.css({opacity:0}).show(0)),i.position_fixed&&n.addClass("fixed"),"custom"===i.size?n.css({width:i.custom_width,height:i.custom_height_auto?"auto":i.custom_height}):"auto"!==i.size&&n.addClass("responsive").css({minWidth:""!==i.responsive_min_width?i.responsive_min_width:"auto",maxWidth:""!==i.responsive_max_width?i.responsive_max_width:"auto"}),t.trigger("pumAfterReposition"),n.addClass("custom-position").position(r).trigger("popmakeAfterReposition"),a.overlay&&t.css({opacity:a.overlay}).hide(0),a.container&&n.css({opacity:a.container}).hide(0),this},animation_origin:function(o){var t=PUM.getPopup(this),n=t.popmake("getContainer"),i={my:"",at:""};switch(o){case"top":i={my:"left+"+n.offset().left+" bottom-100",at:"left top"};break;case"bottom":i={my:"left+"+n.offset().left+" top+100",at:"left bottom"};break;case"left":i={my:"right top+"+n.offset().top,at:"left top"};break;case"right":i={my:"left top+"+n.offset().top,at:"right top"};break;default:o.indexOf("left")>=0&&(i={my:i.my+" right",at:i.at+" left"}),o.indexOf("right")>=0&&(i={my:i.my+" left",at:i.at+" right"}),o.indexOf("center")>=0&&(i={my:i.my+" center",at:i.at+" center"}),o.indexOf("top")>=0&&(i={my:i.my+" bottom-100",at:i.at+" top"}),o.indexOf("bottom")>=0&&(i={my:i.my+" top+100",at:i.at+" bottom"}),i.my=e.trim(i.my),i.at=e.trim(i.at)}return i.of=window,i.collision="none",i}}}(jQuery,document);var PUM_Accessibility;!function(e,o,t){"use strict";var n,i,s,r="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]";PUM_Accessibility={forceFocus:function(e){s&&s.length&&!s[0].contains(e.target)&&(e.stopPropagation(),PUM_Accessibility.setFocusToFirstItem())},trapTabKey:function(o){if(9===o.keyCode){var t=s.find(".pum-container *").filter(r).filter(":visible"),n=e(":focus"),i=t.length,a=t.index(n);o.shiftKey?0===a&&(t.get(i-1).focus(),o.preventDefault()):a===i-1&&(t.get(0).focus(),o.preventDefault())}},setFocusToFirstItem:function(){s.find(".pum-container *").filter(r).filter(":visible").filter(":not(.pum-close)").first().focus()}},e(o).on("pumInit",".pum",function(){PUM.getPopup(this).find("[tabindex]").each(function(){var o=e(this);o.data("tabindex",o.attr("tabindex")).prop("tabindex","0")})}).on("pumBeforeOpen",".pum",function(){var t=PUM.getPopup(this),r=e(":focus");t.has(r).length||(i=r),s=t.on("keydown.pum_accessibility",PUM_Accessibility.trapTabKey).attr("aria-hidden","false"),n=e("body > *").filter(":visible").not(s),n.attr("aria-hidden","true"),e(o).one("focusin.pum_accessibility",PUM_Accessibility.forceFocus),PUM_Accessibility.setFocusToFirstItem()}).on("pumAfterOpen",".pum",function(){}).on("pumBeforeClose",".pum",function(){}).on("pumAfterClose",".pum",function(){var r=PUM.getPopup(this);r.off("keydown.pum_accessibility").attr("aria-hidden","true"),n&&(n.attr("aria-hidden","false"),n=null),i!==t&&i.length&&i.focus(),s=null,e(o).off("focusin.pum_accessibility")}).on("pumSetupClose",".pum",function(){}).on("pumOpenPrevented",".pum",function(){}).on("pumClosePrevented",".pum",function(){}).on("pumBeforeReposition",".pum",function(){})}(jQuery,document);var PUM_Analytics;!function(e){"use strict";e.fn.popmake.last_open_trigger=null,e.fn.popmake.last_close_trigger=null,e.fn.popmake.conversion_trigger=null;var o=!("undefined"==typeof pum_vars.restapi||!pum_vars.restapi);PUM_Analytics={beacon:function(t,n){var i=new Image,s=o?pum_vars.restapi:pum_vars.ajaxurl,r={route:"/analytics/",data:e.extend({event:"open",pid:null,_cache:+new Date},t),callback:"function"==typeof n?n:function(){}};o?s+=r.route:r.data.action="pum_analytics",s&&(e(i).on("error success load done",r.callback),i.src=s+"?"+e.param(r.data))}},"undefined"!=typeof pum_vars.disable_tracking&&pum_vars.disable_tracking||e(document).on("pumAfterOpen.core_analytics","body > .pum",function(){var o=PUM.getPopup(this),t={pid:parseInt(o.popmake("getSettings").id,10)||null};t.pid>0&&!e("body").hasClass("single-popup")&&PUM_Analytics.beacon(t)})}(jQuery),function(e,o,t){"use strict";e.fn.popmake.methods.animate_overlay=function(o,t,n){var i=PUM.getPopup(this).popmake("getSettings");return i.overlay_disabled?e.fn.popmake.overlay_animations.none.apply(this,[t,n]):e.fn.popmake.overlay_animations[o]?e.fn.popmake.overlay_animations[o].apply(this,[t,n]):(window.console&&console.warn("Animation style "+o+" does not exist."),this)},e.fn.popmake.methods.animate=function(o){return e.fn.popmake.animations[o]?e.fn.popmake.animations[o].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Animation style "+o+" does not exist."),this)},e.fn.popmake.animations={none:function(e){var o=PUM.getPopup(this);return o.popmake("getContainer").show(0),o.popmake("animate_overlay","none",0,function(){e!==t&&e()}),this},slide:function(e){var o=PUM.getPopup(this).show(0).css({opacity:0}),n=o.popmake("getContainer").show(0).css({opacity:0}),i=o.popmake("getSettings"),s=i.animation_speed/2,r=o.popmake("animation_origin",i.animation_origin);return n.position(r).css({opacity:1}),o.css({opacity:1}).popmake("animate_overlay","fade",s,function(){n.popmake("reposition",function(o){n.animate(o,s,"swing",function(){e!==t&&e()})})}),this},fade:function(e){var o=PUM.getPopup(this),n=o.popmake("getContainer"),i=o.popmake("getSettings"),s=i.animation_speed/2;return n.show(0).css({opacity:0}),o.popmake("animate_overlay","fade",s,function(){n.animate({opacity:1},s,"swing",function(){e!==t&&e()})}),this},fadeAndSlide:function(e){var o=PUM.getPopup(this).show(0).css({opacity:0}),n=o.popmake("getContainer").show(0).css({opacity:0}),i=o.popmake("getSettings"),s=i.animation_speed/2,r=o.popmake("animation_origin",i.animation_origin);return n.position(r),o.hide().css({opacity:1}).popmake("animate_overlay","fade",s,function(){n.popmake("reposition",function(o){o.opacity=1,n.animate(o,s,"swing",function(){e!==t&&e()})})}),this},grow:function(o){return e.fn.popmake.animations.fade.apply(this,arguments)},growAndSlide:function(o){return e.fn.popmake.animations.fadeAndSlide.apply(this,arguments)}},e.fn.popmake.overlay_animations={none:function(e,o){PUM.getPopup(this).show(e,o)},fade:function(e,o){PUM.getPopup(this).fadeIn(e,o)},slide:function(e,o){PUM.getPopup(this).slideDown(e,o)}}}(jQuery,document),function(e,o,t){"use strict";e(o).on("pumInit",".pum",function(){e(this).popmake("getContainer").trigger("popmakeInit")}).on("pumBeforeOpen",".pum",function(){e(this).popmake("getContainer").addClass("active").trigger("popmakeBeforeOpen")}).on("pumAfterOpen",".pum",function(){e(this).popmake("getContainer").trigger("popmakeAfterOpen")}).on("pumBeforeClose",".pum",function(){e(this).popmake("getContainer").trigger("popmakeBeforeClose")}).on("pumAfterClose",".pum",function(){e(this).popmake("getContainer").removeClass("active").trigger("popmakeAfterClose")}).on("pumSetupClose",".pum",function(){e(this).popmake("getContainer").trigger("popmakeSetupClose")}).on("pumOpenPrevented",".pum",function(){e(this).popmake("getContainer").removeClass("preventOpen").removeClass("active")}).on("pumClosePrevented",".pum",function(){e(this).popmake("getContainer").removeClass("preventClose")}).on("pumBeforeReposition",".pum",function(){e(this).popmake("getContainer").trigger("popmakeBeforeReposition")})}(jQuery,document),function(e,o,t){"use strict";e.fn.popmake.callbacks={reposition_using:function(o){e(this).css(o)}}}(jQuery,document),function(e,o,t){"use strict";var n,i=function(){return n===t&&(n="undefined"!=typeof MobileDetect?new MobileDetect(window.navigator.userAgent):{phone:function(){return!1},tablet:function(){return!1}}),n};e.extend(e.fn.popmake.methods,{checkConditions:function(){var o,t,n,s,r,a=PUM.getPopup(this),p=a.popmake("getSettings"),u=!0;if(p.disable_on_mobile&&i().phone())return!1;if(p.disable_on_tablet&&i().tablet())return!1;if(p.conditions.length)for(t=0;p.conditions.length>t;t++){for(s=p.conditions[t],o=!1,n=0;s.length>n&&(r=e.extend({},{not_operand:!1},s[n]),!r.not_operand&&a.popmake("checkCondition",r)?o=!0:r.not_operand&&!a.popmake("checkCondition",r)&&(o=!0),e(this).trigger("pumCheckingCondition",[o,r]),!o);n++);o||(u=!1)}return u},checkCondition:function(o){var t=o.target||null;o.settings||o;return t?e.fn.popmake.conditions[t]?e.fn.popmake.conditions[t].apply(this,[o]):window.console?(console.warn("Condition "+t+" does not exist."),!0):void 0:(console.warn("Condition type not set."),!1)}}),e.fn.popmake.conditions={}}(jQuery,document);var pm_cookie,pm_cookie_json,pm_remove_cookie;!function(e){"use strict";function o(o){function t(n,i,s){var r,a=new Date;if("undefined"!=typeof document){if(arguments.length>1){switch(s=e.extend({path:pum_vars.home_url},t.defaults,s),typeof s.expires){case"number":a.setMilliseconds(a.getMilliseconds()+864e5*s.expires),s.expires=a;break;case"string":a.setTime(1e3*e.fn.popmake.utilities.strtotime("+"+s.expires)),s.expires=a}try{r=JSON.stringify(i),/^[\{\[]/.test(r)&&(i=r)}catch(p){}return i=o.write?o.write(i,n):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)),n=n.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),n=n.replace(/[\(\)]/g,escape),document.cookie=[n,"=",i,s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}n||(r={});for(var u=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,c=0;c<u.length;c++){var m=u[c].split("="),d=m.slice(1).join("=");'"'===d.charAt(0)&&(d=d.slice(1,-1));try{var f=m[0].replace(l,decodeURIComponent);if(d=o.read?o.read(d,f):o(d,f)||d.replace(l,decodeURIComponent),this.json)try{d=JSON.parse(d)}catch(p){}if(n===f){r=d;break}n||(r[f]=d)}catch(p){}}return r}}return void 0===o&&(o=function(){}),t.set=t,t.get=function(e){return t.call(t,e)},t.getJSON=function(){return t.apply({json:!0},[].slice.call(arguments))},t.defaults={},t.remove=function(o,n){t(o,"",e.extend({},n,{expires:-1,path:""})),t(o,"",e.extend({},n,{expires:-1}))},t.process=function(e,o,n,i){return arguments.length>3&&"object"!=typeof arguments[2]&&void 0!==o?t.apply(t,[e,o,{expires:n,path:i}]):t.apply(t,[].slice.call(arguments,[0,2]))},t.withConverter=e.fn.popmake.cookie,t}e.extend(e.fn.popmake,{cookie:o()}),pm_cookie=e.pm_cookie=e.fn.popmake.cookie.process,pm_cookie_json=e.pm_cookie_json=e.fn.popmake.cookie.getJSON,pm_remove_cookie=e.pm_remove_cookie=e.fn.popmake.cookie.remove}(jQuery),function(e,o,t){"use strict";e.extend(e.fn.popmake.methods,{addCookie:function(o){return pum.hooks.doAction("popmake.addCookie",arguments),e.fn.popmake.cookies[o]?e.fn.popmake.cookies[o].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Cookie type "+o+" does not exist."),this)},setCookie:function(o){e.pm_cookie(o.name,!0,o.session?null:o.time,o.path?pum_vars.home_url||"/":null),pum.hooks.doAction("popmake.setCookie",o)},checkCookies:function(o){var n,i=!1;if(o.cookie_name===t||null===o.cookie_name||""===o.cookie_name)return!1;switch(typeof o.cookie_name){case"object":case"array":for(n=0;o.cookie_name.length>n;n+=1)e.pm_cookie(o.cookie_name[n])!==t&&(i=!0);break;case"string":e.pm_cookie(o.cookie_name)!==t&&(i=!0)}return pum.hooks.doAction("popmake.checkCookies",o,i),i}}),e.fn.popmake.cookies=e.fn.popmake.cookies||{},e.extend(e.fn.popmake.cookies,{on_popup_open:function(e){var o=PUM.getPopup(this);o.on("pumAfterOpen",function(){o.popmake("setCookie",e)})},on_popup_close:function(e){var o=PUM.getPopup(this);o.on("pumBeforeClose",function(){o.popmake("setCookie",e)})},manual:function(e){var o=PUM.getPopup(this);o.on("pumSetCookie",function(){o.popmake("setCookie",e)})},form_success:function(e){var o=PUM.getPopup(this);o.on("pumFormSuccess",function(){o.popmake("setCookie",e)})},pum_sub_form_success:function(e){var o=PUM.getPopup(this);o.find("form.pum-sub-form").on("success",function(){o.popmake("setCookie",e)})},pum_sub_form_already_subscribed:function(e){var o=PUM.getPopup(this);o.find("form.pum-sub-form").on("success",function(){o.popmake("setCookie",e)})},ninja_form_success:function(o){return e.fn.popmake.cookies.form_success.apply(this,arguments)},cf7_form_success:function(o){return e.fn.popmake.cookies.form_success.apply(this,arguments)},gforms_form_success:function(o){return e.fn.popmake.cookies.form_success.apply(this,arguments)}}),e(o).on("pumInit",".pum",function(){var e,o=PUM.getPopup(this),t=o.popmake("getSettings"),n=t.cookies||[],i=null;if(n.length)for(e=0;n.length>e;e+=1)i=n[e],o.popmake("addCookie",i.event,i.settings)})}(jQuery,document);var pum_debug_mode=!1,pum_debug;!function(e,o){if(o=window.pum_vars||{debug_mode:!1},pum_debug_mode=void 0!==o.debug_mode&&o.debug_mode,pum_debug_mode||window.location.href.indexOf("pum_debug")===-1||(pum_debug_mode=!0),pum_debug_mode){var t=!1,n=!1,i=window.pum_debug_vars||{debug_mode_enabled:"Popup Maker: Debug Mode Enabled",debug_started_at:"Debug started at:",debug_more_info:"For more information on how to use this information visit https://docs.wppopupmaker.com/?utm_medium=js-debug-info&utm_campaign=ContextualHelp&utm_source=browser-console&utm_content=more-info",global_info:"Global Information",localized_vars:"Localized variables",popups_initializing:"Popups Initializing",popups_initialized:"Popups Initialized",single_popup_label:"Popup: #",theme_id:"Theme ID: ",label_method_call:"Method Call:",label_method_args:"Method Arguments:",label_popup_settings:"Settings",label_triggers:"Triggers",label_cookies:"Cookies",label_delay:"Delay:",label_conditions:"Conditions",label_cookie:"Cookie:",label_settings:"Settings:",label_selector:"Selector:",label_mobile_disabled:"Mobile Disabled:",label_tablet_disabled:"Tablet Disabled:",label_event:"Event: %s",triggers:[],cookies:[]};pum_debug={odump:function(o){return e.extend({},o)},logo:function(){console.log(" -------------------------------------------------------------\n| ____ __ __ _ |\n| | _ \\ ___ _ __ _ _ _ __ | \\/ | __ _| | _____ _ __ |\n| | |_) / _ \\| '_ \\| | | | '_ \\ | |\\/| |/ _` | |/ / _ \\ '__| |\n| | __/ (_) | |_) | |_| | |_) | | | | | (_| | < __/ | |\n| |_| \\___/| .__/ \\__,_| .__/ |_| |_|\\__,_|_|\\_\\___|_| |\n| |_| |_| |\n -------------------------------------------------------------")},initialize:function(){t=!0,pum_debug.logo(),console.debug(i.debug_mode_enabled),console.log(i.debug_started_at,new Date),console.info(i.debug_more_info),pum_debug.divider(i.global_info),console.groupCollapsed(i.localized_vars),console.log("pum_vars:",pum_debug.odump(o)),e(document).trigger("pum_debug_initialize_localized_vars"),console.groupEnd(),e(document).trigger("pum_debug_initialize")},popup_event_header:function(e){var o=e.popmake("getSettings");n!==o.id&&(n=o.id,pum_debug.divider(i.single_popup_label+o.id+" - "+o.slug))},divider:function(e){var o=62,t=62,n=0,i=" "+new Array(o+1).join("-")+" ";"string"==typeof e?(t=o-e.length,n={left:Math.floor(t/2),right:Math.floor(t/2)},n.left+n.right===t-1&&n.right++,n.left=new Array(n.left+1).join(" "),n.right=new Array(n.right+1).join(" "),console.log(""+i+"\n|"+n.left+e+n.right+"|\n"+i)):console.log(i)},click_trigger:function(e,o){var t,n=e.popmake("getSettings"),s=[".popmake-"+n.id,".popmake-"+decodeURIComponent(n.slug),'a[href$="#popmake-'+n.id+'"]'];o.extra_selectors&&""!==o.extra_selectors&&s.push(o.extra_selectors),s=pum.hooks.applyFilters("pum.trigger.click_open.selectors",s,o,e),t=s.join(", "),console.log(i.label_selector,t)},trigger:function(o,t){if("string"==typeof i.triggers[t.type]){switch(console.groupCollapsed(i.triggers[t.type]),t.type){case"auto_open":console.log(i.label_delay,t.settings.delay),console.log(i.label_cookie,t.settings.cookie_name);break;case"click_open":pum_debug.click_trigger(o,t.settings),console.log(i.label_cookie,t.settings.cookie_name)}e(document).trigger("pum_debug_render_trigger",o,t),console.groupEnd()}},cookie:function(o,t){if("string"==typeof i.cookies[t.event]){switch(console.groupCollapsed(i.cookies[t.event]),t.event){case"on_popup_open":case"on_popup_close":case"manual":case"ninja_form_success":console.log(i.label_cookie,pum_debug.odump(t.settings))}e(document).trigger("pum_debug_render_trigger",o,t),console.groupEnd()}}},e(document).on("pumInit",".pum",function(){var o=PUM.getPopup(e(this)),n=o.popmake("getSettings"),s=n.triggers||[],r=n.cookies||[],a=n.conditions||[],p=0;if(t||(pum_debug.initialize(),pum_debug.divider(i.popups_initializing)),console.groupCollapsed(i.single_popup_label+n.id+" - "+n.slug),console.log(i.theme_id,n.theme_id),s.length){for(console.groupCollapsed(i.label_triggers),p=0;s.length>p;p++)pum_debug.trigger(o,s[p]);console.groupEnd()}if(r.length){for(console.groupCollapsed(i.label_cookies),p=0;r.length>p;p+=1)pum_debug.cookie(o,r[p]);console.groupEnd()}a.length&&(console.groupCollapsed(i.label_conditions),console.log(a),console.groupEnd()),console.groupCollapsed(i.label_popup_settings),console.log(i.label_mobile_disabled,n.disable_on_mobile!==!1),console.log(i.label_tablet_disabled,n.disable_on_tablet!==!1),console.log(i.label_display_settings,pum_debug.odump(n)),o.trigger("pum_debug_popup_settings"),console.groupEnd(),console.groupEnd()}).on("pumBeforeOpen",".pum",function(){var o=PUM.getPopup(e(this)),t=e.fn.popmake.last_open_trigger;pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumBeforeOpen"));try{t=e(e.fn.popmake.last_open_trigger),t=t.length?t:e.fn.popmake.last_open_trigger.toString()}catch(n){t=""}finally{console.log(i.label_triggers,[t])}console.groupEnd()}).on("pumOpenPrevented",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumOpenPrevented")),console.groupEnd()}).on("pumAfterOpen",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumAfterOpen")),console.groupEnd()}).on("pumSetupClose",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumSetupClose")),console.groupEnd()}).on("pumClosePrevented",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumClosePrevented")),console.groupEnd()}).on("pumBeforeClose",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumBeforeClose")),console.groupEnd()}).on("pumAfterClose",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumAfterClose")),console.groupEnd()}).on("pumBeforeReposition",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumBeforeReposition")),console.groupEnd()}).on("pumAfterReposition",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumAfterReposition")),console.groupEnd()}).on("pumCheckingCondition",".pum",function(o,t,n){var s=PUM.getPopup(e(this));pum_debug.popup_event_header(s),console.groupCollapsed(i.label_event.replace("%s","pumCheckingCondition")),console.log((n.not_operand?"(!) ":"")+n.target+": "+t,n),console.groupEnd()})}}(jQuery),function(e,o,t){"use strict";e.fn.popmake.defaults={id:null,slug:"",theme_id:null,cookies:[],triggers:[],conditions:[],mobile_disabled:null,tablet_disabled:null,custom_height_auto:!1,scrollable_content:!1,position_from_trigger:!1,position_fixed:!1,overlay_disabled:!1,stackable:!1,disable_reposition:!1,close_on_overlay_click:!1,close_on_esc_press:!1,close_on_f4_press:!1,disable_on_mobile:!1,disable_on_tablet:!1,size:"medium",responsive_min_width:"0%",responsive_max_width:"100%",custom_width:"640px",custom_height:"380px",animation_type:"fade",animation_speed:"350",animation_origin:"center top",location:"center top",position_top:"100",position_bottom:"0",position_left:"0",position_right:"0",zindex:"1999999999",close_button_delay:"0",meta:{display:{stackable:!1,overlay_disabled:!1,size:"medium",responsive_max_width:"100",responsive_max_width_unit:"%",responsive_min_width:"0",responsive_min_width_unit:"%",custom_width:"640",custom_width_unit:"px",custom_height:"380",custom_height_unit:"px",custom_height_auto:!1,location:"center top",position_top:100,position_left:0,position_bottom:0,position_right:0,position_fixed:!1,animation_type:"fade",animation_speed:350,animation_origin:"center top",scrollable_content:!1,disable_reposition:!1,position_from_trigger:!1,overlay_zindex:!1,zindex:"1999999999"},close:{overlay_click:!1,esc_press:!1,f4_press:!1,text:"",button_delay:0},click_open:[]},container:{active_class:"active",attr:{"class":"popmake"}},title:{attr:{"class":"popmake-title"}},content:{attr:{"class":"popmake-content"}},close:{close_speed:0,attr:{"class":"popmake-close"}},overlay:{attr:{id:"popmake-overlay","class":"popmake-overlay"}}}}(jQuery,document),function(e){"use strict";var o={openpopup:!1,openpopup_id:0,closepopup:!1,closedelay:0,redirect_enabled:!1,redirect:"",cookie:!1};window.PUM=window.PUM||{},window.PUM.forms=window.PUM.forms||{},e.extend(window.PUM.forms,{form:{validation:{errors:[]},responseHandler:function(e,o){var t=o.data;o.success?window.PUM.forms.form.success(e,t):window.PUM.forms.form.errors(e,t)},display_errors:function(e,o){window.PUM.forms.messages.add(e,o||this.validation.errors,"error")},beforeAjax:function(o){var t=o.find('[type="submit"]'),n=t.find(".pum-form__loader");window.PUM.forms.messages.clear_all(o),n.length||(n=e('<span class="pum-form__loader"></span>'),""!==t.attr("value")?n.insertAfter(t):t.append(n)),t.prop("disabled",!0),n.show(),o.addClass("pum-form--loading").removeClass("pum-form--errors")},afterAjax:function(e){var o=e.find('[type="submit"]'),t=o.find(".pum-form__loader");o.prop("disabled",!1),t.hide(),e.removeClass("pum-form--loading")},success:function(e,o){void 0!==o.message&&""!==o.message&&window.PUM.forms.messages.add(e,[{message:o.message}]),e.trigger("success",[o]),!e.data("noredirect")&&void 0!==e.data("redirect_enabled")&&o.redirect&&(""!==o.redirect?window.location=o.redirect:window.location.reload(!0));
2
  },errors:function(e,o){void 0!==o.errors&&o.errors.length&&(console.log(o.errors),window.PUM.forms.form.display_errors(e,o.errors),window.PUM.forms.messages.scroll_to_first(e),e.addClass("pum-form--errors").trigger("errors",[o]))},submit:function(o){var t=e(this),n=t.pumSerializeObject();o.preventDefault(),o.stopPropagation(),window.PUM.forms.form.beforeAjax(t),e.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_form",values:n}}).always(function(){window.PUM.forms.form.afterAjax(t)}).done(function(e){window.PUM.forms.form.responseHandler(t,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}},messages:{add:function(o,t,n){var i=o.find(".pum-form__messages"),s=0;if(n=n||"success",t=t||[],!i.length)switch(i=e('<div class="pum-form__messages">').hide(),pum_vars.message_position){case"bottom":o.append(i.addClass("pum-form__messages--bottom"));break;case"top":o.prepend(i.addClass("pum-form__messages--top"))}if(["bottom","top"].indexOf(pum_vars.message_position)>=0)for(;t.length>s;s++)this.add_message(i,t[s].message,n);else for(;t.length>s;s++)void 0!==t[s].field?this.add_field_error(o,t[s]):this.add_message(i,t[s].message,n);i.is(":hidden")&&e(".pum-form__message",i).length&&i.slideDown()},add_message:function(o,t,n){var i=e('<p class="pum-form__message">').html(t);n=n||"success",i.addClass("pum-form__message--"+n),o.append(i),o.is(":visible")&&i.hide().slideDown()},add_field_error:function(o,t){var n=e('[name="'+t.field+'"]',o),i=n.parents(".pum-form__field").addClass("pum-form__field--error");this.add_message(i,t.message,"error")},clear_all:function(o,t){var n=o.find(".pum-form__messages"),i=n.find(".pum-form__message"),s=o.find(".pum-form__field.pum-form__field--error");t=t||!1,n.length&&i.slideUp("fast",function(){e(this).remove(),t&&n.hide()}),s.length&&s.removeClass("pum-form__field--error").find("p.pum-form__message").remove()},scroll_to_first:function(o){window.PUM.utilities.scrollTo(e(".pum-form__field.pum-form__field--error",o).eq(0))}},success:function(t,n){if(n=e.extend({},o,n)){var i=PUM.getPopup(t),s={},r=function(){n.redirect_enabled&&(""!==n.redirect?window.location=n.redirect:window.location.reload(!0))},a=function(){n.openpopup&&PUM.getPopup(n.openpopup_id).length?PUM.open(n.openpopup_id):r()};i.length&&(i.trigger("pumFormSuccess"),n.cookie&&(s=e.extend({name:"pum-"+PUM.getSetting(i,"id"),expires:"+1 year"},"object"==typeof n.cookie?n.cookie:{}),PUM.setCookie(i,s))),i.length&&n.closepopup?setTimeout(function(){i.popmake("close",a)},1e3*parseInt(n.closedelay)):a()}}})}(jQuery),function(e,o){"use strict";var t=function(){function e(e,o,t,n){return"string"==typeof e&&"function"==typeof o&&(t=parseInt(t||10,10),a("actions",e,o,t,n)),c}function o(){var e=l.call(arguments),o=e.shift();return"string"==typeof o&&u("actions",o,e),c}function t(e,o){return"string"==typeof e&&r("actions",e,o),c}function n(e,o,t,n){return"string"==typeof e&&"function"==typeof o&&(t=parseInt(t||10,10),a("filters",e,o,t,n)),c}function i(){var e=l.call(arguments),o=e.shift();return"string"==typeof o?u("filters",o,e):c}function s(e,o){return"string"==typeof e&&r("filters",e,o),c}function r(e,o,t,n){var i,s,r;if(m[e][o])if(t)if(i=m[e][o],n)for(r=i.length;r--;)s=i[r],s.callback===t&&s.context===n&&i.splice(r,1);else for(r=i.length;r--;)i[r].callback===t&&i.splice(r,1);else m[e][o]=[]}function a(e,o,t,n,i){var s={callback:t,priority:n,context:i},r=m[e][o];r?(r.push(s),r=p(r)):r=[s],m[e][o]=r}function p(e){for(var o,t,n,i=1,s=e.length;i<s;i++){for(o=e[i],t=i;(n=e[t-1])&&n.priority>o.priority;)e[t]=e[t-1],--t;e[t]=o}return e}function u(e,o,t){var n,i,s=m[e][o];if(!s)return"filters"===e&&t[0];if(i=s.length,"filters"===e)for(n=0;n<i;n++)t[0]=s[n].callback.apply(s[n].context,t);else for(n=0;n<i;n++)s[n].callback.apply(s[n].context,t);return"filters"!==e||t[0]}var l=Array.prototype.slice,c={removeFilter:s,applyFilters:i,addFilter:n,removeAction:t,doAction:o,addAction:e},m={actions:{},filters:{}};return c};e.pum=e.pum||{},e.pum.hooks=e.pum.hooks||new t}(window),function(e){"use strict";function o(){"undefined"!=typeof Marionette&&"undefined"!=typeof nfRadio&&(n=Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.popupMaker)},popupMaker:function(o,t,n,i){var s=e("#nf-form-"+i+"-cont"),r={};o.errors.length||("undefined"!=typeof o.data.actions&&(r.openpopup="undefined"!=typeof o.data.actions.openpopup,r.openpopup_id=r.openpopup?parseInt(o.data.actions.openpopup):0,r.closepopup="undefined"!=typeof o.data.actions.closepopup,r.closedelay=r.closepopup?parseInt(o.data.actions.closepopup):0,r.closepopup&&o.data.actions.closedelay&&(r.closedelay=parseInt(o.data.actions.closedelay))),window.PUM.forms.success(s,r))}}))}var t={},n=!1;e(document).ready(function(){n===!1&&o(),n!==!1&&new n,e(".gform_wrapper > form").each(function(){var o=e(this),n=o.attr("id").replace("gform_",""),i=o.find("input.gforms-pum"),s=!!i.length&&JSON.parse(i.val());s&&"object"==typeof s&&("object"==typeof s&&void 0!==s.closedelay&&s.closedelay.toString().length>=3&&(s.closedelay=s.closedelay/1e3),t[n]=s)})}).on("gform_confirmation_loaded",function(o,n){var i=e("#gform_confirmation_wrapper_"+n+",#gforms_confirmation_message_"+n),s=t[n]||!1;window.PUM.forms.success(i,s)}).on("wpcf7:mailsent",".wpcf7",function(o){var t=e(o.target),n=t.find("input.wpcf7-pum"),i=!!n.length&&JSON.parse(n.val());"object"==typeof i&&void 0!==i.closedelay&&i.closedelay.toString().length>=3&&(i.closedelay=i.closedelay/1e3),window.PUM.forms.success(t,i)})}(jQuery),function(e){"use strict";pum_vars&&void 0!==pum_vars.core_sub_forms_enabled&&!pum_vars.core_sub_forms_enabled||(window.PUM=window.PUM||{},window.PUM.newsletter=window.PUM.newsletter||{},e.extend(window.PUM.newsletter,{form:e.extend({},window.PUM.forms.form,{submit:function(o){var t=e(this),n=t.pumSerializeObject();o.preventDefault(),o.stopPropagation(),window.PUM.newsletter.form.beforeAjax(t),e.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_sub_form",values:n}}).always(function(){window.PUM.newsletter.form.afterAjax(t)}).done(function(e){window.PUM.newsletter.form.responseHandler(t,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}})}),e(document).on("submit","form.pum-sub-form",window.PUM.newsletter.form.submit).on("success","form.pum-sub-form",function(o,t){var n=e(o.target),i=n.data("settings")||{};n.trigger("pumNewsletterSuccess",[t]).addClass("pum-newsletter-success"),n[0].reset(),window.pum.hooks.doAction("pum-sub-form.success",t,n),"string"==typeof i.redirect&&""!==i.redirect&&(i.redirect=atob(i.redirect)),window.PUM.forms.success(n,i)}).on("error","form.pum-sub-form",function(o,t){var n=e(o.target);n.trigger("pumNewsletterError",[t]),window.pum.hooks.doAction("pum-sub-form.errors",t,n)}))}(jQuery),function(e,o,t){"use strict";e.extend(e.fn.popmake.methods,{addTrigger:function(o){return e.fn.popmake.triggers[o]?e.fn.popmake.triggers[o].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Trigger type "+o+" does not exist."),this)}}),e.fn.popmake.triggers={auto_open:function(o){var t=PUM.getPopup(this);setTimeout(function(){t.popmake("state","isOpen")||!t.popmake("checkCookies",o)&&t.popmake("checkConditions")&&(e.fn.popmake.last_open_trigger="Auto Open - Delay: "+o.delay,t.popmake("open"))},o.delay)},click_open:function(t){var n,i=PUM.getPopup(this),s=i.popmake("getSettings"),r=[".popmake-"+s.id,".popmake-"+decodeURIComponent(s.slug),'a[href$="#popmake-'+s.id+'"]'];t.extra_selectors&&""!==t.extra_selectors&&r.push(t.extra_selectors),r=pum.hooks.applyFilters("pum.trigger.click_open.selectors",r,t,i),n=r.join(", "),e(n).addClass("pum-trigger").css({cursor:"pointer"}),e(o).on("click.pumTrigger",n,function(o){var n=e(this),s=t.do_default||!1;i.has(n).length>0||i.popmake("state","isOpen")||!i.popmake("checkCookies",t)&&i.popmake("checkConditions")&&(n.data("do-default")?s=n.data("do-default"):(n.hasClass("do-default")||n.hasClass("popmake-do-default")||n.hasClass("pum-do-default"))&&(s=!0),o.ctrlKey||pum.hooks.applyFilters("pum.trigger.click_open.do_default",s,i,n)||(o.preventDefault(),o.stopPropagation()),e.fn.popmake.last_open_trigger=n,i.popmake("open"))})},admin_debug:function(){PUM.getPopup(this).popmake("open")}},e(o).on("pumInit",".pum",function(){var e,o=PUM.getPopup(this),t=o.popmake("getSettings"),n=t.triggers||[],i=null;if(n.length)for(e=0;n.length>e;e+=1)i=n[e],o.popmake("addTrigger",i.type,i.settings)})}(jQuery,document),function(e,o,t){"use strict";function n(e,o,t){var i=o[0];o.length>1?(e[i]||(e[i]=o[1]?{}:[]),n(e[i],o.slice(1),t)):(i||(i=e.length),e[i]=t)}var i="color,date,datetime,datetime-local,email,hidden,month,number,password,range,search,tel,text,time,url,week".split(","),s="select,textarea".split(","),r=/\[([^\]]*)\]/g;Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(void 0===this||null===this)throw new TypeError;var o=Object(this),t=o.length>>>0;if(0===t)return-1;var n=0;if(arguments.length>0&&(n=Number(arguments[1]),n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n)))),n>=t)return-1;for(var i=n>=0?n:Math.max(t-Math.abs(n),0);i<t;i++)if(i in o&&o[i]===e)return i;return-1}),e.fn.popmake.utilities={scrollTo:function(o,t){var n=e(o)||e();n.length&&e("html, body").animate({scrollTop:n.offset().top-100},1e3,"swing",function(){var e=n.find(':input:not([type="button"]):not([type="hidden"]):not(button)').eq(0);e.hasClass("wp-editor-area")?tinyMCE.execCommand("mceFocus",!1,e.attr("id")):e.focus(),"function"==typeof t&&t()})},inArray:function(e,o){return!!~o.indexOf(e)},convert_hex:function(e,o){e=e.replace("#","");var t=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),i=parseInt(e.substring(4,6),16);return"rgba("+t+","+n+","+i+","+o/100+")"},debounce:function(e,o){var t;return function(){var n=this,i=arguments;window.clearTimeout(t),t=window.setTimeout(function(){e.apply(n,i)},o)}},throttle:function(e,o){var t=!1,n=function(){t=!1};return function(){t||(e.apply(this,arguments),window.setTimeout(n,o),t=!0)}},getXPath:function(o){var t,n,i,s,r,a=[];return e.each(e(o).parents(),function(o,p){return t=e(p),n=t.attr("id")||"",i=t.attr("class")||"",s=t.get(0).tagName.toLowerCase(),r=t.parent().children(s).index(t),"body"!==s&&(i.length>0&&(i=i.split(" "),i=i[0]),void a.push(s+(n.length>0?"#"+n:i.length>0?"."+i.split(" ").join("."):":eq("+r+")")))}),a.reverse().join(" > ")},strtotime:function(e,o){function n(e,o,n){var i,s=l[o];s!==t&&(i=s-u.getDay(),0===i?i=7*n:i>0&&"last"===e?i-=7:i<0&&"next"===e&&(i+=7),u.setDate(u.getDate()+i))}function i(e){var o=e.split(" "),t=o[0],i=o[1].substring(0,3),s=/\d+/.test(t),r="ago"===o[2],a=("last"===t?-1:1)*(r?-1:1);if(s&&(a*=parseInt(t,10)),c.hasOwnProperty(i)&&!o[1].match(/^mon(day|\.)?$/i))return u["set"+c[i]](u["get"+c[i]]()+a);if("wee"===i)return u.setDate(u.getDate()+7*a);if("next"===t||"last"===t)n(t,i,a);else if(!s)return!1;return!0}var s,r,a,p,u,l,c,m,d,f,g,_=!1;if(!e)return _;if(e=e.replace(/^\s+|\s+$/g,"").replace(/\s{2,}/g," ").replace(/[\t\r\n]/g,"").toLowerCase(),r=e.match(/^(\d{1,4})([\-\.\/\:])(\d{1,2})([\-\.\/\:])(\d{1,4})(?:\s(\d{1,2}):(\d{2})?:?(\d{2})?)?(?:\s([A-Z]+)?)?$/),r&&r[2]===r[4])if(r[1]>1901)switch(r[2]){case"-":return r[3]>12||r[5]>31?_:new Date(r[1],parseInt(r[3],10)-1,r[5],r[6]||0,r[7]||0,r[8]||0,r[9]||0)/1e3;case".":return _;case"/":return r[3]>12||r[5]>31?_:new Date(r[1],parseInt(r[3],10)-1,r[5],r[6]||0,r[7]||0,r[8]||0,r[9]||0)/1e3}else if(r[5]>1901)switch(r[2]){case"-":return r[3]>12||r[1]>31?_:new Date(r[5],parseInt(r[3],10)-1,r[1],r[6]||0,r[7]||0,r[8]||0,r[9]||0)/1e3;case".":return r[3]>12||r[1]>31?_:new Date(r[5],parseInt(r[3],10)-1,r[1],r[6]||0,r[7]||0,r[8]||0,r[9]||0)/1e3;case"/":return r[1]>12||r[3]>31?_:new Date(r[5],parseInt(r[1],10)-1,r[3],r[6]||0,r[7]||0,r[8]||0,r[9]||0)/1e3}else switch(r[2]){case"-":return r[3]>12||r[5]>31||r[1]<70&&r[1]>38?_:(p=r[1]>=0&&r[1]<=38?+r[1]+2e3:r[1],new Date(p,parseInt(r[3],10)-1,r[5],r[6]||0,r[7]||0,r[8]||0,r[9]||0)/1e3);case".":return r[5]>=70?r[3]>12||r[1]>31?_:new Date(r[5],parseInt(r[3],10)-1,r[1],r[6]||0,r[7]||0,r[8]||0,r[9]||0)/1e3:r[5]<60&&!r[6]?r[1]>23||r[3]>59?_:(a=new Date,new Date(a.getFullYear(),a.getMonth(),a.getDate(),r[1]||0,r[3]||0,r[5]||0,r[9]||0)/1e3):_;case"/":return r[1]>12||r[3]>31||r[5]<70&&r[5]>38?_:(p=r[5]>=0&&r[5]<=38?+r[5]+2e3:r[5],new Date(p,parseInt(r[1],10)-1,r[3],r[6]||0,r[7]||0,r[8]||0,r[9]||0)/1e3);case":":return r[1]>23||r[3]>59||r[5]>59?_:(a=new Date,new Date(a.getFullYear(),a.getMonth(),a.getDate(),r[1]||0,r[3]||0,r[5]||0)/1e3)}if("now"===e)return null===o||isNaN(o)?(new Date).getTime()/1e3||0:o||0;if(s=Date.parse(e),!isNaN(s))return s/1e3||0;if(u=o?new Date(1e3*o):new Date,l={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},c={yea:"FullYear",mon:"Month",day:"Date",hou:"Hours",min:"Minutes",sec:"Seconds"},d="(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?)",f="([+-]?\\d+\\s"+d+"|(last|next)\\s"+d+")(\\sago)?",r=e.match(new RegExp(f,"gi")),!r)return _;for(g=0,m=r.length;g<m;g+=1)if(!i(r[g]))return _;return u.getTime()/1e3},serializeObject:function(o){e.extend({},o);var t={},a=e.extend(!0,{include:[],exclude:[],includeByClass:""},o);return this.find(":input").each(function(){var o;!this.name||this.disabled||window.PUM.utilities.inArray(this.name,a.exclude)||a.include.length&&!window.PUM.utilities.inArray(this.name,a.include)||this.className.indexOf(a.includeByClass)===-1||(o=this.name.replace(r,"[$1").split("["),o[0]&&(this.checked||window.PUM.utilities.inArray(this.type,i)||window.PUM.utilities.inArray(this.nodeName.toLowerCase(),s))&&("checkbox"===this.type&&o.push(""),n(t,o,e(this).val())))}),t}},e.fn.popmake.utilies=e.fn.popmake.utilities,window.PUM=window.PUM||{},window.PUM.utilities=window.PUM.utilities||{},window.PUM.utilities=e.extend(window.PUM.utilities,e.fn.popmake.utilities)}(jQuery,document),function(e,o){if("function"==typeof define&&define.amd)define(["exports","jquery"],function(e,t){return o(e,t)});else if("undefined"!=typeof exports){var t=require("jquery");o(exports,t)}else o(e,e.jQuery||e.Zepto||e.ender||e.$)}(this,function(e,o){function t(e,t){function i(e,o,t){return e[o]=t,e}function s(e,o){var t,s=e.match(n.key);try{o=JSON.parse(o)}catch(a){}for(;void 0!==(t=s.pop());)if(n.push.test(t)){var p=r(e.replace(/\[\]$/,""));o=i([],p,o)}else n.fixed.test(t)?o=i([],t,o):n.named.test(t)&&(o=i({},t,o));return o}function r(e){return void 0===d[e]&&(d[e]=0),d[e]++}function a(e){switch(o('[name="'+e.name+'"]',t).attr("type")){case"checkbox":return"1"===e.value||e.value;default:return e.value}}function p(o){if(!n.validate.test(o.name))return this;var t=s(o.name,a(o));return m=e.extend(!0,m,t),this}function u(o){if(!e.isArray(o))throw new Error("formSerializer.addPairs expects an Array");for(var t=0,n=o.length;t<n;t++)this.addPair(o[t]);return this}function l(){return m}function c(){return JSON.stringify(l())}var m={},d={};this.addPair=p,this.addPairs=u,this.serialize=l,this.serializeJSON=c}var n={validate:/^[a-z_][a-z0-9_]*(?:\[(?:\d*|[a-z0-9_]+)\])*$/i,key:/[a-z0-9_]+|(?=\[\])/gi,push:/^$/,fixed:/^\d+$/,named:/^[a-z0-9_]+$/i};return t.patterns=n,t.serializeObject=function(){var e;return e=this.is("form")?this.serializeArray():this.find(":input").serializeArray(),new t(o,this).addPairs(e).serialize()},t.serializeJSON=function(){var e;return e=this.is("form")?this.serializeArray():this.find(":input").serializeArray(),new t(o,this).addPairs(e).serializeJSON()},"undefined"!=typeof o.fn&&(o.fn.pumSerializeObject=t.serializeObject,o.fn.pumSerializeJSON=t.serializeJSON),e.FormSerializer=t,t}),function(e,o,t){"use strict";e.fn.popmake.version=1.7,e.fn.popmake.last_open_popup=null,e(o).ready(function(){e(".pum").popmake(),e(o).trigger("pumInitialized"),"object"==typeof pum_vars.form_success&&(pum_vars.form_success=e.extend({popup_id:null,settings:{}}),PUM.forms.success(pum_vars.form_success.popup_id,pum_vars.form_success.settings))}),e(".pum").on("pumInit",function(){var e=PUM.getPopup(this),o=PUM.getSetting(e,"id"),t=e.find("form");t.length&&t.prepend('<input type="hidden" name="pum_form_popup_id" value="'+o+'" />')})}(jQuery);
1
+ !function(e){"use strict";void 0===e.fn.on&&(e.fn.on=function(e,o,t){return this.delegate(o,e,t)}),void 0===e.fn.off&&(e.fn.off=function(e,o,t){return this.undelegate(o,e,t)}),void 0===e.fn.bindFirst&&(e.fn.bindFirst=function(o,t){var n,i,s=e(this);s.unbind(o,t),s.bind(o,t),n=e._data(s[0]).events,i=n[o],i.unshift(i.pop()),n[o]=i}),void 0===e.fn.outerHtml&&(e.fn.outerHtml=function(){var o=e(this).clone(),t=e("<div/>").append(o);return t.html()}),void 0===Date.now&&(Date.now=function(){return(new Date).getTime()})}(jQuery);var PUM;!function(e,o,t){"use strict";function n(e){return!isNaN(e)&&parseInt(Number(e))===parseInt(e)&&!isNaN(parseInt(e,10))}function i(){var e={},o=function(o,n,i){"boolean"==typeof n&&(i=n,n=!1);var s=n?n.selector+" "+o:o;return(t===e[s]||i)&&(e[s]=n?n.find(o):jQuery(o)),e[s]};return o.elementCache=e,o}function s(e,o){function t(e,o,t){return o?e[o.slice(0,t?-1:o.length)]:e}function n(e,o){return o?o.split("[").reduce(t,e):e}return o.split(".").reduce(n,e)}window.pum_vars=window.pum_vars||{default_theme:"0",home_url:"/",version:1.7,ajaxurl:"",restapi:!1,rest_nonce:null,debug_mode:!1,disable_tracking:!0,message_position:"top",core_sub_forms_enabled:!0,popups:{}},window.pum_popups=window.pum_popups||{},window.pum_vars.popups=window.pum_popups,PUM={get:new i,getPopup:function(o){var t;return t=n(o)?PUM.get("#pum-"+o):"current"===o?PUM.get(".pum-overlay.pum-active:eq(0)",!0):"open"===o?PUM.get(".pum-overlay.pum-active",!0):"closed"===o?PUM.get(".pum-overlay:not(.pum-active)",!0):o instanceof jQuery?o:e(o),t.hasClass("pum-overlay")?t:t.hasClass("popmake")?t.parents(".pum-overlay"):t.parents(".pum-overlay").length?t.parents(".pum-overlay"):e()},open:function(e,o){PUM.getPopup(e).popmake("open",o)},close:function(e,o){PUM.getPopup(e).popmake("close",o)},preventOpen:function(e){PUM.getPopup(e).addClass("preventOpen")},getSettings:function(e){var o=PUM.getPopup(e);return o.popmake("getSettings")},getSetting:function(e,o,n){var i=PUM.getSettings(e),r=s(i,o);return"undefined"!=typeof r?r:n!==t?n:null},checkConditions:function(e){return PUM.getPopup(e).popmake("checkConditions")},getCookie:function(o){return e.pm_cookie(o)},getJSONCookie:function(o){return e.pm_cookie_json(o)},setCookie:function(e,o){var t=PUM.getPopup(e);t.popmake("setCookie",jQuery.extend({name:"pum-"+PUM.getSetting(e,"id"),expires:"+30 days"},o))},clearCookie:function(o,t){e.pm_remove_cookie(o),"function"==typeof t&&t()},clearCookies:function(o,n){var i,s=PUM.getPopup(o),r=s.popmake("getSettings"),a=r.cookies;if(a!==t&&a.length)for(i=0;a.length>i;i+=1)e.pm_remove_cookie(a[i].settings.name);"function"==typeof n&&n()},getClickTriggerSelector:function(e,o){var t=PUM.getPopup(e),n=PUM.getSettings(e),i=[".popmake-"+n.id,".popmake-"+decodeURIComponent(n.slug),'a[href$="#popmake-'+n.id+'"]'];return o.extra_selectors&&""!==o.extra_selectors&&i.push(o.extra_selectors),i=pum.hooks.applyFilters("pum.trigger.click_open.selectors",i,o,t),i.join(", ")},disableClickTriggers:function(n,i){if(n!==t)if(i!==t){var s=PUM.getClickTriggerSelector(n,i);e(s).removeClass("pum-trigger"),e(o).off("click.pumTrigger click.popmakeOpen",s)}else{var r=PUM.getSetting(n,"triggers",[]);if(r.length)for(var a=0;r.length>a;a++)if(pum.hooks.applyFilters("pum.disableClickTriggers.clickTriggerTypes",["click_open"]).indexOf(r[a].type)!==-1){var s=PUM.getClickTriggerSelector(n,r[a].settings);e(s).removeClass("pum-trigger"),e(o).off("click.pumTrigger click.popmakeOpen",s)}}}},e.fn.popmake=function(t){return e.fn.popmake.methods[t]?(e(o).trigger("pumMethodCall",arguments),e.fn.popmake.methods[t].apply(this,Array.prototype.slice.call(arguments,1))):"object"!=typeof t&&t?void(window.console&&console.warn("Method "+t+" does not exist on $.fn.popmake")):e.fn.popmake.methods.init.apply(this,arguments)},e.fn.popmake.methods={init:function(){return this.each(function(){var o=PUM.getPopup(this),n=o.popmake("getSettings");return n.theme_id<=0&&(n.theme_id=pum_vars.default_theme),n.disable_reposition!==t&&n.disable_reposition||e(window).on("resize",function(){(o.hasClass("pum-active")||o.find(".popmake.active").length)&&e.fn.popmake.utilities.throttle(setTimeout(function(){o.popmake("reposition")},25),500,!1)}),o.find(".pum-container").data("popmake",n),o.data("popmake",n).trigger("pumInit"),this})},getOverlay:function(){return PUM.getPopup(this)},getContainer:function(){return PUM.getPopup(this).find(".pum-container")},getTitle:function(){return PUM.getPopup(this).find(".pum-title")||null},getContent:function(){return PUM.getPopup(this).find(".pum-content")||null},getClose:function(){return PUM.getPopup(this).find(".pum-content + .pum-close")||null},getSettings:function(){var o=PUM.getPopup(this);return e.extend(!0,{},e.fn.popmake.defaults,o.data("popmake")||{},"object"==typeof pum_popups&&"undefined"!=typeof pum_popups[o.attr("id")]?pum_popups[o.attr("id")]:{})},state:function(e){var o=PUM.getPopup(this);if(t!==e)switch(e){case"isOpen":return o.hasClass("pum-open")||o.popmake("getContainer").hasClass("active");case"isClosed":return!o.hasClass("pum-open")&&!o.popmake("getContainer").hasClass("active")}},open:function(o){var n=PUM.getPopup(this),i=n.popmake("getContainer"),s=n.popmake("getClose"),r=n.popmake("getSettings"),a=e("html");return n.trigger("pumBeforeOpen"),n.hasClass("preventOpen")||i.hasClass("preventOpen")?(console.log("prevented"),n.removeClass("preventOpen").removeClass("pum-active").trigger("pumOpenPrevented"),this):(r.stackable||n.popmake("close_all"),n.addClass("pum-active"),r.close_button_delay>0&&s.fadeOut(0),a.addClass("pum-open"),r.overlay_disabled?a.addClass("pum-open-overlay-disabled"):a.addClass("pum-open-overlay"),r.position_fixed?a.addClass("pum-open-fixed"):a.addClass("pum-open-scrollable"),n.popmake("setup_close").popmake("reposition").popmake("animate",r.animation_type,function(){r.close_button_delay>0&&setTimeout(function(){s.fadeIn()},r.close_button_delay),n.trigger("pumAfterOpen"),e.fn.popmake.last_open_popup=n,o!==t&&o()}),this)},setup_close:function(){var n=PUM.getPopup(this),i=n.popmake("getClose"),s=n.popmake("getSettings");return i=i.add(e(".popmake-close, .pum-close",n).not(i)),i.off("click.pum").on("click.pum",function(o){var i=e(this),s=i.hasClass("pum-do-default")||i.data("do-default")!==t&&i.data("do-default");s||o.preventDefault(),e.fn.popmake.last_close_trigger="Close Button",n.popmake("close")}),(s.close_on_esc_press||s.close_on_f4_press)&&e(window).off("keyup.popmake").on("keyup.popmake",function(o){27===o.keyCode&&s.close_on_esc_press&&(e.fn.popmake.last_close_trigger="ESC Key",n.popmake("close")),115===o.keyCode&&s.close_on_f4_press&&(e.fn.popmake.last_close_trigger="F4 Key",n.popmake("close"))}),s.close_on_overlay_click&&(n.on("pumAfterOpen",function(){e(o).on("click.pumCloseOverlay",function(o){var t=e(o.target),i=t.closest(".pum-container");i.length||(e.fn.popmake.last_close_trigger="Overlay Click",n.popmake("close"))})}),n.on("pumAfterClose",function(){e(o).off("click.pumCloseOverlay")})),n.trigger("pumSetupClose"),this},close:function(o){return this.each(function(){var n=PUM.getPopup(this),i=n.popmake("getContainer"),s=n.popmake("getClose");return s=s.add(e(".popmake-close, .pum-close",n).not(s)),n.trigger("pumBeforeClose"),n.hasClass("preventClose")||i.hasClass("preventClose")?(n.removeClass("preventClose").trigger("pumClosePrevented"),this):(i.fadeOut("fast",function(){n.is(":visible")&&n.fadeOut("fast"),e(window).off("keyup.popmake"),n.off("click.popmake"),s.off("click.popmake"),1===e(".pum-active").length&&e("html").removeClass("pum-open").removeClass("pum-open-scrollable").removeClass("pum-open-overlay").removeClass("pum-open-overlay-disabled").removeClass("pum-open-fixed"),n.removeClass("pum-active").trigger("pumAfterClose"),i.find("iframe").filter('[src*="youtube"],[src*="vimeo"]').each(function(){var o=e(this),t=o.attr("src"),n=t.replace("autoplay=1","1=1");n!==t&&(t=n),o.prop("src",t)}),i.find("video").each(function(){this.pause()}),o!==t&&o()}),this)})},close_all:function(){return e(".pum-active").popmake("close"),this},reposition:function(o){var t=PUM.getPopup(this).trigger("pumBeforeReposition"),n=t.popmake("getContainer"),i=t.popmake("getSettings"),s=i.location,r={my:"",at:"",of:window,collision:"none",using:"function"==typeof o?o:e.fn.popmake.callbacks.reposition_using},a={overlay:null,container:null},p=null;try{p=e(e.fn.popmake.last_open_trigger)}catch(u){p=e()}return i.position_from_trigger&&p.length?(r.of=p,s.indexOf("left")>=0&&(r.my+=" right",r.at+=" left"+(0!==i.position_left?"-"+i.position_left:"")),s.indexOf("right")>=0&&(r.my+=" left",r.at+=" right"+(0!==i.position_right?"+"+i.position_right:"")),s.indexOf("center")>=0&&(r.my="center"===s?"center":r.my+" center",r.at="center"===s?"center":r.at+" center"),s.indexOf("top")>=0&&(r.my+=" bottom",r.at+=" top"+(0!==i.position_top?"-"+i.position_top:"")),s.indexOf("bottom")>=0&&(r.my+=" top",r.at+=" bottom"+(0!==i.position_bottom?"+"+i.position_bottom:""))):(s.indexOf("left")>=0&&(r.my+=" left"+(0!==i.position_left?"+"+i.position_left:""),r.at+=" left"),s.indexOf("right")>=0&&(r.my+=" right"+(0!==i.position_right?"-"+i.position_right:""),r.at+=" right"),s.indexOf("center")>=0&&(r.my="center"===s?"center":r.my+" center",r.at="center"===s?"center":r.at+" center"),s.indexOf("top")>=0&&(r.my+=" top"+(0!==i.position_top?"+"+(e("body").hasClass("admin-bar")?parseInt(i.position_top,10)+32:i.position_top):""),r.at+=" top"),s.indexOf("bottom")>=0&&(r.my+=" bottom"+(0!==i.position_bottom?"-"+i.position_bottom:""),r.at+=" bottom")),r.my=e.trim(r.my),r.at=e.trim(r.at),t.is(":hidden")&&(a.overlay=t.css("opacity"),t.css({opacity:0}).show(0)),n.is(":hidden")&&(a.container=n.css("opacity"),n.css({opacity:0}).show(0)),i.position_fixed&&n.addClass("fixed"),"custom"===i.size?n.css({width:i.custom_width,height:i.custom_height_auto?"auto":i.custom_height}):"auto"!==i.size&&n.addClass("responsive").css({minWidth:""!==i.responsive_min_width?i.responsive_min_width:"auto",maxWidth:""!==i.responsive_max_width?i.responsive_max_width:"auto"}),t.trigger("pumAfterReposition"),n.addClass("custom-position").position(r).trigger("popmakeAfterReposition"),a.overlay&&t.css({opacity:a.overlay}).hide(0),a.container&&n.css({opacity:a.container}).hide(0),this},animation_origin:function(o){var t=PUM.getPopup(this),n=t.popmake("getContainer"),i={my:"",at:""};switch(o){case"top":i={my:"left+"+n.offset().left+" bottom-100",at:"left top"};break;case"bottom":i={my:"left+"+n.offset().left+" top+100",at:"left bottom"};break;case"left":i={my:"right top+"+n.offset().top,at:"left top"};break;case"right":i={my:"left top+"+n.offset().top,at:"right top"};break;default:o.indexOf("left")>=0&&(i={my:i.my+" right",at:i.at+" left"}),o.indexOf("right")>=0&&(i={my:i.my+" left",at:i.at+" right"}),o.indexOf("center")>=0&&(i={my:i.my+" center",at:i.at+" center"}),o.indexOf("top")>=0&&(i={my:i.my+" bottom-100",at:i.at+" top"}),o.indexOf("bottom")>=0&&(i={my:i.my+" top+100",at:i.at+" bottom"}),i.my=e.trim(i.my),i.at=e.trim(i.at)}return i.of=window,i.collision="none",i}}}(jQuery,document);var PUM_Accessibility;!function(e,o,t){"use strict";var n,i,s,r="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",a=".pum:not(.pum-accessibility-disabled)";PUM_Accessibility={forceFocus:function(e){s&&s.length&&!s[0].contains(e.target)&&(e.stopPropagation(),PUM_Accessibility.setFocusToFirstItem())},trapTabKey:function(o){if(9===o.keyCode){var t=s.find(".pum-container *").filter(r).filter(":visible"),n=e(":focus"),i=t.length,a=t.index(n);o.shiftKey?0===a&&(t.get(i-1).focus(),o.preventDefault()):a===i-1&&(t.get(0).focus(),o.preventDefault())}},setFocusToFirstItem:function(){s.find(".pum-container *").filter(r).filter(":visible").filter(":not(.pum-close)").first().focus()}},e(o).on("pumInit",a,function(){PUM.getPopup(this).find("[tabindex]").each(function(){var o=e(this);o.data("tabindex",o.attr("tabindex")).prop("tabindex","0")})}).on("pumBeforeOpen",a,function(){var t=PUM.getPopup(this),r=e(":focus");t.has(r).length||(i=r),s=t.on("keydown.pum_accessibility",PUM_Accessibility.trapTabKey).attr("aria-hidden","false"),n=e("body > *").filter(":visible").not(s),n.attr("aria-hidden","true"),e(o).one("focusin.pum_accessibility",PUM_Accessibility.forceFocus),PUM_Accessibility.setFocusToFirstItem()}).on("pumAfterOpen",a,function(){}).on("pumBeforeClose",a,function(){}).on("pumAfterClose",a,function(){var r=PUM.getPopup(this);r.off("keydown.pum_accessibility").attr("aria-hidden","true"),n&&(n.attr("aria-hidden","false"),n=null),i!==t&&i.length&&i.focus(),s=null,e(o).off("focusin.pum_accessibility")}).on("pumSetupClose",a,function(){}).on("pumOpenPrevented",a,function(){}).on("pumClosePrevented",a,function(){}).on("pumBeforeReposition",a,function(){})}(jQuery,document);var PUM_Analytics;!function(e){"use strict";e.fn.popmake.last_open_trigger=null,e.fn.popmake.last_close_trigger=null,e.fn.popmake.conversion_trigger=null;var o=!("undefined"==typeof pum_vars.restapi||!pum_vars.restapi);PUM_Analytics={beacon:function(t,n){var i=new Image,s=o?pum_vars.restapi:pum_vars.ajaxurl,r={route:"/analytics/",data:e.extend({event:"open",pid:null,_cache:+new Date},t),callback:"function"==typeof n?n:function(){}};o?s+=r.route:r.data.action="pum_analytics",s&&(e(i).on("error success load done",r.callback),i.src=s+"?"+e.param(r.data))}},"undefined"!=typeof pum_vars.disable_tracking&&pum_vars.disable_tracking||e(document).on("pumAfterOpen.core_analytics","body > .pum",function(){var o=PUM.getPopup(this),t={pid:parseInt(o.popmake("getSettings").id,10)||null};t.pid>0&&!e("body").hasClass("single-popup")&&PUM_Analytics.beacon(t)})}(jQuery),function(e,o,t){"use strict";e.fn.popmake.methods.animate_overlay=function(o,t,n){var i=PUM.getPopup(this).popmake("getSettings");return i.overlay_disabled?e.fn.popmake.overlay_animations.none.apply(this,[t,n]):e.fn.popmake.overlay_animations[o]?e.fn.popmake.overlay_animations[o].apply(this,[t,n]):(window.console&&console.warn("Animation style "+o+" does not exist."),this)},e.fn.popmake.methods.animate=function(o){return e.fn.popmake.animations[o]?e.fn.popmake.animations[o].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Animation style "+o+" does not exist."),this)},e.fn.popmake.animations={none:function(e){var o=PUM.getPopup(this);return o.popmake("getContainer").show(0),o.popmake("animate_overlay","none",0,function(){e!==t&&e()}),this},slide:function(e){var o=PUM.getPopup(this).show(0).css({opacity:0}),n=o.popmake("getContainer").show(0).css({opacity:0}),i=o.popmake("getSettings"),s=i.animation_speed/2,r=o.popmake("animation_origin",i.animation_origin);return n.position(r).css({opacity:1}),o.css({opacity:1}).popmake("animate_overlay","fade",s,function(){n.popmake("reposition",function(o){n.animate(o,s,"swing",function(){e!==t&&e()})})}),this},fade:function(e){var o=PUM.getPopup(this),n=o.popmake("getContainer"),i=o.popmake("getSettings"),s=i.animation_speed/2;return n.show(0).css({opacity:0}),o.popmake("animate_overlay","fade",s,function(){n.animate({opacity:1},s,"swing",function(){e!==t&&e()})}),this},fadeAndSlide:function(e){var o=PUM.getPopup(this).show(0).css({opacity:0}),n=o.popmake("getContainer").show(0).css({opacity:0}),i=o.popmake("getSettings"),s=i.animation_speed/2,r=o.popmake("animation_origin",i.animation_origin);return n.position(r),o.hide().css({opacity:1}).popmake("animate_overlay","fade",s,function(){n.popmake("reposition",function(o){o.opacity=1,n.animate(o,s,"swing",function(){e!==t&&e()})})}),this},grow:function(o){return e.fn.popmake.animations.fade.apply(this,arguments)},growAndSlide:function(o){return e.fn.popmake.animations.fadeAndSlide.apply(this,arguments)}},e.fn.popmake.overlay_animations={none:function(e,o){PUM.getPopup(this).show(e,o)},fade:function(e,o){PUM.getPopup(this).fadeIn(e,o)},slide:function(e,o){PUM.getPopup(this).slideDown(e,o)}}}(jQuery,document),function(e,o,t){"use strict";e(o).on("pumInit",".pum",function(){e(this).popmake("getContainer").trigger("popmakeInit")}).on("pumBeforeOpen",".pum",function(){e(this).popmake("getContainer").addClass("active").trigger("popmakeBeforeOpen")}).on("pumAfterOpen",".pum",function(){e(this).popmake("getContainer").trigger("popmakeAfterOpen")}).on("pumBeforeClose",".pum",function(){e(this).popmake("getContainer").trigger("popmakeBeforeClose")}).on("pumAfterClose",".pum",function(){e(this).popmake("getContainer").removeClass("active").trigger("popmakeAfterClose")}).on("pumSetupClose",".pum",function(){e(this).popmake("getContainer").trigger("popmakeSetupClose")}).on("pumOpenPrevented",".pum",function(){e(this).popmake("getContainer").removeClass("preventOpen").removeClass("active")}).on("pumClosePrevented",".pum",function(){e(this).popmake("getContainer").removeClass("preventClose")}).on("pumBeforeReposition",".pum",function(){e(this).popmake("getContainer").trigger("popmakeBeforeReposition")})}(jQuery,document),function(e,o,t){"use strict";e.fn.popmake.callbacks={reposition_using:function(o){e(this).css(o)}}}(jQuery,document),function(e,o,t){"use strict";var n,i=function(){return n===t&&(n="undefined"!=typeof MobileDetect?new MobileDetect(window.navigator.userAgent):{phone:function(){return!1},tablet:function(){return!1}}),n};e.extend(e.fn.popmake.methods,{checkConditions:function(){var o,t,n,s,r,a=PUM.getPopup(this),p=a.popmake("getSettings"),u=!0;if(p.disable_on_mobile&&i().phone())return!1;if(p.disable_on_tablet&&i().tablet())return!1;if(p.conditions.length)for(t=0;p.conditions.length>t;t++){for(s=p.conditions[t],o=!1,n=0;s.length>n&&(r=e.extend({},{not_operand:!1},s[n]),!r.not_operand&&a.popmake("checkCondition",r)?o=!0:r.not_operand&&!a.popmake("checkCondition",r)&&(o=!0),e(this).trigger("pumCheckingCondition",[o,r]),!o);n++);o||(u=!1)}return u},checkCondition:function(o){var t=o.target||null;o.settings||o;return t?e.fn.popmake.conditions[t]?e.fn.popmake.conditions[t].apply(this,[o]):window.console?(console.warn("Condition "+t+" does not exist."),!0):void 0:(console.warn("Condition type not set."),!1)}}),e.fn.popmake.conditions={}}(jQuery,document);var pm_cookie,pm_cookie_json,pm_remove_cookie;!function(e){"use strict";function o(o){function t(n,i,s){var r,a=new Date;if("undefined"!=typeof document){if(arguments.length>1){switch(s=e.extend({path:pum_vars.home_url},t.defaults,s),typeof s.expires){case"number":a.setMilliseconds(a.getMilliseconds()+864e5*s.expires),s.expires=a;break;case"string":a.setTime(1e3*e.fn.popmake.utilities.strtotime("+"+s.expires)),s.expires=a}try{r=JSON.stringify(i),/^[\{\[]/.test(r)&&(i=r)}catch(p){}return i=o.write?o.write(i,n):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)),n=n.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),n=n.replace(/[\(\)]/g,escape),document.cookie=[n,"=",i,s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}n||(r={});for(var u=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,c=0;c<u.length;c++){var m=u[c].split("="),d=m.slice(1).join("=");'"'===d.charAt(0)&&(d=d.slice(1,-1));try{var f=m[0].replace(l,decodeURIComponent);if(d=o.read?o.read(d,f):o(d,f)||d.replace(l,decodeURIComponent),this.json)try{d=JSON.parse(d)}catch(p){}if(n===f){r=d;break}n||(r[f]=d)}catch(p){}}return r}}return void 0===o&&(o=function(){}),t.set=t,t.get=function(e){return t.call(t,e)},t.getJSON=function(){return t.apply({json:!0},[].slice.call(arguments))},t.defaults={},t.remove=function(o,n){t(o,"",e.extend({},n,{expires:-1,path:""})),t(o,"",e.extend({},n,{expires:-1}))},t.process=function(e,o,n,i){return arguments.length>3&&"object"!=typeof arguments[2]&&void 0!==o?t.apply(t,[e,o,{expires:n,path:i}]):t.apply(t,[].slice.call(arguments,[0,2]))},t.withConverter=e.fn.popmake.cookie,t}e.extend(e.fn.popmake,{cookie:o()}),pm_cookie=e.pm_cookie=e.fn.popmake.cookie.process,pm_cookie_json=e.pm_cookie_json=e.fn.popmake.cookie.getJSON,pm_remove_cookie=e.pm_remove_cookie=e.fn.popmake.cookie.remove}(jQuery),function(e,o,t){"use strict";e.extend(e.fn.popmake.methods,{addCookie:function(o){return pum.hooks.doAction("popmake.addCookie",arguments),e.fn.popmake.cookies[o]?e.fn.popmake.cookies[o].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Cookie type "+o+" does not exist."),this)},setCookie:function(o){e.pm_cookie(o.name,!0,o.session?null:o.time,o.path?pum_vars.home_url||"/":null),pum.hooks.doAction("popmake.setCookie",o)},checkCookies:function(o){var n,i=!1;if(o.cookie_name===t||null===o.cookie_name||""===o.cookie_name)return!1;switch(typeof o.cookie_name){case"object":case"array":for(n=0;o.cookie_name.length>n;n+=1)e.pm_cookie(o.cookie_name[n])!==t&&(i=!0);break;case"string":e.pm_cookie(o.cookie_name)!==t&&(i=!0)}return pum.hooks.doAction("popmake.checkCookies",o,i),i}}),e.fn.popmake.cookies=e.fn.popmake.cookies||{},e.extend(e.fn.popmake.cookies,{on_popup_open:function(e){var o=PUM.getPopup(this);o.on("pumAfterOpen",function(){o.popmake("setCookie",e)})},on_popup_close:function(e){var o=PUM.getPopup(this);o.on("pumBeforeClose",function(){o.popmake("setCookie",e)})},manual:function(e){var o=PUM.getPopup(this);o.on("pumSetCookie",function(){o.popmake("setCookie",e)})},form_success:function(e){var o=PUM.getPopup(this);o.on("pumFormSuccess",function(){o.popmake("setCookie",e)})},pum_sub_form_success:function(e){var o=PUM.getPopup(this);o.find("form.pum-sub-form").on("success",function(){o.popmake("setCookie",e)})},pum_sub_form_already_subscribed:function(e){var o=PUM.getPopup(this);o.find("form.pum-sub-form").on("success",function(){o.popmake("setCookie",e)})},ninja_form_success:function(o){return e.fn.popmake.cookies.form_success.apply(this,arguments)},cf7_form_success:function(o){return e.fn.popmake.cookies.form_success.apply(this,arguments)},gforms_form_success:function(o){return e.fn.popmake.cookies.form_success.apply(this,arguments)}}),e(o).on("pumInit",".pum",function(){var e,o=PUM.getPopup(this),t=o.popmake("getSettings"),n=t.cookies||[],i=null;if(n.length)for(e=0;n.length>e;e+=1)i=n[e],o.popmake("addCookie",i.event,i.settings)})}(jQuery,document);var pum_debug_mode=!1,pum_debug;!function(e,o){if(o=window.pum_vars||{debug_mode:!1},pum_debug_mode=void 0!==o.debug_mode&&o.debug_mode,pum_debug_mode||window.location.href.indexOf("pum_debug")===-1||(pum_debug_mode=!0),pum_debug_mode){var t=!1,n=!1,i=window.pum_debug_vars||{debug_mode_enabled:"Popup Maker: Debug Mode Enabled",debug_started_at:"Debug started at:",debug_more_info:"For more information on how to use this information visit https://docs.wppopupmaker.com/?utm_medium=js-debug-info&utm_campaign=ContextualHelp&utm_source=browser-console&utm_content=more-info",global_info:"Global Information",localized_vars:"Localized variables",popups_initializing:"Popups Initializing",popups_initialized:"Popups Initialized",single_popup_label:"Popup: #",theme_id:"Theme ID: ",label_method_call:"Method Call:",label_method_args:"Method Arguments:",label_popup_settings:"Settings",label_triggers:"Triggers",label_cookies:"Cookies",label_delay:"Delay:",label_conditions:"Conditions",label_cookie:"Cookie:",label_settings:"Settings:",label_selector:"Selector:",label_mobile_disabled:"Mobile Disabled:",label_tablet_disabled:"Tablet Disabled:",label_event:"Event: %s",triggers:[],cookies:[]};pum_debug={odump:function(o){return e.extend({},o)},logo:function(){console.log(" -------------------------------------------------------------\n| ____ __ __ _ |\n| | _ \\ ___ _ __ _ _ _ __ | \\/ | __ _| | _____ _ __ |\n| | |_) / _ \\| '_ \\| | | | '_ \\ | |\\/| |/ _` | |/ / _ \\ '__| |\n| | __/ (_) | |_) | |_| | |_) | | | | | (_| | < __/ | |\n| |_| \\___/| .__/ \\__,_| .__/ |_| |_|\\__,_|_|\\_\\___|_| |\n| |_| |_| |\n -------------------------------------------------------------")},initialize:function(){t=!0,pum_debug.logo(),console.debug(i.debug_mode_enabled),console.log(i.debug_started_at,new Date),console.info(i.debug_more_info),pum_debug.divider(i.global_info),console.groupCollapsed(i.localized_vars),console.log("pum_vars:",pum_debug.odump(o)),e(document).trigger("pum_debug_initialize_localized_vars"),console.groupEnd(),e(document).trigger("pum_debug_initialize")},popup_event_header:function(e){var o=e.popmake("getSettings");n!==o.id&&(n=o.id,pum_debug.divider(i.single_popup_label+o.id+" - "+o.slug))},divider:function(e){var o=62,t=62,n=0,i=" "+new Array(o+1).join("-")+" ";"string"==typeof e?(t=o-e.length,n={left:Math.floor(t/2),right:Math.floor(t/2)},n.left+n.right===t-1&&n.right++,n.left=new Array(n.left+1).join(" "),n.right=new Array(n.right+1).join(" "),console.log(""+i+"\n|"+n.left+e+n.right+"|\n"+i)):console.log(i)},click_trigger:function(e,o){var t,n=e.popmake("getSettings"),s=[".popmake-"+n.id,".popmake-"+decodeURIComponent(n.slug),'a[href$="#popmake-'+n.id+'"]'];o.extra_selectors&&""!==o.extra_selectors&&s.push(o.extra_selectors),s=pum.hooks.applyFilters("pum.trigger.click_open.selectors",s,o,e),t=s.join(", "),console.log(i.label_selector,t)},trigger:function(o,t){if("string"==typeof i.triggers[t.type]){switch(console.groupCollapsed(i.triggers[t.type]),t.type){case"auto_open":console.log(i.label_delay,t.settings.delay),console.log(i.label_cookie,t.settings.cookie_name);break;case"click_open":pum_debug.click_trigger(o,t.settings),console.log(i.label_cookie,t.settings.cookie_name)}e(document).trigger("pum_debug_render_trigger",o,t),console.groupEnd()}},cookie:function(o,t){if("string"==typeof i.cookies[t.event]){switch(console.groupCollapsed(i.cookies[t.event]),t.event){case"on_popup_open":case"on_popup_close":case"manual":case"ninja_form_success":console.log(i.label_cookie,pum_debug.odump(t.settings))}e(document).trigger("pum_debug_render_trigger",o,t),console.groupEnd()}}},e(document).on("pumInit",".pum",function(){var o=PUM.getPopup(e(this)),n=o.popmake("getSettings"),s=n.triggers||[],r=n.cookies||[],a=n.conditions||[],p=0;if(t||(pum_debug.initialize(),pum_debug.divider(i.popups_initializing)),console.groupCollapsed(i.single_popup_label+n.id+" - "+n.slug),console.log(i.theme_id,n.theme_id),s.length){for(console.groupCollapsed(i.label_triggers),p=0;s.length>p;p++)pum_debug.trigger(o,s[p]);console.groupEnd()}if(r.length){for(console.groupCollapsed(i.label_cookies),p=0;r.length>p;p+=1)pum_debug.cookie(o,r[p]);console.groupEnd()}a.length&&(console.groupCollapsed(i.label_conditions),console.log(a),console.groupEnd()),console.groupCollapsed(i.label_popup_settings),console.log(i.label_mobile_disabled,n.disable_on_mobile!==!1),console.log(i.label_tablet_disabled,n.disable_on_tablet!==!1),console.log(i.label_display_settings,pum_debug.odump(n)),o.trigger("pum_debug_popup_settings"),console.groupEnd(),console.groupEnd()}).on("pumBeforeOpen",".pum",function(){var o=PUM.getPopup(e(this)),t=e.fn.popmake.last_open_trigger;pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumBeforeOpen"));try{t=e(e.fn.popmake.last_open_trigger),t=t.length?t:e.fn.popmake.last_open_trigger.toString()}catch(n){t=""}finally{console.log(i.label_triggers,[t])}console.groupEnd()}).on("pumOpenPrevented",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumOpenPrevented")),console.groupEnd()}).on("pumAfterOpen",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumAfterOpen")),console.groupEnd()}).on("pumSetupClose",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumSetupClose")),console.groupEnd()}).on("pumClosePrevented",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumClosePrevented")),console.groupEnd()}).on("pumBeforeClose",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumBeforeClose")),console.groupEnd()}).on("pumAfterClose",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumAfterClose")),console.groupEnd()}).on("pumBeforeReposition",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumBeforeReposition")),console.groupEnd()}).on("pumAfterReposition",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumAfterReposition")),console.groupEnd()}).on("pumCheckingCondition",".pum",function(o,t,n){var s=PUM.getPopup(e(this));pum_debug.popup_event_header(s),console.groupCollapsed(i.label_event.replace("%s","pumCheckingCondition")),console.log((n.not_operand?"(!) ":"")+n.target+": "+t,n),console.groupEnd()})}}(jQuery),function(e,o,t){"use strict";e.fn.popmake.defaults={id:null,slug:"",theme_id:null,cookies:[],triggers:[],conditions:[],mobile_disabled:null,tablet_disabled:null,custom_height_auto:!1,scrollable_content:!1,position_from_trigger:!1,position_fixed:!1,overlay_disabled:!1,stackable:!1,disable_reposition:!1,close_on_overlay_click:!1,close_on_esc_press:!1,close_on_f4_press:!1,disable_on_mobile:!1,disable_on_tablet:!1,size:"medium",responsive_min_width:"0%",responsive_max_width:"100%",custom_width:"640px",custom_height:"380px",animation_type:"fade",animation_speed:"350",animation_origin:"center top",location:"center top",position_top:"100",position_bottom:"0",position_left:"0",position_right:"0",zindex:"1999999999",close_button_delay:"0",meta:{display:{stackable:!1,overlay_disabled:!1,size:"medium",responsive_max_width:"100",responsive_max_width_unit:"%",responsive_min_width:"0",responsive_min_width_unit:"%",custom_width:"640",custom_width_unit:"px",custom_height:"380",custom_height_unit:"px",custom_height_auto:!1,location:"center top",position_top:100,position_left:0,position_bottom:0,position_right:0,position_fixed:!1,animation_type:"fade",animation_speed:350,animation_origin:"center top",scrollable_content:!1,disable_reposition:!1,position_from_trigger:!1,overlay_zindex:!1,zindex:"1999999999"},close:{overlay_click:!1,esc_press:!1,f4_press:!1,text:"",button_delay:0},click_open:[]},container:{active_class:"active",attr:{"class":"popmake"}},title:{attr:{"class":"popmake-title"}},content:{attr:{"class":"popmake-content"}},close:{close_speed:0,attr:{"class":"popmake-close"}},overlay:{attr:{id:"popmake-overlay","class":"popmake-overlay"}}}}(jQuery,document),function(e){"use strict";var o={openpopup:!1,openpopup_id:0,closepopup:!1,closedelay:0,redirect_enabled:!1,redirect:"",cookie:!1};window.PUM=window.PUM||{},window.PUM.forms=window.PUM.forms||{},e.extend(window.PUM.forms,{form:{validation:{errors:[]},responseHandler:function(e,o){var t=o.data;o.success?window.PUM.forms.form.success(e,t):window.PUM.forms.form.errors(e,t)},display_errors:function(e,o){window.PUM.forms.messages.add(e,o||this.validation.errors,"error")},beforeAjax:function(o){var t=o.find('[type="submit"]'),n=t.find(".pum-form__loader");window.PUM.forms.messages.clear_all(o),n.length||(n=e('<span class="pum-form__loader"></span>'),""!==t.attr("value")?n.insertAfter(t):t.append(n)),t.prop("disabled",!0),n.show(),o.addClass("pum-form--loading").removeClass("pum-form--errors")},afterAjax:function(e){var o=e.find('[type="submit"]'),t=o.find(".pum-form__loader");o.prop("disabled",!1),t.hide(),e.removeClass("pum-form--loading")},success:function(e,o){void 0!==o.message&&""!==o.message&&window.PUM.forms.messages.add(e,[{message:o.message}]),e.trigger("success",[o]),!e.data("noredirect")&&void 0!==e.data("redirect_enabled")&&o.redirect&&(""!==o.redirect?window.location=o.redirect:window.location.reload(!0));
2
  },errors:function(e,o){void 0!==o.errors&&o.errors.length&&(console.log(o.errors),window.PUM.forms.form.display_errors(e,o.errors),window.PUM.forms.messages.scroll_to_first(e),e.addClass("pum-form--errors").trigger("errors",[o]))},submit:function(o){var t=e(this),n=t.pumSerializeObject();o.preventDefault(),o.stopPropagation(),window.PUM.forms.form.beforeAjax(t),e.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_form",values:n}}).always(function(){window.PUM.forms.form.afterAjax(t)}).done(function(e){window.PUM.forms.form.responseHandler(t,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}},messages:{add:function(o,t,n){var i=o.find(".pum-form__messages"),s=0;if(n=n||"success",t=t||[],!i.length)switch(i=e('<div class="pum-form__messages">').hide(),pum_vars.message_position){case"bottom":o.append(i.addClass("pum-form__messages--bottom"));break;case"top":o.prepend(i.addClass("pum-form__messages--top"))}if(["bottom","top"].indexOf(pum_vars.message_position)>=0)for(;t.length>s;s++)this.add_message(i,t[s].message,n);else for(;t.length>s;s++)void 0!==t[s].field?this.add_field_error(o,t[s]):this.add_message(i,t[s].message,n);i.is(":hidden")&&e(".pum-form__message",i).length&&i.slideDown()},add_message:function(o,t,n){var i=e('<p class="pum-form__message">').html(t);n=n||"success",i.addClass("pum-form__message--"+n),o.append(i),o.is(":visible")&&i.hide().slideDown()},add_field_error:function(o,t){var n=e('[name="'+t.field+'"]',o),i=n.parents(".pum-form__field").addClass("pum-form__field--error");this.add_message(i,t.message,"error")},clear_all:function(o,t){var n=o.find(".pum-form__messages"),i=n.find(".pum-form__message"),s=o.find(".pum-form__field.pum-form__field--error");t=t||!1,n.length&&i.slideUp("fast",function(){e(this).remove(),t&&n.hide()}),s.length&&s.removeClass("pum-form__field--error").find("p.pum-form__message").remove()},scroll_to_first:function(o){window.PUM.utilities.scrollTo(e(".pum-form__field.pum-form__field--error",o).eq(0))}},success:function(t,n){if(n=e.extend({},o,n)){var i=PUM.getPopup(t),s={},r=function(){n.redirect_enabled&&(""!==n.redirect?window.location=n.redirect:window.location.reload(!0))},a=function(){n.openpopup&&PUM.getPopup(n.openpopup_id).length?PUM.open(n.openpopup_id):r()};i.length&&(i.trigger("pumFormSuccess"),n.cookie&&(s=e.extend({name:"pum-"+PUM.getSetting(i,"id"),expires:"+1 year"},"object"==typeof n.cookie?n.cookie:{}),PUM.setCookie(i,s))),i.length&&n.closepopup?setTimeout(function(){i.popmake("close",a)},1e3*parseInt(n.closedelay)):a()}}})}(jQuery),function(e,o){"use strict";var t=function(){function e(e,o,t,n){return"string"==typeof e&&"function"==typeof o&&(t=parseInt(t||10,10),a("actions",e,o,t,n)),c}function o(){var e=l.call(arguments),o=e.shift();return"string"==typeof o&&u("actions",o,e),c}function t(e,o){return"string"==typeof e&&r("actions",e,o),c}function n(e,o,t,n){return"string"==typeof e&&"function"==typeof o&&(t=parseInt(t||10,10),a("filters",e,o,t,n)),c}function i(){var e=l.call(arguments),o=e.shift();return"string"==typeof o?u("filters",o,e):c}function s(e,o){return"string"==typeof e&&r("filters",e,o),c}function r(e,o,t,n){var i,s,r;if(m[e][o])if(t)if(i=m[e][o],n)for(r=i.length;r--;)s=i[r],s.callback===t&&s.context===n&&i.splice(r,1);else for(r=i.length;r--;)i[r].callback===t&&i.splice(r,1);else m[e][o]=[]}function a(e,o,t,n,i){var s={callback:t,priority:n,context:i},r=m[e][o];r?(r.push(s),r=p(r)):r=[s],m[e][o]=r}function p(e){for(var o,t,n,i=1,s=e.length;i<s;i++){for(o=e[i],t=i;(n=e[t-1])&&n.priority>o.priority;)e[t]=e[t-1],--t;e[t]=o}return e}function u(e,o,t){var n,i,s=m[e][o];if(!s)return"filters"===e&&t[0];if(i=s.length,"filters"===e)for(n=0;n<i;n++)t[0]=s[n].callback.apply(s[n].context,t);else for(n=0;n<i;n++)s[n].callback.apply(s[n].context,t);return"filters"!==e||t[0]}var l=Array.prototype.slice,c={removeFilter:s,applyFilters:i,addFilter:n,removeAction:t,doAction:o,addAction:e},m={actions:{},filters:{}};return c};e.pum=e.pum||{},e.pum.hooks=e.pum.hooks||new t}(window),function(e){"use strict";function o(){"undefined"!=typeof Marionette&&"undefined"!=typeof nfRadio&&(n=Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.popupMaker)},popupMaker:function(o,t,n,i){var s=e("#nf-form-"+i+"-cont"),r={};o.errors.length||("undefined"!=typeof o.data.actions&&(r.openpopup="undefined"!=typeof o.data.actions.openpopup,r.openpopup_id=r.openpopup?parseInt(o.data.actions.openpopup):0,r.closepopup="undefined"!=typeof o.data.actions.closepopup,r.closedelay=r.closepopup?parseInt(o.data.actions.closepopup):0,r.closepopup&&o.data.actions.closedelay&&(r.closedelay=parseInt(o.data.actions.closedelay))),window.PUM.forms.success(s,r))}}))}var t={},n=!1;e(document).ready(function(){n===!1&&o(),n!==!1&&new n,e(".gform_wrapper > form").each(function(){var o=e(this),n=o.attr("id").replace("gform_",""),i=o.find("input.gforms-pum"),s=!!i.length&&JSON.parse(i.val());s&&"object"==typeof s&&("object"==typeof s&&void 0!==s.closedelay&&s.closedelay.toString().length>=3&&(s.closedelay=s.closedelay/1e3),t[n]=s)})}).on("gform_confirmation_loaded",function(o,n){var i=e("#gform_confirmation_wrapper_"+n+",#gforms_confirmation_message_"+n),s=t[n]||!1;window.PUM.forms.success(i,s)}).on("wpcf7:mailsent",".wpcf7",function(o){var t=e(o.target),n=t.find("input.wpcf7-pum"),i=!!n.length&&JSON.parse(n.val());"object"==typeof i&&void 0!==i.closedelay&&i.closedelay.toString().length>=3&&(i.closedelay=i.closedelay/1e3),window.PUM.forms.success(t,i)})}(jQuery),function(e){"use strict";pum_vars&&void 0!==pum_vars.core_sub_forms_enabled&&!pum_vars.core_sub_forms_enabled||(window.PUM=window.PUM||{},window.PUM.newsletter=window.PUM.newsletter||{},e.extend(window.PUM.newsletter,{form:e.extend({},window.PUM.forms.form,{submit:function(o){var t=e(this),n=t.pumSerializeObject();o.preventDefault(),o.stopPropagation(),window.PUM.newsletter.form.beforeAjax(t),e.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_sub_form",values:n}}).always(function(){window.PUM.newsletter.form.afterAjax(t)}).done(function(e){window.PUM.newsletter.form.responseHandler(t,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}})}),e(document).on("submit","form.pum-sub-form",window.PUM.newsletter.form.submit).on("success","form.pum-sub-form",function(o,t){var n=e(o.target),i=n.data("settings")||{};n.trigger("pumNewsletterSuccess",[t]).addClass("pum-newsletter-success"),n[0].reset(),window.pum.hooks.doAction("pum-sub-form.success",t,n),"string"==typeof i.redirect&&""!==i.redirect&&(i.redirect=atob(i.redirect)),window.PUM.forms.success(n,i)}).on("error","form.pum-sub-form",function(o,t){var n=e(o.target);n.trigger("pumNewsletterError",[t]),window.pum.hooks.doAction("pum-sub-form.errors",t,n)}))}(jQuery),function(e,o,t){"use strict";e.extend(e.fn.popmake.methods,{addTrigger:function(o){return e.fn.popmake.triggers[o]?e.fn.popmake.triggers[o].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Trigger type "+o+" does not exist."),this)}}),e.fn.popmake.triggers={auto_open:function(o){var t=PUM.getPopup(this);setTimeout(function(){t.popmake("state","isOpen")||!t.popmake("checkCookies",o)&&t.popmake("checkConditions")&&(e.fn.popmake.last_open_trigger="Auto Open - Delay: "+o.delay,t.popmake("open"))},o.delay)},click_open:function(t){var n,i=PUM.getPopup(this),s=i.popmake("getSettings"),r=[".popmake-"+s.id,".popmake-"+decodeURIComponent(s.slug),'a[href$="#popmake-'+s.id+'"]'];t.extra_selectors&&""!==t.extra_selectors&&r.push(t.extra_selectors),r=pum.hooks.applyFilters("pum.trigger.click_open.selectors",r,t,i),n=r.join(", "),e(n).addClass("pum-trigger").css({cursor:"pointer"}),e(o).on("click.pumTrigger",n,function(o){var n=e(this),s=t.do_default||!1;i.has(n).length>0||i.popmake("state","isOpen")||!i.popmake("checkCookies",t)&&i.popmake("checkConditions")&&(n.data("do-default")?s=n.data("do-default"):(n.hasClass("do-default")||n.hasClass("popmake-do-default")||n.hasClass("pum-do-default"))&&(s=!0),o.ctrlKey||pum.hooks.applyFilters("pum.trigger.click_open.do_default",s,i,n)||(o.preventDefault(),o.stopPropagation()),e.fn.popmake.last_open_trigger=n,i.popmake("open"))})},admin_debug:function(){PUM.getPopup(this).popmake("open")}},e(o).on("pumInit",".pum",function(){var e,o=PUM.getPopup(this),t=o.popmake("getSettings"),n=t.triggers||[],i=null;if(n.length)for(e=0;n.length>e;e+=1)i=n[e],o.popmake("addTrigger",i.type,i.settings)})}(jQuery,document),function(e,o,t){"use strict";function n(e,o,t){var i=o[0];o.length>1?(e[i]||(e[i]=o[1]?{}:[]),n(e[i],o.slice(1),t)):(i||(i=e.length),e[i]=t)}var i="color,date,datetime,datetime-local,email,hidden,month,number,password,range,search,tel,text,time,url,week".split(","),s="select,textarea".split(","),r=/\[([^\]]*)\]/g;Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(void 0===this||null===this)throw new TypeError;var o=Object(this),t=o.length>>>0;if(0===t)return-1;var n=0;if(arguments.length>0&&(n=Number(arguments[1]),n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n)))),n>=t)return-1;for(var i=n>=0?n:Math.max(t-Math.abs(n),0);i<t;i++)if(i in o&&o[i]===e)return i;return-1}),e.fn.popmake.utilities={scrollTo:function(o,t){var n=e(o)||e();n.length&&e("html, body").animate({scrollTop:n.offset().top-100},1e3,"swing",function(){var e=n.find(':input:not([type="button"]):not([type="hidden"]):not(button)').eq(0);e.hasClass("wp-editor-area")?tinyMCE.execCommand("mceFocus",!1,e.attr("id")):e.focus(),"function"==typeof t&&t()})},inArray:function(e,o){return!!~o.indexOf(e)},convert_hex:function(e,o){e=e.replace("#","");var t=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),i=parseInt(e.substring(4,6),16);return"rgba("+t+","+n+","+i+","+o/100+")"},debounce:function(e,o){var t;return function(){var n=this,i=arguments;window.clearTimeout(t),t=window.setTimeout(function(){e.apply(n,i)},o)}},throttle:function(e,o){var t=!1,n=function(){t=!1};return function(){t||(e.apply(this,arguments),window.setTimeout(n,o),t=!0)}},getXPath:function(o){var t,n,i,s,r,a=[];return e.each(e(o).parents(),function(o,p){return t=e(p),n=t.attr("id")||"",i=t.attr("class")||"",s=t.get(0).tagName.toLowerCase(),r=t.parent().children(s).index(t),"body"!==s&&(i.length>0&&(i=i.split(" "),i=i[0]),void a.push(s+(n.length>0?"#"+n:i.length>0?"."+i.split(" ").join("."):":eq("+r+")")))}),a.reverse().join(" > ")},strtotime:function(e,o){function n(e,o,n){var i,s=l[o];s!==t&&(i=s-u.getDay(),0===i?i=7*n:i>0&&"last"===e?i-=7:i<0&&"next"===e&&(i+=7),u.setDate(u.getDate()+i))}function i(e){var o=e.split(" "),t=o[0],i=o[1].substring(0,3),s=/\d+/.test(t),r="ago"===o[2],a=("last"===t?-1:1)*(r?-1:1);if(s&&(a*=parseInt(t,10)),c.hasOwnProperty(i)&&!o[1].match(/^mon(day|\.)?$/i))return u["set"+c[i]](u["get"+c[i]]()+a);if("wee"===i)return u.setDate(u.getDate()+7*a);if("next"===t||"last"===t)n(t,i,a);else if(!s)return!1;return!0}var s,r,a,p,u,l,c,m,d,f,g,_=!1;if(!e)return _;if(e=e.replace(/^\s+|\s+$/g,"").replace(/\s{2,}/g," ").replace(/[\t\r\n]/g,"").toLowerCase(),r=e.match(/^(\d{1,4})([\-\.\/\:])(\d{1,2})([\-\.\/\:])(\d{1,4})(?:\s(\d{1,2}):(\d{2})?:?(\d{2})?)?(?:\s([A-Z]+)?)?$/),r&&r[2]===r[4])if(r[1]>1901)switch(r[2]){case"-":return r[3]>12||r[5]>31?_:new Date(r[1],parseInt(r[3],10)-1,r[5],r[6]||0,r[7]||0,r[8]||0,r[9]||0)/1e3;case".":return _;case"/":return r[3]>12||r[5]>31?_:new Date(r[1],parseInt(r[3],10)-1,r[5],r[6]||0,r[7]||0,r[8]||0,r[9]||0)/1e3}else if(r[5]>1901)switch(r[2]){case"-":return r[3]>12||r[1]>31?_:new Date(r[5],parseInt(r[3],10)-1,r[1],r[6]||0,r[7]||0,r[8]||0,r[9]||0)/1e3;case".":return r[3]>12||r[1]>31?_:new Date(r[5],parseInt(r[3],10)-1,r[1],r[6]||0,r[7]||0,r[8]||0,r[9]||0)/1e3;case"/":return r[1]>12||r[3]>31?_:new Date(r[5],parseInt(r[1],10)-1,r[3],r[6]||0,r[7]||0,r[8]||0,r[9]||0)/1e3}else switch(r[2]){case"-":return r[3]>12||r[5]>31||r[1]<70&&r[1]>38?_:(p=r[1]>=0&&r[1]<=38?+r[1]+2e3:r[1],new Date(p,parseInt(r[3],10)-1,r[5],r[6]||0,r[7]||0,r[8]||0,r[9]||0)/1e3);case".":return r[5]>=70?r[3]>12||r[1]>31?_:new Date(r[5],parseInt(r[3],10)-1,r[1],r[6]||0,r[7]||0,r[8]||0,r[9]||0)/1e3:r[5]<60&&!r[6]?r[1]>23||r[3]>59?_:(a=new Date,new Date(a.getFullYear(),a.getMonth(),a.getDate(),r[1]||0,r[3]||0,r[5]||0,r[9]||0)/1e3):_;case"/":return r[1]>12||r[3]>31||r[5]<70&&r[5]>38?_:(p=r[5]>=0&&r[5]<=38?+r[5]+2e3:r[5],new Date(p,parseInt(r[1],10)-1,r[3],r[6]||0,r[7]||0,r[8]||0,r[9]||0)/1e3);case":":return r[1]>23||r[3]>59||r[5]>59?_:(a=new Date,new Date(a.getFullYear(),a.getMonth(),a.getDate(),r[1]||0,r[3]||0,r[5]||0)/1e3)}if("now"===e)return null===o||isNaN(o)?(new Date).getTime()/1e3||0:o||0;if(s=Date.parse(e),!isNaN(s))return s/1e3||0;if(u=o?new Date(1e3*o):new Date,l={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},c={yea:"FullYear",mon:"Month",day:"Date",hou:"Hours",min:"Minutes",sec:"Seconds"},d="(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?)",f="([+-]?\\d+\\s"+d+"|(last|next)\\s"+d+")(\\sago)?",r=e.match(new RegExp(f,"gi")),!r)return _;for(g=0,m=r.length;g<m;g+=1)if(!i(r[g]))return _;return u.getTime()/1e3},serializeObject:function(o){e.extend({},o);var t={},a=e.extend(!0,{include:[],exclude:[],includeByClass:""},o);return this.find(":input").each(function(){var o;!this.name||this.disabled||window.PUM.utilities.inArray(this.name,a.exclude)||a.include.length&&!window.PUM.utilities.inArray(this.name,a.include)||this.className.indexOf(a.includeByClass)===-1||(o=this.name.replace(r,"[$1").split("["),o[0]&&(this.checked||window.PUM.utilities.inArray(this.type,i)||window.PUM.utilities.inArray(this.nodeName.toLowerCase(),s))&&("checkbox"===this.type&&o.push(""),n(t,o,e(this).val())))}),t}},e.fn.popmake.utilies=e.fn.popmake.utilities,window.PUM=window.PUM||{},window.PUM.utilities=window.PUM.utilities||{},window.PUM.utilities=e.extend(window.PUM.utilities,e.fn.popmake.utilities)}(jQuery,document),function(e,o){if("function"==typeof define&&define.amd)define(["exports","jquery"],function(e,t){return o(e,t)});else if("undefined"!=typeof exports){var t=require("jquery");o(exports,t)}else o(e,e.jQuery||e.Zepto||e.ender||e.$)}(this,function(e,o){function t(e,t){function i(e,o,t){return e[o]=t,e}function s(e,o){var t,s=e.match(n.key);try{o=JSON.parse(o)}catch(a){}for(;void 0!==(t=s.pop());)if(n.push.test(t)){var p=r(e.replace(/\[\]$/,""));o=i([],p,o)}else n.fixed.test(t)?o=i([],t,o):n.named.test(t)&&(o=i({},t,o));return o}function r(e){return void 0===d[e]&&(d[e]=0),d[e]++}function a(e){switch(o('[name="'+e.name+'"]',t).attr("type")){case"checkbox":return"1"===e.value||e.value;default:return e.value}}function p(o){if(!n.validate.test(o.name))return this;var t=s(o.name,a(o));return m=e.extend(!0,m,t),this}function u(o){if(!e.isArray(o))throw new Error("formSerializer.addPairs expects an Array");for(var t=0,n=o.length;t<n;t++)this.addPair(o[t]);return this}function l(){return m}function c(){return JSON.stringify(l())}var m={},d={};this.addPair=p,this.addPairs=u,this.serialize=l,this.serializeJSON=c}var n={validate:/^[a-z_][a-z0-9_]*(?:\[(?:\d*|[a-z0-9_]+)\])*$/i,key:/[a-z0-9_]+|(?=\[\])/gi,push:/^$/,fixed:/^\d+$/,named:/^[a-z0-9_]+$/i};return t.patterns=n,t.serializeObject=function(){var e;return e=this.is("form")?this.serializeArray():this.find(":input").serializeArray(),new t(o,this).addPairs(e).serialize()},t.serializeJSON=function(){var e;return e=this.is("form")?this.serializeArray():this.find(":input").serializeArray(),new t(o,this).addPairs(e).serializeJSON()},"undefined"!=typeof o.fn&&(o.fn.pumSerializeObject=t.serializeObject,o.fn.pumSerializeJSON=t.serializeJSON),e.FormSerializer=t,t}),function(e,o,t){"use strict";e.fn.popmake.version=1.7,e.fn.popmake.last_open_popup=null,e(o).ready(function(){e(".pum").popmake(),e(o).trigger("pumInitialized"),"object"==typeof pum_vars.form_success&&(pum_vars.form_success=e.extend({popup_id:null,settings:{}}),PUM.forms.success(pum_vars.form_success.popup_id,pum_vars.form_success.settings))}),e(".pum").on("pumInit",function(){var e=PUM.getPopup(this),o=PUM.getSetting(e,"id"),t=e.find("form");t.length&&t.prepend('<input type="hidden" name="pum_form_popup_id" value="'+o+'" />')})}(jQuery);
classes/Admin/Popups.php CHANGED
@@ -295,6 +295,7 @@ class PUM_Admin_Popups {
295
  'close' => __( 'Close', 'popup-maker' ),
296
  'triggers' => __( 'Triggers', 'popup-maker' ),
297
  'targeting' => __( 'Targeting', 'popup-maker' ),
 
298
  ) );
299
  }
300
 
@@ -310,7 +311,6 @@ class PUM_Admin_Popups {
310
  ),
311
  'triggers' => array(
312
  'main' => __( 'Triggers & Cookies', 'popup-maker' ),
313
- 'advanced' => __( 'Advanced', 'popup-maker' ),
314
  ),
315
  'targeting' => array(
316
  'main' => __( 'Conditions', 'popup-maker' ),
@@ -326,6 +326,9 @@ class PUM_Admin_Popups {
326
  'button' => __( 'Button', 'popup-maker' ),
327
  'alternate_methods' => __( 'Alternate Methods', 'popup-maker' ),
328
  ),
 
 
 
329
  ) );
330
  }
331
 
@@ -344,7 +347,7 @@ class PUM_Admin_Popups {
344
  'main' => array(),
345
  ) ),
346
  'triggers' => apply_filters( 'pum_popup_triggers_settings_fields', array(
347
- 'main' => array(
348
  'triggers' => array(
349
  'type' => 'triggers',
350
  'std' => array(),
@@ -360,13 +363,6 @@ class PUM_Admin_Popups {
360
  'priority' => 20,
361
  ),
362
  ),
363
- 'advanced' => array(
364
- 'disable_form_reopen' => array(
365
- 'label' => __( 'Disable automatic re-triggering of popup after non-ajax form submission.', 'popup-maker' ),
366
- 'type' => 'checkbox',
367
- 'priority' => 10,
368
- ),
369
- ),
370
  ) ),
371
  'targeting' => apply_filters( 'pum_popup_targeting_settings_fields', array(
372
  'main' => array(
@@ -701,6 +697,21 @@ class PUM_Admin_Popups {
701
  ),
702
  ),
703
  ) ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
704
  ) );
705
 
706
  foreach ( $tabs as $tab_id => $sections ) {
@@ -868,7 +879,7 @@ class PUM_Admin_Popups {
868
  <?php do_action( 'pum_popup_analytics_metabox_before', $post->ID ); ?>
869
 
870
  <?php
871
- $opens = $popup->get_event_count( 'open', 'current' );
872
  //$conversions = $popup->get_event_count( 'conversion', 'current' );
873
  //$conversion_rate = $opens > 0 && $opens >= $conversions ? $conversions / $opens * 100 : false;
874
  ?>
@@ -913,7 +924,7 @@ class PUM_Admin_Popups {
913
  <?php /* if ( $popup->get_event_count( 'conversion', 'total' ) > 0 ) : ?>
914
  <br />
915
  <strong><?php _e( 'Lifetime Conversions', 'popup-maker' ); ?>:</strong> <?php echo $popup->get_event_count( 'conversion', 'total' ); ?>
916
- <?php endif; */ ?>
917
  </small>
918
  <?php endif; ?>
919
  </td>
@@ -985,11 +996,11 @@ class PUM_Admin_Popups {
985
  */
986
  public static function dashboard_columns( $_columns ) {
987
  $columns = array(
988
- 'cb' => '<input type="checkbox"/>',
989
- 'title' => __( 'Name', 'popup-maker' ),
990
- 'popup_title' => __( 'Title', 'popup-maker' ),
991
- 'class' => __( 'CSS Classes', 'popup-maker' ),
992
- 'opens' => __( 'Opens', 'popup-maker' ),
993
  //'conversions' => __( 'Conversions', 'popup-maker' ),
994
  //'conversion_rate' => __( 'Conversion Rate', 'popup-maker' ),
995
  );
@@ -1083,6 +1094,7 @@ class PUM_Admin_Popups {
1083
  public static function sortable_columns( $columns ) {
1084
  $columns['popup_title'] = 'popup_title';
1085
  $columns['opens'] = 'opens';
 
1086
  // $columns['conversions'] = 'conversions';
1087
 
1088
  return $columns;
295
  'close' => __( 'Close', 'popup-maker' ),
296
  'triggers' => __( 'Triggers', 'popup-maker' ),
297
  'targeting' => __( 'Targeting', 'popup-maker' ),
298
+ 'advanced' => __( 'Advanced', 'popup-maker' ),
299
  ) );
300
  }
301
 
311
  ),
312
  'triggers' => array(
313
  'main' => __( 'Triggers & Cookies', 'popup-maker' ),
 
314
  ),
315
  'targeting' => array(
316
  'main' => __( 'Conditions', 'popup-maker' ),
326
  'button' => __( 'Button', 'popup-maker' ),
327
  'alternate_methods' => __( 'Alternate Methods', 'popup-maker' ),
328
  ),
329
+ 'advanced' => array(
330
+ 'main' => __( 'Advanced', 'popup-maker' ),
331
+ ),
332
  ) );
333
  }
334
 
347
  'main' => array(),
348
  ) ),
349
  'triggers' => apply_filters( 'pum_popup_triggers_settings_fields', array(
350
+ 'main' => array(
351
  'triggers' => array(
352
  'type' => 'triggers',
353
  'std' => array(),
363
  'priority' => 20,
364
  ),
365
  ),
 
 
 
 
 
 
 
366
  ) ),
367
  'targeting' => apply_filters( 'pum_popup_targeting_settings_fields', array(
368
  'main' => array(
697
  ),
698
  ),
699
  ) ),
700
+ 'advanced' => apply_filters( 'pum_popup_advanced_settings_fields', array(
701
+ 'main' => array(
702
+ 'disable_form_reopen' => array(
703
+ 'label' => __( 'Disable automatic re-triggering of popup after non-ajax form submission.', 'popup-maker' ),
704
+ 'type' => 'checkbox',
705
+ 'priority' => 10,
706
+ ),
707
+ 'disable_accessibility' => array(
708
+ 'label' => __( 'Disable accessibility features.', 'popup-maker' ),
709
+ 'desc' => __( 'This includes trapping the tab key & focus inside popup while open, force focus the first element when popup open, and refocus last click trigger when closed.', 'popup-maker' ),
710
+ 'type' => 'checkbox',
711
+ 'priority' => 10,
712
+ ),
713
+ ),
714
+ ) ),
715
  ) );
716
 
717
  foreach ( $tabs as $tab_id => $sections ) {
879
  <?php do_action( 'pum_popup_analytics_metabox_before', $post->ID ); ?>
880
 
881
  <?php
882
+ $opens = $popup->get_event_count( 'open', 'current' );
883
  //$conversions = $popup->get_event_count( 'conversion', 'current' );
884
  //$conversion_rate = $opens > 0 && $opens >= $conversions ? $conversions / $opens * 100 : false;
885
  ?>
924
  <?php /* if ( $popup->get_event_count( 'conversion', 'total' ) > 0 ) : ?>
925
  <br />
926
  <strong><?php _e( 'Lifetime Conversions', 'popup-maker' ); ?>:</strong> <?php echo $popup->get_event_count( 'conversion', 'total' ); ?>
927
+ <?php endif; */ ?>
928
  </small>
929
  <?php endif; ?>
930
  </td>
996
  */
997
  public static function dashboard_columns( $_columns ) {
998
  $columns = array(
999
+ 'cb' => '<input type="checkbox"/>',
1000
+ 'title' => __( 'Name', 'popup-maker' ),
1001
+ 'popup_title' => __( 'Title', 'popup-maker' ),
1002
+ 'class' => __( 'CSS Classes', 'popup-maker' ),
1003
+ 'opens' => __( 'Opens', 'popup-maker' ),
1004
  //'conversions' => __( 'Conversions', 'popup-maker' ),
1005
  //'conversion_rate' => __( 'Conversion Rate', 'popup-maker' ),
1006
  );
1094
  public static function sortable_columns( $columns ) {
1095
  $columns['popup_title'] = 'popup_title';
1096
  $columns['opens'] = 'opens';
1097
+
1098
  // $columns['conversions'] = 'conversions';
1099
 
1100
  return $columns;
classes/Admin/Settings.php CHANGED
@@ -383,7 +383,7 @@ class PUM_Admin_Settings {
383
  ),
384
  'default_privacy_usage_text' => array(
385
  'label' => __( 'Consent Usage Text', 'popup-maker' ),
386
- 'desc' => function_exists( 'get_privacy_policy_url' ) ? sprintf( __( 'You can use %1$%2$s to insert a link to your privacy policy. To customize the link text use %1$s:Link Text%2$s', 'popup-maker' ), '{{privacy_link', '}}' ) : '',
387
  'type' => 'text',
388
  'std' => __( 'If you opt in above we use this information send related content, discounts and other special offers.', 'popup-maker' ),
389
  'dependencies' => array(
383
  ),
384
  'default_privacy_usage_text' => array(
385
  'label' => __( 'Consent Usage Text', 'popup-maker' ),
386
+ 'desc' => function_exists( 'get_privacy_policy_url' ) ? sprintf( __( 'You can use %1$s%2$s to insert a link to your privacy policy. To customize the link text use %1$s:Link Text%2$s', 'popup-maker' ), '{{privacy_link', '}}' ) : '',
387
  'type' => 'text',
388
  'std' => __( 'If you opt in above we use this information send related content, discounts and other special offers.', 'popup-maker' ),
389
  'dependencies' => array(
classes/ConditionCallbacks.php CHANGED
@@ -79,7 +79,7 @@ class PUM_ConditionCallbacks {
79
  }
80
  break;
81
 
82
- case 'templates':
83
  if ( is_page() && is_page_template( $selected ) ) {
84
  return true;
85
  }
79
  }
80
  break;
81
 
82
+ case 'template':
83
  if ( is_page() && is_page_template( $selected ) ) {
84
  return true;
85
  }
classes/Logging.php CHANGED
@@ -18,12 +18,17 @@ class PUM_Logging {
18
  /**
19
  * @var string
20
  */
21
- private $filename = '';
22
 
23
  /**
24
  * @var string
25
  */
26
- private $file ='';
 
 
 
 
 
27
 
28
  /**
29
  * @var PUM_Logging
@@ -52,13 +57,18 @@ class PUM_Logging {
52
  * Get things started
53
  */
54
  public function init() {
55
- $upload_dir = wp_upload_dir( null, false );
56
- $this->filename = 'pum-debug.log';
57
- $this->file = trailingslashit( $upload_dir['basedir'] ) . $this->filename;
58
 
59
  if ( ! is_writeable( $upload_dir['basedir'] ) ) {
60
  $this->is_writable = false;
61
  }
 
 
 
 
 
62
  }
63
 
64
  /**
@@ -72,11 +82,26 @@ class PUM_Logging {
72
 
73
  /**
74
  * Log message to file
 
 
75
  */
76
  public function log( $message = '' ) {
77
- $message = date( 'Y-n-d H:i:s' ) . ' - ' . $message . "\r\n";
78
- $this->write_to_log( $message );
 
 
 
 
 
 
 
 
79
 
 
 
 
 
 
80
  }
81
 
82
  /**
@@ -85,33 +110,78 @@ class PUM_Logging {
85
  * @return string
86
  */
87
  protected function get_file() {
88
- $file = '';
89
 
90
- if ( @file_exists( $this->file ) ) {
91
- if ( ! is_writeable( $this->file ) ) {
92
- $this->is_writable = false;
93
- }
94
 
95
- $file = @file_get_contents( $this->file );
96
- } else {
97
- @file_put_contents( $this->file, '' );
98
- @chmod( $this->file, 0664 );
 
 
 
 
 
 
99
  }
100
 
101
- return $file;
102
  }
103
 
104
  /**
105
  * Write the log message
 
 
106
  */
107
  protected function write_to_log( $message = '' ) {
108
- $file = $this->get_file();
109
- $file .= $message;
110
- @file_put_contents( $this->file, $file );
 
 
 
 
 
 
 
 
 
 
111
  }
112
 
113
  /**
114
- * Write the log message
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  */
116
  public function clear_log() {
117
  @unlink( $this->file );
@@ -129,6 +199,6 @@ class PUM_Logging {
129
  $notice = sprintf( '%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.', $function, $version );
130
  }
131
 
132
- $this->log( $notice );
133
  }
134
  }
18
  /**
19
  * @var string
20
  */
21
+ private $filename = '';
22
 
23
  /**
24
  * @var string
25
  */
26
+ private $file = '';
27
+
28
+ /**
29
+ * @var string
30
+ */
31
+ private $content;
32
 
33
  /**
34
  * @var PUM_Logging
57
  * Get things started
58
  */
59
  public function init() {
60
+ $upload_dir = wp_upload_dir( null, false );
61
+ $this->filename = 'pum-debug.log';
62
+ $this->file = trailingslashit( $upload_dir['basedir'] ) . $this->filename;
63
 
64
  if ( ! is_writeable( $upload_dir['basedir'] ) ) {
65
  $this->is_writable = false;
66
  }
67
+
68
+ // Truncate long log files.
69
+ if ( file_exists( $this->file ) && filesize( $this->file ) >= 1048576 ) {
70
+ $this->truncate_log();
71
+ }
72
  }
73
 
74
  /**
82
 
83
  /**
84
  * Log message to file
85
+ *
86
+ * @param string $message
87
  */
88
  public function log( $message = '' ) {
89
+ $this->write_to_log( date( 'Y-n-d H:i:s' ) . ' - ' . $message );
90
+ }
91
+
92
+ /**
93
+ * Log unique message to file.
94
+ *
95
+ * @param string $message
96
+ */
97
+ public function log_unique( $message = '' ) {
98
+ $contents = $this->get_file();
99
 
100
+ if ( strpos( $contents, $message ) !== false ) {
101
+ return;
102
+ }
103
+
104
+ $this->log( $message );
105
  }
106
 
107
  /**
110
  * @return string
111
  */
112
  protected function get_file() {
 
113
 
114
+ if ( ! isset( $this->content ) ) {
115
+ $this->content = '';
 
 
116
 
117
+ if ( @file_exists( $this->file ) ) {
118
+ if ( ! is_writeable( $this->file ) ) {
119
+ $this->is_writable = false;
120
+ }
121
+
122
+ $this->content = @file_get_contents( $this->file );
123
+ } else {
124
+ @file_put_contents( $this->file, '' );
125
+ @chmod( $this->file, 0664 );
126
+ }
127
  }
128
 
129
+ return $this->content;
130
  }
131
 
132
  /**
133
  * Write the log message
134
+ *
135
+ * @param string $message
136
  */
137
  protected function write_to_log( $message = '' ) {
138
+ $file_contents = $this->get_file();
139
+
140
+ $length = strlen( "\r\n" );
141
+
142
+ // If it doesn't end with a new line, add one.
143
+ if ( substr( $file_contents, - $length ) !== "\r\n" ) {
144
+ $file_contents .= "\r\n";
145
+ }
146
+
147
+ $file_contents .= $message;
148
+
149
+ $this->content = $file_contents;
150
+ $this->save_logs();
151
  }
152
 
153
  /**
154
+ * Save the current contents to file.
155
+ */
156
+ public function save_logs() {
157
+ @file_put_contents( $this->file, $this->content );
158
+ }
159
+
160
+ /**
161
+ * Get a line count.
162
+ *
163
+ * @return int
164
+ */
165
+ public function count_lines() {
166
+ $file = $this->get_file();
167
+ $lines = explode( "\r\n", $file );
168
+
169
+ return count( $lines );
170
+ }
171
+
172
+ /**
173
+ * Truncates a log file to maximum of 250 lines.
174
+ */
175
+ public function truncate_log() {
176
+ $content = $this->get_file();
177
+ $lines = explode( "\r\n", $content );
178
+ $lines = array_slice( $lines, 0, 250 ); //50 is how many lines you want to keep
179
+ $this->content = implode( "\r\n", $lines );
180
+ $this->save_logs();
181
+ }
182
+
183
+ /**
184
+ * Delete the log file.
185
  */
186
  public function clear_log() {
187
  @unlink( $this->file );
199
  $notice = sprintf( '%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.', $function, $version );
200
  }
201
 
202
+ $this->log_unique( $notice );
203
  }
204
  }
classes/Model/Popup.php CHANGED
@@ -230,7 +230,7 @@ class PUM_Model_Popup extends PUM_Model_Post {
230
  * @return bool
231
  */
232
  public function has_cookie( $event ) {
233
- $cookies = $this->get_triggers();
234
 
235
  foreach ( $cookies as $cookie ) {
236
  if ( $cookie['event'] == $event ) {
@@ -525,6 +525,10 @@ class PUM_Model_Popup extends PUM_Model_Post {
525
  $classes['overlay'][] = 'pum-overlay-disabled';
526
  }
527
 
 
 
 
 
528
  // Add a class for each trigger type.
529
  foreach ( $this->get_triggers() as $trigger ) {
530
  if ( ! in_array( $trigger['type'], $classes['overlay'] ) ) {
230
  * @return bool
231
  */
232
  public function has_cookie( $event ) {
233
+ $cookies = $this->get_cookies();
234
 
235
  foreach ( $cookies as $cookie ) {
236
  if ( $cookie['event'] == $event ) {
525
  $classes['overlay'][] = 'pum-overlay-disabled';
526
  }
527
 
528
+ if ( $this->get_setting( 'disable_accessibility' ) ) {
529
+ $classes['overlay'][] = 'pum-accessibility-disabled';
530
+ }
531
+
532
  // Add a class for each trigger type.
533
  foreach ( $this->get_triggers() as $trigger ) {
534
  if ( ! in_array( $trigger['type'], $classes['overlay'] ) ) {
classes/Upgrades.php CHANGED
@@ -37,7 +37,7 @@ class PUM_Upgrades {
37
  * Popup Maker initial version.
38
  *
39
  * @var string
40
- */
41
  public static $initial_version;
42
 
43
  /**
@@ -47,6 +47,13 @@ class PUM_Upgrades {
47
  */
48
  public static $db_version;
49
 
 
 
 
 
 
 
 
50
  /**
51
  * Gets everything going with a singleton instance.
52
  *
@@ -90,6 +97,7 @@ class PUM_Upgrades {
90
  self::$upgraded_from = get_option( 'pum_ver_upgraded_from' );
91
  self::$initial_version = get_option( 'pum_initial_version' );
92
  self::$db_version = get_option( 'pum_db_ver' );
 
93
 
94
  /**
95
  * If no version set check if a deprecated one exists.
@@ -144,12 +152,27 @@ class PUM_Upgrades {
144
  }
145
 
146
  // If no current db version, but prior install detected, set db version correctly.
147
-
148
  // Here for backward compatibility.
149
  if ( ! self::$db_version || self::$db_version < Popup_Maker::$DB_VER ) {
150
  self::$db_version = Popup_Maker::$DB_VER;
151
  update_option( 'pum_db_ver', self::$db_version );
152
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
  }
154
 
155
  /**
@@ -246,7 +269,9 @@ class PUM_Upgrades {
246
 
247
  <form method="post" class="pum-form pum-batch-form pum-upgrade-form" data-ays="<?php _e( 'This can sometimes take a few minutes, are you ready to begin?', 'popup-maker' ); ?>" data-upgrade_id="<?php echo $args['upgrade_id']; ?>" data-step="<?php echo (int) $args['step']; ?>" data-nonce="<?php echo esc_attr( wp_create_nonce( 'pum_upgrade_ajax_nonce' ) ); ?>">
248
 
249
- <p><small><?php _e( 'The button below will do process these changes automatically for you.', 'popup-maker' ); ?></small></p>
 
 
250
  <div class="pum-field pum-field-button pum-field-submit">
251
  <?php submit_button( ! empty( $resume_upgrade ) ? __( 'Finish Upgrades', 'popup-maker' ) : __( 'Process Changes', 'popup-maker' ), 'secondary', 'submit', false ); ?>
252
  </div>
37
  * Popup Maker initial version.
38
  *
39
  * @var string
40
+ */
41
  public static $initial_version;
42
 
43
  /**
47
  */
48
  public static $db_version;
49
 
50
+ /**
51
+ * Popup Maker install date.
52
+ *
53
+ * @var string
54
+ */
55
+ public static $installed_on;
56
+
57
  /**
58
  * Gets everything going with a singleton instance.
59
  *
97
  self::$upgraded_from = get_option( 'pum_ver_upgraded_from' );
98
  self::$initial_version = get_option( 'pum_initial_version' );
99
  self::$db_version = get_option( 'pum_db_ver' );
100
+ self::$installed_on = get_option( 'pum_installed_on' );
101
 
102
  /**
103
  * If no version set check if a deprecated one exists.
152
  }
153
 
154
  // If no current db version, but prior install detected, set db version correctly.
 
155
  // Here for backward compatibility.
156
  if ( ! self::$db_version || self::$db_version < Popup_Maker::$DB_VER ) {
157
  self::$db_version = Popup_Maker::$DB_VER;
158
  update_option( 'pum_db_ver', self::$db_version );
159
  }
160
+
161
+ /**
162
+ * Back fill the initial version with the oldest version we can detect.
163
+ */
164
+ if ( ! self::$installed_on ) {
165
+ $installed_on = current_time( 'mysql' );
166
+
167
+ $review_installed_on = get_option( 'pum_reviews_installed_on' );
168
+ if ( ! empty( $review_installed_on ) ) {
169
+ $installed_on = $review_installed_on;
170
+ }
171
+
172
+ self::$installed_on = $installed_on;
173
+
174
+ update_option( 'pum_installed_on', self::$installed_on );
175
+ }
176
  }
177
 
178
  /**
269
 
270
  <form method="post" class="pum-form pum-batch-form pum-upgrade-form" data-ays="<?php _e( 'This can sometimes take a few minutes, are you ready to begin?', 'popup-maker' ); ?>" data-upgrade_id="<?php echo $args['upgrade_id']; ?>" data-step="<?php echo (int) $args['step']; ?>" data-nonce="<?php echo esc_attr( wp_create_nonce( 'pum_upgrade_ajax_nonce' ) ); ?>">
271
 
272
+ <p>
273
+ <small><?php _e( 'The button below will do process these changes automatically for you.', 'popup-maker' ); ?></small>
274
+ </p>
275
  <div class="pum-field pum-field-button pum-field-submit">
276
  <?php submit_button( ! empty( $resume_upgrade ) ? __( 'Finish Upgrades', 'popup-maker' ) : __( 'Process Changes', 'popup-maker' ), 'secondary', 'submit', false ); ?>
277
  </div>
includes/admin/settings/register-settings.php CHANGED
@@ -996,23 +996,26 @@ function popmake_hook_callback( $args ) {
996
  *
997
  */
998
  function popmake_output_pum_styles() {
 
 
 
 
 
 
 
 
999
  ob_start();
1000
 
1001
  ?>
1002
- <button type="button" id="show_pum_styles"
1003
- onclick="jQuery('#pum_style_output').slideDown();jQuery(this).hide();"><?php _e( 'Show Popup Maker CSS', 'popup-maker' ); ?></button>
1004
  <p class="pum-desc desc">Use this to quickly copy Popup Maker's CSS to your own stylesheet.</p>
1005
 
1006
  <div id="pum_style_output" style="display:none;">
1007
  <h4><?php _e( 'Core Styles', 'popup-maker' ); ?></h4>
1008
- <textarea wrap="off" style="white-space: pre; width: 100%;">
1009
- /* Popup Maker Core Styles */
1010
- <?php echo file_get_contents( Popup_Maker::$DIR . 'assets/css/site' . PUM_Site_Assets::$suffix . '.css' ); ?>
1011
- </textarea>
1012
 
1013
  <h4><?php _e( 'User Theme Styles', 'popup-maker' ); ?></h4>
1014
- <textarea wrap="off"
1015
- style="white-space: pre; width: 100%; min-height: 200px;"><?php echo PUM_AssetCache::generate_font_imports() . PUM_AssetCache::generate_popup_theme_styles(); ?></textarea>
1016
  </div>
1017
 
1018
  <?php
996
  *
997
  */
998
  function popmake_output_pum_styles() {
999
+
1000
+ ob_start();
1001
+ echo '/* Popup Maker Core Styles */';
1002
+ echo file_get_contents( Popup_Maker::$DIR . 'assets/css/site' . PUM_Site_Assets::$suffix . '.css' );
1003
+ $core_styles = ob_get_clean();
1004
+
1005
+ $theme_styles = PUM_AssetCache::generate_font_imports() . PUM_AssetCache::generate_popup_theme_styles();
1006
+
1007
  ob_start();
1008
 
1009
  ?>
1010
+ <button type="button" id="show_pum_styles" onclick="jQuery('#pum_style_output').slideDown();jQuery(this).hide();"><?php _e( 'Show Popup Maker CSS', 'popup-maker' ); ?></button>
 
1011
  <p class="pum-desc desc">Use this to quickly copy Popup Maker's CSS to your own stylesheet.</p>
1012
 
1013
  <div id="pum_style_output" style="display:none;">
1014
  <h4><?php _e( 'Core Styles', 'popup-maker' ); ?></h4>
1015
+ <textarea wrap="off" style="white-space: pre; width: 100%;" readonly="readonly"><?php echo $core_styles; ?></textarea>
 
 
 
1016
 
1017
  <h4><?php _e( 'User Theme Styles', 'popup-maker' ); ?></h4>
1018
+ <textarea wrap="off" style="white-space: pre; width: 100%; min-height: 200px;" readonly="readonly"><?php echo $theme_styles; ?></textarea>
 
1019
  </div>
1020
 
1021
  <?php
includes/class-pum.php CHANGED
@@ -7,7 +7,7 @@ if ( ! defined( 'ABSPATH' ) ) {
7
 
8
  class PUM {
9
 
10
- const VER = '1.7.29';
11
 
12
  const DB_VER = 8;
13
 
7
 
8
  class PUM {
9
 
10
+ const VER = '1.7.30';
11
 
12
  const DB_VER = 8;
13
 
includes/modules/reviews.php CHANGED
@@ -216,7 +216,7 @@ class PUM_Modules_Reviews {
216
  * @param null $group
217
  * @param null $code
218
  *
219
- * @return bool|mixed|void
220
  */
221
  public static function triggers( $group = null, $code = null ) {
222
  static $triggers;
216
  * @param null $group
217
  * @param null $code
218
  *
219
+ * @return bool|mixed
220
  */
221
  public static function triggers( $group = null, $code = null ) {
222
  static $triggers;
languages/popup-maker.pot CHANGED
@@ -42,23 +42,23 @@ msgstr ""
42
  msgid "Settings updated successfully."
43
  msgstr ""
44
 
45
- #: classes/Admin/Ajax.php:126, classes/Admin/Ajax.php:293, classes/Upgrades.php:400
46
  msgid "A batch process ID must be present to continue."
47
  msgstr ""
48
 
49
- #: classes/Admin/Ajax.php:133, classes/Upgrades.php:407
50
  msgid "You do not have permission to initiate this request. Contact an administrator for more information."
51
  msgstr ""
52
 
53
- #: classes/Admin/Ajax.php:142, classes/Admin/Ajax.php:302, classes/Upgrades.php:426
54
  msgid "%s is an invalid batch process ID."
55
  msgstr ""
56
 
57
- #: classes/Admin/Ajax.php:151, classes/Admin/Ajax.php:311, classes/Upgrades.php:533
58
  msgid "An invalid file path is registered for the %1$s batch process handler."
59
  msgstr ""
60
 
61
- #: classes/Admin/Ajax.php:159, classes/Admin/Ajax.php:319, classes/Upgrades.php:539
62
  msgid "%1$s is an invalid handler for the %2$s batch process. Please try again."
63
  msgstr ""
64
 
@@ -114,7 +114,7 @@ msgstr ""
114
  msgid "Are you sure you want to delete this cookie?"
115
  msgstr ""
116
 
117
- #: classes/Admin/Assets.php:74, classes/Admin/Popups.php:495, classes/Admin/Settings.php:251, classes/Shortcode/Subscribe.php:124, classes/Shortcode/Subscribe.php:135, classes/Shortcode/Subscribe.php:291, includes/input-options.php:26, includes/input-options.php:115
118
  msgid "None"
119
  msgstr ""
120
 
@@ -138,11 +138,11 @@ msgstr ""
138
  msgid "We are sorry but your browser is not compatible with this kind of file upload. Please upgrade your browser."
139
  msgstr ""
140
 
141
- #: classes/Admin/Helpers.php:200, classes/Admin/Popups.php:511, classes/Admin/Popups.php:679, classes/Admin/Popups.php:761, classes/Shortcode/Popup.php:240, includes/class-popmake-fields.php:175
142
  msgid "ms"
143
  msgstr ""
144
 
145
- #: classes/Admin/Helpers.php:369, classes/Admin/Popups.php:295, classes/Admin/Popups.php:666, classes/Admin/Templates.php:334, classes/Shortcode/Popup.php:55, classes/Shortcode/Popup.php:77, templates/popup.php:44
146
  msgid "Close"
147
  msgstr ""
148
 
@@ -182,11 +182,11 @@ msgstr ""
182
  msgid "All Themes"
183
  msgstr ""
184
 
185
- #: classes/Admin/Pages.php:144, classes/Admin/Popups.php:1007, classes/Conditions.php:110
186
  msgid "Categories"
187
  msgstr ""
188
 
189
- #: classes/Admin/Pages.php:145, classes/Admin/Popups.php:1003, classes/Conditions.php:111
190
  msgid "Tags"
191
  msgstr ""
192
 
@@ -194,7 +194,7 @@ msgstr ""
194
  msgid "Popup"
195
  msgstr ""
196
 
197
- #: classes/Admin/Popups.php:63, classes/Admin/Popups.php:394, classes/Shortcode/Popup.php:117, classes/Types.php:52, classes/Types.php:165
198
  msgid "Popup Theme"
199
  msgstr ""
200
 
@@ -254,16 +254,16 @@ msgstr ""
254
  msgid "Targeting"
255
  msgstr ""
256
 
257
- #: classes/Admin/Popups.php:309
258
- msgid "General Settings"
259
  msgstr ""
260
 
261
- #: classes/Admin/Popups.php:312
262
- msgid "Triggers & Cookies"
263
  msgstr ""
264
 
265
- #: classes/Admin/Popups.php:313, classes/Admin/Popups.php:323, classes/Cookies.php:158, classes/Triggers.php:291
266
- msgid "Advanced"
267
  msgstr ""
268
 
269
  #: classes/Admin/Popups.php:316, classes/Site/Assets.php:251
@@ -274,7 +274,7 @@ msgstr ""
274
  msgid "Appearance"
275
  msgstr ""
276
 
277
- #: classes/Admin/Popups.php:320, classes/Admin/Popups.php:403, classes/Shortcode/Popup.php:134, includes/admin/themes/metabox-close-fields.php:156, includes/admin/themes/metabox-title-fields.php:31, includes/class-popmake-popup-theme-fields.php:395
278
  msgid "Size"
279
  msgstr ""
280
 
@@ -294,380 +294,388 @@ msgstr ""
294
  msgid "Alternate Methods"
295
  msgstr ""
296
 
297
- #: classes/Admin/Popups.php:365
298
- msgid "Disable automatic re-triggering of popup after non-ajax form submission."
299
- msgstr ""
300
-
301
- #: classes/Admin/Popups.php:380
302
  msgid "Disable this popup on mobile devices."
303
  msgstr ""
304
 
305
- #: classes/Admin/Popups.php:385
306
  msgid "Disable this popup on tablet devices."
307
  msgstr ""
308
 
309
- #: classes/Admin/Popups.php:395
310
  msgid "Choose a theme for this popup."
311
  msgstr ""
312
 
313
- #: classes/Admin/Popups.php:395
314
  msgid "Customize This Theme"
315
  msgstr ""
316
 
317
- #: classes/Admin/Popups.php:404, classes/Shortcode/Popup.php:135
318
  msgid "Select the size of the popup."
319
  msgstr ""
320
 
321
- #: classes/Admin/Popups.php:409
322
  msgid "Responsive Sizes"
323
  msgstr ""
324
 
325
- #: classes/Admin/Popups.php:410, includes/input-options.php:96
326
  msgid "Nano - 10%"
327
  msgstr ""
328
 
329
- #: classes/Admin/Popups.php:411, includes/input-options.php:97
330
  msgid "Micro - 20%"
331
  msgstr ""
332
 
333
- #: classes/Admin/Popups.php:412, includes/input-options.php:98
334
  msgid "Tiny - 30%"
335
  msgstr ""
336
 
337
- #: classes/Admin/Popups.php:413, includes/input-options.php:99
338
  msgid "Small - 40%"
339
  msgstr ""
340
 
341
- #: classes/Admin/Popups.php:414, includes/input-options.php:100
342
  msgid "Medium - 60%"
343
  msgstr ""
344
 
345
- #: classes/Admin/Popups.php:415, includes/input-options.php:101
346
  msgid "Normal - 70%"
347
  msgstr ""
348
 
349
- #: classes/Admin/Popups.php:416, includes/input-options.php:102
350
  msgid "Large - 80%"
351
  msgstr ""
352
 
353
- #: classes/Admin/Popups.php:417, includes/input-options.php:103
354
  msgid "X Large - 95%"
355
  msgstr ""
356
 
357
- #: classes/Admin/Popups.php:419
358
  msgid "Other Sizes"
359
  msgstr ""
360
 
361
- #: classes/Admin/Popups.php:420, includes/input-options.php:105
362
  msgid "Auto"
363
  msgstr ""
364
 
365
- #: classes/Admin/Popups.php:421, classes/Shortcode/PopupTrigger.php:86, includes/input-options.php:106
366
  msgid "Custom"
367
  msgstr ""
368
 
369
- #: classes/Admin/Popups.php:426
370
  msgid "Min Width"
371
  msgstr ""
372
 
373
- #: classes/Admin/Popups.php:427
374
  msgid "Set a minimum width for the popup."
375
  msgstr ""
376
 
377
- #: classes/Admin/Popups.php:436
378
  msgid "Max Width"
379
  msgstr ""
380
 
381
- #: classes/Admin/Popups.php:437
382
  msgid "Set a maximum width for the popup."
383
  msgstr ""
384
 
385
- #: classes/Admin/Popups.php:446, classes/Shortcode/Popup.php:142, includes/admin/themes/metabox-close-fields.php:71, includes/class-popmake-popup-theme-fields.php:321
386
  msgid "Width"
387
  msgstr ""
388
 
389
- #: classes/Admin/Popups.php:447
390
  msgid "Set a custom width for the popup."
391
  msgstr ""
392
 
393
- #: classes/Admin/Popups.php:456
394
  msgid "Auto Adjusted Height"
395
  msgstr ""
396
 
397
- #: classes/Admin/Popups.php:457
398
  msgid "Checking this option will set height to fit the content."
399
  msgstr ""
400
 
401
- #: classes/Admin/Popups.php:465, classes/Shortcode/Popup.php:153, includes/admin/themes/metabox-close-fields.php:62, includes/class-popmake-popup-theme-fields.php:311
402
  msgid "Height"
403
  msgstr ""
404
 
405
- #: classes/Admin/Popups.php:466
406
  msgid "Set a custom height for the popup."
407
  msgstr ""
408
 
409
- #: classes/Admin/Popups.php:476
410
  msgid "Scrollable Content"
411
  msgstr ""
412
 
413
- #: classes/Admin/Popups.php:477
414
  msgid "Checking this option will add a scroll bar to your content."
415
  msgstr ""
416
 
417
- #: classes/Admin/Popups.php:489, classes/Shortcode/Popup.php:224
418
  msgid "Animation Type"
419
  msgstr ""
420
 
421
- #: classes/Admin/Popups.php:490, classes/Shortcode/Popup.php:225
422
  msgid "Select an animation type for your popup."
423
  msgstr ""
424
 
425
- #: classes/Admin/Popups.php:496, includes/input-options.php:116
426
  msgid "Slide"
427
  msgstr ""
428
 
429
- #: classes/Admin/Popups.php:497, includes/input-options.php:117
430
  msgid "Fade"
431
  msgstr ""
432
 
433
- #: classes/Admin/Popups.php:498, includes/input-options.php:118
434
  msgid "Fade and Slide"
435
  msgstr ""
436
 
437
- #: classes/Admin/Popups.php:499, includes/input-options.php:119
438
  msgid "Grow"
439
  msgstr ""
440
 
441
- #: classes/Admin/Popups.php:500, includes/input-options.php:120
442
  msgid "Grow and Slide"
443
  msgstr ""
444
 
445
- #: classes/Admin/Popups.php:504, classes/Shortcode/Popup.php:232
446
  msgid "Animation Speed"
447
  msgstr ""
448
 
449
- #: classes/Admin/Popups.php:505, classes/Shortcode/Popup.php:233
450
  msgid "Set the animation speed for the popup."
451
  msgstr ""
452
 
453
- #: classes/Admin/Popups.php:518, classes/Shortcode/Popup.php:243
454
  msgid "Animation Origin"
455
  msgstr ""
456
 
457
- #: classes/Admin/Popups.php:519, classes/Shortcode/Popup.php:244
458
  msgid "Choose where the animation will begin."
459
  msgstr ""
460
 
461
- #: classes/Admin/Popups.php:523, classes/Admin/Popups.php:563, classes/Admin/Popups.php:564, classes/Shortcode/Popup.php:176, classes/Shortcode/Popup.php:177, includes/admin/themes/metabox-close-fields.php:103, includes/class-popmake-popup-theme-fields.php:339, includes/input-options.php:129
462
  msgid "Top"
463
  msgstr ""
464
 
465
- #: classes/Admin/Popups.php:524, classes/Admin/Popups.php:591, classes/Admin/Popups.php:592, classes/Shortcode/Popup.php:198, classes/Shortcode/Popup.php:199, classes/Shortcode/Subscribe.php:279, includes/admin/themes/metabox-close-fields.php:112, includes/class-popmake-popup-theme-fields.php:349, includes/input-options.php:85, includes/input-options.php:130
466
  msgid "Left"
467
  msgstr ""
468
 
469
- #: classes/Admin/Popups.php:525, classes/Admin/Popups.php:577, classes/Admin/Popups.php:578, classes/Shortcode/Popup.php:187, classes/Shortcode/Popup.php:188, includes/admin/themes/metabox-close-fields.php:121, includes/class-popmake-popup-theme-fields.php:359, includes/input-options.php:131
470
  msgid "Bottom"
471
  msgstr ""
472
 
473
- #: classes/Admin/Popups.php:526, classes/Admin/Popups.php:605, classes/Admin/Popups.php:606, classes/Shortcode/Popup.php:209, classes/Shortcode/Popup.php:210, classes/Shortcode/Subscribe.php:281, includes/admin/themes/metabox-close-fields.php:130, includes/class-popmake-popup-theme-fields.php:369, includes/input-options.php:87, includes/input-options.php:132
474
  msgid "Right"
475
  msgstr ""
476
 
477
- #: classes/Admin/Popups.php:527, classes/Admin/Popups.php:551, includes/input-options.php:133, includes/input-options.php:150, includes/input-options.php:167
478
  msgid "Top Left"
479
  msgstr ""
480
 
481
- #: classes/Admin/Popups.php:528, classes/Admin/Popups.php:552, includes/input-options.php:134, includes/input-options.php:151
482
  msgid "Top Center"
483
  msgstr ""
484
 
485
- #: classes/Admin/Popups.php:529, classes/Admin/Popups.php:553, includes/input-options.php:135, includes/input-options.php:152, includes/input-options.php:168
486
  msgid "Top Right"
487
  msgstr ""
488
 
489
- #: classes/Admin/Popups.php:530, classes/Admin/Popups.php:554, includes/input-options.php:136, includes/input-options.php:153
490
  msgid "Middle Left"
491
  msgstr ""
492
 
493
- #: classes/Admin/Popups.php:531, classes/Admin/Popups.php:555, includes/input-options.php:137, includes/input-options.php:154
494
  msgid "Middle Center"
495
  msgstr ""
496
 
497
- #: classes/Admin/Popups.php:532, classes/Admin/Popups.php:556, includes/input-options.php:138, includes/input-options.php:155
498
  msgid "Middle Right"
499
  msgstr ""
500
 
501
- #: classes/Admin/Popups.php:533, classes/Admin/Popups.php:557, includes/input-options.php:139, includes/input-options.php:156, includes/input-options.php:169
502
  msgid "Bottom Left"
503
  msgstr ""
504
 
505
- #: classes/Admin/Popups.php:534, classes/Admin/Popups.php:558, includes/input-options.php:140, includes/input-options.php:157
506
  msgid "Bottom Center"
507
  msgstr ""
508
 
509
- #: classes/Admin/Popups.php:535, classes/Admin/Popups.php:559, includes/input-options.php:141, includes/input-options.php:158, includes/input-options.php:170
510
  msgid "Bottom Right"
511
  msgstr ""
512
 
513
- #: classes/Admin/Popups.php:545, classes/Shortcode/Popup.php:168, includes/admin/themes/metabox-close-fields.php:85, includes/class-popmake-popup-theme-fields.php:331
514
  msgid "Location"
515
  msgstr ""
516
 
517
- #: classes/Admin/Popups.php:546, classes/Shortcode/Popup.php:169
518
  msgid "Choose where the popup will be displayed."
519
  msgstr ""
520
 
521
- #: classes/Admin/Popups.php:564, classes/Admin/Popups.php:578, classes/Admin/Popups.php:592, classes/Admin/Popups.php:606, classes/Shortcode/Popup.php:177, classes/Shortcode/Popup.php:188, classes/Shortcode/Popup.php:199, classes/Shortcode/Popup.php:210
522
  msgctxt "Screen Edge: top, bottom"
523
  msgid "Distance from the %s edge of the screen."
524
  msgstr ""
525
 
526
- #: classes/Admin/Popups.php:619
527
  msgid "Position from Trigger"
528
  msgstr ""
529
 
530
- #: classes/Admin/Popups.php:620
531
  msgid "This will position the popup in relation to the %sClick Trigger%s."
532
  msgstr ""
533
 
534
- #: classes/Admin/Popups.php:626
535
  msgid "Fixed Postioning"
536
  msgstr ""
537
 
538
- #: classes/Admin/Popups.php:627
539
  msgid "Checking this sets the positioning of the popup to fixed."
540
  msgstr ""
541
 
542
- #: classes/Admin/Popups.php:634, classes/Shortcode/Popup.php:127
543
  msgid "Disable Overlay"
544
  msgstr ""
545
 
546
- #: classes/Admin/Popups.php:635, classes/Shortcode/Popup.php:128
547
  msgid "Checking this will disable and hide the overlay for this popup."
548
  msgstr ""
549
 
550
- #: classes/Admin/Popups.php:640
551
  msgid "Stackable"
552
  msgstr ""
553
 
554
- #: classes/Admin/Popups.php:641
555
  msgid "This enables other popups to remain open."
556
  msgstr ""
557
 
558
- #: classes/Admin/Popups.php:646
559
  msgid "Disable Repositioning"
560
  msgstr ""
561
 
562
- #: classes/Admin/Popups.php:647
563
  msgid "This will disable automatic repositioning of the popup on window resizing."
564
  msgstr ""
565
 
566
- #: classes/Admin/Popups.php:652
567
  msgid "Popup Z-Index"
568
  msgstr ""
569
 
570
- #: classes/Admin/Popups.php:653
571
  msgid "Change the z-index layer level for the popup."
572
  msgstr ""
573
 
574
- #: classes/Admin/Popups.php:665
575
  msgid "Close Text"
576
  msgstr ""
577
 
578
- #: classes/Admin/Popups.php:667
579
  msgid "Override the default close text."
580
  msgstr ""
581
 
582
- #: classes/Admin/Popups.php:672
583
  msgid "Close Button Delay"
584
  msgstr ""
585
 
586
- #: classes/Admin/Popups.php:673
587
  msgid "This delays the display of the close button."
588
  msgstr ""
589
 
590
- #: classes/Admin/Popups.php:685, classes/Shortcode/Popup.php:255
591
  msgid "Click Overlay to Close"
592
  msgstr ""
593
 
594
- #: classes/Admin/Popups.php:686, classes/Shortcode/Popup.php:256
595
  msgid "Checking this will cause popup to close when user clicks on overlay."
596
  msgstr ""
597
 
598
- #: classes/Admin/Popups.php:691
599
  msgid "Press ESC to Close"
600
  msgstr ""
601
 
602
- #: classes/Admin/Popups.php:692
603
  msgid "Checking this will cause popup to close when user presses ESC key."
604
  msgstr ""
605
 
606
- #: classes/Admin/Popups.php:697
607
  msgid "Press F4 to Close"
608
  msgstr ""
609
 
610
- #: classes/Admin/Popups.php:698
611
  msgid "Checking this will cause popup to close when user presses F4 key."
612
  msgstr ""
613
 
614
- #: classes/Admin/Popups.php:881, classes/Admin/Popups.php:992
 
 
 
 
 
 
 
 
 
 
 
 
615
  msgid "Opens"
616
  msgstr ""
617
 
618
- #: classes/Admin/Popups.php:886, classes/Admin/Popups.php:993
619
  msgid "Conversions"
620
  msgstr ""
621
 
622
- #: classes/Admin/Popups.php:892, classes/Admin/Popups.php:994
623
  msgid "Conversion Rate"
624
  msgstr ""
625
 
626
- #: classes/Admin/Popups.php:899
627
  msgid "Reset Counts"
628
  msgstr ""
629
 
630
- #: classes/Admin/Popups.php:903
631
  msgid "Last Reset"
632
  msgstr ""
633
 
634
- #: classes/Admin/Popups.php:904
635
  msgid "Previous Opens"
636
  msgstr ""
637
 
638
- #: classes/Admin/Popups.php:908
639
  msgid "Previous Conversions"
640
  msgstr ""
641
 
642
- #: classes/Admin/Popups.php:911
643
  msgid "Lifetime Opens"
644
  msgstr ""
645
 
646
- #: classes/Admin/Popups.php:915
647
  msgid "Lifetime Conversions"
648
  msgstr ""
649
 
650
- #: classes/Admin/Popups.php:989, classes/Admin/Templates.php:642, classes/Privacy.php:217, classes/Shortcode/Subscribe.php:182, classes/Shortcode/Subscribe.php:236
651
  msgid "Name"
652
  msgstr ""
653
 
654
- #: classes/Admin/Popups.php:990
655
  msgid "Title"
656
  msgstr ""
657
 
658
- #: classes/Admin/Popups.php:991
659
  msgid "CSS Classes"
660
  msgstr ""
661
 
662
- #: classes/Admin/Popups.php:1068, classes/Admin/Subscribers/Table.php:281
663
  msgid "N/A"
664
  msgstr ""
665
 
666
- #: classes/Admin/Popups.php:1157
667
  msgid "Show all categories"
668
  msgstr ""
669
 
670
- #: classes/Admin/Popups.php:1170
671
  msgid "Show all tags"
672
  msgstr ""
673
 
@@ -843,8 +851,8 @@ msgstr ""
843
  msgid "Consent Usage Text"
844
  msgstr ""
845
 
846
- #: classes/Admin/Settings.php:386
847
- msgid "You can use %1$%2$s to insert a link to your privacy policy. To customize the link text use %1$s:Link Text%2$s"
848
  msgstr ""
849
 
850
  #: classes/Admin/Settings.php:388, classes/Shortcode/Subscribe.php:382
@@ -2020,10 +2028,6 @@ msgstr ""
2020
  msgid "Radio forces the user to make a choice, often resulting in more optins."
2021
  msgstr ""
2022
 
2023
- #: classes/Shortcode/Subscribe.php:380
2024
- msgid "You can use %1$s%2$s to insert a link to your privacy policy. To customize the link text use %1$s:Link Text%2$s"
2025
- msgstr ""
2026
-
2027
  #: classes/Shortcode/Subscribe.php:390, includes/integrations/class-pum-cf7.php:137, includes/integrations/class-pum-gravity-forms.php:132, includes/integrations/ninja-forms/Actions/ClosePopup.php:36, includes/modules/admin-bar.php:463
2028
  msgid "Close Popup"
2029
  msgstr ""
@@ -2241,35 +2245,35 @@ msgctxt "Post Type Singular: Popup, Theme"
2241
  msgid "%1$s submitted."
2242
  msgstr ""
2243
 
2244
- #: classes/Upgrades.php:224
2245
  msgid "Changes in the latest version of Popup Maker or a PM extension require changes your settings to ensure everything continues to work correctly."
2246
  msgstr ""
2247
 
2248
- #: classes/Upgrades.php:226
2249
  msgid "Popup Maker needs to complete a the update of your settings that was previously started."
2250
  msgstr ""
2251
 
2252
- #: classes/Upgrades.php:247
2253
  msgid "This can sometimes take a few minutes, are you ready to begin?"
2254
  msgstr ""
2255
 
2256
- #: classes/Upgrades.php:249
2257
  msgid "The button below will do process these changes automatically for you."
2258
  msgstr ""
2259
 
2260
- #: classes/Upgrades.php:251
2261
  msgid "Finish Upgrades"
2262
  msgstr ""
2263
 
2264
- #: classes/Upgrades.php:251
2265
  msgid "Process Changes"
2266
  msgstr ""
2267
 
2268
- #: classes/Upgrades.php:559
2269
  msgid "Upgrades"
2270
  msgstr ""
2271
 
2272
- #: classes/Upgrades.php:570
2273
  msgid "No upgrades currently required."
2274
  msgstr ""
2275
 
@@ -2414,15 +2418,15 @@ msgstr ""
2414
  msgid "Your license key has reached its activation limit. %View possible upgrades% now."
2415
  msgstr ""
2416
 
2417
- #: includes/admin/settings/register-settings.php:1003
2418
  msgid "Show Popup Maker CSS"
2419
  msgstr ""
2420
 
2421
- #: includes/admin/settings/register-settings.php:1007
2422
  msgid "Core Styles"
2423
  msgstr ""
2424
 
2425
- #: includes/admin/settings/register-settings.php:1013
2426
  msgid "User Theme Styles"
2427
  msgstr ""
2428
 
42
  msgid "Settings updated successfully."
43
  msgstr ""
44
 
45
+ #: classes/Admin/Ajax.php:126, classes/Admin/Ajax.php:293, classes/Upgrades.php:425
46
  msgid "A batch process ID must be present to continue."
47
  msgstr ""
48
 
49
+ #: classes/Admin/Ajax.php:133, classes/Upgrades.php:432
50
  msgid "You do not have permission to initiate this request. Contact an administrator for more information."
51
  msgstr ""
52
 
53
+ #: classes/Admin/Ajax.php:142, classes/Admin/Ajax.php:302, classes/Upgrades.php:451
54
  msgid "%s is an invalid batch process ID."
55
  msgstr ""
56
 
57
+ #: classes/Admin/Ajax.php:151, classes/Admin/Ajax.php:311, classes/Upgrades.php:558
58
  msgid "An invalid file path is registered for the %1$s batch process handler."
59
  msgstr ""
60
 
61
+ #: classes/Admin/Ajax.php:159, classes/Admin/Ajax.php:319, classes/Upgrades.php:564
62
  msgid "%1$s is an invalid handler for the %2$s batch process. Please try again."
63
  msgstr ""
64
 
114
  msgid "Are you sure you want to delete this cookie?"
115
  msgstr ""
116
 
117
+ #: classes/Admin/Assets.php:74, classes/Admin/Popups.php:491, classes/Admin/Settings.php:251, classes/Shortcode/Subscribe.php:124, classes/Shortcode/Subscribe.php:135, classes/Shortcode/Subscribe.php:291, includes/input-options.php:26, includes/input-options.php:115
118
  msgid "None"
119
  msgstr ""
120
 
138
  msgid "We are sorry but your browser is not compatible with this kind of file upload. Please upgrade your browser."
139
  msgstr ""
140
 
141
+ #: classes/Admin/Helpers.php:200, classes/Admin/Popups.php:507, classes/Admin/Popups.php:675, classes/Admin/Popups.php:772, classes/Shortcode/Popup.php:240, includes/class-popmake-fields.php:175
142
  msgid "ms"
143
  msgstr ""
144
 
145
+ #: classes/Admin/Helpers.php:369, classes/Admin/Popups.php:295, classes/Admin/Popups.php:662, classes/Admin/Templates.php:334, classes/Shortcode/Popup.php:55, classes/Shortcode/Popup.php:77, templates/popup.php:44
146
  msgid "Close"
147
  msgstr ""
148
 
182
  msgid "All Themes"
183
  msgstr ""
184
 
185
+ #: classes/Admin/Pages.php:144, classes/Admin/Popups.php:1018, classes/Conditions.php:110
186
  msgid "Categories"
187
  msgstr ""
188
 
189
+ #: classes/Admin/Pages.php:145, classes/Admin/Popups.php:1014, classes/Conditions.php:111
190
  msgid "Tags"
191
  msgstr ""
192
 
194
  msgid "Popup"
195
  msgstr ""
196
 
197
+ #: classes/Admin/Popups.php:63, classes/Admin/Popups.php:390, classes/Shortcode/Popup.php:117, classes/Types.php:52, classes/Types.php:165
198
  msgid "Popup Theme"
199
  msgstr ""
200
 
254
  msgid "Targeting"
255
  msgstr ""
256
 
257
+ #: classes/Admin/Popups.php:298, classes/Admin/Popups.php:323, classes/Admin/Popups.php:330, classes/Cookies.php:158, classes/Triggers.php:291
258
+ msgid "Advanced"
259
  msgstr ""
260
 
261
+ #: classes/Admin/Popups.php:310
262
+ msgid "General Settings"
263
  msgstr ""
264
 
265
+ #: classes/Admin/Popups.php:313
266
+ msgid "Triggers & Cookies"
267
  msgstr ""
268
 
269
  #: classes/Admin/Popups.php:316, classes/Site/Assets.php:251
274
  msgid "Appearance"
275
  msgstr ""
276
 
277
+ #: classes/Admin/Popups.php:320, classes/Admin/Popups.php:399, classes/Shortcode/Popup.php:134, includes/admin/themes/metabox-close-fields.php:156, includes/admin/themes/metabox-title-fields.php:31, includes/class-popmake-popup-theme-fields.php:395
278
  msgid "Size"
279
  msgstr ""
280
 
294
  msgid "Alternate Methods"
295
  msgstr ""
296
 
297
+ #: classes/Admin/Popups.php:376
 
 
 
 
298
  msgid "Disable this popup on mobile devices."
299
  msgstr ""
300
 
301
+ #: classes/Admin/Popups.php:381
302
  msgid "Disable this popup on tablet devices."
303
  msgstr ""
304
 
305
+ #: classes/Admin/Popups.php:391
306
  msgid "Choose a theme for this popup."
307
  msgstr ""
308
 
309
+ #: classes/Admin/Popups.php:391
310
  msgid "Customize This Theme"
311
  msgstr ""
312
 
313
+ #: classes/Admin/Popups.php:400, classes/Shortcode/Popup.php:135
314
  msgid "Select the size of the popup."
315
  msgstr ""
316
 
317
+ #: classes/Admin/Popups.php:405
318
  msgid "Responsive Sizes"
319
  msgstr ""
320
 
321
+ #: classes/Admin/Popups.php:406, includes/input-options.php:96
322
  msgid "Nano - 10%"
323
  msgstr ""
324
 
325
+ #: classes/Admin/Popups.php:407, includes/input-options.php:97
326
  msgid "Micro - 20%"
327
  msgstr ""
328
 
329
+ #: classes/Admin/Popups.php:408, includes/input-options.php:98
330
  msgid "Tiny - 30%"
331
  msgstr ""
332
 
333
+ #: classes/Admin/Popups.php:409, includes/input-options.php:99
334
  msgid "Small - 40%"
335
  msgstr ""
336
 
337
+ #: classes/Admin/Popups.php:410, includes/input-options.php:100
338
  msgid "Medium - 60%"
339
  msgstr ""
340
 
341
+ #: classes/Admin/Popups.php:411, includes/input-options.php:101
342
  msgid "Normal - 70%"
343
  msgstr ""
344
 
345
+ #: classes/Admin/Popups.php:412, includes/input-options.php:102
346
  msgid "Large - 80%"
347
  msgstr ""
348
 
349
+ #: classes/Admin/Popups.php:413, includes/input-options.php:103
350
  msgid "X Large - 95%"
351
  msgstr ""
352
 
353
+ #: classes/Admin/Popups.php:415
354
  msgid "Other Sizes"
355
  msgstr ""
356
 
357
+ #: classes/Admin/Popups.php:416, includes/input-options.php:105
358
  msgid "Auto"
359
  msgstr ""
360
 
361
+ #: classes/Admin/Popups.php:417, classes/Shortcode/PopupTrigger.php:86, includes/input-options.php:106
362
  msgid "Custom"
363
  msgstr ""
364
 
365
+ #: classes/Admin/Popups.php:422
366
  msgid "Min Width"
367
  msgstr ""
368
 
369
+ #: classes/Admin/Popups.php:423
370
  msgid "Set a minimum width for the popup."
371
  msgstr ""
372
 
373
+ #: classes/Admin/Popups.php:432
374
  msgid "Max Width"
375
  msgstr ""
376
 
377
+ #: classes/Admin/Popups.php:433
378
  msgid "Set a maximum width for the popup."
379
  msgstr ""
380
 
381
+ #: classes/Admin/Popups.php:442, classes/Shortcode/Popup.php:142, includes/admin/themes/metabox-close-fields.php:71, includes/class-popmake-popup-theme-fields.php:321
382
  msgid "Width"
383
  msgstr ""
384
 
385
+ #: classes/Admin/Popups.php:443
386
  msgid "Set a custom width for the popup."
387
  msgstr ""
388
 
389
+ #: classes/Admin/Popups.php:452
390
  msgid "Auto Adjusted Height"
391
  msgstr ""
392
 
393
+ #: classes/Admin/Popups.php:453
394
  msgid "Checking this option will set height to fit the content."
395
  msgstr ""
396
 
397
+ #: classes/Admin/Popups.php:461, classes/Shortcode/Popup.php:153, includes/admin/themes/metabox-close-fields.php:62, includes/class-popmake-popup-theme-fields.php:311
398
  msgid "Height"
399
  msgstr ""
400
 
401
+ #: classes/Admin/Popups.php:462
402
  msgid "Set a custom height for the popup."
403
  msgstr ""
404
 
405
+ #: classes/Admin/Popups.php:472
406
  msgid "Scrollable Content"
407
  msgstr ""
408
 
409
+ #: classes/Admin/Popups.php:473
410
  msgid "Checking this option will add a scroll bar to your content."
411
  msgstr ""
412
 
413
+ #: classes/Admin/Popups.php:485, classes/Shortcode/Popup.php:224
414
  msgid "Animation Type"
415
  msgstr ""
416
 
417
+ #: classes/Admin/Popups.php:486, classes/Shortcode/Popup.php:225
418
  msgid "Select an animation type for your popup."
419
  msgstr ""
420
 
421
+ #: classes/Admin/Popups.php:492, includes/input-options.php:116
422
  msgid "Slide"
423
  msgstr ""
424
 
425
+ #: classes/Admin/Popups.php:493, includes/input-options.php:117
426
  msgid "Fade"
427
  msgstr ""
428
 
429
+ #: classes/Admin/Popups.php:494, includes/input-options.php:118
430
  msgid "Fade and Slide"
431
  msgstr ""
432
 
433
+ #: classes/Admin/Popups.php:495, includes/input-options.php:119
434
  msgid "Grow"
435
  msgstr ""
436
 
437
+ #: classes/Admin/Popups.php:496, includes/input-options.php:120
438
  msgid "Grow and Slide"
439
  msgstr ""
440
 
441
+ #: classes/Admin/Popups.php:500, classes/Shortcode/Popup.php:232
442
  msgid "Animation Speed"
443
  msgstr ""
444
 
445
+ #: classes/Admin/Popups.php:501, classes/Shortcode/Popup.php:233
446
  msgid "Set the animation speed for the popup."
447
  msgstr ""
448
 
449
+ #: classes/Admin/Popups.php:514, classes/Shortcode/Popup.php:243
450
  msgid "Animation Origin"
451
  msgstr ""
452
 
453
+ #: classes/Admin/Popups.php:515, classes/Shortcode/Popup.php:244
454
  msgid "Choose where the animation will begin."
455
  msgstr ""
456
 
457
+ #: classes/Admin/Popups.php:519, classes/Admin/Popups.php:559, classes/Admin/Popups.php:560, classes/Shortcode/Popup.php:176, classes/Shortcode/Popup.php:177, includes/admin/themes/metabox-close-fields.php:103, includes/class-popmake-popup-theme-fields.php:339, includes/input-options.php:129
458
  msgid "Top"
459
  msgstr ""
460
 
461
+ #: classes/Admin/Popups.php:520, classes/Admin/Popups.php:587, classes/Admin/Popups.php:588, classes/Shortcode/Popup.php:198, classes/Shortcode/Popup.php:199, classes/Shortcode/Subscribe.php:279, includes/admin/themes/metabox-close-fields.php:112, includes/class-popmake-popup-theme-fields.php:349, includes/input-options.php:85, includes/input-options.php:130
462
  msgid "Left"
463
  msgstr ""
464
 
465
+ #: classes/Admin/Popups.php:521, classes/Admin/Popups.php:573, classes/Admin/Popups.php:574, classes/Shortcode/Popup.php:187, classes/Shortcode/Popup.php:188, includes/admin/themes/metabox-close-fields.php:121, includes/class-popmake-popup-theme-fields.php:359, includes/input-options.php:131
466
  msgid "Bottom"
467
  msgstr ""
468
 
469
+ #: classes/Admin/Popups.php:522, classes/Admin/Popups.php:601, classes/Admin/Popups.php:602, classes/Shortcode/Popup.php:209, classes/Shortcode/Popup.php:210, classes/Shortcode/Subscribe.php:281, includes/admin/themes/metabox-close-fields.php:130, includes/class-popmake-popup-theme-fields.php:369, includes/input-options.php:87, includes/input-options.php:132
470
  msgid "Right"
471
  msgstr ""
472
 
473
+ #: classes/Admin/Popups.php:523, classes/Admin/Popups.php:547, includes/input-options.php:133, includes/input-options.php:150, includes/input-options.php:167
474
  msgid "Top Left"
475
  msgstr ""
476
 
477
+ #: classes/Admin/Popups.php:524, classes/Admin/Popups.php:548, includes/input-options.php:134, includes/input-options.php:151
478
  msgid "Top Center"
479
  msgstr ""
480
 
481
+ #: classes/Admin/Popups.php:525, classes/Admin/Popups.php:549, includes/input-options.php:135, includes/input-options.php:152, includes/input-options.php:168
482
  msgid "Top Right"
483
  msgstr ""
484
 
485
+ #: classes/Admin/Popups.php:526, classes/Admin/Popups.php:550, includes/input-options.php:136, includes/input-options.php:153
486
  msgid "Middle Left"
487
  msgstr ""
488
 
489
+ #: classes/Admin/Popups.php:527, classes/Admin/Popups.php:551, includes/input-options.php:137, includes/input-options.php:154
490
  msgid "Middle Center"
491
  msgstr ""
492
 
493
+ #: classes/Admin/Popups.php:528, classes/Admin/Popups.php:552, includes/input-options.php:138, includes/input-options.php:155
494
  msgid "Middle Right"
495
  msgstr ""
496
 
497
+ #: classes/Admin/Popups.php:529, classes/Admin/Popups.php:553, includes/input-options.php:139, includes/input-options.php:156, includes/input-options.php:169
498
  msgid "Bottom Left"
499
  msgstr ""
500
 
501
+ #: classes/Admin/Popups.php:530, classes/Admin/Popups.php:554, includes/input-options.php:140, includes/input-options.php:157
502
  msgid "Bottom Center"
503
  msgstr ""
504
 
505
+ #: classes/Admin/Popups.php:531, classes/Admin/Popups.php:555, includes/input-options.php:141, includes/input-options.php:158, includes/input-options.php:170
506
  msgid "Bottom Right"
507
  msgstr ""
508
 
509
+ #: classes/Admin/Popups.php:541, classes/Shortcode/Popup.php:168, includes/admin/themes/metabox-close-fields.php:85, includes/class-popmake-popup-theme-fields.php:331
510
  msgid "Location"
511
  msgstr ""
512
 
513
+ #: classes/Admin/Popups.php:542, classes/Shortcode/Popup.php:169
514
  msgid "Choose where the popup will be displayed."
515
  msgstr ""
516
 
517
+ #: classes/Admin/Popups.php:560, classes/Admin/Popups.php:574, classes/Admin/Popups.php:588, classes/Admin/Popups.php:602, classes/Shortcode/Popup.php:177, classes/Shortcode/Popup.php:188, classes/Shortcode/Popup.php:199, classes/Shortcode/Popup.php:210
518
  msgctxt "Screen Edge: top, bottom"
519
  msgid "Distance from the %s edge of the screen."
520
  msgstr ""
521
 
522
+ #: classes/Admin/Popups.php:615
523
  msgid "Position from Trigger"
524
  msgstr ""
525
 
526
+ #: classes/Admin/Popups.php:616
527
  msgid "This will position the popup in relation to the %sClick Trigger%s."
528
  msgstr ""
529
 
530
+ #: classes/Admin/Popups.php:622
531
  msgid "Fixed Postioning"
532
  msgstr ""
533
 
534
+ #: classes/Admin/Popups.php:623
535
  msgid "Checking this sets the positioning of the popup to fixed."
536
  msgstr ""
537
 
538
+ #: classes/Admin/Popups.php:630, classes/Shortcode/Popup.php:127
539
  msgid "Disable Overlay"
540
  msgstr ""
541
 
542
+ #: classes/Admin/Popups.php:631, classes/Shortcode/Popup.php:128
543
  msgid "Checking this will disable and hide the overlay for this popup."
544
  msgstr ""
545
 
546
+ #: classes/Admin/Popups.php:636
547
  msgid "Stackable"
548
  msgstr ""
549
 
550
+ #: classes/Admin/Popups.php:637
551
  msgid "This enables other popups to remain open."
552
  msgstr ""
553
 
554
+ #: classes/Admin/Popups.php:642
555
  msgid "Disable Repositioning"
556
  msgstr ""
557
 
558
+ #: classes/Admin/Popups.php:643
559
  msgid "This will disable automatic repositioning of the popup on window resizing."
560
  msgstr ""
561
 
562
+ #: classes/Admin/Popups.php:648
563
  msgid "Popup Z-Index"
564
  msgstr ""
565
 
566
+ #: classes/Admin/Popups.php:649
567
  msgid "Change the z-index layer level for the popup."
568
  msgstr ""
569
 
570
+ #: classes/Admin/Popups.php:661
571
  msgid "Close Text"
572
  msgstr ""
573
 
574
+ #: classes/Admin/Popups.php:663
575
  msgid "Override the default close text."
576
  msgstr ""
577
 
578
+ #: classes/Admin/Popups.php:668
579
  msgid "Close Button Delay"
580
  msgstr ""
581
 
582
+ #: classes/Admin/Popups.php:669
583
  msgid "This delays the display of the close button."
584
  msgstr ""
585
 
586
+ #: classes/Admin/Popups.php:681, classes/Shortcode/Popup.php:255
587
  msgid "Click Overlay to Close"
588
  msgstr ""
589
 
590
+ #: classes/Admin/Popups.php:682, classes/Shortcode/Popup.php:256
591
  msgid "Checking this will cause popup to close when user clicks on overlay."
592
  msgstr ""
593
 
594
+ #: classes/Admin/Popups.php:687
595
  msgid "Press ESC to Close"
596
  msgstr ""
597
 
598
+ #: classes/Admin/Popups.php:688
599
  msgid "Checking this will cause popup to close when user presses ESC key."
600
  msgstr ""
601
 
602
+ #: classes/Admin/Popups.php:693
603
  msgid "Press F4 to Close"
604
  msgstr ""
605
 
606
+ #: classes/Admin/Popups.php:694
607
  msgid "Checking this will cause popup to close when user presses F4 key."
608
  msgstr ""
609
 
610
+ #: classes/Admin/Popups.php:703
611
+ msgid "Disable automatic re-triggering of popup after non-ajax form submission."
612
+ msgstr ""
613
+
614
+ #: classes/Admin/Popups.php:708
615
+ msgid "Disable accessibility features."
616
+ msgstr ""
617
+
618
+ #: classes/Admin/Popups.php:709
619
+ msgid "This includes trapping the tab key & focus inside popup while open, force focus the first element when popup open, and refocus last click trigger when closed."
620
+ msgstr ""
621
+
622
+ #: classes/Admin/Popups.php:892, classes/Admin/Popups.php:1003
623
  msgid "Opens"
624
  msgstr ""
625
 
626
+ #: classes/Admin/Popups.php:897, classes/Admin/Popups.php:1004
627
  msgid "Conversions"
628
  msgstr ""
629
 
630
+ #: classes/Admin/Popups.php:903, classes/Admin/Popups.php:1005
631
  msgid "Conversion Rate"
632
  msgstr ""
633
 
634
+ #: classes/Admin/Popups.php:910
635
  msgid "Reset Counts"
636
  msgstr ""
637
 
638
+ #: classes/Admin/Popups.php:914
639
  msgid "Last Reset"
640
  msgstr ""
641
 
642
+ #: classes/Admin/Popups.php:915
643
  msgid "Previous Opens"
644
  msgstr ""
645
 
646
+ #: classes/Admin/Popups.php:919
647
  msgid "Previous Conversions"
648
  msgstr ""
649
 
650
+ #: classes/Admin/Popups.php:922
651
  msgid "Lifetime Opens"
652
  msgstr ""
653
 
654
+ #: classes/Admin/Popups.php:926
655
  msgid "Lifetime Conversions"
656
  msgstr ""
657
 
658
+ #: classes/Admin/Popups.php:1000, classes/Admin/Templates.php:642, classes/Privacy.php:217, classes/Shortcode/Subscribe.php:182, classes/Shortcode/Subscribe.php:236
659
  msgid "Name"
660
  msgstr ""
661
 
662
+ #: classes/Admin/Popups.php:1001
663
  msgid "Title"
664
  msgstr ""
665
 
666
+ #: classes/Admin/Popups.php:1002
667
  msgid "CSS Classes"
668
  msgstr ""
669
 
670
+ #: classes/Admin/Popups.php:1079, classes/Admin/Subscribers/Table.php:281
671
  msgid "N/A"
672
  msgstr ""
673
 
674
+ #: classes/Admin/Popups.php:1169
675
  msgid "Show all categories"
676
  msgstr ""
677
 
678
+ #: classes/Admin/Popups.php:1182
679
  msgid "Show all tags"
680
  msgstr ""
681
 
851
  msgid "Consent Usage Text"
852
  msgstr ""
853
 
854
+ #: classes/Admin/Settings.php:386, classes/Shortcode/Subscribe.php:380
855
+ msgid "You can use %1$s%2$s to insert a link to your privacy policy. To customize the link text use %1$s:Link Text%2$s"
856
  msgstr ""
857
 
858
  #: classes/Admin/Settings.php:388, classes/Shortcode/Subscribe.php:382
2028
  msgid "Radio forces the user to make a choice, often resulting in more optins."
2029
  msgstr ""
2030
 
 
 
 
 
2031
  #: classes/Shortcode/Subscribe.php:390, includes/integrations/class-pum-cf7.php:137, includes/integrations/class-pum-gravity-forms.php:132, includes/integrations/ninja-forms/Actions/ClosePopup.php:36, includes/modules/admin-bar.php:463
2032
  msgid "Close Popup"
2033
  msgstr ""
2245
  msgid "%1$s submitted."
2246
  msgstr ""
2247
 
2248
+ #: classes/Upgrades.php:247
2249
  msgid "Changes in the latest version of Popup Maker or a PM extension require changes your settings to ensure everything continues to work correctly."
2250
  msgstr ""
2251
 
2252
+ #: classes/Upgrades.php:249
2253
  msgid "Popup Maker needs to complete a the update of your settings that was previously started."
2254
  msgstr ""
2255
 
2256
+ #: classes/Upgrades.php:270
2257
  msgid "This can sometimes take a few minutes, are you ready to begin?"
2258
  msgstr ""
2259
 
2260
+ #: classes/Upgrades.php:273
2261
  msgid "The button below will do process these changes automatically for you."
2262
  msgstr ""
2263
 
2264
+ #: classes/Upgrades.php:276
2265
  msgid "Finish Upgrades"
2266
  msgstr ""
2267
 
2268
+ #: classes/Upgrades.php:276
2269
  msgid "Process Changes"
2270
  msgstr ""
2271
 
2272
+ #: classes/Upgrades.php:584
2273
  msgid "Upgrades"
2274
  msgstr ""
2275
 
2276
+ #: classes/Upgrades.php:595
2277
  msgid "No upgrades currently required."
2278
  msgstr ""
2279
 
2418
  msgid "Your license key has reached its activation limit. %View possible upgrades% now."
2419
  msgstr ""
2420
 
2421
+ #: includes/admin/settings/register-settings.php:1010
2422
  msgid "Show Popup Maker CSS"
2423
  msgstr ""
2424
 
2425
+ #: includes/admin/settings/register-settings.php:1014
2426
  msgid "Core Styles"
2427
  msgstr ""
2428
 
2429
+ #: includes/admin/settings/register-settings.php:1017
2430
  msgid "User Theme Styles"
2431
  msgstr ""
2432
 
popup-maker.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://wppopupmaker.com/?utm_campaign=PluginInfo&utm_source=plugin-header&utm_medium=plugin-uri
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: WP Popup Maker
7
- * Version: 1.7.29
8
  * Author URI: https://wppopupmaker.com/?utm_campaign=PluginInfo&utm_source=plugin-header&utm_medium=author-uri
9
  * Text Domain: popup-maker
10
  *
@@ -93,7 +93,7 @@ class Popup_Maker {
93
  /**
94
  * @var string Plugin Version
95
  */
96
- public static $VER = '1.7.29';
97
 
98
  /**
99
  * @var int DB Version
@@ -361,6 +361,24 @@ class Popup_Maker {
361
  PUM_Shortcode_Popup::init();
362
  PUM_Shortcode_PopupTrigger::init();
363
  PUM_Shortcode_PopupClose::init();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
364
  }
365
 
366
  /**
@@ -379,11 +397,6 @@ class Popup_Maker {
379
  */
380
  Popup_Maker::instance();
381
 
382
- /**
383
- * Initiate Freemius
384
- */
385
- PUM_Freemius::instance();
386
-
387
  /**
388
  * The code that runs during plugin activation.
389
  * This action is documented in classes/Activator.php
4
  * Plugin URI: https://wppopupmaker.com/?utm_campaign=PluginInfo&utm_source=plugin-header&utm_medium=plugin-uri
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: WP Popup Maker
7
+ * Version: 1.7.30
8
  * Author URI: https://wppopupmaker.com/?utm_campaign=PluginInfo&utm_source=plugin-header&utm_medium=author-uri
9
  * Text Domain: popup-maker
10
  *
93
  /**
94
  * @var string Plugin Version
95
  */
96
+ public static $VER = '1.7.30';
97
 
98
  /**
99
  * @var int DB Version
361
  PUM_Shortcode_Popup::init();
362
  PUM_Shortcode_PopupTrigger::init();
363
  PUM_Shortcode_PopupClose::init();
364
+
365
+ /**
366
+ * Here we check for previous FS optin.
367
+ * If no test has been performed we initialize Freemius one last time to check optin status.
368
+ */
369
+ $has_opted_in = get_option( 'pum_previously_opted_using_freemius' );
370
+ if ( false === $has_opted_in ) {
371
+ PUM_Freemius::instance();
372
+ update_option( 'pum_previously_opted_using_freemius', PUM_Freemius::instance()->fs()->is_registered() ? 1 : 0 );
373
+ } else if ( 1 === $has_opted_in ) {
374
+ /**
375
+ * The user has previously opted via Freemius. Lets show custom messages in the new optin requests.
376
+ */
377
+ } else {
378
+ /**
379
+ * The user never opted via Freemius. Show default optin request.
380
+ */
381
+ }
382
  }
383
 
384
  /**
397
  */
398
  Popup_Maker::instance();
399
 
 
 
 
 
 
400
  /**
401
  * The code that runs during plugin activation.
402
  * This action is documented in classes/Activator.php
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link:
6
  Tags: marketing, popup, popups, optin, advertising, conversion, responsive popups, promotion, popover, pop-up, pop over, lightbox, conversion, modal
7
  Requires at least: 3.6
8
  Tested up to: 4.9.6
9
- Stable tag: 1.7.29
10
  License: GNU Version 3 or Any Later Version
11
 
12
  Everything you need to create unique user experiences. Insert forms & other content from your favorite plugins to create custom responsive popups.
@@ -101,6 +101,16 @@ There are several common causes for this which include:
101
 
102
  == Changelog ==
103
 
 
 
 
 
 
 
 
 
 
 
104
  = v1.7.29 - 06/13/2018 =
105
  * Improvement: Added new enabled() method for the PUM_AssetCache class that checks both is writable and not disabled.
106
  * Improvement: Added option to disable just asset caching. This should help in the case your server is blocking the use of our JS from the /uploads/ folder with a 403 error.
@@ -430,8 +440,8 @@ Lastly we now have include our extendable subscription forms right in the free v
430
  * Tweak: Added CSS override for Ninja Forms datepickers to properly layer them above popups.
431
 
432
  = v1.4.20 - 10/13/2016 =
433
- * Feature: Added [Ninja Forms](https://wppopupmaker.com/grab/ninjaforms?utm_source=readme-changelog&utm_medium=text-link&utm_campaign=Readme&utm_content=ninja-forms-features) success actions for opening & closing popups.
434
- * Feature: Added new cookie event for successful submission of a [Ninja Forms](https://wppopupmaker.com/grab/ninjaforms) form.
435
  * Improvement: Added wp.hooks JS library, allowing actions & filters via our plugin JS.
436
  * Tweaks: Added various admin css tweaks.
437
 
6
  Tags: marketing, popup, popups, optin, advertising, conversion, responsive popups, promotion, popover, pop-up, pop over, lightbox, conversion, modal
7
  Requires at least: 3.6
8
  Tested up to: 4.9.6
9
+ Stable tag: 1.7.30
10
  License: GNU Version 3 or Any Later Version
11
 
12
  Everything you need to create unique user experiences. Insert forms & other content from your favorite plugins to create custom responsive popups.
101
 
102
  == Changelog ==
103
 
104
+ = v1.7.30 - 09/06/2018 =
105
+ * Improvement: Further added methods to log unique messages only once.
106
+ * Tweak: Remove usage of Freemius.
107
+ * Fix: Added option to disable popups accessibility functionality to resolve some issues with focus trapping.
108
+ * Fix: Issues with log files growing too large. Max file size of 1MB and auto truncate to 250 lines now.
109
+ * Fix: Typo causing issues with Page Template condition.
110
+ * Fix: Typo in privacy link example text.
111
+ * Fix: Typo pointing to incorrect internal method call in new has_cookie method.
112
+ * Fix: Issues with fields not being readonly.
113
+
114
  = v1.7.29 - 06/13/2018 =
115
  * Improvement: Added new enabled() method for the PUM_AssetCache class that checks both is writable and not disabled.
116
  * Improvement: Added option to disable just asset caching. This should help in the case your server is blocking the use of our JS from the /uploads/ folder with a 403 error.
440
  * Tweak: Added CSS override for Ninja Forms datepickers to properly layer them above popups.
441
 
442
  = v1.4.20 - 10/13/2016 =
443
+ * Feature: Added [Ninja Forms](https://wppopupmaker.com/grab/ninja-forms?utm_source=readme-changelog&utm_medium=text-link&utm_campaign=Readme&utm_content=ninja-forms-features) success actions for opening & closing popups.
444
+ * Feature: Added new cookie event for successful submission of a [Ninja Forms](https://wppopupmaker.com/grab/ninja-forms) form.
445
  * Improvement: Added wp.hooks JS library, allowing actions & filters via our plugin JS.
446
  * Tweaks: Added various admin css tweaks.
447