PluginProbe
Elementor Website Builder – more than just a page builder / 3.5.1
Elementor Website Builder – more than just a page builder v3.5.1
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
elementor / assets / js / new-template.min.js

new-template.min.js in Elementor Website Builder – more than just a page builder 3.5.1, at assets/js/new-template.min.js

2 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*! elementor - v3.5.1 - 20-12-2021 */
2 (()=>{"use strict";var e,t,o={70119:(e,t,o)=>{var n=o(38003).__,i=o(97631);e.exports=elementorModules.common.views.modal.Layout.extend({getModalOptions:function getModalOptions(){return{id:"elementor-new-template-modal"}},getLogoOptions:function getLogoOptions(){return{title:n("New Template","elementor")}},initialize:function initialize(){elementorModules.common.views.modal.Layout.prototype.initialize.apply(this,arguments),this.showLogo(),this.showContentView()},showContentView:function showContentView(){this.modalContent.show(new i)}})},97631:e=>{e.exports=Marionette.ItemView.extend({id:"elementor-new-template-dialog-content",template:"#tmpl-elementor-new-template",ui:{},events:{},onRender:function onRender(){}})},38003:e=>{e.exports=wp.i18n}},n={};function __webpack_require__(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return o[e](i,i.exports,__webpack_require__),i.exports}e=__webpack_require__(70119),t=elementorModules.ViewModule.extend({getDefaultSettings:function getDefaultSettings(){return{selectors:{addButton:".page-title-action:first, #elementor-template-library-add-new"}}},getDefaultElements:function getDefaultElements(){var e=this.getSettings("selectors");return{$addButton:jQuery(e.addButton)}},bindEvents:function bindEvents(){this.elements.$addButton.on("click",this.onAddButtonClick),elementorCommon.elements.$window.on("hashchange",this.showModalByHash.bind(this))},showModalByHash:function showModalByHash(){"#add_new"===location.hash&&(this.layout.showModal(),location.hash="")},onInit:function onInit(){elementorModules.ViewModule.prototype.onInit.apply(this,arguments),this.layout=new e,this.showModalByHash()},onAddButtonClick:function onAddButtonClick(e){e.preventDefault(),this.layout.showModal()}}),jQuery((function(){window.elementorNewTemplate=new t}))})();