Sid Gifari From Gifari Industries - BD Cyber Security Team
Home
/
home
/
drleilu
/
www
/
wp-content
/
plugins
/
redux-framework
/
redux-core
/
inc
/
extensions
/
metaboxes
/
✏️
Editing: redux-extension-metaboxes.min.js
!function(s){"use strict";let c=!1;s.reduxMetaBoxes=s.reduxMetaBoxes||{},document.addEventListener("DOMContentLoaded",function(){s.reduxMetaBoxes.init(),s("body").hasClass("block-editor-page")&&(c=!0)}),setTimeout(function(){!0===c&&s(".postbox .toggle-indicator").removeClass("toggle-indicator").addClass("el"),s("#publishing-action .button, #save-action .button, .editor-post-publish-button").on("click",function(){s(".redux-save-warn").slideUp(),window.onbeforeunload=null})},1e3),s.reduxMetaBoxes.init=function(){s.reduxMetaBoxes.notLoaded=!0,s.redux.initFields(),(c=s("body").hasClass("block-editor-page")?!0:c)?setTimeout(function(){s.reduxMetaBoxes.checkBoxVisibility(),s(".editor-post-format__content select, .editor-post-format select").on("change",function(){s.reduxMetaBoxes.checkBoxVisibility("post_format")}),s(".edit-post-post-template__toggle, .editor-post-panel__row-control").on("click",function(){setTimeout(function(){s(".components-popover .components-select-control__input").on("change",function(){s.reduxMetaBoxes.checkBoxVisibility("page_template")})},1e3)})},1e3):(s.reduxMetaBoxes.checkBoxVisibility(),s("#page_template").on("change",function(){s.reduxMetaBoxes.checkBoxVisibility("page_template")}),s('input[name="post_format"]:radio').on("change",function(){s.reduxMetaBoxes.checkBoxVisibility("post_format")}))},s.reduxMetaBoxes.checkBoxVisibility=function(a){0!==reduxMetaboxes.length&&s.each(reduxMetaboxes,function(n,e){s.each(e,function(e,t){let o=!1,i;e!==a&&a||!(i=void 0===(i=("post_format"===e?c?s(".editor-post-format__content select option:selected, .editor-post-format select option:Selected"):s('input:radio[name="post_format"]:checked'):c?s(".components-select-control__input"):s("#"+e)).val())?reduxMetaboxesPageTemplate._wp_page_template:i)&&""!==i||(s.each(t,function(e,t){t===i&&(o=!0)}),(o||s.reduxMetaBoxes.notLoaded)&&o?(s("#"+n).fadeIn("300"),s.redux.initFields()):s("#"+n).hide())})})}}(jQuery);
💾 Save
❌ Cancel