PluginProbe
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets / 4.2.0
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets v4.2.0
4.5.6 4.5.5 4.5.4 4.2.1 4.2.2 4.2.3 4.5.0 4.5.2 4.5.3 4.2.0 4.1.18 4.1.17 4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.0.9 4.1.0 4.1.1 4.1.2 All 148 releases
ultimate-post-kit / assets / js / upk-editor.min.js

upk-editor.min.js in Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets 4.2.0, at assets/js/upk-editor.min.js

1 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 !function(e){"use strict";var t={init:function(){elementor.channels.editor.on("section:activated",t.onAnimatedBoxSectionActivated),window.elementor.on("preview:loaded",(function(){elementor.$preview[0].contentWindow.UltimatePostKitEditor=t,t.onPreviewLoaded()})),elementor.channels.editor.on("ultimatePostKitProBuilderSetting:applySinglePagePostOnPreview",t.ApplyPreviewPostId),elementor.channels.editor.on("saved",t.savedBuilder)},savedBuilder:function(){t.shouldReload&&(t.shouldReload=!1,window.location.href=window.location.href)},ApplyPreviewPostId:function(){t.shouldReload=!0,e("#elementor-panel-saver-button-publish").trigger("click")},onPreviewLoaded:function(){e("#elementor-preview-iframe")[0].contentWindow.elementorFrontend.hooks.addAction("frontend/element_ready/widget",(function(t){t.find(".upk-elementor-template-edit-link").on("click",(function(t){window.open(e(this).attr("href"))}))}))}};e(window).on("elementor:init",t.init),window.UltimatePostKitEditor=t,elementor.hooks.addFilter("panel/elements/regionViews",(function(e){if(jQuery(document).ready((function(){jQuery("body").append("<style>.bdt-pro-unlock-icon:after{right: auto !important; left: 5px !important;}</style>")})),UltimatePostKitConfigEditor.pro_license_activated||UltimatePostKitConfigEditor.promotional_widgets<=0)return e;var t,o,i=UltimatePostKitConfigEditor.promotional_widgets,n=e.elements.options.collection,r=e.categories.options.collection,l=e.categories.view,a=e.elements.view,d=[];return _.each(i,(function(e,t){n.add({name:e.name,title:e.title,icon:e.icon,categories:e.categories,editable:!1})})),n.each((function(e){"ultimate-post-kit-pro-tweeks"===e.get("categories")[0]&&d.push(e)})),(o=r.findIndex({name:"ultimate-post-kit"}))&&r.add({name:"ultimate-post-kit-pro-tweeks",title:"Ultimate Post Kit Pro",defaultActive:!1,items:d},{at:o+1}),t={getWedgetOption:function(e){return i.find((function(t){return t.name==e}))},className:function(){var e="elementor-element-wrapper";return this.isEditable()||(e+=" elementor-element--promotion"),e},onMouseDown:function(){this.constructor.__super__.onMouseDown.call(this);var e=this.getWedgetOption(this.model.get("name"));elementor.promotion.showDialog({title:sprintf(wp.i18n.__("%s","elementor"),this.model.get("title")),content:sprintf(wp.i18n.__("Use %s widget and dozens more pro features to extend your toolbox and build sites faster and better.","elementor"),this.model.get("title")),targetElement:this.el,position:{blockStart:"-7"},actionButton:{url:e.action_button.url,text:e.action_button.text,classes:e.action_button.classes||["elementor-button","elementor-button-success"]}})}},e.elements.view=a.extend({childView:a.prototype.childView.extend(t)}),e.categories.view=l.extend({childView:l.prototype.childView.extend({childView:l.prototype.childView.prototype.childView.extend(t)})}),e}))}(jQuery);