'),e.find("li").appendTo(".author-links")}),$("#colorify-pro-main-nav-menu li.mega-menu").each(function(e,t){var a=$(this),o=a.find("a").data("shortcode");null!=o&&(e=o.toLowerCase(),ajaxMega(a,"msimple",5,shortCodeIfy(o,"label"),e))}),$("#trending .HTML .widget-content").each(function(e){var t=$(this),a=$(window),o=t.data("shortcode");null!=o&&(mtc=o.toLowerCase(),e=shortCodeIfy(o,"label"),a.on("scroll",function o(){a.scrollTop()+a.height()>=t.offset().top&&(a.off("scroll",o),ajaxTrending(t,"trending",5,e,mtc))}).trigger("scroll"))}),$(".colorify-pro-widget-ready .HTML .widget-content").each(function(e,t,a){var o=$(this),r=$(window),s=o.data("shortcode");null!=s&&(e=s.toLowerCase(),t=shortCodeIfy(s,"results"),a=shortCodeIfy(s,"label"),r.on("scroll",function s(){r.scrollTop()+r.height()>=o.offset().top&&(r.off("scroll",s),ajaxWidget(o,"list1",t,a,e))}).trigger("scroll"))}),$("#colorify-pro-related-posts .HTML").each(function(e,t){var a=$(this).data("shortcode");if(null!=a){function o(){return e=shortCodeIfy(a,"title"),t=shortCodeIfy(a,"results"),[e,t]}$("#related-wrap").each(function(e,t){var a=$(this),r=$(window),s=a.find(".colorify-pro-related-content"),i=o();e=0!=i[1]?i[1]:4,0!=i[0]&&a.find(".related-title .title").text(i[0]),t=a.find(".related-tag").data("label"),r.on("scroll",function a(){r.scrollTop()+r.height()>=s.offset().top&&(r.off("scroll",a),ajaxRelated(s,"related",e,t,"getrelated"))}).trigger("scroll")})}}),$(".colorify-pro-blog-post-comments").each(function(){1!=darkMode&&"dark"==localStorage.themeColor&&(fbCommentsTheme="dark");var e=$(this),t=e.data("shortcode"),a=shortCodeIfy(t,"type"),o="comments-system-"+a,r=e.find("#top-continue .comment-reply");switch(a){case"disqus":var s=shortCodeIfy(t,"shortname");0!=s&&(disqus_shortname=s),disqusComments(disqus_shortname),e.addClass(o).show();break;case"facebook":e.addClass(o).find("#comments").html('