Version Description
Download this release
Release Info
Developer | danieliser |
Plugin | Popup Maker – Popup Forms, Optins & More |
Version | 1.1.4 |
Comparing to | |
See all releases |
Code changes from version 1.1.3 to 1.1.4
- assets/scripts/popup-maker-admin.js +3 -34
- assets/scripts/popup-maker-admin.min.js +2 -2
- assets/scripts/popup-maker-site.js +2 -2
- assets/scripts/popup-maker-site.min.js +2 -2
- assets/styles/popup-maker-site.css +1 -0
- assets/styles/popup-maker-site.min.css +1 -1
- includes/admin/admin-pages.php +2 -1
- includes/admin/popups/metabox-targeting-condition-fields.php +4 -2
- includes/admin/settings/register-settings.php +4 -4
- includes/scripts.php +1 -1
- popup-maker.php +2 -2
- readme.txt +9 -1
assets/scripts/popup-maker-admin.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* Popup Maker v1.1
|
3 |
*/
|
4 |
var PopMakeAdmin;
|
5 |
(function () {
|
@@ -409,38 +409,7 @@ var PopMakeAdmin;
|
|
409 |
$input.after($slider).hide();
|
410 |
});
|
411 |
}
|
412 |
-
}
|
413 |
-
initialize_tabs: function () {
|
414 |
-
//var active_tab = window.location.hash.replace('#top#','');
|
415 |
-
var active_tab = window.location.hash;
|
416 |
-
if (active_tab === '') {
|
417 |
-
active_tab = '#' + jQuery('.popmake-tab-content').eq(0).attr('id');
|
418 |
-
}
|
419 |
-
|
420 |
-
jQuery('.popmake-tab-content').hide();
|
421 |
-
jQuery(active_tab).show();
|
422 |
-
jQuery(active_tab + '-tab').addClass('nav-tab-active');
|
423 |
-
jQuery(window).scrollTop(0);
|
424 |
-
|
425 |
-
|
426 |
-
jQuery('#popmake-tabs .nav-tab').click(function (event) {
|
427 |
-
event.preventDefault();
|
428 |
-
|
429 |
-
jQuery('.popmake-tab-content').hide();
|
430 |
-
jQuery('.popmake-tab').removeClass('nav-tab-active');
|
431 |
-
|
432 |
-
var id = jQuery(this).attr('href');
|
433 |
-
jQuery(id).show();
|
434 |
-
jQuery(this).addClass('nav-tab-active');
|
435 |
-
|
436 |
-
if (history.pushState) {
|
437 |
-
history.pushState(null, null, id);
|
438 |
-
} else {
|
439 |
-
location.hash = id;
|
440 |
-
jQuery(window).scrollTop(0);
|
441 |
-
}
|
442 |
-
});
|
443 |
-
},*/
|
444 |
initialize_popup_page: function () {
|
445 |
|
446 |
var update_type_options = function ($this) {
|
@@ -605,7 +574,7 @@ var PopMakeAdmin;
|
|
605 |
.on('click', function () { update_type_options(jQuery(this)); })
|
606 |
.each(function () { update_type_options(jQuery(this)); });
|
607 |
|
608 |
-
jQuery('input[type="radio"][
|
609 |
.on('click', function () { update_specific_checkboxes(jQuery(this)); })
|
610 |
.each(function () { update_specific_checkboxes(jQuery(this)); });
|
611 |
|
1 |
/**
|
2 |
+
* Popup Maker v1.1.4
|
3 |
*/
|
4 |
var PopMakeAdmin;
|
5 |
(function () {
|
409 |
$input.after($slider).hide();
|
410 |
});
|
411 |
}
|
412 |
+
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
413 |
initialize_popup_page: function () {
|
414 |
|
415 |
var update_type_options = function ($this) {
|
574 |
.on('click', function () { update_type_options(jQuery(this)); })
|
575 |
.each(function () { update_type_options(jQuery(this)); });
|
576 |
|
577 |
+
jQuery('input[type="radio"][id*="popup_targeting_condition_"]')
|
578 |
.on('click', function () { update_specific_checkboxes(jQuery(this)); })
|
579 |
.each(function () { update_specific_checkboxes(jQuery(this)); });
|
580 |
|
assets/scripts/popup-maker-admin.min.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* Popup Maker v1.1
|
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&&
|
@@ -23,7 +23,7 @@ jQuery(".responsive-size-only").hide())},d=function(){jQuery(".animation-speed,
|
|
23 |
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");jQuery(document).on("keydown","#popuptitle",function(a){9===
|
24 |
(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")?"#title":"#popuptitle",jQuery(a).focus())}).on("submit","#post",
|
25 |
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",function(){c()}).on("click","#popup_auto_open_enabled",
|
26 |
-
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"][
|
27 |
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;jQuery(document).on("change","select.font-family",function(){jQuery("select.font-weight option, select.font-style option",
|
28 |
jQuery(this).parents("table")).removeProp("selected");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","#popup_theme_close_location",function(){var a=jQuery(this),
|
29 |
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"),
|
1 |
/**
|
2 |
+
* Popup Maker v1.1.4
|
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&&
|
23 |
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");jQuery(document).on("keydown","#popuptitle",function(a){9===
|
24 |
(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")?"#title":"#popuptitle",jQuery(a).focus())}).on("submit","#post",
|
25 |
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",function(){c()}).on("click","#popup_auto_open_enabled",
|
26 |
+
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",function(){b(jQuery(this))}).each(function(){b(jQuery(this))});
|
27 |
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;jQuery(document).on("change","select.font-family",function(){jQuery("select.font-weight option, select.font-style option",
|
28 |
jQuery(this).parents("table")).removeProp("selected");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","#popup_theme_close_location",function(){var a=jQuery(this),
|
29 |
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"),
|
assets/scripts/popup-maker-site.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* Popup Maker v1.1.
|
3 |
*/
|
4 |
(function (jQuery) {
|
5 |
"use strict";
|
@@ -1022,7 +1022,7 @@
|
|
1022 |
$this.popmake('open');
|
1023 |
});
|
1024 |
|
1025 |
-
if (auto_open
|
1026 |
jQuery.cookie.json = true;
|
1027 |
|
1028 |
cookieName = "popmake-auto-open-" + settings.id + "-" + auto_open.cookie_key;
|
1 |
/**
|
2 |
+
* Popup Maker v1.1.4
|
3 |
*/
|
4 |
(function (jQuery) {
|
5 |
"use strict";
|
1022 |
$this.popmake('open');
|
1023 |
});
|
1024 |
|
1025 |
+
if (auto_open !== undefined && auto_open.enabled) {
|
1026 |
jQuery.cookie.json = true;
|
1027 |
|
1028 |
cookieName = "popmake-auto-open-" + settings.id + "-" + auto_open.cookie_key;
|
assets/scripts/popup-maker-site.min.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/**
|
2 |
-
* Popup Maker v1.1
|
3 |
*/
|
4 |
(function(c){c.isFunction(c.fn.on)||(c.fn.on=function(a,c,d){return this.delegate(c,a,d)},c.fn.off=function(a,c,d){return this.undelegate(c,a,d)});c.fn.popmake=function(a){if(c.fn.popmake.methods[a])return c.fn.popmake.methods[a].apply(this,Array.prototype.slice.call(arguments,1));if("object"===typeof a||!a)return c.fn.popmake.methods.init.apply(this,arguments);c.error("Method "+a+" does not exist on jQuery.fn.popmake")};c.fn.popmake.last_open_popup=null;c.fn.popmake.last_open_trigger=null;c.fn.popmake.last_close_trigger=
|
5 |
null;c.fn.popmake.methods={init:function(a){return this.each(function(){var e=c(this),d=c.extend(!0,{},c.fn.popmake.defaults,e.data("popmake"),a);e.parent().is("body")||e.appendTo("body");c("#"+d.overlay.attr.id).length||c("<div>").attr(d.overlay.attr).appendTo("body");c(window).on("resize",function(){e.hasClass("active")&&c.fn.popmake.utilities.throttle(setTimeout(function(){e.popmake("reposition")},25),500,!1)});"string"===typeof popmake_powered_by&&""!==popmake_powered_by&&c(".popmake-content",
|
@@ -34,5 +34,5 @@ b=d.meta.display.animation_speed/2E3,d=e.popmake("animation_origin",d.meta.displ
|
|
34 |
"inherit");void 0!==a&&a()}}))})});return this},grow:function(a){var e=c(this).show(0).css({opacity:0}),d=e.data("popmake"),b=d.meta.display.animation_speed/2E3,d=d.meta.display.animation_origin;if("top"===d||"bottom"===d)d="center "+d;if("left"===d||"right"===d)d+=" center";TweenLite.to(e,0,{transformOrigin:d,scale:0,opacity:1});e.popmake("animate_overlay","fade",1E3*b,function(){e.popmake("reposition",function(c){TweenLite.to(e,b,{scale:1,onComplete:function(){void 0!==a&&a()}})})});return this},
|
35 |
growAndSlide:function(a){var e=c(this).show(0).css({opacity:0}),d=e.data("popmake"),b=d.meta.display.animation_speed/2E3,d=e.popmake("animation_origin",d.meta.display.animation_origin);c("html").css("overflow-x","hidden");e.position(d);TweenLite.to(e,0,{scale:0,opacity:1,transformOrigin:"0 0"});e.popmake("animate_overlay","fade",1E3*b,function(){e.popmake("reposition",function(d){TweenLite.to(e,b,c.extend(d,{scale:1,transformOrigin:"50% 50%",onComplete:function(){c("html").css("overflow-x","inherit");
|
36 |
void 0!==a&&a()}}))})});return this}};c(".popmake").css({visibility:"visible"}).hide();c(document).ready(function(){c(".popmake").popmake().each(function(){var a=c(this),e=a.data("popmake"),d=e.meta.click_open,b=e.meta.auto_open,g=".popmake-"+e.id+", .popmake-"+e.slug,f,h,k;void 0!==d&&""!==d.extra_selectors&&(g+=", "+d.extra_selectors);c(g).css({cursor:"pointer"});c(document).on("click",g,function(b){b.preventDefault();b.stopPropagation();c.fn.popmake.last_open_trigger=c.fn.popmake.utilities.getXPath(this);
|
37 |
-
a.popmake("open")});if(void 0!==b
|
38 |
"Auto Open Popups ID-"+e.id;a.popmake("open")},b.delay)}})})})(jQuery);
|
1 |
/**
|
2 |
+
* Popup Maker v1.1.4
|
3 |
*/
|
4 |
(function(c){c.isFunction(c.fn.on)||(c.fn.on=function(a,c,d){return this.delegate(c,a,d)},c.fn.off=function(a,c,d){return this.undelegate(c,a,d)});c.fn.popmake=function(a){if(c.fn.popmake.methods[a])return c.fn.popmake.methods[a].apply(this,Array.prototype.slice.call(arguments,1));if("object"===typeof a||!a)return c.fn.popmake.methods.init.apply(this,arguments);c.error("Method "+a+" does not exist on jQuery.fn.popmake")};c.fn.popmake.last_open_popup=null;c.fn.popmake.last_open_trigger=null;c.fn.popmake.last_close_trigger=
|
5 |
null;c.fn.popmake.methods={init:function(a){return this.each(function(){var e=c(this),d=c.extend(!0,{},c.fn.popmake.defaults,e.data("popmake"),a);e.parent().is("body")||e.appendTo("body");c("#"+d.overlay.attr.id).length||c("<div>").attr(d.overlay.attr).appendTo("body");c(window).on("resize",function(){e.hasClass("active")&&c.fn.popmake.utilities.throttle(setTimeout(function(){e.popmake("reposition")},25),500,!1)});"string"===typeof popmake_powered_by&&""!==popmake_powered_by&&c(".popmake-content",
|
34 |
"inherit");void 0!==a&&a()}}))})});return this},grow:function(a){var e=c(this).show(0).css({opacity:0}),d=e.data("popmake"),b=d.meta.display.animation_speed/2E3,d=d.meta.display.animation_origin;if("top"===d||"bottom"===d)d="center "+d;if("left"===d||"right"===d)d+=" center";TweenLite.to(e,0,{transformOrigin:d,scale:0,opacity:1});e.popmake("animate_overlay","fade",1E3*b,function(){e.popmake("reposition",function(c){TweenLite.to(e,b,{scale:1,onComplete:function(){void 0!==a&&a()}})})});return this},
|
35 |
growAndSlide:function(a){var e=c(this).show(0).css({opacity:0}),d=e.data("popmake"),b=d.meta.display.animation_speed/2E3,d=e.popmake("animation_origin",d.meta.display.animation_origin);c("html").css("overflow-x","hidden");e.position(d);TweenLite.to(e,0,{scale:0,opacity:1,transformOrigin:"0 0"});e.popmake("animate_overlay","fade",1E3*b,function(){e.popmake("reposition",function(d){TweenLite.to(e,b,c.extend(d,{scale:1,transformOrigin:"50% 50%",onComplete:function(){c("html").css("overflow-x","inherit");
|
36 |
void 0!==a&&a()}}))})});return this}};c(".popmake").css({visibility:"visible"}).hide();c(document).ready(function(){c(".popmake").popmake().each(function(){var a=c(this),e=a.data("popmake"),d=e.meta.click_open,b=e.meta.auto_open,g=".popmake-"+e.id+", .popmake-"+e.slug,f,h,k;void 0!==d&&""!==d.extra_selectors&&(g+=", "+d.extra_selectors);c(g).css({cursor:"pointer"});c(document).on("click",g,function(b){b.preventDefault();b.stopPropagation();c.fn.popmake.last_open_trigger=c.fn.popmake.utilities.getXPath(this);
|
37 |
+
a.popmake("open")});if(void 0!==b&&b.enabled&&(c.cookie.json=!0,f="popmake-auto-open-"+e.id+"-"+b.cookie_key,d=c.cookie(f),k=function(){""!==b.cookie_time&&(h=new Date,h.setTime(1E3*c.fn.popmake.utilities.strtotime("+"+b.cookie_time)),c.cookie(f,{opened:!0,expires:h},{expires:h,path:b.cookie_path}))},void 0===d)){d=b.cookie_trigger;if("disabled"!==d){if("open"===d)a.on("popmakeAfterOpen",function(){k()});if("close"===d)a.on("popmakeBeforeClose",function(){k()})}setTimeout(function(){c.fn.popmake.last_open_trigger=
|
38 |
"Auto Open Popups ID-"+e.id;a.popmake("open")},b.delay)}})})})(jQuery);
|
assets/styles/popup-maker-site.css
CHANGED
@@ -81,6 +81,7 @@
|
|
81 |
.popmake.scrollable .popmake-content {
|
82 |
overflow: auto;
|
83 |
overflow-y: scroll;
|
|
|
84 |
}
|
85 |
|
86 |
.popmake .popmake-content :last-child {
|
81 |
.popmake.scrollable .popmake-content {
|
82 |
overflow: auto;
|
83 |
overflow-y: scroll;
|
84 |
+
max-height: 95%;
|
85 |
}
|
86 |
|
87 |
.popmake .popmake-content :last-child {
|
assets/styles/popup-maker-site.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.popmake,.popmake:before,.popmake:after{-moz-box-sizing:border-box}.popmake-overlay{position:fixed;display:none;width:100%;height:100%;top:0;left:0;z-index:998!important}.popmake{top:100px;visibility:hidden;position:absolute;display:none;z-index:999!important}.popmake>.popmake-close{text-decoration:none;text-align:center;line-height:1;position:absolute;font-weight:700;cursor:pointer;min-width:1em}.popmake.responsive{left:50%;margin-left:-40%;width:80%;height:auto;overflow:visible}@media only screen and (min-width:768px){.popmake.size-nano{margin-left:-5%;width:10%}.popmake.size-micro{margin-left:-10%;width:20%}.popmake.size-tiny{margin-left:-15%;width:30%}.popmake.size-small{margin-left:-20%;width:40%}.popmake.size-medium{margin-left:-30%;width:60%}.popmake.size-large{margin-left:-35%;width:70%}.popmake.size-xlarge{margin-left:-47.5%;width:95%}}.popmake.fixed{position:fixed}.popmake.custom-position{left:auto;top:auto;margin-left:inherit}.popmake.scrollable .popmake-content{overflow:auto;overflow-y:scroll}.popmake .popmake-content:last-child{margin-bottom:0}.popmake iframe.formidable{width:100%;overflow:visible}.powered-by-popmake{bottom:-28px;display:block;left:0;margin:0 auto;position:absolute;text-align:center;width:100%}.powered-by-popmake>a{display:inline-block;max-width:205px}.powered-by-popmake img{max-width:100%;width:100%}.powered-by-popmake.small{bottom:-22px}.powered-by-popmake.small>a{max-width:125px}.powered-by-popmake.large{bottom:-30px}.powered-by-popmake.large>a{max-width:285px}
|
1 |
+
.popmake,.popmake:before,.popmake:after{-moz-box-sizing:border-box}.popmake-overlay{position:fixed;display:none;width:100%;height:100%;top:0;left:0;z-index:998!important}.popmake{top:100px;visibility:hidden;position:absolute;display:none;z-index:999!important}.popmake>.popmake-close{text-decoration:none;text-align:center;line-height:1;position:absolute;font-weight:700;cursor:pointer;min-width:1em}.popmake.responsive{left:50%;margin-left:-40%;width:80%;height:auto;overflow:visible}@media only screen and (min-width:768px){.popmake.size-nano{margin-left:-5%;width:10%}.popmake.size-micro{margin-left:-10%;width:20%}.popmake.size-tiny{margin-left:-15%;width:30%}.popmake.size-small{margin-left:-20%;width:40%}.popmake.size-medium{margin-left:-30%;width:60%}.popmake.size-large{margin-left:-35%;width:70%}.popmake.size-xlarge{margin-left:-47.5%;width:95%}}.popmake.fixed{position:fixed}.popmake.custom-position{left:auto;top:auto;margin-left:inherit}.popmake.scrollable .popmake-content{overflow:auto;overflow-y:scroll;max-height:95%}.popmake .popmake-content:last-child{margin-bottom:0}.popmake iframe.formidable{width:100%;overflow:visible}.powered-by-popmake{bottom:-28px;display:block;left:0;margin:0 auto;position:absolute;text-align:center;width:100%}.powered-by-popmake>a{display:inline-block;max-width:205px}.powered-by-popmake img{max-width:100%;width:100%}.powered-by-popmake.small{bottom:-22px}.powered-by-popmake.small>a{max-width:125px}.powered-by-popmake.large{bottom:-30px}.powered-by-popmake.large>a{max-width:285px}
|
includes/admin/admin-pages.php
CHANGED
@@ -126,12 +126,13 @@ function popmake_admin_submenu_theme_pages() {
|
|
126 |
$popmake_popup_themes_page = admin_url( 'post.php?post='. popmake_get_default_popup_theme() .'&action=edit' );
|
127 |
$submenu['edit.php?post_type=popup'][] = array(
|
128 |
apply_filters( 'popmake_admin_submenu_themes_page_title', __( 'Theme', 'popup-maker' ) ),
|
129 |
-
apply_filters( 'popmake_admin_submenu_themes_capability', '
|
130 |
$popmake_popup_themes_page
|
131 |
);
|
132 |
}
|
133 |
add_action( 'admin_menu', 'popmake_admin_submenu_theme_pages', 10 );
|
134 |
|
|
|
135 |
/**
|
136 |
* Determines whether the current admin page is an POPMAKE admin page.
|
137 |
*
|
126 |
$popmake_popup_themes_page = admin_url( 'post.php?post='. popmake_get_default_popup_theme() .'&action=edit' );
|
127 |
$submenu['edit.php?post_type=popup'][] = array(
|
128 |
apply_filters( 'popmake_admin_submenu_themes_page_title', __( 'Theme', 'popup-maker' ) ),
|
129 |
+
apply_filters( 'popmake_admin_submenu_themes_capability', 'edit_posts' ),
|
130 |
$popmake_popup_themes_page
|
131 |
);
|
132 |
}
|
133 |
add_action( 'admin_menu', 'popmake_admin_submenu_theme_pages', 10 );
|
134 |
|
135 |
+
|
136 |
/**
|
137 |
* Determines whether the current admin page is an POPMAKE admin page.
|
138 |
*
|
includes/admin/popups/metabox-targeting-condition-fields.php
CHANGED
@@ -91,7 +91,8 @@ function popmake_popup_targeting_condition_meta_box_fields( $popup_id ) {
|
|
91 |
$label = ($include_exclude == 'include' ? 'Load' : 'Exclude') . ' on All ';
|
92 |
echo __( $label, 'popup-maker' ) . $labels->labels->name; ?>
|
93 |
<input type="radio"
|
94 |
-
name="
|
|
|
95 |
value=""
|
96 |
<?php if(!isset($targeting_condition[$key])) echo 'checked'; ?>
|
97 |
/>
|
@@ -100,7 +101,8 @@ function popmake_popup_targeting_condition_meta_box_fields( $popup_id ) {
|
|
100 |
$label = ($include_exclude == 'include' ? 'Load' : 'Exclude') . ' on Specific ';
|
101 |
echo __( $label, 'popup-maker' ) . $labels->labels->name; ?>
|
102 |
<input type="radio"
|
103 |
-
name="
|
|
|
104 |
value="true"
|
105 |
<?php if(isset($targeting_condition[$key])) echo 'checked'; ?>
|
106 |
/>
|
91 |
$label = ($include_exclude == 'include' ? 'Load' : 'Exclude') . ' on All ';
|
92 |
echo __( $label, 'popup-maker' ) . $labels->labels->name; ?>
|
93 |
<input type="radio"
|
94 |
+
name="<?php echo $key;?>"
|
95 |
+
id="popup_targeting_condition_<?php echo $key; ?>"
|
96 |
value=""
|
97 |
<?php if(!isset($targeting_condition[$key])) echo 'checked'; ?>
|
98 |
/>
|
101 |
$label = ($include_exclude == 'include' ? 'Load' : 'Exclude') . ' on Specific ';
|
102 |
echo __( $label, 'popup-maker' ) . $labels->labels->name; ?>
|
103 |
<input type="radio"
|
104 |
+
name="<?php echo $key;?>"
|
105 |
+
id="popup_targeting_condition_<?php echo $key; ?>"
|
106 |
value="true"
|
107 |
<?php if(isset($targeting_condition[$key])) echo 'checked'; ?>
|
108 |
/>
|
includes/admin/settings/register-settings.php
CHANGED
@@ -151,10 +151,10 @@ function popmake_get_registered_settings() {
|
|
151 |
'desc' => '',
|
152 |
'type' => 'header'
|
153 |
),
|
154 |
-
'
|
155 |
-
'id' => '
|
156 |
-
'name' => __( '
|
157 |
-
'desc' => sprintf( __( 'If you check this box, it will
|
158 |
'type' => 'checkbox'
|
159 |
),
|
160 |
'popmake_powered_by_size' => array(
|
151 |
'desc' => '',
|
152 |
'type' => 'header'
|
153 |
),
|
154 |
+
'popmake_powered_by_opt_in' => array(
|
155 |
+
'id' => 'popmake_powered_by_opt_in',
|
156 |
+
'name' => __( 'Show Powered By Link?', 'popup-maker' ),
|
157 |
+
'desc' => sprintf( __( 'If you check this box, it will show the <em>Powered By Popup Maker</em> tag on all of your popups. Even if you don\'t, please take a moment to <a href="%s">rate and review us on WordPress</a>!', 'popup-maker' ), 'https://wordpress.org/support/view/plugin-reviews/popup-maker'),
|
158 |
'type' => 'checkbox'
|
159 |
),
|
160 |
'popmake_powered_by_size' => array(
|
includes/scripts.php
CHANGED
@@ -31,7 +31,7 @@ function popmake_load_site_scripts() {
|
|
31 |
wp_localize_script('popup-maker-site', 'ajaxurl', admin_url('admin-ajax.php') );
|
32 |
wp_localize_script('popup-maker-site', 'popmake_default_theme', popmake_get_default_popup_theme() );
|
33 |
wp_localize_script('popup-maker-site', 'popmake_themes', array('l10n_print_after' => 'popmake_themes = ' . json_encode( popmake_get_popup_themes_data() ) . ';'));
|
34 |
-
if(
|
35 |
$size = !empty($popmake_options['popmake_powered_by_size']) ? $popmake_options['popmake_powered_by_size'] : '';
|
36 |
wp_localize_script('popup-maker-site', 'popmake_powered_by', '<div class="powered-by-popmake '. $size .'"><a href="https://wppopupmaker.com?utm_source=Powered+By&utm_medium=Powered+By&utm_campaign=Powered+By" target="_blank"><img src="' . POPMAKE_URL . '/assets/images/admin/powered-by-popup-maker.png" alt="'. __( 'Powered By Popup Maker', 'popup-maker' ) .'"/></a></div>' );
|
37 |
}
|
31 |
wp_localize_script('popup-maker-site', 'ajaxurl', admin_url('admin-ajax.php') );
|
32 |
wp_localize_script('popup-maker-site', 'popmake_default_theme', popmake_get_default_popup_theme() );
|
33 |
wp_localize_script('popup-maker-site', 'popmake_themes', array('l10n_print_after' => 'popmake_themes = ' . json_encode( popmake_get_popup_themes_data() ) . ';'));
|
34 |
+
if(isset($popmake_options['popmake_powered_by_opt_in']) && $popmake_options['popmake_powered_by_opt_in']) {
|
35 |
$size = !empty($popmake_options['popmake_powered_by_size']) ? $popmake_options['popmake_powered_by_size'] : '';
|
36 |
wp_localize_script('popup-maker-site', 'popmake_powered_by', '<div class="powered-by-popmake '. $size .'"><a href="https://wppopupmaker.com?utm_source=Powered+By&utm_medium=Powered+By&utm_campaign=Powered+By" target="_blank"><img src="' . POPMAKE_URL . '/assets/images/admin/powered-by-popup-maker.png" alt="'. __( 'Powered By Popup Maker', 'popup-maker' ) .'"/></a></div>' );
|
37 |
}
|
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.4
|
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.4' );
|
148 |
}
|
149 |
|
150 |
if ( !defined('POPMAKE_DB_VERSION') ) {
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ 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.0.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!
|
@@ -76,6 +76,14 @@ For more information, visit [Popup Maker](https://wppopupmaker.com?utm_source=Wo
|
|
76 |
|
77 |
== Changelog ==
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
= v1.1.3 =
|
80 |
* Fixed some incorrect links to resources and kb.
|
81 |
* Removed Auto Open Promotional Material ( as it is now included ).
|
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.0.1
|
9 |
+
Stable tag: 1.1.4
|
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!
|
76 |
|
77 |
== Changelog ==
|
78 |
|
79 |
+
= v1.1.4 =
|
80 |
+
* Fixed bug in scrollable content styles.
|
81 |
+
* Fixed bug in admin JS for duplicate input names.
|
82 |
+
* Changed Powered By Setting to Off by Default.
|
83 |
+
* Changed default permissions required to use theme builder.
|
84 |
+
* Fixed bug in targeting conditions.
|
85 |
+
|
86 |
+
|
87 |
= v1.1.3 =
|
88 |
* Fixed some incorrect links to resources and kb.
|
89 |
* Removed Auto Open Promotional Material ( as it is now included ).
|