function fts_ClearCache(e){return console.log("Clicked Clear Cache Function"),jQuery.ajax({data:{action:"fts_clear_cache_ajax",_wpnonce:ftsAjax.clearCacheNonce},type:"POST",url:ftsAjax.ajaxurl,success:function(t){return console.log("Well Done and got this from sever: "+t),"alert"===e&&(alert("Cache for all FTS Feeds cleared!"),window.location.reload()),!1}}),!1}jQuery(document).ready((function(e){e("body.wp-admin").length||(e("body").find("*").contents().filter((function(){return 3===this.nodeType&&0===this.textContent.indexOf("[fts_")})).each((function(){var t=e(this).text(),a=e("
").text(t).addClass("fts-legacy-shortcode").css({cursor:"pointer",color:"#ff0000ed"}),c=e("
").addClass("fts-legacy-shortcode-wrap"),o=e('
').text("Only visible to admins. This is a legacy shortcode, click on the shortcode below to start the conversion process.").css("font-weight","bold"),s=e("").text("Success, shortcode copied to clipboard. ").addClass("success-message").css("font-weight","bold"),n=e("").text("After clicking the Next Step link a new Feed post should be created, now paste your old shortcode in the Convert Shortcode widget. Once complete you will replace your old shortcode with the new one. ").addClass("fts-convert-shortcode-message-success"),r=e("").text("Click here for Next Step.").attr("href",ftsAjax.createNewFeedUrl).attr("target","_blank").addClass("fts-convert-shortcode-next-step-link").append("
"),l=e("").text("Convert Shortcode Documentation Reference").attr("href","https://www.slickremix.com/documentation/convert-old-shortcode/").attr("target","_blank");c.append(o).append(a),e(this).replaceWith(c),c.click((function(){var o=document.createElement("textarea");o.value=t,document.body.appendChild(o),o.select(),document.execCommand("copy"),document.body.removeChild(o),a.css("display","none"),e(".fts-legacy-code-instruction").hide(),c.append(s).append(r).append(n).append(l)}))})),e("body").hasClass("logged-in")||e(".fts-legacy-shortcode-wrap").css("display","none"));jQuery("#fts-clear-cache").on("click",(function(){return console.log("Settings Click Clear Cache Function"),jQuery(".fts-cache-messages").addClass("fts-cache-loading").css("display","inline-block").html("Please Wait... Clearing Cache"),jQuery.ajax({data:{action:"fts_clear_cache_ajax",_wpnonce:ftsAjax.clearCacheNonce},type:"POST",url:ftsAjax.ajaxurl,success:function(e){return console.log("Well Done and got this from sever: "+e),jQuery(".fts-cache-messages").removeClass("fts-cache-loading").html("Success: Cache Cleared"),!1}}),!1}))}));