Version Description
Download this release
Release Info
Developer | danieliser |
Plugin | Popup Maker – Popup Forms, Optins & More |
Version | 1.7.13 |
Comparing to | |
See all releases |
Code changes from version 1.7.12 to 1.7.13
- assets/js/admin-shortcode-ui.js +3 -1
- assets/js/admin-shortcode-ui.min.js +1 -1
- assets/js/mce-buttons.js +5 -0
- assets/js/mce-buttons.min.js +1 -1
- assets/js/site.js +15 -4
- assets/js/site.min.js +2 -2
- classes/Admin/Assets.php +1 -1
- classes/AssetCache.php +1 -1
- classes/Model/Popup.php +1 -1
- classes/Newsletters.php +7 -3
- classes/Site/Assets.php +12 -11
- classes/Upgrades.php +30 -1
- includes/class-pum.php +1 -1
- languages/popup-maker.pot +35 -35
- popup-maker.php +2 -2
- readme.txt +9 -1
assets/js/admin-shortcode-ui.js
CHANGED
@@ -13,8 +13,10 @@
|
|
13 |
* Checks shortcode editor provider field and hides/shows the appropriate subtab for that provider.
|
14 |
*/
|
15 |
function check_provider() {
|
|
|
|
|
16 |
var $provider = $('#pum-shortcode-editor-pum_sub_form #provider'),
|
17 |
-
provider = $provider.val() !== '' ? $provider.val() : pum_admin_vars.default_provider,
|
18 |
$provider_tabs = $('.pum-modal-content .tabs .tab a[href^="#pum-shortcode-editor-pum_sub_form_provider_"]'),
|
19 |
$provider_contents = $('[id^="pum-shortcode-editor-pum_sub_form_provider_"]'),
|
20 |
$selected_tab = $provider_tabs.filter('[href="#pum-shortcode-editor-pum_sub_form_provider_' + provider + '"]'),
|
13 |
* Checks shortcode editor provider field and hides/shows the appropriate subtab for that provider.
|
14 |
*/
|
15 |
function check_provider() {
|
16 |
+
debugger;
|
17 |
+
|
18 |
var $provider = $('#pum-shortcode-editor-pum_sub_form #provider'),
|
19 |
+
provider = $provider.val() !== '' && $provider.val() !== 'none' ? $provider.val() : pum_admin_vars.default_provider,
|
20 |
$provider_tabs = $('.pum-modal-content .tabs .tab a[href^="#pum-shortcode-editor-pum_sub_form_provider_"]'),
|
21 |
$provider_contents = $('[id^="pum-shortcode-editor-pum_sub_form_provider_"]'),
|
22 |
$selected_tab = $provider_tabs.filter('[href="#pum-shortcode-editor-pum_sub_form_provider_' + provider + '"]'),
|
assets/js/admin-shortcode-ui.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t){function e(){var e=t("#pum-shortcode-editor-pum_sub_form #provider"),o=""!==e.val()?e.val():pum_admin_vars.default_provider,n=t('.pum-modal-content .tabs .tab a[href^="#pum-shortcode-editor-pum_sub_form_provider_"]'),i=t('[id^="pum-shortcode-editor-pum_sub_form_provider_"]'),r=n.filter('[href="#pum-shortcode-editor-pum_sub_form_provider_'+o+'"]'),s=i.filter('[id="pum-shortcode-editor-pum_sub_form_provider_'+o+'"]');n.each(function(){t(this).parent().hide()}),i.find(":input").attr("disable",!0),r.length&&(r.parent().show(),s.find(":input").attr("disable",!1))}function o(){var e=t("#pum-shortcode-editor-pum_sub_form_provider_mailchimp #list_id"),o=e.val(),n=t("#pum-mci-list-"+o+",.pum-mci-list-"+o),i=t(".pum-mci-list-options");i.hide(),i.find('input[type="checkbox"]').attr("disabled",!0),n.length&&(n.show(),n.find('input[type="checkbox"]').attr("disabled",!1))}"undefined"==typeof window.pum_newsletter_initialized&&(window.pum_newsletter_initialized=!0,t(document).on("pum_init","#pum-shortcode-editor-pum_sub_form",e).on("change","#pum-shortcode-editor-pum_sub_form #provider",e),t(document).on("pumInit pum_init","#pum-shortcode-editor-pum_sub_form",o).on("change","#pum-shortcode-editor-pum_sub_form_provider_mailchimp #list_id",o))}(jQuery),function(t){"use strict";var e=pum_shortcode_ui_vars.I10n||{error_loading_shortcode_preview:"",shortcode_ui_button_tooltip:"",insert:"",update:""},o=pum_shortcode_ui_vars.shortcodes||{},n={version:1,shortcode_args:{},shortcode_data:{},initialize:function(t){},cleanAttrs:function(t){return _.each(t,function(e,o){null!==e&&""!==e||delete t[o],"object"==typeof e&&(t[o]=Object.keys(e))}),t},template:function(e){var o,n="pum-shortcode-view-"+this.type,i={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"attrs"};return 1===this.version&&(i.variable="attr"),t("#tmpl-"+n).length?(o=_.template(t("#tmpl-"+n).html(),i),e["class"]&&(e.classes=e["class"],delete e["class"]),e=this.cleanAttrs(e),o(e)):this.text},getShortcodeValues:function(){if("undefined"==typeof this.shortcode||"undefined"==typeof this.shortcode.attrs)return{};var t={};if("undefined"!=typeof this.shortcode.attrs.named&&(t=_.extend(t,this.shortcode.attrs.named||{})),"undefined"!=typeof this.shortcode.attrs.numeric)for(var e=0;e<this.shortcode.attrs.numeric.length;e++)t[this.shortcode.attrs.numeric[e]]=!0;return t},getShortcodeContent:function(){return"undefined"==typeof this.shortcode?"":this.shortcode.content||""},getContent:function(){return this.content||this.fetch(),this.content},formatShortcode:function(t){var e=this.shortcode_args.has_content,o=this.getShortcodeContent();return t=t||this.getShortcodeValues(),e&&"undefined"!=typeof t._inner_content&&(o=t._inner_content,delete t._inner_content),t=this.cleanAttrs(t),PUM_Admin.templates.shortcode({tag:this.type,meta:t,has_content:e,content:o})},fetch:function(){var o=this,n=o.getShortcodeValues(),i={action:"pum_do_shortcode",post_id:t("#post_ID").val(),tag:o.type,shortcode:o.formatShortcode(),nonce:pum_shortcode_ui_vars.nonce};o.fetching||(o.fetching=!0,o.shortcode_args.has_content&&(n._inner_content=o.getShortcodeContent()),o.shortcode_args.ajax_rendering?t.post(ajaxurl,i).done(function(t){o.content=t.data}).fail(function(){o.content='<span class="pum_shortcode_ui_vars_error">'+e.error_loading_shortcode_preview+"</span>"}).always(function(){delete o.fetching,o.render()}):(o.content=o.template(n),delete o.fetching,o.render()))},edit:function(t,e){var o=_.extend({},this.getShortcodeValues());this.shortcode_args.has_content&&(o._inner_content=this.getShortcodeContent()),this.renderForm(o,e)},setLoader:function(){this.setContent('<div class="loading-placeholder"><div class="dashicons dashicons-admin-generic"></div><div class="wpview-loading"><ins></ins></div></div>')},renderForm:function(o,n){var i=this,r=t.extend(!0,{},{tag:this.type,id:"pum-shortcode-editor-"+this.type,label:"",tabs:{},sections:{},fields:{}},i.shortcode_args);o=o||{},PUM_Admin.modals.reload("#"+r.id,PUM_Admin.templates.modal({id:r.id,title:r.label,description:r.description,classes:"tabbed-content pum-shortcode-editor",save_button:void 0===o?e.insert:e.update,content:PUM_Admin.forms.render({id:"pum-shortcode-editor-"+this.type,tabs:r.tabs||{},sections:r.sections||{},fields:r.fields||{}},o||{}),meta:{"data-shortcode_tag":this.type}})),t("#"+r.id+" form").on("submit",function(e){e.preventDefault();var o=t(this),r=o.pumSerializeObject(),s=i.formatShortcode(r.attrs);"function"==typeof n&&n(s),PUM_Admin.modals.closeAll()})}};t(document).ready(function(){window.wp=window.wp||{},window.wp.mce=window.wp.mce||{},window.wp.mce.pum_shortcodes=window.wp.mce.pum_shortcodes||{},_.each(o,function(e,o){wp.mce.pum_shortcodes[o]=_.extend({},n,{version:e.version||1,shortcode_args:e,View:{type:o,template:function(t){return wp.mce.pum_shortcodes[this.type].template(t)},postID:t("#post_ID").val(),initialize:function(t){this.shortcode=t.shortcode,wp.mce.pum_shortcodes[this.type].shortcode_data=this.shortcode},getHtml:function(){var t=this.shortcode.attrs.named;return this.shortcode_args.has_content&&(t._inner_content=this.shortcode.content),this.template(t)}}}),"undefined"!=typeof wp.mce.views&&"function"==typeof wp.mce.views.register&&wp.mce.views.register(o,wp.mce.pum_shortcodes[o])})})}(jQuery);
|
1 |
+
!function(t){function e(){var e=t("#pum-shortcode-editor-pum_sub_form #provider"),o=""!==e.val()&&"none"!==e.val()?e.val():pum_admin_vars.default_provider,n=t('.pum-modal-content .tabs .tab a[href^="#pum-shortcode-editor-pum_sub_form_provider_"]'),i=t('[id^="pum-shortcode-editor-pum_sub_form_provider_"]'),r=n.filter('[href="#pum-shortcode-editor-pum_sub_form_provider_'+o+'"]'),s=i.filter('[id="pum-shortcode-editor-pum_sub_form_provider_'+o+'"]');n.each(function(){t(this).parent().hide()}),i.find(":input").attr("disable",!0),r.length&&(r.parent().show(),s.find(":input").attr("disable",!1))}function o(){var e=t("#pum-shortcode-editor-pum_sub_form_provider_mailchimp #list_id"),o=e.val(),n=t("#pum-mci-list-"+o+",.pum-mci-list-"+o),i=t(".pum-mci-list-options");i.hide(),i.find('input[type="checkbox"]').attr("disabled",!0),n.length&&(n.show(),n.find('input[type="checkbox"]').attr("disabled",!1))}"undefined"==typeof window.pum_newsletter_initialized&&(window.pum_newsletter_initialized=!0,t(document).on("pum_init","#pum-shortcode-editor-pum_sub_form",e).on("change","#pum-shortcode-editor-pum_sub_form #provider",e),t(document).on("pumInit pum_init","#pum-shortcode-editor-pum_sub_form",o).on("change","#pum-shortcode-editor-pum_sub_form_provider_mailchimp #list_id",o))}(jQuery),function(t){"use strict";var e=pum_shortcode_ui_vars.I10n||{error_loading_shortcode_preview:"",shortcode_ui_button_tooltip:"",insert:"",update:""},o=pum_shortcode_ui_vars.shortcodes||{},n={version:1,shortcode_args:{},shortcode_data:{},initialize:function(t){},cleanAttrs:function(t){return _.each(t,function(e,o){null!==e&&""!==e||delete t[o],"object"==typeof e&&(t[o]=Object.keys(e))}),t},template:function(e){var o,n="pum-shortcode-view-"+this.type,i={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"attrs"};return 1===this.version&&(i.variable="attr"),t("#tmpl-"+n).length?(o=_.template(t("#tmpl-"+n).html(),i),e["class"]&&(e.classes=e["class"],delete e["class"]),e=this.cleanAttrs(e),o(e)):this.text},getShortcodeValues:function(){if("undefined"==typeof this.shortcode||"undefined"==typeof this.shortcode.attrs)return{};var t={};if("undefined"!=typeof this.shortcode.attrs.named&&(t=_.extend(t,this.shortcode.attrs.named||{})),"undefined"!=typeof this.shortcode.attrs.numeric)for(var e=0;e<this.shortcode.attrs.numeric.length;e++)t[this.shortcode.attrs.numeric[e]]=!0;return t},getShortcodeContent:function(){return"undefined"==typeof this.shortcode?"":this.shortcode.content||""},getContent:function(){return this.content||this.fetch(),this.content},formatShortcode:function(t){var e=this.shortcode_args.has_content,o=this.getShortcodeContent();return t=t||this.getShortcodeValues(),e&&"undefined"!=typeof t._inner_content&&(o=t._inner_content,delete t._inner_content),t=this.cleanAttrs(t),PUM_Admin.templates.shortcode({tag:this.type,meta:t,has_content:e,content:o})},fetch:function(){var o=this,n=o.getShortcodeValues(),i={action:"pum_do_shortcode",post_id:t("#post_ID").val(),tag:o.type,shortcode:o.formatShortcode(),nonce:pum_shortcode_ui_vars.nonce};o.fetching||(o.fetching=!0,o.shortcode_args.has_content&&(n._inner_content=o.getShortcodeContent()),o.shortcode_args.ajax_rendering?t.post(ajaxurl,i).done(function(t){o.content=t.data}).fail(function(){o.content='<span class="pum_shortcode_ui_vars_error">'+e.error_loading_shortcode_preview+"</span>"}).always(function(){delete o.fetching,o.render()}):(o.content=o.template(n),delete o.fetching,o.render()))},edit:function(t,e){var o=_.extend({},this.getShortcodeValues());this.shortcode_args.has_content&&(o._inner_content=this.getShortcodeContent()),this.renderForm(o,e)},setLoader:function(){this.setContent('<div class="loading-placeholder"><div class="dashicons dashicons-admin-generic"></div><div class="wpview-loading"><ins></ins></div></div>')},renderForm:function(o,n){var i=this,r=t.extend(!0,{},{tag:this.type,id:"pum-shortcode-editor-"+this.type,label:"",tabs:{},sections:{},fields:{}},i.shortcode_args);o=o||{},PUM_Admin.modals.reload("#"+r.id,PUM_Admin.templates.modal({id:r.id,title:r.label,description:r.description,classes:"tabbed-content pum-shortcode-editor",save_button:void 0===o?e.insert:e.update,content:PUM_Admin.forms.render({id:"pum-shortcode-editor-"+this.type,tabs:r.tabs||{},sections:r.sections||{},fields:r.fields||{}},o||{}),meta:{"data-shortcode_tag":this.type}})),t("#"+r.id+" form").on("submit",function(e){e.preventDefault();var o=t(this),r=o.pumSerializeObject(),s=i.formatShortcode(r.attrs);"function"==typeof n&&n(s),PUM_Admin.modals.closeAll()})}};t(document).ready(function(){window.wp=window.wp||{},window.wp.mce=window.wp.mce||{},window.wp.mce.pum_shortcodes=window.wp.mce.pum_shortcodes||{},_.each(o,function(e,o){wp.mce.pum_shortcodes[o]=_.extend({},n,{version:e.version||1,shortcode_args:e,View:{type:o,template:function(t){return wp.mce.pum_shortcodes[this.type].template(t)},postID:t("#post_ID").val(),initialize:function(t){this.shortcode=t.shortcode,wp.mce.pum_shortcodes[this.type].shortcode_data=this.shortcode},getHtml:function(){var t=this.shortcode.attrs.named;return this.shortcode_args.has_content&&(t._inner_content=this.shortcode.content),this.template(t)}}}),"undefined"!=typeof wp.mce.views&&"function"==typeof wp.mce.views.register&&wp.mce.views.register(o,wp.mce.pum_shortcodes[o])})})}(jQuery);
|
assets/js/mce-buttons.js
CHANGED
@@ -1,6 +1,11 @@
|
|
1 |
(function ($, tinymce) {
|
2 |
"use strict";
|
3 |
|
|
|
|
|
|
|
|
|
|
|
4 |
tinymce.PluginManager.add('pum_shortcodes', function (editor) {
|
5 |
var shortcodes = pum_shortcode_ui_vars.shortcodes || {},
|
6 |
menuItems = [];
|
1 |
(function ($, tinymce) {
|
2 |
"use strict";
|
3 |
|
4 |
+
// Failsafe in case variables were not properly declared on page.
|
5 |
+
if (typeof pum_shortcode_ui_vars === 'undefined') {
|
6 |
+
return;
|
7 |
+
}
|
8 |
+
|
9 |
tinymce.PluginManager.add('pum_shortcodes', function (editor) {
|
10 |
var shortcodes = pum_shortcode_ui_vars.shortcodes || {},
|
11 |
menuItems = [];
|
assets/js/mce-buttons.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t,e){"use strict";e.PluginManager.add("pum_shortcodes",function(t){var e=pum_shortcode_ui_vars.shortcodes||{},o=[];_.each(e,function(e,n){o.push({text:e.label,value:n,onclick:function(){var o,
|
1 |
+
!function(t,e){"use strict";"undefined"!=typeof pum_shortcode_ui_vars&&e.PluginManager.add("pum_shortcodes",function(t){var e=pum_shortcode_ui_vars.shortcodes||{},o=[];_.each(e,function(e,n){o.push({text:e.label,value:n,onclick:function(){var o,u={},c="["+n+"]",s={};e.has_content&&(c+=t.selection.getContent()+"[/"+n+"]"),o=wp.mce.views.get(n),s.text=c,s.encodedText=encodeURIComponent(c),o=new o(s),o.renderForm(u,function(t){send_to_editor(t)})}})}),t.addButton("pum_shortcodes",{type:"menubutton",icon:"pum_shortcodes",tooltip:pum_shortcode_ui_vars.I10n.shortcode_ui_button_tooltip||"",menu:o})})}(jQuery,tinymce||{});
|
assets/js/site.js
CHANGED
@@ -686,12 +686,12 @@ var PUM_Accessibility;
|
|
686 |
var $top_level_elements,
|
687 |
focusableElementsString = "a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",
|
688 |
previouslyFocused,
|
689 |
-
currentModal
|
690 |
|
691 |
PUM_Accessibility = {
|
692 |
// Accessibility: Checks focus events to ensure they stay inside the modal.
|
693 |
forceFocus: function (e) {
|
694 |
-
if (currentModal &&
|
695 |
e.stopPropagation();
|
696 |
PUM_Accessibility.setFocusToFirstItem();
|
697 |
}
|
@@ -761,7 +761,7 @@ var PUM_Accessibility;
|
|
761 |
$top_level_elements = $('body > *').filter(':visible').not(currentModal);
|
762 |
$top_level_elements.attr('aria-hidden', 'true');
|
763 |
|
764 |
-
// Accessibility: Add focus check that prevents tabbing outside of modal.
|
765 |
$(document).one('focusin.pum_accessibility', PUM_Accessibility.forceFocus);
|
766 |
|
767 |
// Accessibility: Focus on the modal.
|
@@ -1145,7 +1145,14 @@ var PUM_Analytics;
|
|
1145 |
var _md,
|
1146 |
md = function () {
|
1147 |
if (_md === undefined) {
|
1148 |
-
_md = new MobileDetect(window.navigator.userAgent)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1149 |
}
|
1150 |
|
1151 |
return _md;
|
@@ -2620,6 +2627,10 @@ var pum_debug_mode = false,
|
|
2620 |
(function ($) {
|
2621 |
'use strict';
|
2622 |
|
|
|
|
|
|
|
|
|
2623 |
window.PUM = window.PUM || {};
|
2624 |
window.PUM.newsletter = window.PUM.newsletter || {};
|
2625 |
|
686 |
var $top_level_elements,
|
687 |
focusableElementsString = "a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",
|
688 |
previouslyFocused,
|
689 |
+
currentModal
|
690 |
|
691 |
PUM_Accessibility = {
|
692 |
// Accessibility: Checks focus events to ensure they stay inside the modal.
|
693 |
forceFocus: function (e) {
|
694 |
+
if (currentModal && currentModal.length && !currentModal[0].contains(e.target)) {
|
695 |
e.stopPropagation();
|
696 |
PUM_Accessibility.setFocusToFirstItem();
|
697 |
}
|
761 |
$top_level_elements = $('body > *').filter(':visible').not(currentModal);
|
762 |
$top_level_elements.attr('aria-hidden', 'true');
|
763 |
|
764 |
+
// Accessibility: Add focus check first time focus changes after popup opens that prevents tabbing outside of modal.
|
765 |
$(document).one('focusin.pum_accessibility', PUM_Accessibility.forceFocus);
|
766 |
|
767 |
// Accessibility: Focus on the modal.
|
1145 |
var _md,
|
1146 |
md = function () {
|
1147 |
if (_md === undefined) {
|
1148 |
+
_md = typeof MobileDetect !== 'undefined' ? new MobileDetect(window.navigator.userAgent) : {
|
1149 |
+
phone: function () {
|
1150 |
+
return false;
|
1151 |
+
},
|
1152 |
+
tablet: function() {
|
1153 |
+
return false;
|
1154 |
+
}
|
1155 |
+
};
|
1156 |
}
|
1157 |
|
1158 |
return _md;
|
2627 |
(function ($) {
|
2628 |
'use strict';
|
2629 |
|
2630 |
+
if (pum_vars && pum_vars.core_sub_forms_enabled !== undefined && !pum_vars.core_sub_forms_enabled) {
|
2631 |
+
return;
|
2632 |
+
}
|
2633 |
+
|
2634 |
window.PUM = window.PUM || {};
|
2635 |
window.PUM.newsletter = window.PUM.newsletter || {};
|
2636 |
|
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)}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),p=s(i,o);return"undefined"!=typeof p?p: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),p=s.popmake("getSettings"),a=p.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()}},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")||{},pum_vars.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"),p=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):(p.stackable||n.popmake("close_all"),n.addClass("pum-active"),p.close_button_delay>0&&s.fadeOut(0),a.addClass("pum-open"),p.overlay_disabled?a.addClass("pum-open-overlay-disabled"):a.addClass("pum-open-overlay"),p.position_fixed?a.addClass("pum-open-fixed"):a.addClass("pum-open-scrollable"),n.popmake("setup_close").popmake("reposition").popmake("animate",p.animation_type,function(){p.close_button_delay>0&&setTimeout(function(){s.fadeIn()},p.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){e(o.target).closest(".pum-container").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,p={my:"",at:"",of:window,collision:"none",using:"function"==typeof o?o:e.fn.popmake.callbacks.reposition_using},a={overlay:null,container:null},r=null;try{r=e(e.fn.popmake.last_open_trigger)}catch(u){r=e()}return i.position_from_trigger&&r.length?(p.of=r,s.indexOf("left")>=0&&(p.my+=" right",p.at+=" left"+(0!==i.position_left?"-"+i.position_left:"")),s.indexOf("right")>=0&&(p.my+=" left",p.at+=" right"+(0!==i.position_right?"+"+i.position_right:"")),s.indexOf("center")>=0&&(p.my="center"===s?"center":p.my+" center",p.at="center"===s?"center":p.at+" center"),s.indexOf("top")>=0&&(p.my+=" bottom",p.at+=" top"+(0!==i.position_top?"-"+i.position_top:"")),s.indexOf("bottom")>=0&&(p.my+=" top",p.at+=" bottom"+(0!==i.position_bottom?"+"+i.position_bottom:""))):(s.indexOf("left")>=0&&(p.my+=" left"+(0!==i.position_left?"+"+i.position_left:""),p.at+=" left"),s.indexOf("right")>=0&&(p.my+=" right"+(0!==i.position_right?"-"+i.position_right:""),p.at+=" right"),s.indexOf("center")>=0&&(p.my="center"===s?"center":p.my+" center",p.at="center"===s?"center":p.at+" center"),s.indexOf("top")>=0&&(p.my+=" top"+(0!==i.position_top?"+"+(e("body").hasClass("admin-bar")?parseInt(i.position_top,10)+32:i.position_top):""),p.at+=" top"),s.indexOf("bottom")>=0&&(p.my+=" bottom"+(0!==i.position_bottom?"-"+i.position_bottom:""),p.at+=" bottom")),p.my=e.trim(p.my),p.at=e.trim(p.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(p).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,p="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(o){s&&!e.contains(s,o.target)&&(o.stopPropagation(),PUM_Accessibility.setFocusToFirstItem())},trapTabKey:function(o){if(9===o.keyCode){var t=s.find(".pum-container *").filter(p).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(p).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),p=e(":focus");t.has(p).length||(i=p),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 p=PUM.getPopup(this);p.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,p={route:"/analytics/",data:e.extend({event:"open",pid:null,_cache:+new Date},t),callback:"function"==typeof n?n:function(){}};o?s+=p.route:p.data.action="pum_analytics",s&&(e(i).on("error success load done",p.callback),i.src=s+"?"+e.param(p.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,p=o.popmake("animation_origin",i.animation_origin);return n.position(p).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,p=o.popmake("animation_origin",i.animation_origin);return n.position(p),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=new MobileDetect(window.navigator.userAgent)),n};e.extend(e.fn.popmake.methods,{checkConditions:function(){var o,t,n,s,p,a=PUM.getPopup(this),r=a.popmake("getSettings"),u=!0;if(r.disable_on_mobile&&i().phone())return!1;if(r.disable_on_tablet&&i().tablet())return!1;if(r.conditions.length)for(t=0;r.conditions.length>t;t++){for(s=r.conditions[t],o=!1,n=0;s.length>n&&(p=e.extend({},{not_operand:!1},s[n]),!p.not_operand&&a.popmake("checkCondition",p)?o=!0:p.not_operand&&!a.popmake("checkCondition",p)&&(o=!0),e(this).trigger("pumCheckingCondition",[o,p]),!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 p,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{p=JSON.stringify(i),/^[\{\[]/.test(p)&&(i=p)}catch(r){}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||(p={});for(var u=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,l=0;l<u.length;l++){var m=u[l].split("="),d=m.slice(1).join("=");'"'===d.charAt(0)&&(d=d.slice(1,-1));try{var f=m[0].replace(c,decodeURIComponent);if(d=o.read?o.read(d,f):o(d,f)||d.replace(c,decodeURIComponent),this.json)try{d=JSON.parse(d)}catch(r){}if(n===f){p=d;break}n||(p[f]=d)}catch(r){}}return p}}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||{};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||[],p=n.cookies||[],a=n.conditions||[],r=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),r=0;s.length>r;r++)pum_debug.trigger(o,s[r]);console.groupEnd()}if(p.length){for(console.groupCollapsed(i.label_cookies),r=0;p.length>r;r+=1)pum_debug.cookie(o,p[r]);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))},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={},p=function(){n.redirect_enabled&&(""!==n.redirect?window.location=n.redirect:window.location.reload(!0));
|
2 |
-
},a=function(){n.openpopup&&PUM.getPopup(n.openpopup_id).length?PUM.open(n.openpopup_id):p()};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)),l}function o(){var e=c.call(arguments),o=e.shift();return"string"==typeof o&&u("actions",o,e),l}function t(e,o){return"string"==typeof e&&p("actions",e,o),l}function n(e,o,t,n){return"string"==typeof e&&"function"==typeof o&&(t=parseInt(t||10,10),a("filters",e,o,t,n)),l}function i(){var e=c.call(arguments),o=e.shift();return"string"==typeof o?u("filters",o,e):l}function s(e,o){return"string"==typeof e&&p("filters",e,o),l}function p(e,o,t,n){var i,s,p;if(m[e][o])if(t)if(i=m[e][o],n)for(p=i.length;p--;)s=i[p],s.callback===t&&s.context===n&&i.splice(p,1);else for(p=i.length;p--;)i[p].callback===t&&i.splice(p,1);else m[e][o]=[]}function a(e,o,t,n,i){var s={callback:t,priority:n,context:i},p=m[e][o];p?(p.push(s),p=r(p)):p=[s],m[e][o]=p}function r(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 c=Array.prototype.slice,l={removeFilter:s,applyFilters:i,addFilter:n,removeAction:t,doAction:o,addAction:e},m={actions:{},filters:{}};return l};e.pum=e.pum||{},e.pum.hooks=e.pum.hooks||new t}(window),function(e){"use strict";var o={},t=!1;"undefined"!=typeof Marionette&&"undefined"!=typeof nfRadio&&(t=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"),p={};o.errors.length||("undefined"!=typeof o.data.actions&&(p.openpopup="undefined"!=typeof o.data.actions.openpopup,p.openpopup_id=p.openpopup?parseInt(o.data.actions.openpopup):0,p.closepopup="undefined"!=typeof o.data.actions.closepopup,p.closedelay=p.closepopup?parseInt(o.data.actions.closepopup):0,p.closepopup&&o.data.actions.closedelay&&(p.closedelay=parseInt(o.data.actions.closedelay))),window.PUM.forms.success(s,p))}})),e(document).ready(function(){t!==!1&&new t,e(".gform_wrapper > form").each(function(){var t=e(this),n=t.attr("id").replace("gform_",""),i=t.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),o[n]=s)})}).on("gform_confirmation_loaded",function(t,n){var i=e("#gform_confirmation_wrapper_"+n+",#gforms_confirmation_message_"+n),s=o[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";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"),p=[".popmake-"+s.id,".popmake-"+decodeURIComponent(s.slug),'a[href$="#popmake-'+s.id+'"]'];t.extra_selectors&&""!==t.extra_selectors&&p.push(t.extra_selectors),p=pum.hooks.applyFilters("pum.trigger.click_open.selectors",p,t,i),n=p.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(","),p=/\[([^\]]*)\]/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,p,a=[];return e.each(e(o).parents(),function(o,r){return t=e(r),n=t.attr("id")||"",i=t.attr("class")||"",s=t.get(0).tagName.toLowerCase(),p=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("+p+")")))}),a.reverse().join(" > ")},strtotime:function(e,o){function n(e,o,n){var i,s=c[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),p="ago"===o[2],a=("last"===t?-1:1)*(p?-1:1);if(s&&(a*=parseInt(t,10)),l.hasOwnProperty(i)&&!o[1].match(/^mon(day|\.)?$/i))return u["set"+l[i]](u["get"+l[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,p,a,r,u,c,l,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(),p=e.match(/^(\d{1,4})([\-\.\/\:])(\d{1,2})([\-\.\/\:])(\d{1,4})(?:\s(\d{1,2}):(\d{2})?:?(\d{2})?)?(?:\s([A-Z]+)?)?$/),p&&p[2]===p[4])if(p[1]>1901)switch(p[2]){case"-":return p[3]>12||p[5]>31?_:new Date(p[1],parseInt(p[3],10)-1,p[5],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3;case".":return _;case"/":return p[3]>12||p[5]>31?_:new Date(p[1],parseInt(p[3],10)-1,p[5],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3}else if(p[5]>1901)switch(p[2]){case"-":return p[3]>12||p[1]>31?_:new Date(p[5],parseInt(p[3],10)-1,p[1],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3;case".":return p[3]>12||p[1]>31?_:new Date(p[5],parseInt(p[3],10)-1,p[1],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3;case"/":return p[1]>12||p[3]>31?_:new Date(p[5],parseInt(p[1],10)-1,p[3],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3}else switch(p[2]){case"-":return p[3]>12||p[5]>31||p[1]<70&&p[1]>38?_:(r=p[1]>=0&&p[1]<=38?+p[1]+2e3:p[1],new Date(r,parseInt(p[3],10)-1,p[5],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3);case".":return p[5]>=70?p[3]>12||p[1]>31?_:new Date(p[5],parseInt(p[3],10)-1,p[1],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3:p[5]<60&&!p[6]?p[1]>23||p[3]>59?_:(a=new Date,new Date(a.getFullYear(),a.getMonth(),a.getDate(),p[1]||0,p[3]||0,p[5]||0,p[9]||0)/1e3):_;case"/":return p[1]>12||p[3]>31||p[5]<70&&p[5]>38?_:(r=p[5]>=0&&p[5]<=38?+p[5]+2e3:p[5],new Date(r,parseInt(p[1],10)-1,p[3],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3);case":":return p[1]>23||p[3]>59||p[5]>59?_:(a=new Date,new Date(a.getFullYear(),a.getMonth(),a.getDate(),p[1]||0,p[3]||0,p[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,c={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},l={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)?",p=e.match(new RegExp(f,"gi")),!p)return _;for(g=0,m=p.length;g<m;g+=1)if(!i(p[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(p,"[$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.pumSerializeObject=e.fn.popmake.utilities.serializeObject,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,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)}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),p=s(i,o);return"undefined"!=typeof p?p: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),p=s.popmake("getSettings"),r=p.cookies;if(r!==t&&r.length)for(i=0;r.length>i;i+=1)e.pm_remove_cookie(r[i].settings.name);"function"==typeof n&&n()}},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")||{},pum_vars.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"),p=n.popmake("getSettings"),r=e("html");return n.trigger("pumBeforeOpen"),n.hasClass("preventOpen")||i.hasClass("preventOpen")?(console.log("prevented"),n.removeClass("preventOpen").removeClass("pum-active").trigger("pumOpenPrevented"),this):(p.stackable||n.popmake("close_all"),n.addClass("pum-active"),p.close_button_delay>0&&s.fadeOut(0),r.addClass("pum-open"),p.overlay_disabled?r.addClass("pum-open-overlay-disabled"):r.addClass("pum-open-overlay"),p.position_fixed?r.addClass("pum-open-fixed"):r.addClass("pum-open-scrollable"),n.popmake("setup_close").popmake("reposition").popmake("animate",p.animation_type,function(){p.close_button_delay>0&&setTimeout(function(){s.fadeIn()},p.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){e(o.target).closest(".pum-container").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,p={my:"",at:"",of:window,collision:"none",using:"function"==typeof o?o:e.fn.popmake.callbacks.reposition_using},r={overlay:null,container:null},a=null;try{a=e(e.fn.popmake.last_open_trigger)}catch(u){a=e()}return i.position_from_trigger&&a.length?(p.of=a,s.indexOf("left")>=0&&(p.my+=" right",p.at+=" left"+(0!==i.position_left?"-"+i.position_left:"")),s.indexOf("right")>=0&&(p.my+=" left",p.at+=" right"+(0!==i.position_right?"+"+i.position_right:"")),s.indexOf("center")>=0&&(p.my="center"===s?"center":p.my+" center",p.at="center"===s?"center":p.at+" center"),s.indexOf("top")>=0&&(p.my+=" bottom",p.at+=" top"+(0!==i.position_top?"-"+i.position_top:"")),s.indexOf("bottom")>=0&&(p.my+=" top",p.at+=" bottom"+(0!==i.position_bottom?"+"+i.position_bottom:""))):(s.indexOf("left")>=0&&(p.my+=" left"+(0!==i.position_left?"+"+i.position_left:""),p.at+=" left"),s.indexOf("right")>=0&&(p.my+=" right"+(0!==i.position_right?"-"+i.position_right:""),p.at+=" right"),s.indexOf("center")>=0&&(p.my="center"===s?"center":p.my+" center",p.at="center"===s?"center":p.at+" center"),s.indexOf("top")>=0&&(p.my+=" top"+(0!==i.position_top?"+"+(e("body").hasClass("admin-bar")?parseInt(i.position_top,10)+32:i.position_top):""),p.at+=" top"),s.indexOf("bottom")>=0&&(p.my+=" bottom"+(0!==i.position_bottom?"-"+i.position_bottom:""),p.at+=" bottom")),p.my=e.trim(p.my),p.at=e.trim(p.at),t.is(":hidden")&&(r.overlay=t.css("opacity"),t.css({opacity:0}).show(0)),n.is(":hidden")&&(r.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(p).trigger("popmakeAfterReposition"),r.overlay&&t.css({opacity:r.overlay}).hide(0),r.container&&n.css({opacity:r.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,p="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(p).filter(":visible"),n=e(":focus"),i=t.length,r=t.index(n);o.shiftKey?0===r&&(t.get(i-1).focus(),o.preventDefault()):r===i-1&&(t.get(0).focus(),o.preventDefault())}},setFocusToFirstItem:function(){s.find(".pum-container *").filter(p).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),p=e(":focus");t.has(p).length||(i=p),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 p=PUM.getPopup(this);p.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,p={route:"/analytics/",data:e.extend({event:"open",pid:null,_cache:+new Date},t),callback:"function"==typeof n?n:function(){}};o?s+=p.route:p.data.action="pum_analytics",s&&(e(i).on("error success load done",p.callback),i.src=s+"?"+e.param(p.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,p=o.popmake("animation_origin",i.animation_origin);return n.position(p).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,p=o.popmake("animation_origin",i.animation_origin);return n.position(p),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,p,r=PUM.getPopup(this),a=r.popmake("getSettings"),u=!0;if(a.disable_on_mobile&&i().phone())return!1;if(a.disable_on_tablet&&i().tablet())return!1;if(a.conditions.length)for(t=0;a.conditions.length>t;t++){for(s=a.conditions[t],o=!1,n=0;s.length>n&&(p=e.extend({},{not_operand:!1},s[n]),!p.not_operand&&r.popmake("checkCondition",p)?o=!0:p.not_operand&&!r.popmake("checkCondition",p)&&(o=!0),e(this).trigger("pumCheckingCondition",[o,p]),!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 p,r=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":r.setMilliseconds(r.getMilliseconds()+864e5*s.expires),s.expires=r;break;case"string":r.setTime(1e3*e.fn.popmake.utilities.strtotime("+"+s.expires)),s.expires=r}try{p=JSON.stringify(i),/^[\{\[]/.test(p)&&(i=p)}catch(a){}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||(p={});for(var u=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,l=0;l<u.length;l++){var m=u[l].split("="),d=m.slice(1).join("=");'"'===d.charAt(0)&&(d=d.slice(1,-1));try{var f=m[0].replace(c,decodeURIComponent);if(d=o.read?o.read(d,f):o(d,f)||d.replace(c,decodeURIComponent),this.json)try{d=JSON.parse(d)}catch(a){}if(n===f){p=d;break}n||(p[f]=d)}catch(a){}}return p}}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||{};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||[],p=n.cookies||[],r=n.conditions||[],a=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),a=0;s.length>a;a++)pum_debug.trigger(o,s[a]);console.groupEnd()}if(p.length){for(console.groupCollapsed(i.label_cookies),a=0;p.length>a;a+=1)pum_debug.cookie(o,p[a]);console.groupEnd()}r.length&&(console.groupCollapsed(i.label_conditions),console.log(r),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))},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){
|
2 |
+
if(n=e.extend({},o,n)){var i=PUM.getPopup(t),s={},p=function(){n.redirect_enabled&&(""!==n.redirect?window.location=n.redirect:window.location.reload(!0))},r=function(){n.openpopup&&PUM.getPopup(n.openpopup_id).length?PUM.open(n.openpopup_id):p()};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",r)},1e3*parseInt(n.closedelay)):r()}}})}(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),r("actions",e,o,t,n)),l}function o(){var e=c.call(arguments),o=e.shift();return"string"==typeof o&&u("actions",o,e),l}function t(e,o){return"string"==typeof e&&p("actions",e,o),l}function n(e,o,t,n){return"string"==typeof e&&"function"==typeof o&&(t=parseInt(t||10,10),r("filters",e,o,t,n)),l}function i(){var e=c.call(arguments),o=e.shift();return"string"==typeof o?u("filters",o,e):l}function s(e,o){return"string"==typeof e&&p("filters",e,o),l}function p(e,o,t,n){var i,s,p;if(m[e][o])if(t)if(i=m[e][o],n)for(p=i.length;p--;)s=i[p],s.callback===t&&s.context===n&&i.splice(p,1);else for(p=i.length;p--;)i[p].callback===t&&i.splice(p,1);else m[e][o]=[]}function r(e,o,t,n,i){var s={callback:t,priority:n,context:i},p=m[e][o];p?(p.push(s),p=a(p)):p=[s],m[e][o]=p}function a(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 c=Array.prototype.slice,l={removeFilter:s,applyFilters:i,addFilter:n,removeAction:t,doAction:o,addAction:e},m={actions:{},filters:{}};return l};e.pum=e.pum||{},e.pum.hooks=e.pum.hooks||new t}(window),function(e){"use strict";var o={},t=!1;"undefined"!=typeof Marionette&&"undefined"!=typeof nfRadio&&(t=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"),p={};o.errors.length||("undefined"!=typeof o.data.actions&&(p.openpopup="undefined"!=typeof o.data.actions.openpopup,p.openpopup_id=p.openpopup?parseInt(o.data.actions.openpopup):0,p.closepopup="undefined"!=typeof o.data.actions.closepopup,p.closedelay=p.closepopup?parseInt(o.data.actions.closepopup):0,p.closepopup&&o.data.actions.closedelay&&(p.closedelay=parseInt(o.data.actions.closedelay))),window.PUM.forms.success(s,p))}})),e(document).ready(function(){t!==!1&&new t,e(".gform_wrapper > form").each(function(){var t=e(this),n=t.attr("id").replace("gform_",""),i=t.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),o[n]=s)})}).on("gform_confirmation_loaded",function(t,n){var i=e("#gform_confirmation_wrapper_"+n+",#gforms_confirmation_message_"+n),s=o[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"),p=[".popmake-"+s.id,".popmake-"+decodeURIComponent(s.slug),'a[href$="#popmake-'+s.id+'"]'];t.extra_selectors&&""!==t.extra_selectors&&p.push(t.extra_selectors),p=pum.hooks.applyFilters("pum.trigger.click_open.selectors",p,t,i),n=p.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(","),p=/\[([^\]]*)\]/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,p,r=[];return e.each(e(o).parents(),function(o,a){return t=e(a),n=t.attr("id")||"",i=t.attr("class")||"",s=t.get(0).tagName.toLowerCase(),p=t.parent().children(s).index(t),"body"!==s&&(i.length>0&&(i=i.split(" "),i=i[0]),void r.push(s+(n.length>0?"#"+n:i.length>0?"."+i.split(" ").join("."):":eq("+p+")")))}),r.reverse().join(" > ")},strtotime:function(e,o){function n(e,o,n){var i,s=c[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),p="ago"===o[2],r=("last"===t?-1:1)*(p?-1:1);if(s&&(r*=parseInt(t,10)),l.hasOwnProperty(i)&&!o[1].match(/^mon(day|\.)?$/i))return u["set"+l[i]](u["get"+l[i]]()+r);if("wee"===i)return u.setDate(u.getDate()+7*r);if("next"===t||"last"===t)n(t,i,r);else if(!s)return!1;return!0}var s,p,r,a,u,c,l,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(),p=e.match(/^(\d{1,4})([\-\.\/\:])(\d{1,2})([\-\.\/\:])(\d{1,4})(?:\s(\d{1,2}):(\d{2})?:?(\d{2})?)?(?:\s([A-Z]+)?)?$/),p&&p[2]===p[4])if(p[1]>1901)switch(p[2]){case"-":return p[3]>12||p[5]>31?_:new Date(p[1],parseInt(p[3],10)-1,p[5],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3;case".":return _;case"/":return p[3]>12||p[5]>31?_:new Date(p[1],parseInt(p[3],10)-1,p[5],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3}else if(p[5]>1901)switch(p[2]){case"-":return p[3]>12||p[1]>31?_:new Date(p[5],parseInt(p[3],10)-1,p[1],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3;case".":return p[3]>12||p[1]>31?_:new Date(p[5],parseInt(p[3],10)-1,p[1],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3;case"/":return p[1]>12||p[3]>31?_:new Date(p[5],parseInt(p[1],10)-1,p[3],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3}else switch(p[2]){case"-":return p[3]>12||p[5]>31||p[1]<70&&p[1]>38?_:(a=p[1]>=0&&p[1]<=38?+p[1]+2e3:p[1],new Date(a,parseInt(p[3],10)-1,p[5],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3);case".":return p[5]>=70?p[3]>12||p[1]>31?_:new Date(p[5],parseInt(p[3],10)-1,p[1],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3:p[5]<60&&!p[6]?p[1]>23||p[3]>59?_:(r=new Date,new Date(r.getFullYear(),r.getMonth(),r.getDate(),p[1]||0,p[3]||0,p[5]||0,p[9]||0)/1e3):_;case"/":return p[1]>12||p[3]>31||p[5]<70&&p[5]>38?_:(a=p[5]>=0&&p[5]<=38?+p[5]+2e3:p[5],new Date(a,parseInt(p[1],10)-1,p[3],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3);case":":return p[1]>23||p[3]>59||p[5]>59?_:(r=new Date,new Date(r.getFullYear(),r.getMonth(),r.getDate(),p[1]||0,p[3]||0,p[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,c={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},l={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)?",p=e.match(new RegExp(f,"gi")),!p)return _;for(g=0,m=p.length;g<m;g+=1)if(!i(p[g]))return _;return u.getTime()/1e3},serializeObject:function(o){e.extend({},o);var t={},r=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,r.exclude)||r.include.length&&!window.PUM.utilities.inArray(this.name,r.include)||this.className.indexOf(r.includeByClass)===-1||(o=this.name.replace(p,"[$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.pumSerializeObject=e.fn.popmake.utilities.serializeObject,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,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/Assets.php
CHANGED
@@ -48,7 +48,7 @@ class PUM_Admin_Assets {
|
|
48 |
|
49 |
public static function fix_broken_extension_scripts() {
|
50 |
|
51 |
-
if ( wp_script_is( 'pum-mci-admin' ) && class_exists( 'PUM_MCI' ) && version_compare( PUM_MCI::$VER, '1.3.0', '<' ) ) {
|
52 |
wp_dequeue_script( 'pum-mci-admin' );
|
53 |
}
|
54 |
}
|
48 |
|
49 |
public static function fix_broken_extension_scripts() {
|
50 |
|
51 |
+
if ( wp_script_is( 'pum-mci-admin' ) && class_exists( 'PUM_MCI' ) && version_compare( PUM_MCI::$VER, '1.3.0', '<' ) && ! pum_is_settings_page() ) {
|
52 |
wp_dequeue_script( 'pum-mci-admin' );
|
53 |
}
|
54 |
}
|
classes/AssetCache.php
CHANGED
@@ -322,7 +322,7 @@ class PUM_AssetCache {
|
|
322 |
|
323 |
if ( $popup->get_setting( 'zindex', false ) ) {
|
324 |
$zindex = absint( $popup->get_setting( 'zindex' ) );
|
325 |
-
echo "#pum-{$popup->ID}
|
326 |
}
|
327 |
|
328 |
// Allow per popup CSS additions.
|
322 |
|
323 |
if ( $popup->get_setting( 'zindex', false ) ) {
|
324 |
$zindex = absint( $popup->get_setting( 'zindex' ) );
|
325 |
+
echo "#pum-{$popup->ID} {z-index: $zindex}\r\n";
|
326 |
}
|
327 |
|
328 |
// Allow per popup CSS additions.
|
classes/Model/Popup.php
CHANGED
@@ -434,7 +434,7 @@ class PUM_Model_Popup extends PUM_Model_Post {
|
|
434 |
) as $key => $value ) {
|
435 |
$temp = isset( $display[ $key ] ) ? $display[ $key ] : false;
|
436 |
|
437 |
-
if ( $temp ) {
|
438 |
$display[ $key ] = preg_replace('/\D/', '', $temp );
|
439 |
$display[ $key . '_unit' ] = str_replace( $display[ $key ], '', $temp );
|
440 |
}
|
434 |
) as $key => $value ) {
|
435 |
$temp = isset( $display[ $key ] ) ? $display[ $key ] : false;
|
436 |
|
437 |
+
if ( $temp && is_string( $temp ) ) {
|
438 |
$display[ $key ] = preg_replace('/\D/', '', $temp );
|
439 |
$display[ $key . '_unit' ] = str_replace( $display[ $key ], '', $temp );
|
440 |
}
|
classes/Newsletters.php
CHANGED
@@ -14,6 +14,8 @@ class PUM_Newsletters {
|
|
14 |
*/
|
15 |
public static $errors;
|
16 |
|
|
|
|
|
17 |
public static function init() {
|
18 |
add_action( 'plugins_loaded', array( __CLASS__, 'delayed_init' ), - 100 );
|
19 |
}
|
@@ -22,12 +24,14 @@ class PUM_Newsletters {
|
|
22 |
// TODO Once PUM-Aweber has been updated properly for a few months remove these if checks.
|
23 |
// TODO Consider adding notice to update aweber.
|
24 |
|
25 |
-
|
26 |
-
if ( in_array( true, array(
|
27 |
class_exists( 'PUM_Aweber_Integration' ) && defined( 'PUM_AWEBER_INTEGRATION_VER' ) && version_compare( PUM_AWEBER_INTEGRATION_VER, '1.1.0', '<' ),
|
28 |
class_exists( 'PUM_MailChimp_Integration' ) && defined( 'PUM_MAILCHIMP_INTEGRATION_VER' ) && PUM_MAILCHIMP_INTEGRATION_VER,
|
29 |
class_exists( 'PUM_MCI' ) && version_compare( PUM_MCI::$VER, '1.3.0', '<' ),
|
30 |
-
) )
|
|
|
|
|
|
|
31 |
return;
|
32 |
}
|
33 |
|
14 |
*/
|
15 |
public static $errors;
|
16 |
|
17 |
+
public static $disabled = false;
|
18 |
+
|
19 |
public static function init() {
|
20 |
add_action( 'plugins_loaded', array( __CLASS__, 'delayed_init' ), - 100 );
|
21 |
}
|
24 |
// TODO Once PUM-Aweber has been updated properly for a few months remove these if checks.
|
25 |
// TODO Consider adding notice to update aweber.
|
26 |
|
27 |
+
self::$disabled = in_array( true, array(
|
|
|
28 |
class_exists( 'PUM_Aweber_Integration' ) && defined( 'PUM_AWEBER_INTEGRATION_VER' ) && version_compare( PUM_AWEBER_INTEGRATION_VER, '1.1.0', '<' ),
|
29 |
class_exists( 'PUM_MailChimp_Integration' ) && defined( 'PUM_MAILCHIMP_INTEGRATION_VER' ) && PUM_MAILCHIMP_INTEGRATION_VER,
|
30 |
class_exists( 'PUM_MCI' ) && version_compare( PUM_MCI::$VER, '1.3.0', '<' ),
|
31 |
+
) );
|
32 |
+
|
33 |
+
// Checks for single very specific versions.
|
34 |
+
if ( self::$disabled ) {
|
35 |
return;
|
36 |
}
|
37 |
|
classes/Site/Assets.php
CHANGED
@@ -108,7 +108,7 @@ class PUM_Site_Assets {
|
|
108 |
wp_enqueue_style( 'pum-newsletter-site', PUM_NEWSLETTER_URL . 'assets/css/pum-newsletter-site' . self::$suffix . '.css', null, PUM_NEWSLETTER_VERSION );
|
109 |
wp_enqueue_script( 'pum-newsletter-site', PUM_NEWSLETTER_URL . 'assets/js/pum-newsletter-site' . self::$suffix . '.js', array( 'jquery' ), PUM_NEWSLETTER_VERSION, true );
|
110 |
wp_localize_script( 'pum-newsletter-site', 'pum_sub_vars', array(
|
111 |
-
'ajaxurl'
|
112 |
'message_position' => 'top',
|
113 |
) );
|
114 |
}
|
@@ -214,16 +214,17 @@ class PUM_Site_Assets {
|
|
214 |
$site_home_path = isset( $site_home_path['path'] ) ? $site_home_path['path'] : '/';
|
215 |
|
216 |
wp_localize_script( 'popup-maker-site', 'pum_vars', apply_filters( 'pum_vars', array(
|
217 |
-
'version'
|
218 |
-
'ajaxurl'
|
219 |
-
'restapi'
|
220 |
-
'rest_nonce'
|
221 |
-
'default_theme'
|
222 |
-
'debug_mode'
|
223 |
-
'popups'
|
224 |
-
'disable_tracking'
|
225 |
-
'home_url'
|
226 |
-
'message_position'
|
|
|
227 |
) ) );
|
228 |
|
229 |
// TODO Remove all trace usages of these in JS so they can be removed.
|
108 |
wp_enqueue_style( 'pum-newsletter-site', PUM_NEWSLETTER_URL . 'assets/css/pum-newsletter-site' . self::$suffix . '.css', null, PUM_NEWSLETTER_VERSION );
|
109 |
wp_enqueue_script( 'pum-newsletter-site', PUM_NEWSLETTER_URL . 'assets/js/pum-newsletter-site' . self::$suffix . '.js', array( 'jquery' ), PUM_NEWSLETTER_VERSION, true );
|
110 |
wp_localize_script( 'pum-newsletter-site', 'pum_sub_vars', array(
|
111 |
+
'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
112 |
'message_position' => 'top',
|
113 |
) );
|
114 |
}
|
214 |
$site_home_path = isset( $site_home_path['path'] ) ? $site_home_path['path'] : '/';
|
215 |
|
216 |
wp_localize_script( 'popup-maker-site', 'pum_vars', apply_filters( 'pum_vars', array(
|
217 |
+
'version' => Popup_Maker::$VER,
|
218 |
+
'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
219 |
+
'restapi' => function_exists( 'rest_url' ) ? esc_url_raw( rest_url( 'pum/v1' ) ) : false,
|
220 |
+
'rest_nonce' => is_user_logged_in() ? wp_create_nonce( 'wp_rest' ) : null,
|
221 |
+
'default_theme' => (string) popmake_get_default_popup_theme(),
|
222 |
+
'debug_mode' => Popup_Maker::debug_mode(),
|
223 |
+
'popups' => self::get_popup_settings(),
|
224 |
+
'disable_tracking' => popmake_get_option( 'disable_popup_open_tracking' ),
|
225 |
+
'home_url' => trailingslashit( $site_home_path ),
|
226 |
+
'message_position' => 'top',
|
227 |
+
'core_sub_forms_enabled' => ! PUM_Newsletters::$disabled,
|
228 |
) ) );
|
229 |
|
230 |
// TODO Remove all trace usages of these in JS so they can be removed.
|
classes/Upgrades.php
CHANGED
@@ -40,6 +40,13 @@ class PUM_Upgrades {
|
|
40 |
*/
|
41 |
private $initial_version;
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
/**
|
44 |
* Gets everything going with a singleton instance.
|
45 |
*
|
@@ -80,6 +87,7 @@ class PUM_Upgrades {
|
|
80 |
$this->version = get_option( 'pum_ver' );
|
81 |
$this->upgraded_from = get_option( 'pum_ver_upgraded_from' );
|
82 |
$this->initial_version = get_option( 'pum_initial_version' );
|
|
|
83 |
|
84 |
/**
|
85 |
* If no version set check if a deprecated one exists.
|
@@ -94,7 +102,7 @@ class PUM_Upgrades {
|
|
94 |
/**
|
95 |
* Back fill the initial version with the oldest version we can detect.
|
96 |
*/
|
97 |
-
if ( !
|
98 |
|
99 |
$oldest_known = Popup_Maker::$VER;
|
100 |
|
@@ -122,6 +130,8 @@ class PUM_Upgrades {
|
|
122 |
update_option( 'pum_initial_version', $oldest_known );
|
123 |
}
|
124 |
|
|
|
|
|
125 |
if ( version_compare( $this->version, Popup_Maker::$VER, '<' ) ) {
|
126 |
// Allow processing of small core upgrades
|
127 |
do_action( 'pum_update_core_version', $this->version );
|
@@ -132,6 +142,25 @@ class PUM_Upgrades {
|
|
132 |
$this->upgraded_from = $this->version;
|
133 |
$this->version = Popup_Maker::$VER;
|
134 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
}
|
136 |
|
137 |
/**
|
40 |
*/
|
41 |
private $initial_version;
|
42 |
|
43 |
+
/**
|
44 |
+
* Popup Maker db version.
|
45 |
+
*
|
46 |
+
* @var string
|
47 |
+
*/
|
48 |
+
private $db_version;
|
49 |
+
|
50 |
/**
|
51 |
* Gets everything going with a singleton instance.
|
52 |
*
|
87 |
$this->version = get_option( 'pum_ver' );
|
88 |
$this->upgraded_from = get_option( 'pum_ver_upgraded_from' );
|
89 |
$this->initial_version = get_option( 'pum_initial_version' );
|
90 |
+
$this->db_version = get_option( 'pum_db_ver' );
|
91 |
|
92 |
/**
|
93 |
* If no version set check if a deprecated one exists.
|
102 |
/**
|
103 |
* Back fill the initial version with the oldest version we can detect.
|
104 |
*/
|
105 |
+
if ( ! $this->initial_version ) {
|
106 |
|
107 |
$oldest_known = Popup_Maker::$VER;
|
108 |
|
130 |
update_option( 'pum_initial_version', $oldest_known );
|
131 |
}
|
132 |
|
133 |
+
|
134 |
+
|
135 |
if ( version_compare( $this->version, Popup_Maker::$VER, '<' ) ) {
|
136 |
// Allow processing of small core upgrades
|
137 |
do_action( 'pum_update_core_version', $this->version );
|
142 |
$this->upgraded_from = $this->version;
|
143 |
$this->version = Popup_Maker::$VER;
|
144 |
}
|
145 |
+
|
146 |
+
|
147 |
+
// If no current db version, but prior install detected, set db version correctly.
|
148 |
+
if ( ! $this->db_version ) {
|
149 |
+
if ( $this->upgraded_from ) {
|
150 |
+
if ( version_compare( $this->upgraded_from, '1.3.0', '<' ) ) {
|
151 |
+
$this->db_version = 1;
|
152 |
+
} else {
|
153 |
+
$this->db_version = 2;
|
154 |
+
}
|
155 |
+
} else {
|
156 |
+
$this->db_version = Popup_Maker::$DB_VER;
|
157 |
+
}
|
158 |
+
add_option( 'pum_db_ver', $this->db_version );
|
159 |
+
}
|
160 |
+
|
161 |
+
if ( $this->db_version < Popup_Maker::$DB_VER ) {
|
162 |
+
update_option( 'pum_db_ver', $this->db_version );
|
163 |
+
}
|
164 |
}
|
165 |
|
166 |
/**
|
includes/class-pum.php
CHANGED
@@ -7,7 +7,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
7 |
|
8 |
class PUM {
|
9 |
|
10 |
-
const VER = '1.7.
|
11 |
|
12 |
const DB_VER = 8;
|
13 |
|
7 |
|
8 |
class PUM {
|
9 |
|
10 |
+
const VER = '1.7.13';
|
11 |
|
12 |
const DB_VER = 8;
|
13 |
|
languages/popup-maker.pot
CHANGED
@@ -54,23 +54,23 @@ msgid_plural "%s popup themes were updated successfully."
|
|
54 |
msgstr[0] ""
|
55 |
msgstr[1] ""
|
56 |
|
57 |
-
#: classes/Admin/Ajax.php:126, classes/Admin/Ajax.php:293, classes/Upgrades.php:
|
58 |
msgid "A batch process ID must be present to continue."
|
59 |
msgstr ""
|
60 |
|
61 |
-
#: classes/Admin/Ajax.php:133, classes/Upgrades.php:
|
62 |
msgid "You do not have permission to initiate this request. Contact an administrator for more information."
|
63 |
msgstr ""
|
64 |
|
65 |
-
#: classes/Admin/Ajax.php:142, classes/Admin/Ajax.php:302, classes/Upgrades.php:
|
66 |
msgid "%s is an invalid batch process ID."
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: classes/Admin/Ajax.php:151, classes/Admin/Ajax.php:311, classes/Upgrades.php:
|
70 |
msgid "An invalid file path is registered for the %1$s batch process handler."
|
71 |
msgstr ""
|
72 |
|
73 |
-
#: classes/Admin/Ajax.php:159, classes/Admin/Ajax.php:319, classes/Upgrades.php:
|
74 |
msgid "%1$s is an invalid handler for the %2$s batch process. Please try again."
|
75 |
msgstr ""
|
76 |
|
@@ -162,7 +162,7 @@ msgstr ""
|
|
162 |
msgid "Subscribers"
|
163 |
msgstr ""
|
164 |
|
165 |
-
#: classes/Admin/Pages.php:56, classes/Admin/Pages.php:149, classes/Admin/Templates.php:415, classes/Admin/Templates.php:643, classes/Site/Assets.php:
|
166 |
msgid "Settings"
|
167 |
msgstr ""
|
168 |
|
@@ -254,7 +254,7 @@ msgstr ""
|
|
254 |
msgid "Display"
|
255 |
msgstr ""
|
256 |
|
257 |
-
#: classes/Admin/Popups.php:291, classes/Admin/Popups.php:307, classes/Admin/Templates.php:406, classes/Site/Assets.php:
|
258 |
msgid "Triggers"
|
259 |
msgstr ""
|
260 |
|
@@ -266,7 +266,7 @@ msgstr ""
|
|
266 |
msgid "General Settings"
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: classes/Admin/Popups.php:310, classes/Site/Assets.php:
|
270 |
msgid "Conditions"
|
271 |
msgstr ""
|
272 |
|
@@ -1124,7 +1124,7 @@ msgstr ""
|
|
1124 |
msgid "Cookies control the repeat display of a popup."
|
1125 |
msgstr ""
|
1126 |
|
1127 |
-
#: classes/Admin/Templates.php:634, classes/Site/Assets.php:
|
1128 |
msgid "Cookies"
|
1129 |
msgstr ""
|
1130 |
|
@@ -1784,79 +1784,79 @@ msgstr ""
|
|
1784 |
msgid "Subscription Form Placeholder"
|
1785 |
msgstr ""
|
1786 |
|
1787 |
-
#: classes/Site/Assets.php:
|
1788 |
msgid "Popup Maker"
|
1789 |
msgstr ""
|
1790 |
|
1791 |
-
#: classes/Site/Assets.php:
|
1792 |
msgid "Debug Mode Enabled"
|
1793 |
msgstr ""
|
1794 |
|
1795 |
-
#: classes/Site/Assets.php:
|
1796 |
msgid "Debug started at:"
|
1797 |
msgstr ""
|
1798 |
|
1799 |
-
#: classes/Site/Assets.php:
|
1800 |
msgid "For more information on how to use this information visit %s"
|
1801 |
msgstr ""
|
1802 |
|
1803 |
-
#: classes/Site/Assets.php:
|
1804 |
msgid "Global Information"
|
1805 |
msgstr ""
|
1806 |
|
1807 |
-
#: classes/Site/Assets.php:
|
1808 |
msgid "Localized variables"
|
1809 |
msgstr ""
|
1810 |
|
1811 |
-
#: classes/Site/Assets.php:
|
1812 |
msgid "Popups Initializing"
|
1813 |
msgstr ""
|
1814 |
|
1815 |
-
#: classes/Site/Assets.php:
|
1816 |
msgid "Popups Initialized"
|
1817 |
msgstr ""
|
1818 |
|
1819 |
-
#: classes/Site/Assets.php:
|
1820 |
msgid "Popup: #"
|
1821 |
msgstr ""
|
1822 |
|
1823 |
-
#: classes/Site/Assets.php:
|
1824 |
msgid "Theme ID: "
|
1825 |
msgstr ""
|
1826 |
|
1827 |
-
#: classes/Site/Assets.php:
|
1828 |
msgid "Method Call:"
|
1829 |
msgstr ""
|
1830 |
|
1831 |
-
#: classes/Site/Assets.php:
|
1832 |
msgid "Method Arguments:"
|
1833 |
msgstr ""
|
1834 |
|
1835 |
-
#: classes/Site/Assets.php:
|
1836 |
msgid "Delay:"
|
1837 |
msgstr ""
|
1838 |
|
1839 |
-
#: classes/Site/Assets.php:
|
1840 |
msgid "Cookie:"
|
1841 |
msgstr ""
|
1842 |
|
1843 |
-
#: classes/Site/Assets.php:
|
1844 |
msgid "Settings:"
|
1845 |
msgstr ""
|
1846 |
|
1847 |
-
#: classes/Site/Assets.php:
|
1848 |
msgid "Selector:"
|
1849 |
msgstr ""
|
1850 |
|
1851 |
-
#: classes/Site/Assets.php:
|
1852 |
msgid "Mobile Disabled:"
|
1853 |
msgstr ""
|
1854 |
|
1855 |
-
#: classes/Site/Assets.php:
|
1856 |
msgid "Tablet Disabled:"
|
1857 |
msgstr ""
|
1858 |
|
1859 |
-
#: classes/Site/Assets.php:
|
1860 |
msgid "Event: %s"
|
1861 |
msgstr ""
|
1862 |
|
@@ -1973,31 +1973,31 @@ msgctxt "Post Type Singular: Popup, Theme"
|
|
1973 |
msgid "%1$s submitted."
|
1974 |
msgstr ""
|
1975 |
|
1976 |
-
#: classes/Upgrades.php:
|
1977 |
msgid "Your database needs to be upgraded following the latest Popup Maker or Popup Maker extension update."
|
1978 |
msgstr ""
|
1979 |
|
1980 |
-
#: classes/Upgrades.php:
|
1981 |
msgid "Popup Maker needs to complete a database upgrade that was previously started."
|
1982 |
msgstr ""
|
1983 |
|
1984 |
-
#: classes/Upgrades.php:
|
1985 |
msgid "This can sometimes take a few minutes, are you ready to begin?"
|
1986 |
msgstr ""
|
1987 |
|
1988 |
-
#: classes/Upgrades.php:
|
1989 |
msgid "Finish Upgrades"
|
1990 |
msgstr ""
|
1991 |
|
1992 |
-
#: classes/Upgrades.php:
|
1993 |
msgid "Process Upgrades"
|
1994 |
msgstr ""
|
1995 |
|
1996 |
-
#: classes/Upgrades.php:
|
1997 |
msgid "Upgrades"
|
1998 |
msgstr ""
|
1999 |
|
2000 |
-
#: classes/Upgrades.php:
|
2001 |
msgid "No upgrades currently required."
|
2002 |
msgstr ""
|
2003 |
|
54 |
msgstr[0] ""
|
55 |
msgstr[1] ""
|
56 |
|
57 |
+
#: classes/Admin/Ajax.php:126, classes/Admin/Ajax.php:293, classes/Upgrades.php:391
|
58 |
msgid "A batch process ID must be present to continue."
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: classes/Admin/Ajax.php:133, classes/Upgrades.php:398
|
62 |
msgid "You do not have permission to initiate this request. Contact an administrator for more information."
|
63 |
msgstr ""
|
64 |
|
65 |
+
#: classes/Admin/Ajax.php:142, classes/Admin/Ajax.php:302, classes/Upgrades.php:417
|
66 |
msgid "%s is an invalid batch process ID."
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: classes/Admin/Ajax.php:151, classes/Admin/Ajax.php:311, classes/Upgrades.php:524
|
70 |
msgid "An invalid file path is registered for the %1$s batch process handler."
|
71 |
msgstr ""
|
72 |
|
73 |
+
#: classes/Admin/Ajax.php:159, classes/Admin/Ajax.php:319, classes/Upgrades.php:530
|
74 |
msgid "%1$s is an invalid handler for the %2$s batch process. Please try again."
|
75 |
msgstr ""
|
76 |
|
162 |
msgid "Subscribers"
|
163 |
msgstr ""
|
164 |
|
165 |
+
#: classes/Admin/Pages.php:56, classes/Admin/Pages.php:149, classes/Admin/Templates.php:415, classes/Admin/Templates.php:643, classes/Site/Assets.php:246, includes/admin/admin-setup.php:24
|
166 |
msgid "Settings"
|
167 |
msgstr ""
|
168 |
|
254 |
msgid "Display"
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: classes/Admin/Popups.php:291, classes/Admin/Popups.php:307, classes/Admin/Templates.php:406, classes/Site/Assets.php:247
|
258 |
msgid "Triggers"
|
259 |
msgstr ""
|
260 |
|
266 |
msgid "General Settings"
|
267 |
msgstr ""
|
268 |
|
269 |
+
#: classes/Admin/Popups.php:310, classes/Site/Assets.php:250
|
270 |
msgid "Conditions"
|
271 |
msgstr ""
|
272 |
|
1124 |
msgid "Cookies control the repeat display of a popup."
|
1125 |
msgstr ""
|
1126 |
|
1127 |
+
#: classes/Admin/Templates.php:634, classes/Site/Assets.php:248
|
1128 |
msgid "Cookies"
|
1129 |
msgstr ""
|
1130 |
|
1784 |
msgid "Subscription Form Placeholder"
|
1785 |
msgstr ""
|
1786 |
|
1787 |
+
#: classes/Site/Assets.php:235, classes/Types.php:23, includes/admin/class-pum-admin-upgrades.php:110, includes/admin/class-pum-admin-upgrades.php:111, includes/admin/class-pum-admin-upgrades.php:256, includes/integrations/class-pum-gravity-forms.php:53, includes/modules/admin-bar.php:414
|
1788 |
msgid "Popup Maker"
|
1789 |
msgstr ""
|
1790 |
|
1791 |
+
#: classes/Site/Assets.php:235
|
1792 |
msgid "Debug Mode Enabled"
|
1793 |
msgstr ""
|
1794 |
|
1795 |
+
#: classes/Site/Assets.php:236
|
1796 |
msgid "Debug started at:"
|
1797 |
msgstr ""
|
1798 |
|
1799 |
+
#: classes/Site/Assets.php:237
|
1800 |
msgid "For more information on how to use this information visit %s"
|
1801 |
msgstr ""
|
1802 |
|
1803 |
+
#: classes/Site/Assets.php:238
|
1804 |
msgid "Global Information"
|
1805 |
msgstr ""
|
1806 |
|
1807 |
+
#: classes/Site/Assets.php:239
|
1808 |
msgid "Localized variables"
|
1809 |
msgstr ""
|
1810 |
|
1811 |
+
#: classes/Site/Assets.php:240
|
1812 |
msgid "Popups Initializing"
|
1813 |
msgstr ""
|
1814 |
|
1815 |
+
#: classes/Site/Assets.php:241
|
1816 |
msgid "Popups Initialized"
|
1817 |
msgstr ""
|
1818 |
|
1819 |
+
#: classes/Site/Assets.php:242
|
1820 |
msgid "Popup: #"
|
1821 |
msgstr ""
|
1822 |
|
1823 |
+
#: classes/Site/Assets.php:243
|
1824 |
msgid "Theme ID: "
|
1825 |
msgstr ""
|
1826 |
|
1827 |
+
#: classes/Site/Assets.php:244
|
1828 |
msgid "Method Call:"
|
1829 |
msgstr ""
|
1830 |
|
1831 |
+
#: classes/Site/Assets.php:245
|
1832 |
msgid "Method Arguments:"
|
1833 |
msgstr ""
|
1834 |
|
1835 |
+
#: classes/Site/Assets.php:249
|
1836 |
msgid "Delay:"
|
1837 |
msgstr ""
|
1838 |
|
1839 |
+
#: classes/Site/Assets.php:251
|
1840 |
msgid "Cookie:"
|
1841 |
msgstr ""
|
1842 |
|
1843 |
+
#: classes/Site/Assets.php:252
|
1844 |
msgid "Settings:"
|
1845 |
msgstr ""
|
1846 |
|
1847 |
+
#: classes/Site/Assets.php:253
|
1848 |
msgid "Selector:"
|
1849 |
msgstr ""
|
1850 |
|
1851 |
+
#: classes/Site/Assets.php:254
|
1852 |
msgid "Mobile Disabled:"
|
1853 |
msgstr ""
|
1854 |
|
1855 |
+
#: classes/Site/Assets.php:255
|
1856 |
msgid "Tablet Disabled:"
|
1857 |
msgstr ""
|
1858 |
|
1859 |
+
#: classes/Site/Assets.php:256
|
1860 |
msgid "Event: %s"
|
1861 |
msgstr ""
|
1862 |
|
1973 |
msgid "%1$s submitted."
|
1974 |
msgstr ""
|
1975 |
|
1976 |
+
#: classes/Upgrades.php:213
|
1977 |
msgid "Your database needs to be upgraded following the latest Popup Maker or Popup Maker extension update."
|
1978 |
msgstr ""
|
1979 |
|
1980 |
+
#: classes/Upgrades.php:215
|
1981 |
msgid "Popup Maker needs to complete a database upgrade that was previously started."
|
1982 |
msgstr ""
|
1983 |
|
1984 |
+
#: classes/Upgrades.php:236
|
1985 |
msgid "This can sometimes take a few minutes, are you ready to begin?"
|
1986 |
msgstr ""
|
1987 |
|
1988 |
+
#: classes/Upgrades.php:239
|
1989 |
msgid "Finish Upgrades"
|
1990 |
msgstr ""
|
1991 |
|
1992 |
+
#: classes/Upgrades.php:239
|
1993 |
msgid "Process Upgrades"
|
1994 |
msgstr ""
|
1995 |
|
1996 |
+
#: classes/Upgrades.php:550
|
1997 |
msgid "Upgrades"
|
1998 |
msgstr ""
|
1999 |
|
2000 |
+
#: classes/Upgrades.php:561
|
2001 |
msgid "No upgrades currently required."
|
2002 |
msgstr ""
|
2003 |
|
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.
|
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.
|
97 |
|
98 |
/**
|
99 |
* @var int DB Version
|
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.13
|
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.13';
|
97 |
|
98 |
/**
|
99 |
* @var int DB Version
|
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.4
|
9 |
-
Stable tag: 1.7.
|
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.
|
@@ -100,6 +100,14 @@ There are several common causes for this which include:
|
|
100 |
9. Create any popup imaginable using our color pickers and sliders!
|
101 |
|
102 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
|
104 |
= v1.7.12 - 03/21/2018 =
|
105 |
* Improvement: Added option to disable the shortcode ui.
|
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.4
|
9 |
+
Stable tag: 1.7.13
|
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.
|
100 |
9. Create any popup imaginable using our color pickers and sliders!
|
101 |
|
102 |
== Changelog ==
|
103 |
+
= v1.7.13 - 03/27/2018 =
|
104 |
+
* Tweak: Added fallback methods for conditions using MobileDetect to prevent errors when for whatever reason it was not loaded properly.
|
105 |
+
* Tweak: Added value type check to prevent errors in popup data.
|
106 |
+
* Fix: Bug with accessibility forced focus when there is a link in the popup, causing the close button to focus the link before closing.
|
107 |
+
* Fix: Bug that caused issues with MC extensions JS loading properly.
|
108 |
+
* Fix: Added fail-safe in case variables were not properly declared on page for mce-buttons.js.
|
109 |
+
* Fix: Set a deprecated option on new installs for backward compatibility issues.
|
110 |
+
* Fix: Selector correction in z-index setting application.
|
111 |
|
112 |
= v1.7.12 - 03/21/2018 =
|
113 |
* Improvement: Added option to disable the shortcode ui.
|