Version Description
- Fixed javascript error reported by @davidbawiec
=
Download this release
Release Info
Developer | VideoUserManuals |
Plugin | White Label CMS |
Version | 2.2.4 |
Comparing to | |
See all releases |
Code changes from version 2.2.2 to 2.2.4
- assets/css/admin-settings.css +1 -1
- assets/js/admin-settings.js +1 -1
- changelog.txt +12 -0
- includes/Functions.php +1 -1
- includes/classes/Admin_Core.php +2 -2
- includes/classes/Admin_Dashboard.php +1 -1
- includes/classes/Admin_Script.php +1 -0
- includes/classes/Admin_Settings.php +41 -4
- includes/classes/Settings.php +2 -0
- includes/classes/Welcome_Messages/Welcome_Messages_Beaver_Builder.php +0 -7
- readme.txt +4 -7
- view/admin/parts/branding-gutenberg.php +17 -0
- view/admin/parts/branding-wordpress.php +5 -2
- view/admin/parts/branding.php +8 -0
- view/admin/parts/dashboard-rss-dashboard-panel.php +1 -1
- view/admin/parts/wizard-step-1.php +1 -1
- wlcms-plugin.php +4 -4
assets/css/admin-settings.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wlcms_wrapper{max-width:47rem;margin:30px auto 0}.wlcms_wrapper .wlcms_page_title img{padding-right:10px;width:70px;height:auto}.wlcms_wrapper .wlcms-advert-wrapper img{width:100%}.wlcms_wrapper .navigation{width:100%;padding-bottom:20px;padding-top:20px}.wlcms_wrapper .navigation ul{margin:0;padding:0;list-style:none;display:inline-block}.wlcms_wrapper .navigation li{display:inline-block}.wlcms_wrapper .navigation li a{background:none;color:#222;padding:10px 15px;text-decoration:none}.wlcms_wrapper .navigation li a.current{background:#ededed;color:#222;border-bottom:1px solid rgba(2,144,194,.51)}.wlcms_wrapper .navigation li a:active,.wlcms_wrapper .navigation li a:focus{outline:none!important;box-shadow:none}.wlcms_wrapper .navigation li a span{color:rgba(247,46,12,.87)}.wlcms_wrapper .navigation .wlcms-pull-right{float:right;padding-right:10px}.wlcms_wrapper .fixed{position:fixed;background:#f1f1f1;z-index:10000}@media screen and (max-width:550px){.wlcms_wrapper .fixed{position:inherit}}.wlcms_wrapper .wizard-steps li,.wlcms_wrapper .wizard-steps ul{width:100%;display:block}.wizard-step1{padding-top:0!important}.wlcms_wrapper .wlcms-body-header h2{position:relative}.wlcms_wrapper .wlcms-toggle-arrow{width:20px;height:20px;position:relative;cursor:pointer;float:right;text-decoration:none;border-bottom:none;box-shadow:none}.wlcms_wrapper .wlcms-toggle-arrow:after,.wlcms_wrapper .wlcms-toggle-arrow:before{content:"";display:block;width:13px;height:4px;background:#0184ba;position:absolute;top:5px;transition:transform .1s}.wlcms_wrapper .wlcms-toggle-arrow:before{left:0;border-top-left-radius:5px;border-bottom-left-radius:5px;transform:rotate(45deg)}.wlcms_wrapper .wlcms-toggle-arrow:after{transform:rotate(-45deg);right:0}.wlcms_wrapper .wlcms-toggle-arrow.active:before{transform:rotate(-45deg)}.wlcms_wrapper .wlcms-toggle-arrow.active:after{transform:rotate(45deg)}.wlcms_content{width:100%}.wlcms_content label.error{color:rgba(247,46,12,.87);margin-left:10px}.wlcms_content input.error{border:1px solid rgba(247,46,12,.87);box-shadow:inset 0 1px 2px rgba(247,46,12,.44)}.wlcms_content section{display:none}.wlcms_content section.current{display:block}.wlcms_content .sub-fields{padding-left:30px}.wlcms_content .wlcms-body-wrapper{border:1px solid #f1f1f1;margin-bottom:20px;background:#fff}.wlcms_content .wlcms-body-header{padding:16px 24px;border-bottom:1px solid #f1f1f1}.wlcms_content .wlcms-body-header h2{margin:0!important}.wlcms_content .wlcms-body-main{padding:24px}.wlcms-input-group{padding-bottom:10px}.wlcms-input-group label{font-weight:700;display:inline-block;padding-bottom:10px}.wlcms-input-group .wlcms-upload-thumbnail{position:relative;max-width:100px}.wlcms-input-group .wlcms-upload-thumbnail img{display:block;height:auto;max-width:100px;padding-bottom:5px}.wlcms-input-group .wlcms-upload-thumbnail .wlcms-remove-img{position:absolute;top:-10px;left:-10px;width:10px;height:10px;color:#404040;z-index:20;cursor:pointer}.wlcms-input-group .wlcms-upload-thumbnail .wlcms-remove-img:hover{color:#d54e21}.wlcms-input-group .wlcms-input{padding-bottom:10px}.wlcms-input-group .
|
1 |
+
.wlcms_wrapper{max-width:47rem;margin:30px auto 0}.wlcms_wrapper .wlcms_page_title img{padding-right:10px;width:70px;height:auto}.wlcms_wrapper .wlcms-advert-wrapper img{width:100%}.wlcms_wrapper .navigation{width:100%;padding-bottom:20px;padding-top:20px}.wlcms_wrapper .navigation ul{margin:0;padding:0;list-style:none;display:inline-block}.wlcms_wrapper .navigation li{display:inline-block}.wlcms_wrapper .navigation li a{background:none;color:#222;padding:10px 15px;text-decoration:none}.wlcms_wrapper .navigation li a.current{background:#ededed;color:#222;border-bottom:1px solid rgba(2,144,194,.51)}.wlcms_wrapper .navigation li a:active,.wlcms_wrapper .navigation li a:focus{outline:none!important;box-shadow:none}.wlcms_wrapper .navigation li a span{color:rgba(247,46,12,.87)}.wlcms_wrapper .navigation .wlcms-pull-right{float:right;padding-right:10px}.wlcms_wrapper .fixed{position:fixed;background:#f1f1f1;z-index:10000}@media screen and (max-width:550px){.wlcms_wrapper .fixed{position:inherit}}.wlcms_wrapper .wizard-steps li,.wlcms_wrapper .wizard-steps ul{width:100%;display:block}.wizard-step1{padding-top:0!important}.wlcms_wrapper .wlcms-body-header h2{position:relative}.wlcms_wrapper .wlcms-toggle-arrow{width:20px;height:20px;position:relative;cursor:pointer;float:right;text-decoration:none;border-bottom:none;box-shadow:none}.wlcms_wrapper .wlcms-toggle-arrow:after,.wlcms_wrapper .wlcms-toggle-arrow:before{content:"";display:block;width:13px;height:4px;background:#0184ba;position:absolute;top:5px;transition:transform .1s}.wlcms_wrapper .wlcms-toggle-arrow:before{left:0;border-top-left-radius:5px;border-bottom-left-radius:5px;transform:rotate(45deg)}.wlcms_wrapper .wlcms-toggle-arrow:after{transform:rotate(-45deg);right:0}.wlcms_wrapper .wlcms-toggle-arrow.active:before{transform:rotate(-45deg)}.wlcms_wrapper .wlcms-toggle-arrow.active:after{transform:rotate(45deg)}.wlcms_content{width:100%}.wlcms_content label.error{color:rgba(247,46,12,.87);margin-left:10px}.wlcms_content input.error{border:1px solid rgba(247,46,12,.87);box-shadow:inset 0 1px 2px rgba(247,46,12,.44)}.wlcms_content section{display:none}.wlcms_content section.current{display:block}.wlcms_content .sub-fields{padding-left:30px}.wlcms_content .wlcms-body-wrapper{border:1px solid #f1f1f1;margin-bottom:20px;background:#fff}.wlcms_content .wlcms-body-header{padding:16px 24px;border-bottom:1px solid #f1f1f1}.wlcms_content .wlcms-body-header h2{margin:0!important}.wlcms_content .wlcms-body-main{padding:24px}.wlcms-input-group{padding-bottom:10px}.wlcms-input-group label{font-weight:700;display:inline-block;padding-bottom:10px}.wlcms-input-group .wlcms-upload-thumbnail{position:relative;max-width:100px;margin-left:10px}.wlcms-input-group .wlcms-upload-thumbnail img{display:block;height:auto;max-width:100px;padding-bottom:5px}.wlcms-input-group .wlcms-upload-thumbnail .wlcms-remove-img{position:absolute;top:-10px;left:-10px;width:10px;height:10px;color:#404040;z-index:20;cursor:pointer}.wlcms-input-group .wlcms-upload-thumbnail .wlcms-remove-img:hover{color:#d54e21}.wlcms-input-group .wlcms-input{padding-bottom:10px}.wlcms-input-group .tab-login{position:relative}.wlcms-input-group .wlcms-login-live-preview{position:absolute}.wlcms-input-group .inline{display:inline-block}.wlcms-input-group .inline .wlcms-input{display:inline-block;padding-right:10px}.wlcms-help{padding-bottom:10px;font-size:11px}.wlcms-form{position:relative}.wlcms-form .wlcms-menus-settings .wlcms-input{padding-bottom:0}.wlcms-form .wlcms-menus-settings .toggle-label{padding-bottom:5px;padding-top:5px}.wlcms-form input[type=number],.wlcms-form input[type=phone],.wlcms-form input[type=text],.wlcms-form input[type=url]{width:50%;line-height:32px}.wlcms-form input[type=number]{height:40px}.wlcms_admin_wrapper .sub-fields,.wlcms_admin_wrapper .wlcms-input .toggle-label{padding-left:0}.wlcms-other-admins{padding-left:30px}.wlcms-menus-settings>ul{width:75%}.wlcms-input-group li,.wlcms-input-group li .wlcms-input{padding:0}.wlcms-input-group li label.toggle-label{padding-top:5px;padding-bottom:5px!important}.wlcms-toggle-wrapper ul ul{padding-left:30px}.wlcms-toggle{display:none!important}.wlcms-toggle,.wlcms-toggle *,.wlcms-toggle+.wlcms-toggle-btn,.wlcms-toggle:after,.wlcms-toggle :after,.wlcms-toggle:before,.wlcms-toggle :before{box-sizing:border-box}.wlcms-toggle+.wlcms-toggle-btn::-moz-selection,.wlcms-toggle::-moz-selection,.wlcms-toggle ::-moz-selection,.wlcms-toggle:after::-moz-selection,.wlcms-toggle :after::-moz-selection,.wlcms-toggle:before::-moz-selection,.wlcms-toggle :before::-moz-selection{background:none}.wlcms-toggle+.wlcms-toggle-btn::selection,.wlcms-toggle::selection,.wlcms-toggle ::selection,.wlcms-toggle:after::selection,.wlcms-toggle :after::selection,.wlcms-toggle:before::selection,.wlcms-toggle :before::selection{background:none}.wlcms-toggle+.wlcms-toggle-btn{outline:0;width:2em;height:1em;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.wlcms-toggle+.wlcms-toggle-btn:after,.wlcms-toggle+.wlcms-toggle-btn:before{position:relative;display:block;content:"";width:50%;height:100%}.wlcms-toggle+.wlcms-toggle-btn:after{left:0}.wlcms-toggle+.wlcms-toggle-btn:before{display:none}.wlcms-toggle:checked+.wlcms-toggle-btn:after{left:50%}.wlcms-toggle-light+.wlcms-toggle-btn{background:#9e9c9c;border-radius:1em;padding:1px;transition:all .4s ease}.wlcms-toggle-light+.wlcms-toggle-btn:after{border-radius:50%;background:#fff;transition:all .2s ease}.wlcms-toggle-light+.wlcms-toggle-btn.disabled{background-color:hsla(0,1%,61.6%,.1882352941)}.wlcms-toggle-light:checked+.wlcms-toggle-btn{background:#9fd6ae}.wlcms-toggle-light:checked+.wlcms-toggle-btn.disabled{background-color:hsla(0,1%,61.6%,.1882352941)}.wlcms-input-group .textarea-full{width:100%;min-height:300px;padding:10px 10px 10px 20px}.wlcms-input-group .toggle-label{padding-left:10px;padding-top:10px}.wlcms-input-group .toggle-label.disabled{color:rgba(103,102,102,.44)}textarea.wlcms-css{font-family:monospace}.wlcms_footer .wlcms-navigation{width:100%;padding-bottom:20px;padding-top:20px}.wlcms_footer .wlcms-navigation ul{margin:0;padding:0;list-style:none;display:inline-block}.wlcms_footer .wlcms-navigation li{display:inline-block}.wlcms_footer .wlcms-navigation li a{background:none;color:#222;padding:10px 15px}.wlcms_footer .wlcms-navigation li a.current{background:#ededed;color:#222}iframe.long-animate{width:100%;height:100%;position:absolute;border:0;display:none}.wlcms-preview-notice{text-align:center;position:absolute;top:20px;margin:0 auto;left:20px;font-weight:300;font-size:24px;background:rgba(218,217,217,.8117647058823529);line-height:35px;padding:0 20px;color:#790404}*{margin:0;padding:0;box-sizing:border-box}.short-animate{transition:.5s ease-in-out}.long-animate{transition:.5s ease-in-out .5s}.lightbox{position:fixed;top:-100%;bottom:100%;left:0;right:0;background:rgba(35,40,45,.7);z-index:999990;opacity:0}.lightbox #wlcms-preview-content{position:absolute;margin:auto;top:0;left:0;right:0;bottom:0;max-width:0;max-height:0%}#lightbox-controls{position:fixed;height:70px;width:70px;top:-70px;right:0;z-index:999992;background:rgba(0,0,0,.1)}#close-lightbox{display:block;position:absolute;overflow:hidden;height:50px;width:50px;text-indent:-5000px;right:10px;top:10px;transform:rotate(45deg)}#close-lightbox:before{height:0;width:3px;left:24px;top:0;transition:.5s ease-in-out .5s}#close-lightbox:after,#close-lightbox:before{content:"";display:block;position:absolute;background:#fff;border-radius:2px}#close-lightbox:after{width:0;height:3px;top:24px;left:0;transition:.5s ease-in-out 1s}.lightbox:target{top:0;bottom:0;opacity:1}.lightbox:target #wlcms-preview-content{max-width:100%;max-height:100%}.lightbox:target~#lightbox-controls{top:0}.lightbox:target~#lightbox-controls #close-lightbox:after{width:50px}.lightbox:target~#lightbox-controls #close-lightbox:before{height:50px}
|
assets/js/admin-settings.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function i(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i(i.s=0)}([function(e,t,i){i(1),i(6),e.exports=i(11)},function(e,t){jQuery(document).ready((function(){jQuery(".wlcms-next-step").on("click",(function(){jQuery("#wlcms_tab_step-1").hide(),jQuery("#tab-step-1").hide(),jQuery("#wlcms_tab_step-2").show(),jQuery("#tab-step-2").show()})),jQuery(".wlcms-prev-step").on("click",(function(){jQuery("#wlcms_tab_step-2").hide(),jQuery("#tab-step-2").hide(),jQuery("#wlcms_tab_step-1").show(),jQuery("#tab-step-1").show()})),jQuery("form.wlcms-form").areYouSure({message:"Changes that you made may not be saved"}),jQuery('.template_type[data-page_type="html"]').each((function(){if(jQuery(this).is(":checked")){var e=jQuery(this).data("template_type");jQuery(this).closest(".sub-fields").find(".welcome_panel_fullwidth").is(":checked")?jQuery(".wlcms_welcome_panel_dismissible"+e).show():(jQuery(".wlcms_welcome_panel_dismissible"+e).hide(),jQuery(".wlcms_welcome_panel_dismissible"+e).find('input[type="checkbox"]').prop("checked",!1).trigger("change"))}})),jQuery(".welcome_panel_fullwidth").change((function(){var e=jQuery(this).closest(".wlcms-dashboard").data("wlcms_dashboard");jQuery(this).is(":checked")?jQuery(".wlcms_welcome_panel_dismissible"+e).show():(jQuery(".wlcms_welcome_panel_dismissible"+e).hide(),jQuery(".wlcms_welcome_panel_dismissible"+e).find('input[type="checkbox"]').prop("checked",!1).trigger("change"))})),jQuery(".wlcms_welcome_dismissible .wlcms-toggle-light").change((function(){var e=jQuery(this).closest(".wlcms_welcome_dismissible").find(".wlcms_welcome_dismissible_reset");jQuery(this).is(":checked")?e.show():e.hide()})).trigger("change"),jQuery(".reset-confirm").click((function(){if(0==confirm("Are you sure you want to reset!"))return!1}));var e=jQuery(".wlcms_wrapper .navigation"),t=e.offset();function i(e){var t=jQuery(".wlcms-form"),i=t.attr("action");-1!==i.indexOf("#")&&(hash=i.replace(/.*#/,"#"),i=i.replace(/#.*/,"")),t.attr({action:i+"#"+e})}jQuery(window).scroll((function(){var i=jQuery("#wpadminbar").height(),r=t.top-(e.height()+i);jQuery(this).scrollTop()>r?(e.addClass("fixed"),e.css({top:i}).width(jQuery(".wlcms_wrapper").width())):jQuery(this).scrollTop()<=t.top&&e.hasClass("fixed")&&e.removeClass("fixed")})),jQuery(".wlcms-navigation ul li a:not(.wlcms-ignore)").click((function(){var e=jQuery(this).attr("data-tab");jQuery(".wlcms-navigation ul li a").removeClass("current"),jQuery(".tab-content").removeClass("current"),jQuery(this).addClass("current"),jQuery(".wlcms_content section").removeClass("current"),jQuery(".wlcms_content section."+e).addClass("current"),i(e),jQuery("html, body").animate({scrollTop:0},400)}));var r=window.location.hash;function n(){jQuery(".wlcms-remove-img").on("click",(function(){var e=jQuery(this).parents(".wlcms-input-group");e.find(".wlcms-upload-thumbnail").html(""),e.find(".wlcms-upload-input").val("")}))}""!=(r=r.replace("#",""))?(jQuery(".wlcms-navigation ul li a#wlcms_"+r).addClass("current"),jQuery(".wlcms_content section."+r).addClass("current"),i(r)):0==jQuery(".wlcms_content section.current").length&&(jQuery(".wlcms_content section").eq(0).addClass("current"),jQuery(".wlcms-navigation ul li").eq(0).find("a").addClass("current")),jQuery(".wlcms_upload").click((function(){var e=wp.media.editor.send.attachment,t=jQuery(this);return wp.media.editor.send.attachment=function(i,r){var s='<img id="'+r.id+'" src="'+r.url+'" />';s+='<span class="dashicons dashicons-dismiss wlcms-remove-img"></span>',t.parents(".wlcms-input-group").find(".wlcms-upload-thumbnail").html(s),t.parents(".wlcms-input-group").find(".wlcms-upload-input").val(r.url),n(),wp.media.editor.send.attachment=e},wp.media.editor.open(),!1})),n(),jQuery(".wlcms-color-field").wpColorPicker(),jQuery(".wlcms-preview-link").on("click",(function(){jQuery("#wlcms-preview-content").html("...");var e=jQuery(".wlcms-form").serialize()+"&action=wlcms_save_login_preview_settings&_ajax_nonce="+wlcms_settings.wlcms_ajax_nonce;jQuery.ajax({type:"post",url:ajaxurl,data:e,success:function(e){jQuery("#wlcms-preview-content").html('<iframe allowtransparency="true" class="long-animate wlcms-preview-iframe" title="Login Preview" onmousewheel="" src="'+wlcms_settings.loginurl+'?wlcms-action=preview&preview_section=login&reauth=1"></iframe>'),jQuery("iframe.wlcms-preview-iframe").load((function(){var e=jQuery(this),t=e.contents();e.slideDown("slow"),t.find("body").prepend('<div style="text-align: center;position: absolute;top: 40px;margin: 0 30%;left: 0;font-weight: 300;font-size: 24px;background: #dad9d9cf;line-height: 35px;padding: 0;color: #790404;width: 40%;">Preview mode</div>'),t.find("form").attr("action","#"),t.find("#wp-submit").attr("type","button"),t.find("a").attr("href","#")}))}})})),jQuery(".wlcms-dashboard-preview-link").on("click",(function(){jQuery("#wlcms-dashboard-content").html("...");var e=jQuery(".wlcms-form").serialize()+"&action=wlcms_save_dashboard_preview_settings";jQuery.ajax({type:"post",url:ajaxurl,data:e,success:function(e){jQuery("#wlcms-preview-content").html('<iframe allowtransparency="true" class="long-animate wlcms-preview-iframe" title="Preview" onmousewheel="" src="'+wlcms_settings.adminurl+'?wlcms-action=preview&preview_section=dashboard"></iframe>'),jQuery("iframe.wlcms-preview-iframe").load((function(){var e=jQuery(this),t=e.contents();e.slideDown("slow"),t.find("body").prepend('<div style="text-align: center;position: absolute;top: 40px;margin: 0 30%;font-weight: 300;font-size: 24px;background: #dad9d9cf;line-height: 35px;padding: 0 20px;color: #790404;width: 40%;z-index:999999">Preview mode</div>'),t.find("a").each((function(){jQuery(this).attr("href","#")}))}))}})})),jQuery(".wlcms-select2").select2({width:"100%",placeholder:"Select"})})),jQuery.validator.addMethod("feedurl",(function(e,t){return this.optional(t)||/^(?:(?:(?:https?|ftp|feed):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)}),"Please use a valid URL"),jQuery.validator.messages.url="Please use a valid URL",jQuery(document).ready((function(){jQuery('.main-toggle[type="checkbox"]').change((function(e){var t=jQuery(this).prop("checked"),i=jQuery(this).attr("data-revised"),r=jQuery(this).parents(".toggle-group").find(".sub-fields");r.length&&(t&&"1"!=i&&r.find('input[type="checkbox"]:checked').length==r.find('input[type="checkbox"]').length||!t&&"1"==i?r.hide():r.show())})).trigger("change"),jQuery(".wlcms-toggle-arrow").on("click",(function(){jQuery(this).toggleClass("active"),jQuery(this).next("ul").slideToggle()})),jQuery("#enable_wlcms_admin").on("change",(function(){jQuery(this).is(":checked")?jQuery(".menu-admin-wrapper").show():jQuery(".menu-admin-wrapper").hide()})).trigger("change"),jQuery(".enable_welcome_for_all_roles").on("change",(function(){var e=jQuery("#select_user_roles"+jQuery(this).data("section"));jQuery(this).is(":checked")?e.hide():e.show()})).trigger("change"),jQuery('.wlcms-toggle[type="checkbox"]').change((function(e){var t=jQuery(this).prop("checked"),i=jQuery(this).parent();i.siblings();i.find('input[type="checkbox"]').prop({checked:t}),function e(i){var r=i.parent().parent(),n=!0;if(i.siblings().each((function(){return n=jQuery(this).children('input[type="checkbox"]').prop("checked")===t})),n&&t)r.children('input[type="checkbox"]').prop({checked:t}),e(r);else if(n&&!t)r.children('input[type="checkbox"]').prop("checked",t),r.children('input[type="checkbox"]').prop("indeterminate",r.find('input[type="checkbox"]:checked').length>0),e(r);else{var s=!0;i.parents("li").children('input[type="checkbox"]').hasClass("main-toggle-reverse")&&(s=!1),i.parents("li").children('input[type="checkbox"]').prop({checked:s})}}(i)})),jQuery(".wlcms-menus-settings > ul > li").each((function(){jQuery(this).find('input[type="checkbox"]:checked').length==jQuery(this).find('input[type="checkbox"]').length?jQuery(this).find("ul.sub_menu_wrapper").hide():jQuery(this).find("ul.sub_menu_wrapper").show()}));jQuery(".wlcms-form").validate({ignore:".ignore",rules:{rss_feed_address:{required:!1,feedurl:!0}},invalidHandler:function(e,t){var r=t.errorList;jQuery(".wlcms-navigation ul li span").remove();var n=[];for(i=0;i<r.length;i++){var s=r[i].element,a=jQuery(s).closest("section").attr("id");-1===n.indexOf(a)&&n.push(a),console.log(a)}for(i=0;i<n.length;i++)jQuery(".wlcms-navigation ul li a#wlcms_tab-"+n[i]).append('<span class="dashicons dashicons-no-alt"></span>');var c=t.numberOfInvalids();if(c){var l=1==c?"You missed 1 field. It has been highlighted":"You missed "+c+" fields. They have been highlighted";jQuery("div.wlcms_messages span").html(l),jQuery("div.wlcms_messages").show()}else jQuery("div.wlcms_messages").hide()}});jQuery(".template_type").on("change",(function(){var e=jQuery(this).data("template_type"),t=jQuery(".template_type"+e).filter(":checked"),i=t.data("page_type");if("html"==t.val()){if(jQuery(".welcome-basicHtml"+e).show(),jQuery(".welcome-page"+e).hide(),jQuery(".welcome-basicHtml"+e+" .welcome_panel_fullwidth").is(":checked"))return void jQuery(".wlcms_welcome_panel_dismissible"+e).show();jQuery(".wlcms_welcome_panel_dismissible"+e).hide()}else jQuery(".wlcms_welcome_panel_dismissible"+e).show(),jQuery(".welcome-basicHtml"+e).hide(),jQuery(".welcome-page"+e).show(),"beaver"==i?(jQuery(".beaver_page"+e).next().show(),jQuery(".elementor_page"+e).next().hide()):(jQuery(".beaver_page"+e).next().hide(),jQuery(".elementor_page"+e).next().show())})),jQuery(".template_type").trigger("change"),jQuery("form.wlcms-advert").on("submit",(function(){var e=jQuery("#ad-authorize").is(":checked"),t=jQuery("#inf_custom_GDPR");t.val(e+" "+t.data("date"))}))}))},,,,,function(e,t){},,,,,function(e,t){}]);
|
1 |
+
!function(e){var t={};function i(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i(i.s=0)}([function(e,t,i){i(1),i(6),e.exports=i(11)},function(e,t){jQuery(document).ready((function(){jQuery(".wlcms-next-step").on("click",(function(){jQuery("#wlcms_tab_step-1").hide(),jQuery("#tab-step-1").hide(),jQuery("#wlcms_tab_step-2").show(),jQuery("#tab-step-2").show()})),jQuery(".wlcms-prev-step").on("click",(function(){jQuery("#wlcms_tab_step-2").hide(),jQuery("#tab-step-2").hide(),jQuery("#wlcms_tab_step-1").show(),jQuery("#tab-step-1").show()})),jQuery("form.wlcms-form").areYouSure({message:"Changes that you made may not be saved"}),jQuery('.template_type[data-page_type="html"]').each((function(){if(jQuery(this).is(":checked")){var e=jQuery(this).data("template_type");jQuery(this).closest(".sub-fields").find(".welcome_panel_fullwidth").is(":checked")?jQuery(".wlcms_welcome_panel_dismissible"+e).show():(jQuery(".wlcms_welcome_panel_dismissible"+e).hide(),jQuery(".wlcms_welcome_panel_dismissible"+e).find('input[type="checkbox"]').prop("checked",!1).trigger("change"))}})),jQuery(".welcome_panel_fullwidth").change((function(){var e=jQuery(this).closest(".wlcms-dashboard").data("wlcms_dashboard");jQuery(this).is(":checked")?jQuery(".wlcms_welcome_panel_dismissible"+e).show():(jQuery(".wlcms_welcome_panel_dismissible"+e).hide(),jQuery(".wlcms_welcome_panel_dismissible"+e).find('input[type="checkbox"]').prop("checked",!1).trigger("change"))})),jQuery(".wlcms_welcome_dismissible .wlcms-toggle-light").change((function(){var e=jQuery(this).closest(".wlcms_welcome_dismissible").find(".wlcms_welcome_dismissible_reset");jQuery(this).is(":checked")?e.show():e.hide()})).trigger("change"),jQuery("#hide_wordpress_logo_and_links").change((function(){jQuery(this).is(":checked")?jQuery(".branding-toggled-off").hide():jQuery(".branding-toggled-off").show()})).trigger("change"),jQuery(".gutenberg-exit-toggle").change((function(){var e=jQuery(".gutenberg-exit-toggle option:selected").val();"custom-icon"==e?jQuery(".custom_gutenberg_exit_wrapper").show():jQuery(".custom_gutenberg_exit_wrapper").hide();var t=jQuery(".help_gutenberg_exit span");"custom-icon"==e?t.html(" the uploaded custom icon"):"admin-bar-logo"==e?t.html(" admin bar logo"):t.html(' an exit icon (<span class="dashicons dashicons-exit"></span>)')})).trigger("change"),jQuery(".reset-confirm").click((function(){if(0==confirm("Are you sure you want to reset!"))return!1}));var e=jQuery(".wlcms_wrapper .navigation"),t=e.offset();function i(e){var t=jQuery(".wlcms-form"),i=t.attr("action");-1!==i.indexOf("#")&&(hash=i.replace(/.*#/,"#"),i=i.replace(/#.*/,"")),t.attr({action:i+"#"+e})}jQuery(window).scroll((function(){var i=jQuery("#wpadminbar").height(),r=t.top-(e.height()+i);jQuery(this).scrollTop()>r?(e.addClass("fixed"),e.css({top:i}).width(jQuery(".wlcms_wrapper").width())):jQuery(this).scrollTop()<=t.top&&e.hasClass("fixed")&&e.removeClass("fixed")})),jQuery(".wlcms-navigation ul li a:not(.wlcms-ignore)").click((function(){var e=jQuery(this).attr("data-tab");jQuery(".wlcms-navigation ul li a").removeClass("current"),jQuery(".tab-content").removeClass("current"),jQuery(this).addClass("current"),jQuery(".wlcms_content section").removeClass("current"),jQuery(".wlcms_content section."+e).addClass("current"),i(e),jQuery("html, body").animate({scrollTop:0},400)}));var r=window.location.hash;function n(){jQuery(".wlcms-remove-img").on("click",(function(){var e=jQuery(this).parents(".wlcms-input-group");e.find(".wlcms-upload-thumbnail").html(""),e.find(".wlcms-upload-input").val("")}))}""!=(r=r.replace("#",""))?(jQuery(".wlcms-navigation ul li a#wlcms_"+r).addClass("current"),jQuery(".wlcms_content section."+r).addClass("current"),i(r)):0==jQuery(".wlcms_content section.current").length&&(jQuery(".wlcms_content section").eq(0).addClass("current"),jQuery(".wlcms-navigation ul li").eq(0).find("a").addClass("current")),jQuery(".wlcms_upload").click((function(){var e=wp.media.editor.send.attachment,t=jQuery(this);return wp.media.editor.send.attachment=function(i,r){var s='<img id="'+r.id+'" src="'+r.url+'" />';s+='<span class="dashicons dashicons-dismiss wlcms-remove-img"></span>',t.parents(".wlcms-input-group").find(".wlcms-upload-thumbnail").html(s),t.parents(".wlcms-input-group").find(".wlcms-upload-input").val(r.url),n(),wp.media.editor.send.attachment=e},wp.media.editor.open(),!1})),n(),jQuery(".wlcms-color-field").wpColorPicker(),jQuery(".wlcms-preview-link").on("click",(function(){jQuery("#wlcms-preview-content").html("...");var e=jQuery(".wlcms-form").serialize()+"&action=wlcms_save_login_preview_settings&_ajax_nonce="+wlcms_settings.wlcms_ajax_nonce;jQuery.ajax({type:"post",url:ajaxurl,data:e,success:function(e){jQuery("#wlcms-preview-content").html('<iframe allowtransparency="true" class="long-animate wlcms-preview-iframe" title="Login Preview" onmousewheel="" src="'+wlcms_settings.loginurl+'?wlcms-action=preview&preview_section=login&reauth=1"></iframe>'),jQuery("iframe.wlcms-preview-iframe").load((function(){var e=jQuery(this),t=e.contents();e.slideDown("slow"),t.find("body").prepend('<div style="text-align: center;position: absolute;top: 40px;margin: 0 30%;left: 0;font-weight: 300;font-size: 24px;background: #dad9d9cf;line-height: 35px;padding: 0;color: #790404;width: 40%;">Preview mode</div>'),t.find("form").attr("action","#"),t.find("#wp-submit").attr("type","button"),t.find("a").attr("href","#")}))}})})),jQuery(".wlcms-dashboard-preview-link").on("click",(function(){jQuery("#wlcms-dashboard-content").html("...");var e=jQuery(".wlcms-form").serialize()+"&action=wlcms_save_dashboard_preview_settings";jQuery.ajax({type:"post",url:ajaxurl,data:e,success:function(e){jQuery("#wlcms-preview-content").html('<iframe allowtransparency="true" class="long-animate wlcms-preview-iframe" title="Preview" onmousewheel="" src="'+wlcms_settings.adminurl+'?wlcms-action=preview&preview_section=dashboard"></iframe>'),jQuery("iframe.wlcms-preview-iframe").load((function(){var e=jQuery(this),t=e.contents();e.slideDown("slow"),t.find("body").prepend('<div style="text-align: center;position: absolute;top: 40px;margin: 0 30%;font-weight: 300;font-size: 24px;background: #dad9d9cf;line-height: 35px;padding: 0 20px;color: #790404;width: 40%;z-index:999999">Preview mode</div>'),t.find("a").each((function(){jQuery(this).attr("href","#")}))}))}})})),jQuery(".wlcms-select2").select2({width:"100%",placeholder:"Select"})})),jQuery.validator.addMethod("feedurl",(function(e,t){return this.optional(t)||/^(?:(?:(?:https?|ftp|feed):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)}),"Please use a valid URL"),jQuery.validator.messages.url="Please use a valid URL",jQuery(document).ready((function(){jQuery('.main-toggle[type="checkbox"]').change((function(e){var t=jQuery(this).prop("checked"),i=jQuery(this).attr("data-revised"),r=jQuery(this).parents(".toggle-group").find(".sub-fields");r.length&&(t&&"1"!=i&&r.find('input[type="checkbox"]:checked').length==r.find('input[type="checkbox"]').length||!t&&"1"==i?r.hide():r.show())})).trigger("change"),jQuery(".wlcms-toggle-arrow").on("click",(function(){jQuery(this).toggleClass("active"),jQuery(this).next("ul").slideToggle()})),jQuery("#enable_wlcms_admin").on("change",(function(){jQuery(this).is(":checked")?jQuery(".menu-admin-wrapper").show():jQuery(".menu-admin-wrapper").hide()})).trigger("change"),jQuery(".enable_welcome_for_all_roles").on("change",(function(){var e=jQuery("#select_user_roles"+jQuery(this).data("section"));jQuery(this).is(":checked")?e.hide():e.show()})).trigger("change"),jQuery('.wlcms-toggle[type="checkbox"]').change((function(e){var t=jQuery(this).prop("checked"),i=jQuery(this).parent();i.siblings();i.find('input[type="checkbox"]').prop({checked:t}),function e(i){var r=i.parent().parent(),n=!0;if(i.siblings().each((function(){return n=jQuery(this).children('input[type="checkbox"]').prop("checked")===t})),n&&t)r.children('input[type="checkbox"]').prop({checked:t}),e(r);else if(n&&!t)r.children('input[type="checkbox"]').prop("checked",t),r.children('input[type="checkbox"]').prop("indeterminate",r.find('input[type="checkbox"]:checked').length>0),e(r);else{var s=!0;i.parents("li").children('input[type="checkbox"]').hasClass("main-toggle-reverse")&&(s=!1),i.parents("li").children('input[type="checkbox"]').prop({checked:s})}}(i)})),jQuery(".wlcms-menus-settings > ul > li").each((function(){jQuery(this).find('input[type="checkbox"]:checked').length==jQuery(this).find('input[type="checkbox"]').length?jQuery(this).find("ul.sub_menu_wrapper").hide():jQuery(this).find("ul.sub_menu_wrapper").show()}));jQuery(".wlcms-form").validate({ignore:".ignore",rules:{rss_feed_address:{required:!1,feedurl:!0}},invalidHandler:function(e,t){var r=t.errorList;jQuery(".wlcms-navigation ul li span").remove();var n=[];for(i=0;i<r.length;i++){var s=r[i].element,a=jQuery(s).closest("section").attr("id");-1===n.indexOf(a)&&n.push(a),console.log(a)}for(i=0;i<n.length;i++)jQuery(".wlcms-navigation ul li a#wlcms_tab-"+n[i]).append('<span class="dashicons dashicons-no-alt"></span>');var c=t.numberOfInvalids();if(c){var l=1==c?"You missed 1 field. It has been highlighted":"You missed "+c+" fields. They have been highlighted";jQuery("div.wlcms_messages span").html(l),jQuery("div.wlcms_messages").show()}else jQuery("div.wlcms_messages").hide()}});jQuery(".template_type").on("change",(function(){var e=jQuery(this).data("template_type"),t=jQuery(".template_type"+e).filter(":checked"),i=t.data("page_type");if("html"==t.val()){if(jQuery(".welcome-basicHtml"+e).show(),jQuery(".welcome-page"+e).hide(),jQuery(".welcome-basicHtml"+e+" .welcome_panel_fullwidth").is(":checked"))return void jQuery(".wlcms_welcome_panel_dismissible"+e).show();jQuery(".wlcms_welcome_panel_dismissible"+e).hide()}else jQuery(".wlcms_welcome_panel_dismissible"+e).show(),jQuery(".welcome-basicHtml"+e).hide(),jQuery(".welcome-page"+e).show(),"beaver"==i?(jQuery(".beaver_page"+e).next().show(),jQuery(".elementor_page"+e).next().hide()):(jQuery(".beaver_page"+e).next().hide(),jQuery(".elementor_page"+e).next().show())})),jQuery(".template_type").trigger("change"),jQuery("form.wlcms-advert").on("submit",(function(){var e=jQuery("#ad-authorize").is(":checked"),t=jQuery("#inf_custom_GDPR");t.val(e+" "+t.data("date"))}))}))},,,,,function(e,t){},,,,,function(e,t){}]);
|
changelog.txt
CHANGED
@@ -1,5 +1,17 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 2.2.1 =
|
4 |
* Refactoring / Security fixes reported by @twd
|
5 |
* Fixed override footer action reported by @simebern
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 2.2.3 =
|
4 |
+
* Fixed Dashboard RSS feed missing quotation marks reported by @carterfromsl
|
5 |
+
* Changing WordPress Logo for Gutenberg fullscreen mode close button reported by @techiechic
|
6 |
+
* Fixed PHP Deprecated optional parameter reported by @pagehub
|
7 |
+
* Fixed woocommerce-product-addons plugin conflict reported by @Colin
|
8 |
+
* Minor bug fixes
|
9 |
+
|
10 |
+
= 2.2.2 =
|
11 |
+
* WooCommerce Analytics menu patch
|
12 |
+
* Side Menu Link URL opening in a new tab when external link was added. Requested by @Kosta X
|
13 |
+
* WordPress 5.6.2 tested
|
14 |
+
|
15 |
= 2.2.1 =
|
16 |
* Refactoring / Security fixes reported by @twd
|
17 |
* Fixed override footer action reported by @simebern
|
includes/Functions.php
CHANGED
@@ -14,7 +14,7 @@ if (!function_exists('wlcms_field_setting')) {
|
|
14 |
}
|
15 |
|
16 |
if (!function_exists('wlcms_welcome_value')) {
|
17 |
-
function wlcms_welcome_value($key = 0, $field, $default = false)
|
18 |
{
|
19 |
$welcome_panel = wlcms_field_setting('welcome_panel');
|
20 |
|
14 |
}
|
15 |
|
16 |
if (!function_exists('wlcms_welcome_value')) {
|
17 |
+
function wlcms_welcome_value($key = 0, $field = 'title', $default = false)
|
18 |
{
|
19 |
$welcome_panel = wlcms_field_setting('welcome_panel');
|
20 |
|
includes/classes/Admin_Core.php
CHANGED
@@ -59,7 +59,7 @@ class WLCMS_Admin_Core
|
|
59 |
'wlcms-admin-settings',
|
60 |
WLCMS_ASSETS_URL . $setting_js,
|
61 |
array('jquery', 'select2', 'wp-color-picker', 'jquery-validate'),
|
62 |
-
WLCMS_VERSION
|
63 |
);
|
64 |
|
65 |
$jquery_validate = 'js/jquery.validate.min.js';
|
@@ -92,7 +92,7 @@ class WLCMS_Admin_Core
|
|
92 |
'wlcms-admin-settings',
|
93 |
WLCMS_ASSETS_URL . $setting_css,
|
94 |
array('select2', 'wp-color-picker'),
|
95 |
-
WLCMS_VERSION
|
96 |
);
|
97 |
|
98 |
wp_register_style('select2', WLCMS_ASSETS_URL . 'css/select2.min.css');
|
59 |
'wlcms-admin-settings',
|
60 |
WLCMS_ASSETS_URL . $setting_js,
|
61 |
array('jquery', 'select2', 'wp-color-picker', 'jquery-validate'),
|
62 |
+
WLCMS_VERSION . '2'
|
63 |
);
|
64 |
|
65 |
$jquery_validate = 'js/jquery.validate.min.js';
|
92 |
'wlcms-admin-settings',
|
93 |
WLCMS_ASSETS_URL . $setting_css,
|
94 |
array('select2', 'wp-color-picker'),
|
95 |
+
WLCMS_VERSION . '2'
|
96 |
);
|
97 |
|
98 |
wp_register_style('select2', WLCMS_ASSETS_URL . 'css/select2.min.css');
|
includes/classes/Admin_Dashboard.php
CHANGED
@@ -390,7 +390,7 @@ class WLCMS_Admin_Dashboard extends WLCMS_Previewable
|
|
390 |
foreach ($rss_items as $item) :
|
391 |
|
392 |
$rss_list .= sprintf(
|
393 |
-
'<li><strong><a href="%s" title="Posted %s target="_blank">%s</a> </strong> <br />',
|
394 |
esc_url($item->get_permalink()),
|
395 |
$item->get_date('j F Y | g:i a'),
|
396 |
esc_html($item->get_title())
|
390 |
foreach ($rss_items as $item) :
|
391 |
|
392 |
$rss_list .= sprintf(
|
393 |
+
'<li><strong><a href="%s" title="Posted %s" target="_blank">%s</a> </strong> <br />',
|
394 |
esc_url($item->get_permalink()),
|
395 |
$item->get_date('j F Y | g:i a'),
|
396 |
esc_html($item->get_title())
|
includes/classes/Admin_Script.php
CHANGED
@@ -110,6 +110,7 @@ class WLCMS_Admin_Script
|
|
110 |
{
|
111 |
$this->admin_css = $admin_css;
|
112 |
}
|
|
|
113 |
function compileCss()
|
114 |
{
|
115 |
$this->_setHiddenCss();
|
110 |
{
|
111 |
$this->admin_css = $admin_css;
|
112 |
}
|
113 |
+
|
114 |
function compileCss()
|
115 |
{
|
116 |
$this->_setHiddenCss();
|
includes/classes/Admin_Settings.php
CHANGED
@@ -8,20 +8,57 @@ class WLCMS_Admin_Settings
|
|
8 |
add_action('admin_menu', array($this, 'admin_menu'), 9999);
|
9 |
add_action('admin_init', array($this, 'init'), 9999);
|
10 |
add_filter('mce_css', array($this, 'custom_editor_stylesheet'));
|
11 |
-
add_action('admin_init', array($this, '
|
12 |
add_action('init', array($this, 'remove_admin_bar'));
|
13 |
}
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
public function init()
|
16 |
{
|
17 |
$this->set_admin_css();
|
18 |
-
$this->remove_editor_wp_logo();
|
19 |
$this->hide_screen_options();
|
20 |
}
|
21 |
|
22 |
public function remove_editor_wp_logo()
|
23 |
{
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
}
|
26 |
|
27 |
public function remove_admin_bar()
|
@@ -85,7 +122,7 @@ class WLCMS_Admin_Settings
|
|
85 |
return $mce_css;
|
86 |
}
|
87 |
|
88 |
-
|
89 |
{
|
90 |
|
91 |
if (!wlcms_field_setting('hide_nag_messages')) {
|
8 |
add_action('admin_menu', array($this, 'admin_menu'), 9999);
|
9 |
add_action('admin_init', array($this, 'init'), 9999);
|
10 |
add_filter('mce_css', array($this, 'custom_editor_stylesheet'));
|
11 |
+
add_action('admin_init', array($this, 'admin_init'));
|
12 |
add_action('init', array($this, 'remove_admin_bar'));
|
13 |
}
|
14 |
|
15 |
+
public function admin_init()
|
16 |
+
{
|
17 |
+
$this->remove_nag_messages();
|
18 |
+
$this->remove_editor_wp_logo();
|
19 |
+
}
|
20 |
+
|
21 |
public function init()
|
22 |
{
|
23 |
$this->set_admin_css();
|
|
|
24 |
$this->hide_screen_options();
|
25 |
}
|
26 |
|
27 |
public function remove_editor_wp_logo()
|
28 |
{
|
29 |
+
if (!wlcms_field_setting('hide_wordpress_logo_and_links')) {
|
30 |
+
return;
|
31 |
+
}
|
32 |
+
|
33 |
+
$image = $this->get_editor_wp_logo();
|
34 |
+
|
35 |
+
wlcms_set_hidden_css('.edit-post-header .edit-post-fullscreen-mode-close svg');
|
36 |
+
wlcms_add_js(' var wlcms_change_back = setInterval(function() {if(jQuery(".edit-post-fullscreen-mode-close svg").length > 0 ){ jQuery(".edit-post-fullscreen-mode-close").html("'. $image .'");}}, 1000);');
|
37 |
+
}
|
38 |
+
|
39 |
+
private function get_editor_wp_logo() {
|
40 |
+
$gutenberg_exit_icon = wlcms_field_setting('gutenberg_exit_icon');
|
41 |
+
$admin_bar_logo = wlcms_field_setting('admin_bar_logo');
|
42 |
+
|
43 |
+
if($gutenberg_exit_icon) {
|
44 |
+
$icon = "";
|
45 |
+
if($gutenberg_exit_icon == 'admin-bar-logo') {
|
46 |
+
$icon = wlcms_field_setting('admin_bar_logo');
|
47 |
+
}elseif($gutenberg_exit_icon == 'custom-icon') {
|
48 |
+
$icon = wlcms_field_setting('gutenberg_exit_custom_icon');
|
49 |
+
}else {
|
50 |
+
return '<span class=\"dashicons dashicons-exit\"></span>';
|
51 |
+
}
|
52 |
+
|
53 |
+
return '<span id=\"wlcms_dashboard_logo\"><img src=\"' . $icon . '\" alt=\"\" /></span>';
|
54 |
+
}
|
55 |
+
|
56 |
+
if($admin_bar_logo) {
|
57 |
+
return '<span id=\"wlcms_dashboard_logo\"><img src=\"' . $admin_bar_logo. '\" alt=\"\" /></span>';
|
58 |
+
}
|
59 |
+
|
60 |
+
return '<span class=\"dashicons dashicons-exit\"></span>';
|
61 |
+
|
62 |
}
|
63 |
|
64 |
public function remove_admin_bar()
|
122 |
return $mce_css;
|
123 |
}
|
124 |
|
125 |
+
private function remove_nag_messages()
|
126 |
{
|
127 |
|
128 |
if (!wlcms_field_setting('hide_nag_messages')) {
|
includes/classes/Settings.php
CHANGED
@@ -333,6 +333,8 @@ class WLCMS_Settings
|
|
333 |
'collapsed_side_menu_image' => '',
|
334 |
'side_menu_link_url' => '',
|
335 |
'side_menu_alt_text' => '',
|
|
|
|
|
336 |
'footer_image' => '',
|
337 |
'footer_url' => '',
|
338 |
'footer_html' => '',
|
333 |
'collapsed_side_menu_image' => '',
|
334 |
'side_menu_link_url' => '',
|
335 |
'side_menu_alt_text' => '',
|
336 |
+
'gutenberg_exit_icon' => '',
|
337 |
+
'gutenberg_exit_custom_icon' => '',
|
338 |
'footer_image' => '',
|
339 |
'footer_url' => '',
|
340 |
'footer_html' => '',
|
includes/classes/Welcome_Messages/Welcome_Messages_Beaver_Builder.php
CHANGED
@@ -17,14 +17,7 @@ class Welcome_Messages_Beaver_Builder
|
|
17 |
|
18 |
public function template()
|
19 |
{
|
20 |
-
global $post;
|
21 |
-
|
22 |
-
$old_post = $post;
|
23 |
-
$post = (object) [ 'ID' => $this->template ];
|
24 |
-
|
25 |
echo do_shortcode('[fl_builder_insert_layout id="' . $this->template . '"]');
|
26 |
-
|
27 |
-
$post = $old_post;
|
28 |
}
|
29 |
|
30 |
public function welcome_panel()
|
17 |
|
18 |
public function template()
|
19 |
{
|
|
|
|
|
|
|
|
|
|
|
20 |
echo do_shortcode('[fl_builder_insert_layout id="' . $this->template . '"]');
|
|
|
|
|
21 |
}
|
22 |
|
23 |
public function welcome_panel()
|
readme.txt
CHANGED
@@ -8,8 +8,8 @@ Author URI: http://www.videousermanuals.com/?utm_campaign=wlcms&utm_medium=plugi
|
|
8 |
Author: Video User Manuals
|
9 |
Requires at least: 3.3
|
10 |
Requires PHP: 5.4
|
11 |
-
Tested up to: 5.
|
12 |
-
Stable tag: 2.2.
|
13 |
|
14 |
Customise dashboard panels and branding, hide menus plus lots more.
|
15 |
|
@@ -17,7 +17,6 @@ Customise dashboard panels and branding, hide menus plus lots more.
|
|
17 |
The White Label CMS plugin is for developers who want to give their clients a more personalised and less confusing content management system.
|
18 |
|
19 |
For a overview of the changes in 2.0 version of the plugin please visit the Video User Manuals website.
|
20 |
-
[](http://coderisk.com/wp/plugin/white-label-cms/RIPS-2du_LffR85)
|
21 |
|
22 |
= Features =
|
23 |
- Customize the login page
|
@@ -67,10 +66,8 @@ There is so much that you can do with White Label CMS, but we want the experienc
|
|
67 |
|
68 |
== Changelog ==
|
69 |
|
70 |
-
= 2.2.
|
71 |
-
*
|
72 |
-
* Side Menu Link URL opening in a new tab when external link was added. Requested by @Kosta X
|
73 |
-
* WordPress 5.6.2 tested
|
74 |
|
75 |
== Frequently Asked Questions ==
|
76 |
= Who is this plugin for?=
|
8 |
Author: Video User Manuals
|
9 |
Requires at least: 3.3
|
10 |
Requires PHP: 5.4
|
11 |
+
Tested up to: 5.8
|
12 |
+
Stable tag: 2.2.4
|
13 |
|
14 |
Customise dashboard panels and branding, hide menus plus lots more.
|
15 |
|
17 |
The White Label CMS plugin is for developers who want to give their clients a more personalised and less confusing content management system.
|
18 |
|
19 |
For a overview of the changes in 2.0 version of the plugin please visit the Video User Manuals website.
|
|
|
20 |
|
21 |
= Features =
|
22 |
- Customize the login page
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
+
= 2.2.4 =
|
70 |
+
* Fixed javascript error reported by @davidbawiec
|
|
|
|
|
71 |
|
72 |
== Frequently Asked Questions ==
|
73 |
= Who is this plugin for?=
|
view/admin/parts/branding-gutenberg.php
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
<div class="wlcms-input-group">
|
3 |
+
<label><?php _e('Gutenberg Exit Button', 'white-label-cms') ?></label>
|
4 |
+
<div class="wlcms-input">
|
5 |
+
<select class="wlcms-select gutenberg-exit-toggle" name="gutenberg_exit_icon">
|
6 |
+
<option value="exit-icon" <?php selected(wlcms_field_setting('gutenberg_exit_icon'), 'exit-icon', true) ?><?php selected(wlcms_field_setting('gutenberg_exit_icon'), '', true) ?>>Exit Icon</option>
|
7 |
+
<option value="admin-bar-logo" <?php selected(wlcms_field_setting('gutenberg_exit_icon'), 'admin-bar-logo', true) ?>>Admin Bar Logo</option>
|
8 |
+
<option value="custom-icon" <?php selected(wlcms_field_setting('gutenberg_exit_icon'), 'custom-icon', true) ?>>Custom Icon</option>
|
9 |
+
</select>
|
10 |
+
</div>
|
11 |
+
</div>
|
12 |
+
<div class="wlcms-input-group custom_gutenberg_exit_wrapper">
|
13 |
+
<?php echo wlcms_form_upload_field(__('Custom Image', 'white-label-cms'), 'gutenberg_exit_custom_icon', __('Max width and height 50px', 'white-label-cms')) ?>
|
14 |
+
</div>
|
15 |
+
<div class="wlcms-help help_gutenberg_exit">
|
16 |
+
<?php _e('Replace the WordPress logo on the Gutenberg Editor page with <span></span>', 'white-label-cms') ?>
|
17 |
+
</div>
|
view/admin/parts/branding-wordpress.php
CHANGED
@@ -1,8 +1,11 @@
|
|
1 |
|
2 |
<div class="wlcms-input-group">
|
3 |
<div class="wlcms-input">
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
6 |
</div>
|
7 |
<div class="wlcms-help">
|
8 |
<?php _e('Hide mentions of WordPress and hide the links to WordPress.org.', 'white-label-cms') ?>
|
1 |
|
2 |
<div class="wlcms-input-group">
|
3 |
<div class="wlcms-input">
|
4 |
+
<input class="wlcms-toggle wlcms-toggle-light" name="hide_wordpress_logo_and_links" value="1" id="hide_wordpress_logo_and_links" type="checkbox" <?php checked(wlcms_field_setting('hide_wordpress_logo_and_links'), 1, true) ?>/>
|
5 |
+
<label class="wlcms-toggle-btn" for="hide_wordpress_logo_and_links"></label><label class="toggle-label" for="hide_wordpress_logo_and_links"><?php _e('Hide WordPress Logo and Links', 'white-label-cms') ?></label>
|
6 |
+
</div>
|
7 |
+
<div class="wlcms-help branding-toggled-off" style="color: #f64031;">
|
8 |
+
<?php _e('You have selected no, so all custom branding images will be ignored', 'white-label-cms') ?>
|
9 |
</div>
|
10 |
<div class="wlcms-help">
|
11 |
<?php _e('Hide mentions of WordPress and hide the links to WordPress.org.', 'white-label-cms') ?>
|
view/admin/parts/branding.php
CHANGED
@@ -22,6 +22,14 @@
|
|
22 |
<?php wlcms()->admin_view('parts/branding-side-menu'); ?>
|
23 |
</div>
|
24 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
<div class="wlcms-body-wrapper">
|
26 |
<div class="wlcms-body-header">
|
27 |
<h2><?php _e('Footer Branding', 'white-label-cms') ?></h2>
|
22 |
<?php wlcms()->admin_view('parts/branding-side-menu'); ?>
|
23 |
</div>
|
24 |
</div>
|
25 |
+
<div class="wlcms-body-wrapper">
|
26 |
+
<div class="wlcms-body-header">
|
27 |
+
<h2><?php _e('Gutenberg Branding', 'white-label-cms') ?></h2>
|
28 |
+
</div>
|
29 |
+
<div class="wlcms-body-main">
|
30 |
+
<?php wlcms()->admin_view('parts/branding-gutenberg'); ?>
|
31 |
+
</div>
|
32 |
+
</div>
|
33 |
<div class="wlcms-body-wrapper">
|
34 |
<div class="wlcms-body-header">
|
35 |
<h2><?php _e('Footer Branding', 'white-label-cms') ?></h2>
|
view/admin/parts/dashboard-rss-dashboard-panel.php
CHANGED
@@ -29,7 +29,7 @@
|
|
29 |
<input type="text" id="rss_feed_address" name="rss_feed_address" value="<?php echo esc_url(wlcms_field_setting('rss_feed_address')) ?>" />
|
30 |
</div>
|
31 |
<div class="wlcms-help">
|
32 |
-
<?php _e('The RSS feed address. For example
|
33 |
</div>
|
34 |
</div>
|
35 |
|
29 |
<input type="text" id="rss_feed_address" name="rss_feed_address" value="<?php echo esc_url(wlcms_field_setting('rss_feed_address')) ?>" />
|
30 |
</div>
|
31 |
<div class="wlcms-help">
|
32 |
+
<?php _e('The RSS feed address. For example '. get_bloginfo('rss_url'), 'white-label-cms') ?>
|
33 |
</div>
|
34 |
</div>
|
35 |
|
view/admin/parts/wizard-step-1.php
CHANGED
@@ -51,7 +51,7 @@
|
|
51 |
<input type="url" name="rss_feed_address" value="<?php echo esc_url(wlcms_field_setting('rss_feed_address')) ?>" />
|
52 |
</div>
|
53 |
<div class="wlcms-help">
|
54 |
-
<?php _e('The RSS feed address. For example
|
55 |
</div>
|
56 |
</div>
|
57 |
</div>
|
51 |
<input type="url" name="rss_feed_address" value="<?php echo esc_url(wlcms_field_setting('rss_feed_address')) ?>" />
|
52 |
</div>
|
53 |
<div class="wlcms-help">
|
54 |
+
<?php _e('The RSS feed address. For example '. get_bloginfo('rss_url'), 'white-label-cms') ?>
|
55 |
</div>
|
56 |
</div>
|
57 |
</div>
|
wlcms-plugin.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: White Label CMS
|
4 |
-
Plugin URI:
|
5 |
Description: A plugin that allows you to brand WordPress CMS as your own
|
6 |
-
Version: 2.2.
|
7 |
Author: www.videousermanuals.com
|
8 |
-
Author URI:
|
9 |
Text Domain: white-label-cms
|
10 |
Domain Path: /languages
|
11 |
*/
|
@@ -13,7 +13,7 @@ Domain Path: /languages
|
|
13 |
|
14 |
if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
15 |
|
16 |
-
define('WLCMS_VERSION', '2.2.
|
17 |
define("WLCMS_DIR", plugin_dir_path(__FILE__));
|
18 |
define("WLCMS_ASSETS_URL", plugin_dir_url(__FILE__) . 'assets/');
|
19 |
define("WLCMS_BASENAME", plugin_basename(__FILE__));
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: White Label CMS
|
4 |
+
Plugin URI: https://www.videousermanuals.com/white-label-cms/?utm_campaign=wlcms&utm_medium=plugin&utm_source=readme-txt
|
5 |
Description: A plugin that allows you to brand WordPress CMS as your own
|
6 |
+
Version: 2.2.4
|
7 |
Author: www.videousermanuals.com
|
8 |
+
Author URI: https://www.videousermanuals.com/?utm_campaign=wlcms&utm_medium=plugin&utm_source=readme-txt
|
9 |
Text Domain: white-label-cms
|
10 |
Domain Path: /languages
|
11 |
*/
|
13 |
|
14 |
if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
15 |
|
16 |
+
define('WLCMS_VERSION', '2.2.4');
|
17 |
define("WLCMS_DIR", plugin_dir_path(__FILE__));
|
18 |
define("WLCMS_ASSETS_URL", plugin_dir_url(__FILE__) . 'assets/');
|
19 |
define("WLCMS_BASENAME", plugin_basename(__FILE__));
|