HEX
Server: Apache
System: Linux 95-217-38-122.cprapid.com 5.14.0-427.33.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 30 09:45:56 EDT 2024 x86_64
User: targetplatform (1004)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /mnt/data/targetplatform/public_html/wp-content/themes/publisher/js/shortcodes.min.js
jQuery(document).ready(function(t){var e=wp.media,n="bsShortcodes";wp.mce=wp.mce||{},wp.mce.bsShortcodes={shortcode_data:{},template:e.template("editor-boutique-banner"),getContent:function(){var t=this.shortcode.attrs.named;return t.innercontent=this.shortcode.content,this.template(t)},View:{template:e.template("editor-boutique-banner"),postID:t("#post_ID").val(),initialize:function(t){this.shortcode=t.shortcode,wp.mce.bsShortcodes.shortcode_data=this.shortcode},getHtml:function(){var t=this.shortcode.attrs.named;return t.innercontent=this.shortcode.content,this.template(t)}},edit:function(t){var t=wp.shortcode.next(n,t),e=t.shortcode.attrs.named;e.innercontent=t.shortcode.content,wp.mce.bsShortcodes.popupwindow(tinyMCE.activeEditor,e)},popupwindow:function(t,e,n){t.windowManager.open({title:"Banner",body:[{type:"textbox",name:"title",label:"Title",value:(e=e||[]).title},{type:"textbox",name:"link",label:"Button Text",value:e.link},{type:"textbox",subtype:"url",name:"linkhref",label:"Button URL",value:e.linkhref},{type:"textbox",name:"innercontent",label:"Content",value:e.innercontent}],onsubmit:n="function"!=typeof n?function(t){}:n})}},wp.mce.views.register(n,wp.mce.bsShortcodes)});