!function(){var a,b,c,d,e={Mo:{},init:function(){a=jQuery("#cloudfw-ui-shortcode-generator"),b=a.find(".cloudfw-ui-modal-box-header"),c=a.find(".cloudfw-ui-modal-box-content"),d,this.generate()},generate:function(){CloudFw_UI.modal({destroy:!1,overlay:!1,id:"cloudfw-ui-shortcode-generator",title:"Shortcode Generator",loader:!0,content:this.get_generator_content})},get_generator_content:function(a,b,e){c.html("").addClass("loading");var f={nonce:CloudFwOp.cloudfw_nonce,action:"cloudfw_load_dynamic_shortcode_generator",target:d};e.loading("show"),jQuery.ajax({url:CloudFwOp.ajaxUrl,cache:!1,type:"POST",data:jQuery.param(f,!0),success:function(a){e.success(a),cloudfw_main(),cloudfw_destroy()}})}};jQuery(window).ready(function(){var a=jQuery("<li/>").attr("id","wp-admin-bar-cloudfw_shortcode_generator");jQuery("<a/>").attr("href","javascript:;").addClass("ab-item cloudfw-ui-sg").html("Shortcode Generator").appendTo(a);jQuery("#wp-admin-bar-root-default #wp-admin-bar-cloudfw_shortcode_generator").remove(),jQuery("#wp-admin-bar-root-default").append(a),jQuery(document).undelegate(".cloudfw-ui-sg","click"),jQuery(document).delegate(".cloudfw-ui-sg","click",function(a){a.preventDefault();var b=jQuery(this),c="#"+b.attr("rel");e.init(b,c)})})}(jQuery);