Файловый менеджер - Редактировать - /home/kunzqhe/www/wp-content/themes/themify-ultra/themify/themify-builder/js/editor/backend/themify-builder-backend.min.js
Ðазад
'use strict';(function(b,h,a,e){function g(){if(f[0].classList.contains("post-php")){const a=h.getElementById("post-lock-dialog");null===a||a.classList.contains("hidden")||Themify.LoadAsync(e.builder_url+"/js/editor/themify-ticks.js",function(){const a=TB_Ticks.init(e.ticks,window);f[0].classList.contains("tb_restriction")?a.show():a.ticks()},null,null,function(){return"undefined"!==typeof TB_Ticks})}if("function"===typeof window.icl_copy_from_original){var d=function(d,c){b.ajax({url:ajaxurl,type:"POST", data:{action:"themify_builder_icl_copy_from_original",source_page_id:c,source_page_lang:d},success:function(d){if("-1"!=d){let c;try{c=b.parseJSON(d)||{}}catch(m){c={}}a.Forms.reLoad(c,e.post_ID)}}})};b.ajaxPrefilter(function(a,c,e){if(c.data&&"string"===typeof c.data&&c.data.includes("icl_ajx_action=copy_from_original")){const e=a.success,f=new URLSearchParams(c.data);a.success=function(a){const c=b("#tb_canvas_block");c.length&&c.hide().appendTo("body");e(a);c.length&&b('#editor [data-type="themify-builder/canvas"]').empty().append(c.show()); d(f.get("lang"),f.get("trid"))}}})}Themify.LoadAsync(e.builder_url+"/js/editor/themify-constructor.js",function(){ThemifyConstructor.getForms(a.render)},null,null,function(){return"undefined"!==typeof ThemifyConstructor})}const f=b("body");let c=!!e.is_gutenberg_editor,k=!1;if(0<b("#page-builder.themify_write_panel").length)c=!1,f[0].classList.remove("themify-gutenberg-editor");else if(!c)return;a.redirectFrontend=!1;a.toolbarCallback=function(){a.undoManager.btnUndo=a.toolbar.el.getElementsByClassName("tb_undo_btn")[0]; a.undoManager.btnRedo=a.toolbar.el.getElementsByClassName("tb_redo_btn")[0];a.undoManager.compactBtn=a.toolbar.el.getElementsByClassName("tb_compact_undo")[0]};a.render=function(){var d=h.getElementById("tb_canvas_block");if(c&&!d)Themify.on("tb_canvas_loaded",a.render,!0);else{f[0].insertAdjacentHTML("afterbegin",'<div class="tb_fixed_scroll" id="tb_fixed_bottom_scroll"></div>');f.append(b("<div/>",{id:"tb_alert"}));0===e.builder_data.length&&(e.builder_data={});c&&(d.innerHTML="",d.appendChild(h.getElementById("tmpl-builder_admin_canvas_block").content)); ThemifyBuilderCommon.setToolbar();a.toolbar=new a.Views.Toolbar({el:"#tb_toolbar"});a.toolbar.render();a.toolbarCallback();a.Instances.Builder[0]=new a.Views.Builder({el:"#tb_row_wrapper",collection:new a.Collections.Rows(e.builder_data)});a.Instances.Builder[0].render();a.toolbar.pageBreakModule.countModules();var g=function(d){b(".themify_builder").find("input[required]").removeAttr("required");k||(k=!0,c||(this.classList.remove("disabled"),d.preventDefault()),a.Utils.saveBuilder(function(){a.undoManager.reset(); k=!1;if(c)b("button.editor-post-publish-button__button").one("click",g);else this.classList.remove("disabled"),this.click()}.bind(this)))};d=b('<a href="#" id="tb_switch_frontend_button" class="button tb_switch_frontend">'+e.i18n.switchToFrontendLabel+"</a>");var l=b(".themify-wp-editor-holder");b("input#publish,input#save-post,button.editor-post-publish-button__button").one("click",g);l.length?d=l.find("a"):d.appendTo("#postdivrich #wp-content-media-buttons");d.on("click",function(a){a.preventDefault(); b("#tb_switch_frontend").trigger("click")});b('input[name*="builder_switch_frontend"]').closest(".themify_field_row").remove();a.Instances.Builder[a.builderIndex].$el.triggerHandler("tb_init");sessionStorage.getItem("focusBackendEditor")&&(a._backendBuilderFocus(),sessionStorage.removeItem("focusBackendEditor"));ThemifyStyles.init(ThemifyConstructor.data,ThemifyConstructor.breakpointsReverse,e.post_ID)}};a._backendSwitchFrontend=function(d){b("#builder_switch_frontend_noncename").val("ok");k=!0;"publish"=== b("#original_post_status").val()?c?(b(".editor-post-publish-button").length?b(".editor-post-publish-button").trigger("click"):b(".editor-post-publish-panel__toggle").trigger("click"),a.redirectFrontend=d,b("#tb_switch_frontend").trigger("click.frontend-btn")):b("#publish").trigger("click"):c?(b(".editor-post-save-draft").trigger("click"),a.redirectFrontend=d):b("#save-post").trigger("click")};a._backendBuilderFocus=function(){b("#page-buildert").trigger("click");c?a.Utils.scrollToDropped(a.toolbar.el): a.Utils.scrollTo(a.toolbar.$el.offset().top-b("#wpadminbar").height())};"complete"===h.readyState?g():window.addEventListener("load",g,{once:!0,passive:!0})})(jQuery,document,tb_app,themifyBuilder);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка