Version Description
Download this release
Release Info
Developer | danieliser |
Plugin | Popup Maker – Popup Forms, Optins & More |
Version | 1.1.7 |
Comparing to | |
See all releases |
Code changes from version 1.1.6 to 1.1.7
- assets/images/admin/newsletter-banner_v3.png +0 -0
- assets/scripts/popup-maker-admin.js +10 -9
- assets/scripts/popup-maker-admin.min.js +22 -22
- assets/scripts/popup-maker-site.js +10 -2
- includes/admin/admin-setup.php +2 -2
- includes/admin/settings/register-settings.php +7 -0
- includes/input-options.php +1 -0
- popup-maker.php +2 -2
- readme.txt +7 -4
assets/images/admin/newsletter-banner_v3.png
ADDED
Binary file
|
assets/scripts/popup-maker-admin.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* Popup Maker v1.
|
3 |
*/
|
4 |
var PopMakeAdmin;
|
5 |
(function () {
|
@@ -307,7 +307,7 @@ var PopMakeAdmin;
|
|
307 |
jQuery(document)
|
308 |
.on('click', '.popmake-range-manual', function () {
|
309 |
var $this = jQuery(this);
|
310 |
-
$this.
|
311 |
})
|
312 |
.on('focusout', '.popmake-range-manual', function () {
|
313 |
var $this = jQuery(this);
|
@@ -399,9 +399,9 @@ var PopMakeAdmin;
|
|
399 |
others.hide();
|
400 |
jQuery('> *', others).prop('disabled', true);
|
401 |
excludes.show();
|
402 |
-
jQuery('> *', excludes).
|
403 |
} else {
|
404 |
-
jQuery('*', $options).
|
405 |
}
|
406 |
} else {
|
407 |
$options.hide();
|
@@ -409,7 +409,7 @@ var PopMakeAdmin;
|
|
409 |
excludes = $this.parents('#popmake_popup_targeting_condition_fields').find('[id^="targeting_condition-exclude_on_"]');
|
410 |
others = $this.parents('.targeting_condition').siblings('.targeting_condition');
|
411 |
others.show();
|
412 |
-
jQuery('> *', others).
|
413 |
excludes.hide();
|
414 |
jQuery('> *', excludes).prop('disabled', true);
|
415 |
} else {
|
@@ -418,17 +418,18 @@ var PopMakeAdmin;
|
|
418 |
}
|
419 |
},
|
420 |
update_specific_checkboxes = function ($this) {
|
421 |
-
var $option = $this.
|
422 |
exclude = $option.attr('name').indexOf("exclude") >= 0,
|
423 |
type = exclude ? $option.attr('name').replace('popup_targeting_condition_exclude_on_specific_', '') : $option.attr('name').replace('popup_targeting_condition_on_specific_', ''),
|
424 |
type_box = exclude ? jQuery('#exclude_on_specific_' + type) : jQuery('#on_specific_' + type);
|
|
|
425 |
if ($this.is(':checked')) {
|
426 |
if ($this.val() === 'true') {
|
427 |
$option.prop('checked', true);
|
428 |
type_box.show();
|
429 |
-
jQuery('*', type_box).
|
430 |
} else if ($this.val() === '') {
|
431 |
-
$option.
|
432 |
type_box.hide();
|
433 |
jQuery('*', type_box).prop('disabled', true);
|
434 |
}
|
@@ -576,7 +577,7 @@ var PopMakeAdmin;
|
|
576 |
var self = this;
|
577 |
jQuery(document)
|
578 |
.on('change', 'select.font-family', function () {
|
579 |
-
jQuery('select.font-weight option, select.font-style option', jQuery(this).parents('table')).
|
580 |
self.update_font_selectboxes();
|
581 |
})
|
582 |
.on('change', 'select.font-weight, select.font-style', function () {
|
1 |
/**
|
2 |
+
* Popup Maker v1.2.0
|
3 |
*/
|
4 |
var PopMakeAdmin;
|
5 |
(function () {
|
307 |
jQuery(document)
|
308 |
.on('click', '.popmake-range-manual', function () {
|
309 |
var $this = jQuery(this);
|
310 |
+
$this.prop('readonly', false);
|
311 |
})
|
312 |
.on('focusout', '.popmake-range-manual', function () {
|
313 |
var $this = jQuery(this);
|
399 |
others.hide();
|
400 |
jQuery('> *', others).prop('disabled', true);
|
401 |
excludes.show();
|
402 |
+
jQuery('> *', excludes).prop('disabled', false);
|
403 |
} else {
|
404 |
+
jQuery('*', $options).prop('disabled', false);
|
405 |
}
|
406 |
} else {
|
407 |
$options.hide();
|
409 |
excludes = $this.parents('#popmake_popup_targeting_condition_fields').find('[id^="targeting_condition-exclude_on_"]');
|
410 |
others = $this.parents('.targeting_condition').siblings('.targeting_condition');
|
411 |
others.show();
|
412 |
+
jQuery('> *', others).prop('disabled', false);
|
413 |
excludes.hide();
|
414 |
jQuery('> *', excludes).prop('disabled', true);
|
415 |
} else {
|
418 |
}
|
419 |
},
|
420 |
update_specific_checkboxes = function ($this) {
|
421 |
+
var $option = $this.parents('.options').find('input[type="checkbox"]:eq(0)'),
|
422 |
exclude = $option.attr('name').indexOf("exclude") >= 0,
|
423 |
type = exclude ? $option.attr('name').replace('popup_targeting_condition_exclude_on_specific_', '') : $option.attr('name').replace('popup_targeting_condition_on_specific_', ''),
|
424 |
type_box = exclude ? jQuery('#exclude_on_specific_' + type) : jQuery('#on_specific_' + type);
|
425 |
+
|
426 |
if ($this.is(':checked')) {
|
427 |
if ($this.val() === 'true') {
|
428 |
$option.prop('checked', true);
|
429 |
type_box.show();
|
430 |
+
jQuery('*', type_box).prop('disabled', false);
|
431 |
} else if ($this.val() === '') {
|
432 |
+
$option.prop('checked', false);
|
433 |
type_box.hide();
|
434 |
jQuery('*', type_box).prop('disabled', true);
|
435 |
}
|
577 |
var self = this;
|
578 |
jQuery(document)
|
579 |
.on('change', 'select.font-family', function () {
|
580 |
+
jQuery('select.font-weight option, select.font-style option', jQuery(this).parents('table')).prop('selected', false);
|
581 |
self.update_font_selectboxes();
|
582 |
})
|
583 |
.on('change', 'select.font-weight, select.font-style', function () {
|
assets/scripts/popup-maker-admin.min.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* Popup Maker v1.
|
3 |
*/
|
4 |
var PopMakeAdmin;
|
5 |
(function(){PopMakeAdmin={init:function(){jQuery("body.post-type-popup form#post").length&&(PopMakeAdmin.initialize_popup_page(),PopMakeAdmin.attachQuickSearchListeners(),PopMakeAdmin.attachTabsPanelListeners());jQuery("body.post-type-popup_theme form#post").length&&PopMakeAdmin.initialize_theme_page();PopMakeAdmin.initialize_color_pickers();PopMakeAdmin.initialize_range_sliders();PopMakeAdmin.initialize_marketing();jQuery(document).keydown(function(a){return"115"!==a.which&&"83"!==a.which||!a.ctrlKey&&
|
@@ -13,31 +13,31 @@ d.parents(".options");b=jQuery('.tabs-panel-active input[type="checkbox"]:checke
|
|
13 |
a=jQuery("<div>").html(a).find("li");var f;a.length?(a.each(function(){f=jQuery(this);if((d=h.exec(f.html()))&&d[1]){for(e=d[1];g.elements["menu-item["+e+"][menu-item-type]"]||k[e];)--e;k[e]=!0;e!==d[1]&&f.html(f.html().replace(new RegExp("menu-item\\["+d[1]+"\\]","g"),"menu-item["+e+"]"))}}),jQuery(".categorychecklist",c).html(a),jQuery(".spinner",c).hide(),jQuery('[name^="menu-item"]').removeAttr("name")):(jQuery(".categorychecklist",c).html("<li><p>noResultsFound</p></li>"),jQuery(".spinner",c).hide())},
|
14 |
initialize_color_pickers:function(){var a=this;jQuery(".color-picker").wpColorPicker({change:function(b){a.throttle(setTimeout(function(){a.update_theme()},5),250);b=jQuery(b.currentTarget);b.hasClass("background-color")&&b.parents("table").find(".background-opacity").show()},clear:function(b){a.update_theme();b=jQuery(b.currentTarget).prev();b.hasClass("background-color")&&b.parents("table").find(".background-opacity").hide()}})},initialize_range_sliders:function(){var a,b,c,d,e,g=jQuery('<input type="range"/>'),
|
15 |
k=jQuery('<button class="popmake-range-plus">+</button>'),h=jQuery('<button class="popmake-range-minus">-</button>');jQuery(document).on("input",'input[type="range"]',function(){var a=jQuery(this);a.siblings(".popmake-range-manual").val(a.val())});jQuery(".popmake-range-manual").each(function(){var a=jQuery(this),b=a.data("force-minmax"),p=parseInt(a.prop("min"),0),m=parseInt(a.prop("max"),0),q=parseInt(a.prop("step"),0),l=parseInt(a.val(),0);c=g.clone();d=k.clone();e=h.clone();b&&l>m&&(l=m,a.val(l));
|
16 |
-
c.prop({min:p||0,max:b||m&&m>l?m:1.5*l,step:q||1.5*l/100,value:l}).on("change input",function(){a.trigger("input")});a.next().after(e,d);a.before(c)});jQuery(document).on("click",".popmake-range-manual",function(){jQuery(this).
|
17 |
-
|
18 |
c.val(b)});a=document.createElement("input");a.setAttribute("type","range");"text"===a.type&&jQuery("input[type=range]").each(function(a,h){b=jQuery(h);c=jQuery("<div />").slider({min:parseInt(b.attr("min"),10)||0,max:parseInt(b.attr("max"),10)||100,value:parseInt(b.attr("value"),10)||0,step:parseInt(b.attr("step"),10)||1,slide:function(a,b){jQuery(this).prev("input").val(b.value)}});b.after(c).hide()})},initialize_popup_page:function(){var a=function(a){var b=a.siblings(".options");a.is(":checked")?
|
19 |
-
(b.show(),"popup_targeting_condition_on_entire_site"===a.attr("id")?(b=a.parents("#popmake_popup_targeting_condition_fields").find('[id^="targeting_condition-exclude_on_"]'),a=a.parents(".targeting_condition").siblings(".targeting_condition"),a.hide(),jQuery("> *",a).prop("disabled",!0),b.show(),jQuery("> *",b).
|
20 |
-
a=a.parents(".targeting_condition").siblings(".targeting_condition"),a.show(),jQuery("> *",a).
|
21 |
-
d);a.is(":checked")&&("true"===a.val()?(b.prop("checked",!0),c.show(),jQuery("*",c).
|
22 |
"auto"!==jQuery("#popup_display_size").val()?jQuery(".responsive-size-only").show():jQuery(".responsive-size-only").hide())},d=function(){jQuery(".animation-speed, .animation-origin").hide();"fade"===jQuery("#popup_display_animation_type").val()?jQuery(".animation-speed").show():"none"!==jQuery("#popup_display_animation_type").val()&&jQuery(".animation-speed, .animation-origin").show()},e=function(){var a=jQuery("#popup_display_location"),b=a.parents("table"),a=a.val();jQuery("tr.top, tr.right, tr.left, tr.bottom",
|
23 |
b).hide();0<=a.indexOf("top")&&jQuery("tr.top").show();0<=a.indexOf("left")&&jQuery("tr.left").show();0<=a.indexOf("bottom")&&jQuery("tr.bottom").show();0<=a.indexOf("right")&&jQuery("tr.right").show()},g=function(){jQuery("#popup_auto_open_enabled").is(":checked")?jQuery(".auto-open-enabled").show():jQuery(".auto-open-enabled").hide()},k=function(){jQuery("#popup_auto_open_cookie_key").val((new Date).getTime().toString(16))};jQuery("#popuptitlediv").insertAfter("#titlediv");jQuery('[name^="menu-item"]').removeAttr("name");
|
24 |
jQuery(document).on("keydown","#popuptitle",function(a){9===(a.keyCode||a.which)&&(a.preventDefault(),jQuery("#title").focus())}).on("keydown","#title, #popuptitle",function(a){var b=a.keyCode||a.which;a.shiftKey||9!==b||(a.preventDefault(),a="title"===jQuery(this).attr("id")?"#popuptitle":"#insert-media-button",jQuery(a).focus())}).on("keydown","#popuptitle, #insert-media-button",function(a){var b=a.keyCode||a.which;a.shiftKey&&9===b&&(a.preventDefault(),a="popuptitle"===jQuery(this).attr("id")?
|
25 |
"#title":"#popuptitle",jQuery(a).focus())}).on("submit","#post",function(a){var b=jQuery("#title").val();if(0===b.length||0===b.replace(/\s/g,"").length)a.preventDefault(),jQuery("div#notice").remove(),jQuery("<div id='notice' class='error below-h2'><p>A name is required for all popups.</p></div>").insertAfter("h2"),jQuery("#title").focus(),jQuery("#ajax-loading").hide(),jQuery("#publish").removeClass("button-primary-disabled"),jQuery("#title").prop("required","required")}).on("click","#popup_display_custom_height_auto",
|
26 |
function(){c()}).on("click","#popup_auto_open_enabled",function(){g()}).on("click",".popmake-reset-auto-open-cookie-key",function(){k()}).on("change","#popup_display_size",function(){c()}).on("change","#popup_display_animation_type",function(){d()}).on("change","#popup_display_location",function(){e()});jQuery('#popmake_popup_targeting_condition_fields .targeting_condition > input[type="checkbox"]').on("click",function(){a(jQuery(this))}).each(function(){a(jQuery(this))});jQuery('input[type="radio"][id*="popup_targeting_condition_"]').on("click",
|
27 |
function(){b(jQuery(this))}).each(function(){b(jQuery(this))});jQuery(".posttypediv, .taxonomydiv").each(function(){var a=jQuery(this),b=jQuery("> ul li"),a=jQuery(".tabs-panel",a);b.removeClass("tabs");b.eq(0).addClass("tabs");a.removeClass("tabs-panel-active").addClass("tabs-panel-inactive").removeAttr("style");a.eq(0).removeClass("tabs-panel-inactive").addClass("tabs-panel-active")});c();d();e();g();""===jQuery("#popup_auto_open_cookie_key").val()&&k()},theme_page_listeners:function(){var a=this;
|
28 |
-
jQuery(document).on("change","select.font-family",function(){jQuery("select.font-weight option, select.font-style option",jQuery(this).parents("table")).
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
a).show();break;case "
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
c
|
1 |
/**
|
2 |
+
* Popup Maker v1.2.0
|
3 |
*/
|
4 |
var PopMakeAdmin;
|
5 |
(function(){PopMakeAdmin={init:function(){jQuery("body.post-type-popup form#post").length&&(PopMakeAdmin.initialize_popup_page(),PopMakeAdmin.attachQuickSearchListeners(),PopMakeAdmin.attachTabsPanelListeners());jQuery("body.post-type-popup_theme form#post").length&&PopMakeAdmin.initialize_theme_page();PopMakeAdmin.initialize_color_pickers();PopMakeAdmin.initialize_range_sliders();PopMakeAdmin.initialize_marketing();jQuery(document).keydown(function(a){return"115"!==a.which&&"83"!==a.which||!a.ctrlKey&&
|
13 |
a=jQuery("<div>").html(a).find("li");var f;a.length?(a.each(function(){f=jQuery(this);if((d=h.exec(f.html()))&&d[1]){for(e=d[1];g.elements["menu-item["+e+"][menu-item-type]"]||k[e];)--e;k[e]=!0;e!==d[1]&&f.html(f.html().replace(new RegExp("menu-item\\["+d[1]+"\\]","g"),"menu-item["+e+"]"))}}),jQuery(".categorychecklist",c).html(a),jQuery(".spinner",c).hide(),jQuery('[name^="menu-item"]').removeAttr("name")):(jQuery(".categorychecklist",c).html("<li><p>noResultsFound</p></li>"),jQuery(".spinner",c).hide())},
|
14 |
initialize_color_pickers:function(){var a=this;jQuery(".color-picker").wpColorPicker({change:function(b){a.throttle(setTimeout(function(){a.update_theme()},5),250);b=jQuery(b.currentTarget);b.hasClass("background-color")&&b.parents("table").find(".background-opacity").show()},clear:function(b){a.update_theme();b=jQuery(b.currentTarget).prev();b.hasClass("background-color")&&b.parents("table").find(".background-opacity").hide()}})},initialize_range_sliders:function(){var a,b,c,d,e,g=jQuery('<input type="range"/>'),
|
15 |
k=jQuery('<button class="popmake-range-plus">+</button>'),h=jQuery('<button class="popmake-range-minus">-</button>');jQuery(document).on("input",'input[type="range"]',function(){var a=jQuery(this);a.siblings(".popmake-range-manual").val(a.val())});jQuery(".popmake-range-manual").each(function(){var a=jQuery(this),b=a.data("force-minmax"),p=parseInt(a.prop("min"),0),m=parseInt(a.prop("max"),0),q=parseInt(a.prop("step"),0),l=parseInt(a.val(),0);c=g.clone();d=k.clone();e=h.clone();b&&l>m&&(l=m,a.val(l));
|
16 |
+
c.prop({min:p||0,max:b||m&&m>l?m:1.5*l,step:q||1.5*l/100,value:l}).on("change input",function(){a.trigger("input")});a.next().after(e,d);a.before(c)});jQuery(document).on("click",".popmake-range-manual",function(){jQuery(this).prop("readonly",!1)}).on("focusout",".popmake-range-manual",function(){jQuery(this).prop("readonly",!0)}).on("change",".popmake-range-manual",function(){var a=jQuery(this),b=parseInt(a.prop("max"),0),h=parseInt(a.prop("step"),0),d=a.data("force-minmax"),e=parseInt(a.val(),0);
|
17 |
+
c=a.prev();d&&e>b&&(e=b,a.val(e));c.prop({max:d||b&&b>e?b:1.5*e,step:h||1.5*e/100,value:e})}).on("click",".popmake-range-plus",function(a){a.preventDefault();a=jQuery(this).siblings(".popmake-range-manual");var b=parseInt(a.prop("step"),0),b=parseInt(a.val(),0)+b;c=a.prev();a.val(b).trigger("input");c.val(b)}).on("click",".popmake-range-minus",function(a){a.preventDefault();a=jQuery(this).siblings(".popmake-range-manual");var b=parseInt(a.prop("step"),0),b=parseInt(a.val(),0)-b;c=a.prev();a.val(b).trigger("input");
|
18 |
c.val(b)});a=document.createElement("input");a.setAttribute("type","range");"text"===a.type&&jQuery("input[type=range]").each(function(a,h){b=jQuery(h);c=jQuery("<div />").slider({min:parseInt(b.attr("min"),10)||0,max:parseInt(b.attr("max"),10)||100,value:parseInt(b.attr("value"),10)||0,step:parseInt(b.attr("step"),10)||1,slide:function(a,b){jQuery(this).prev("input").val(b.value)}});b.after(c).hide()})},initialize_popup_page:function(){var a=function(a){var b=a.siblings(".options");a.is(":checked")?
|
19 |
+
(b.show(),"popup_targeting_condition_on_entire_site"===a.attr("id")?(b=a.parents("#popmake_popup_targeting_condition_fields").find('[id^="targeting_condition-exclude_on_"]'),a=a.parents(".targeting_condition").siblings(".targeting_condition"),a.hide(),jQuery("> *",a).prop("disabled",!0),b.show(),jQuery("> *",b).prop("disabled",!1)):jQuery("*",b).prop("disabled",!1)):(b.hide(),"popup_targeting_condition_on_entire_site"===a.attr("id")?(b=a.parents("#popmake_popup_targeting_condition_fields").find('[id^="targeting_condition-exclude_on_"]'),
|
20 |
+
a=a.parents(".targeting_condition").siblings(".targeting_condition"),a.show(),jQuery("> *",a).prop("disabled",!1),b.hide(),jQuery("> *",b).prop("disabled",!0)):jQuery("*",b).prop("disabled",!0))},b=function(a){var b=a.parents(".options").find('input[type="checkbox"]:eq(0)'),c=0<=b.attr("name").indexOf("exclude"),d=c?b.attr("name").replace("popup_targeting_condition_exclude_on_specific_",""):b.attr("name").replace("popup_targeting_condition_on_specific_",""),c=c?jQuery("#exclude_on_specific_"+d):jQuery("#on_specific_"+
|
21 |
+
d);a.is(":checked")&&("true"===a.val()?(b.prop("checked",!0),c.show(),jQuery("*",c).prop("disabled",!1)):""===a.val()&&(b.prop("checked",!1),c.hide(),jQuery("*",c).prop("disabled",!0)))},c=function(){"custom"===jQuery("#popup_display_size").val()?(jQuery(".custom-size-only").show(),jQuery(".responsive-size-only").hide(),jQuery("#popup_display_custom_height_auto").is(":checked")?jQuery(".custom-size-height-only").hide():jQuery(".custom-size-height-only").show()):(jQuery(".custom-size-only").hide(),
|
22 |
"auto"!==jQuery("#popup_display_size").val()?jQuery(".responsive-size-only").show():jQuery(".responsive-size-only").hide())},d=function(){jQuery(".animation-speed, .animation-origin").hide();"fade"===jQuery("#popup_display_animation_type").val()?jQuery(".animation-speed").show():"none"!==jQuery("#popup_display_animation_type").val()&&jQuery(".animation-speed, .animation-origin").show()},e=function(){var a=jQuery("#popup_display_location"),b=a.parents("table"),a=a.val();jQuery("tr.top, tr.right, tr.left, tr.bottom",
|
23 |
b).hide();0<=a.indexOf("top")&&jQuery("tr.top").show();0<=a.indexOf("left")&&jQuery("tr.left").show();0<=a.indexOf("bottom")&&jQuery("tr.bottom").show();0<=a.indexOf("right")&&jQuery("tr.right").show()},g=function(){jQuery("#popup_auto_open_enabled").is(":checked")?jQuery(".auto-open-enabled").show():jQuery(".auto-open-enabled").hide()},k=function(){jQuery("#popup_auto_open_cookie_key").val((new Date).getTime().toString(16))};jQuery("#popuptitlediv").insertAfter("#titlediv");jQuery('[name^="menu-item"]').removeAttr("name");
|
24 |
jQuery(document).on("keydown","#popuptitle",function(a){9===(a.keyCode||a.which)&&(a.preventDefault(),jQuery("#title").focus())}).on("keydown","#title, #popuptitle",function(a){var b=a.keyCode||a.which;a.shiftKey||9!==b||(a.preventDefault(),a="title"===jQuery(this).attr("id")?"#popuptitle":"#insert-media-button",jQuery(a).focus())}).on("keydown","#popuptitle, #insert-media-button",function(a){var b=a.keyCode||a.which;a.shiftKey&&9===b&&(a.preventDefault(),a="popuptitle"===jQuery(this).attr("id")?
|
25 |
"#title":"#popuptitle",jQuery(a).focus())}).on("submit","#post",function(a){var b=jQuery("#title").val();if(0===b.length||0===b.replace(/\s/g,"").length)a.preventDefault(),jQuery("div#notice").remove(),jQuery("<div id='notice' class='error below-h2'><p>A name is required for all popups.</p></div>").insertAfter("h2"),jQuery("#title").focus(),jQuery("#ajax-loading").hide(),jQuery("#publish").removeClass("button-primary-disabled"),jQuery("#title").prop("required","required")}).on("click","#popup_display_custom_height_auto",
|
26 |
function(){c()}).on("click","#popup_auto_open_enabled",function(){g()}).on("click",".popmake-reset-auto-open-cookie-key",function(){k()}).on("change","#popup_display_size",function(){c()}).on("change","#popup_display_animation_type",function(){d()}).on("change","#popup_display_location",function(){e()});jQuery('#popmake_popup_targeting_condition_fields .targeting_condition > input[type="checkbox"]').on("click",function(){a(jQuery(this))}).each(function(){a(jQuery(this))});jQuery('input[type="radio"][id*="popup_targeting_condition_"]').on("click",
|
27 |
function(){b(jQuery(this))}).each(function(){b(jQuery(this))});jQuery(".posttypediv, .taxonomydiv").each(function(){var a=jQuery(this),b=jQuery("> ul li"),a=jQuery(".tabs-panel",a);b.removeClass("tabs");b.eq(0).addClass("tabs");a.removeClass("tabs-panel-active").addClass("tabs-panel-inactive").removeAttr("style");a.eq(0).removeClass("tabs-panel-inactive").addClass("tabs-panel-active")});c();d();e();g();""===jQuery("#popup_auto_open_cookie_key").val()&&k()},theme_page_listeners:function(){var a=this;
|
28 |
+
jQuery(document).on("change","select.font-family",function(){jQuery("select.font-weight option, select.font-style option",jQuery(this).parents("table")).prop("selected",!1);a.update_font_selectboxes()}).on("change","select.font-weight, select.font-style",function(){a.update_font_selectboxes()}).on("change input focusout","select, input",function(){a.update_theme()}).on("change","select.border-style",function(){var a=jQuery(this);"none"===a.val()?a.parents("table").find(".border-options").hide():a.parents("table").find(".border-options").show()}).on("change",
|
29 |
+
"#popup_theme_close_location",function(){var a=jQuery(this),c=a.parents("table");jQuery("tr.topleft, tr.topright, tr.bottomleft, tr.bottomright",c).hide();jQuery("tr."+a.val(),c).show()})},update_theme:function(){var a=jQuery("[name^='popup_theme_']").serializeArray(),b={},c;for(c=0;a.length>c;c+=1)0===a[c].name.indexOf("popup_theme_")&&(b[a[c].name.replace("popup_theme_","")]=a[c].value);this.retheme_popup(b)},theme_preview_scroll:function(){var a=jQuery("#popmake-theme-editor .empreview, body.post-type-popup_theme form#post #popmake_popup_theme_preview"),
|
30 |
+
b=a.parent(),c=a.offset().top-50;jQuery(window).on("scroll",function(){jQuery("> .postbox:visible",b).index(a)===jQuery("> .postbox:visible",b).length-1&&jQuery(window).scrollTop()>=c?a.css({left:a.offset().left,width:a.width(),height:a.height(),position:"fixed",top:50}):a.removeAttr("style")})},update_font_selectboxes:function(){return jQuery("select.font-family").each(function(){var a=jQuery(this),b=a.parents("table").find("select.font-weight"),c=a.parents("table").find("select.font-style"),d=b.find("option"),
|
31 |
+
e=c.find("option");if(void 0!==popmake_google_fonts[a.val()]){if(a=popmake_google_fonts[a.val()],d.hide(),e.hide(),a.variants.length)for(d=0;a.variants.length>d;d+=1)"regular"===a.variants[d]?(jQuery('option[value="normal"]',b).show(),jQuery('option[value="normal"]',c).show()):(0<=a.variants[d].indexOf("italic")&&jQuery('option[value="italic"]',c).show(),jQuery('option[value="'+parseInt(a.variants[d],10)+'"]',b).show())}else d.show(),e.show();b.parents("tr:first").show();1>=b.find("option:visible").length?
|
32 |
+
b.parents("tr:first").hide():b.parents("tr:first").show();c.parents("tr:first").show();1>=c.find("option:visible").length?c.parents("tr:first").hide():c.parents("tr:first").show()})},initialize_theme_page:function(){jQuery("#popuptitlediv").insertAfter("#titlediv");var a=jQuery("#popup_theme_close_location").parents("table");this.update_theme();this.theme_page_listeners();this.theme_preview_scroll();this.update_font_selectboxes();jQuery("select.border-style").each(function(){var a=jQuery(this);"none"===
|
33 |
+
a.val()?a.parents("table").find(".border-options").hide():a.parents("table").find(".border-options").show()});jQuery(".color-picker.background-color").each(function(){var a=jQuery(this);""===a.val()?a.parents("table").find(".background-opacity").hide():a.parents("table").find(".background-opacity").show()});jQuery("tr.topleft, tr.topright, tr.bottomleft, tr.bottomright",a).hide();switch(jQuery("#popup_theme_close_location").val()){case "topleft":jQuery("tr.topleft",a).show();break;case "topright":jQuery("tr.topright",
|
34 |
+
a).show();break;case "bottomleft":jQuery("tr.bottomleft",a).show();break;case "bottomright":jQuery("tr.bottomright",a).show()}},retheme_popup:function(a){var b=jQuery(".empreview .example-popup-overlay"),c=jQuery(".empreview .example-popup"),d=jQuery(".title",c),e=jQuery(".content",c),g=jQuery(".close-popup",c),k="yes"===a.container_boxshadow_inset?"inset ":"",h="yes"===a.close_boxshadow_inset?"inset ":"",f;void 0!==popmake_google_fonts[a.title_font_family]&&(f="//fonts.googleapis.com/css?family="+
|
35 |
+
a.title_font_family,"normal"!==a.title_font_weight&&(f+=":"+a.title_font_weight),"italic"===a.title_font_style&&(-1===f.indexOf(":")&&(f+=":"),f+="italic"),jQuery("body").append('<link href="'+f+'" rel="stylesheet" type="text/css">'));void 0!==popmake_google_fonts[a.content_font_family]&&(f="//fonts.googleapis.com/css?family="+a.content_font_family,"normal"!==a.content_font_weight&&(f+=":"+a.content_font_weight),"italic"===a.content_font_style&&(-1===f.indexOf(":")&&(f+=":"),f+="italic"),jQuery("body").append('<link href="'+
|
36 |
+
f+'" rel="stylesheet" type="text/css">'));void 0!==popmake_google_fonts[a.close_font_family]&&(f="//fonts.googleapis.com/css?family="+a.close_font_family,"normal"!==a.close_font_weight&&(f+=":"+a.close_font_weight),"italic"===a.close_font_style&&(-1===f.indexOf(":")&&(f+=":"),f+="italic"),jQuery("body").append('<link href="'+f+'" rel="stylesheet" type="text/css">'));b.removeAttr("style").css({backgroundColor:this.convert_hex(a.overlay_background_color,a.overlay_background_opacity)});c.removeAttr("style").css({padding:a.container_padding+
|
37 |
+
"px",backgroundColor:this.convert_hex(a.container_background_color,a.container_background_opacity),borderStyle:a.container_border_style,borderColor:a.container_border_color,borderWidth:a.container_border_width+"px",borderRadius:a.container_border_radius+"px",boxShadow:k+a.container_boxshadow_horizontal+"px "+a.container_boxshadow_vertical+"px "+a.container_boxshadow_blur+"px "+a.container_boxshadow_spread+"px "+this.convert_hex(a.container_boxshadow_color,a.container_boxshadow_opacity)});d.removeAttr("style").css({color:a.title_font_color,
|
38 |
+
lineHeight:a.title_line_height+"px",fontSize:a.title_font_size+"px",fontFamily:a.title_font_family,fontStyle:a.title_font_style,fontWeight:a.title_font_weight,textAlign:a.title_text_align,textShadow:a.title_textshadow_horizontal+"px "+a.title_textshadow_vertical+"px "+a.title_textshadow_blur+"px "+this.convert_hex(a.title_textshadow_color,a.title_textshadow_opacity)});e.removeAttr("style").css({color:a.content_font_color,fontFamily:a.content_font_family,fontStyle:a.content_font_style,fontWeight:a.content_font_weight});
|
39 |
+
g.html(a.close_text).removeAttr("style").css({padding:a.close_padding+"px",backgroundColor:this.convert_hex(a.close_background_color,a.close_background_opacity),color:a.close_font_color,lineHeight:a.close_line_height+"px",fontSize:a.close_font_size+"px",fontFamily:a.close_font_family,fontWeight:a.close_font_weight,fontStyle:a.close_font_style,borderStyle:a.close_border_style,borderColor:a.close_border_color,borderWidth:a.close_border_width+"px",borderRadius:a.close_border_radius+"px",boxShadow:h+
|
40 |
+
a.close_boxshadow_horizontal+"px "+a.close_boxshadow_vertical+"px "+a.close_boxshadow_blur+"px "+a.close_boxshadow_spread+"px "+this.convert_hex(a.close_boxshadow_color,a.close_boxshadow_opacity),textShadow:a.close_textshadow_horizontal+"px "+a.close_textshadow_vertical+"px "+a.close_textshadow_blur+"px "+this.convert_hex(a.close_textshadow_color,a.close_textshadow_opacity)});switch(a.close_location){case "topleft":g.css({top:a.close_position_top+"px",left:a.close_position_left+"px"});break;case "topright":g.css({top:a.close_position_top+
|
41 |
+
"px",right:a.close_position_right+"px"});break;case "bottomleft":g.css({bottom:a.close_position_bottom+"px",left:a.close_position_left+"px"});break;case "bottomright":g.css({bottom:a.close_position_bottom+"px",right:a.close_position_right+"px"})}jQuery(document).trigger("popmake-admin-retheme",[a])},serialize_form:function(a){var b={};jQuery("[name]",a).each(function(){var a=jQuery(this).attr("name"),d=jQuery(this).val(),a=a.split("["),e=b,g,k=a.length,h;for(g=0;g<k;g+=1)h=a[g].replace("]",""),e[h]||
|
42 |
+
(e[h]={}),g!==a.length-1?e=e[h]:g===a.length-1&&(e[h]=d)});return b},convert_hex:function(a,b){a=a.replace("#","");var c=parseInt(a.substring(0,2),16),d=parseInt(a.substring(2,4),16),e=parseInt(a.substring(4,6),16);return"rgba("+c+","+d+","+e+","+b/100+")"},debounce:function(a,b){var c;return function(){var d=this,e=arguments;window.clearTimeout(c);c=window.setTimeout(function(){a.apply(d,e)},b)}},throttle:function(a,b){var c=!1,d=function(){c=!1};return function(){c||(a(),window.setTimeout(d,b),
|
43 |
+
c=!0)}}};jQuery(document).ready(function(){PopMakeAdmin.init()})})();
|
assets/scripts/popup-maker-site.js
CHANGED
@@ -73,7 +73,11 @@
|
|
73 |
})
|
74 |
.on('popmakeAfterClose.reset_videos', function () {
|
75 |
jQuery('iframe', $this).filter('[src*="youtube"],[src*="vimeo"]').each(function () {
|
76 |
-
var src = jQuery(this).attr('src')
|
|
|
|
|
|
|
|
|
77 |
jQuery(this).attr('src', '').attr('src', src);
|
78 |
});
|
79 |
})
|
@@ -1052,7 +1056,11 @@
|
|
1052 |
setCookie();
|
1053 |
});
|
1054 |
}
|
1055 |
-
|
|
|
|
|
|
|
|
|
1056 |
}
|
1057 |
setTimeout(function () {
|
1058 |
jQuery.fn.popmake.last_open_trigger = 'Auto Open Popups ID-' + settings.id;
|
73 |
})
|
74 |
.on('popmakeAfterClose.reset_videos', function () {
|
75 |
jQuery('iframe', $this).filter('[src*="youtube"],[src*="vimeo"]').each(function () {
|
76 |
+
var src = jQuery(this).attr('src')
|
77 |
+
// Remove autoplay so video doesn't start playing again.
|
78 |
+
.replace('autoplay=1', '1=1');
|
79 |
+
|
80 |
+
console.log(src);
|
81 |
jQuery(this).attr('src', '').attr('src', src);
|
82 |
});
|
83 |
})
|
1056 |
setCookie();
|
1057 |
});
|
1058 |
}
|
1059 |
+
if (cookie_trigger === 'manual') {
|
1060 |
+
$this.on('manualCookie', function () {
|
1061 |
+
setCookie();
|
1062 |
+
});
|
1063 |
+
}
|
1064 |
}
|
1065 |
setTimeout(function () {
|
1066 |
jQuery.fn.popmake.last_open_trigger = 'Auto Open Popups ID-' + settings.id;
|
includes/admin/admin-setup.php
CHANGED
@@ -29,9 +29,9 @@ function popmake_admin_notice() {
|
|
29 |
if(!get_user_meta( get_current_user_id(), '_popmake_dismiss_optin_newsletter_promo_banner_v2', true )) {?>
|
30 |
<div class="popmake-optin popmake-newsletter-optin">
|
31 |
<a href="https://wppopupmaker.com/newsletter-sign-up?utm_source=Popmake+WP+Admin&utm_medium=Notification+Banner&utm_campaign=Newsletter+Signup" target="_blank" class="newsletter-banner">
|
32 |
-
<img src="<?php echo POPMAKE_URL; ?>/assets/images/admin/newsletter-
|
33 |
</a>
|
34 |
-
<a class="popmake-optin-dismiss" data-optin-name="
|
35 |
</div><?php
|
36 |
}
|
37 |
do_action('popmake_admin_notice');
|
29 |
if(!get_user_meta( get_current_user_id(), '_popmake_dismiss_optin_newsletter_promo_banner_v2', true )) {?>
|
30 |
<div class="popmake-optin popmake-newsletter-optin">
|
31 |
<a href="https://wppopupmaker.com/newsletter-sign-up?utm_source=Popmake+WP+Admin&utm_medium=Notification+Banner&utm_campaign=Newsletter+Signup" target="_blank" class="newsletter-banner">
|
32 |
+
<img src="<?php echo POPMAKE_URL; ?>/assets/images/admin/newsletter-banner_v3.png"/>
|
33 |
</a>
|
34 |
+
<a class="popmake-optin-dismiss" data-optin-name="newsletter_promo_banner_v3" data-optin-type="user"><?php _e( 'No Thanks', 'popup-maker' ); ?></a>
|
35 |
</div><?php
|
36 |
}
|
37 |
do_action('popmake_admin_notice');
|
includes/admin/settings/register-settings.php
CHANGED
@@ -108,6 +108,13 @@ function popmake_register_settings() {
|
|
108 |
}
|
109 |
add_action('admin_init', 'popmake_register_settings');
|
110 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
/**
|
112 |
* Retrieve the array of plugin settings
|
113 |
*
|
108 |
}
|
109 |
add_action('admin_init', 'popmake_register_settings');
|
110 |
|
111 |
+
/**
|
112 |
+
* Returns default options
|
113 |
+
*/
|
114 |
+
function popmake_default_settings() {
|
115 |
+
return array();
|
116 |
+
}
|
117 |
+
|
118 |
/**
|
119 |
* Retrieve the array of plugin settings
|
120 |
*
|
includes/input-options.php
CHANGED
@@ -174,5 +174,6 @@ function popmake_cookie_trigger_options( $options ) {
|
|
174 |
__( 'Disabled', 'popup-maker' ) => 'disabled',
|
175 |
__( 'On Open', 'popup-maker' ) => 'open',
|
176 |
__( 'On Close', 'popup-maker' ) => 'close',
|
|
|
177 |
));
|
178 |
}
|
174 |
__( 'Disabled', 'popup-maker' ) => 'disabled',
|
175 |
__( 'On Open', 'popup-maker' ) => 'open',
|
176 |
__( 'On Close', 'popup-maker' ) => 'close',
|
177 |
+
__( 'Manual', 'popup-maker' ) => 'manual',
|
178 |
));
|
179 |
}
|
popup-maker.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://wppopupmaker.com
|
5 |
* Description: Easily create & style popups with any content. Theme editor to quickly style your popups. Add forms, social media boxes, videos & more.
|
6 |
* Author: Daniel Iser
|
7 |
-
* Version: 1.1.
|
8 |
* Author URI: https://wppopupmaker.com
|
9 |
* Text Domain: popup-maker
|
10 |
*
|
@@ -144,7 +144,7 @@ final class Popup_Maker {
|
|
144 |
}
|
145 |
|
146 |
if ( !defined('POPMAKE_VERSION') ) {
|
147 |
-
define('POPMAKE_VERSION', '1.1.
|
148 |
}
|
149 |
|
150 |
if ( !defined('POPMAKE_DB_VERSION') ) {
|
4 |
* Plugin URI: https://wppopupmaker.com
|
5 |
* Description: Easily create & style popups with any content. Theme editor to quickly style your popups. Add forms, social media boxes, videos & more.
|
6 |
* Author: Daniel Iser
|
7 |
+
* Version: 1.1.7
|
8 |
* Author URI: https://wppopupmaker.com
|
9 |
* Text Domain: popup-maker
|
10 |
*
|
144 |
}
|
145 |
|
146 |
if ( !defined('POPMAKE_VERSION') ) {
|
147 |
+
define('POPMAKE_VERSION', '1.1.7' );
|
148 |
}
|
149 |
|
150 |
if ( !defined('POPMAKE_DB_VERSION') ) {
|
readme.txt
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
=== Popup Maker ===
|
2 |
-
Contributors: danieliser
|
3 |
Author URI: https://wppopupmaker.com
|
4 |
Plugin URI: https://wppopupmaker.com?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Plugin+URI
|
5 |
Donate link:
|
6 |
Tags: popup,popups,modal,modals,popup form,form modal,conversion,conversions,dialog box,auto open
|
7 |
Requires at least: 3.4
|
8 |
Tested up to: 4.1
|
9 |
-
Stable tag: 1.1.
|
10 |
|
11 |
License: GNU Version 2 or Any Later Version
|
12 |
Easily turn users into cash using Popup Maker - the most versatile & expansive popup plugin for WordPress!
|
@@ -22,8 +22,6 @@ Use any of your forms from the most popular form plugins, out-of-the-box, inside
|
|
22 |
* Ninja Forms
|
23 |
* Contact Form 7
|
24 |
|
25 |
-
WordPress Developers: We are actively looking for contributors. Both for the core plugin and authors who want to create extensions. If you want to contribute contact via twitter @daniel_iser
|
26 |
-
|
27 |
[Subscribe to our Newsletter](https://wppopupmaker.com/newsletter-sign-up?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Newsletter+Signup "Popup Maker Newsletter Sign Up") and receive tutorials and guides tailored to teaching you how to drastically improve your conversion rates using Popup Maker. Also, for a limited time only, sign up and receive Unlimited Themes and Advanced Theme Builder for free, plus 25% off your first purchase from our Extension Marketplace!
|
28 |
|
29 |
* If you like the plugin please rate & review it! If you love the plugin and want news & updates, follow us on [Twitter](https://twitter.com/wppopupmaker "Popup Maker on Twitter")!
|
@@ -78,6 +76,11 @@ For more information, visit [Popup Maker](https://wppopupmaker.com?utm_source=Wo
|
|
78 |
|
79 |
== Changelog ==
|
80 |
|
|
|
|
|
|
|
|
|
|
|
81 |
= v1.1.6 =
|
82 |
* Fixed bug in js not setting correct CSS value for min-width.
|
83 |
* Changed close link element tag from a > span.
|
1 |
=== Popup Maker ===
|
2 |
+
Contributors: danieliser
|
3 |
Author URI: https://wppopupmaker.com
|
4 |
Plugin URI: https://wppopupmaker.com?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Plugin+URI
|
5 |
Donate link:
|
6 |
Tags: popup,popups,modal,modals,popup form,form modal,conversion,conversions,dialog box,auto open
|
7 |
Requires at least: 3.4
|
8 |
Tested up to: 4.1
|
9 |
+
Stable tag: 1.1.7
|
10 |
|
11 |
License: GNU Version 2 or Any Later Version
|
12 |
Easily turn users into cash using Popup Maker - the most versatile & expansive popup plugin for WordPress!
|
22 |
* Ninja Forms
|
23 |
* Contact Form 7
|
24 |
|
|
|
|
|
25 |
[Subscribe to our Newsletter](https://wppopupmaker.com/newsletter-sign-up?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Newsletter+Signup "Popup Maker Newsletter Sign Up") and receive tutorials and guides tailored to teaching you how to drastically improve your conversion rates using Popup Maker. Also, for a limited time only, sign up and receive Unlimited Themes and Advanced Theme Builder for free, plus 25% off your first purchase from our Extension Marketplace!
|
26 |
|
27 |
* If you like the plugin please rate & review it! If you love the plugin and want news & updates, follow us on [Twitter](https://twitter.com/wppopupmaker "Popup Maker on Twitter")!
|
76 |
|
77 |
== Changelog ==
|
78 |
|
79 |
+
= v1.1.7 =
|
80 |
+
* Fixed undefined function popmake_default_settings.
|
81 |
+
* Fixed specific pages not saving properly.
|
82 |
+
* Now removes ?autoplay parameter from Videos preventing them from playing again without interaction.
|
83 |
+
|
84 |
= v1.1.6 =
|
85 |
* Fixed bug in js not setting correct CSS value for min-width.
|
86 |
* Changed close link element tag from a > span.
|