"),a.match("{rightsidebar}")&&e.replaceWith(""),a.match("{fullwidth}")&&e.replaceWith("")}),$("#seopro-pro-new-before-ad").each(function(){var e=$(this);e.length&&$("#before-ad").appendTo(e)}),$("#seopro-pro-new-after-ad").each(function(){var e=$(this);e.length&&$("#after-ad").appendTo(e)}),$("#seopro-pro-main-before-ad .widget").each(function(){var e=$(this);e.length&&e.appendTo($("#before-ad"))}),$("#seopro-pro-main-after-ad .widget").each(function(){var e=$(this);e.length&&e.appendTo($("#after-ad"))}),$(".post-body blockquote").each(function(){var e=$(this),t=e.text().toLowerCase().trim(),a=e.html();if(t.match("{alertsuccess}")){const t=a.replace("{alertSuccess}","");e.replaceWith('
'+t+"
")}if(t.match("{alertinfo}")){const t=a.replace("{alertInfo}","");e.replaceWith('
'+t+"
")}if(t.match("{alertwarning}")){const t=a.replace("{alertWarning}","");e.replaceWith('
'+t+"
")}if(t.match("{alerterror}")){const t=a.replace("{alertError}","");e.replaceWith('
'+t+"
")}if(t.match("{codebox}")){const t=a.replace("{codeBox}","");e.replaceWith('
'+t+"
")}}),$(".seopro-pro-share-links .window-ify").on("click",function(){var e=$(this),t=e.data("url"),a=e.data("width"),o=e.data("height"),s=window.screen.width,r=window.screen.height,i=Math.round(s/2-a/2),n=Math.round(r/2-o/2);window.open(t,"_blank","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width="+a+",height="+o+",left="+i+",top="+n).focus()}),$(".seopro-pro-share-links").each(function(){var e=$(this);e.find(".show-hid a").on("click",function(){e.toggleClass("show-hidden")})}),$(".about-author .author-text").each(function(){var e=$(this),t=e.find("a");t.each(function(){var e=$(this),t=e.text().trim(),a=e.attr("href");e.replaceWith('
')}),t.length&&e.parent().append('
'),e.find("li").appendTo(".author-links")}),$("#seopro-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))}),$(".seopro-pro-widget-ready .HTML .widget-content").each(function(e,t,a){var o=$(this),s=$(window),r=o.data("shortcode");null!=r&&(e=r.toLowerCase(),t=shortCodeIfy(r,"results"),a=shortCodeIfy(r,"label"),s.on("scroll",function r(){s.scrollTop()+s.height()>=o.offset().top&&(s.off("scroll",r),ajaxWidget(o,"list1",t,a,e))}).trigger("scroll"))}),$("#seopro-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),s=$(window),r=a.find(".seopro-pro-related-content"),i=o();e=0!=i[1]?i[1]:3,0!=i[0]&&a.find(".related-title .title").text(i[0]),t=a.find(".related-tag").data("label"),s.on("scroll",function a(){s.scrollTop()+s.height()>=r.offset().top&&(s.off("scroll",a),ajaxRelated(r,"related",e,t,"getrelated"))}).trigger("scroll")})}}),$(".seopro-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,s=e.find("#top-continue .comment-reply");switch(a){case"blogger":e.addClass(o).show(),$(".entry-meta .entry-comments-link").addClass("show"),s.addClass("btn"),beautiAvatar(".avatar-image-container img");break;case"disqus":var r=shortCodeIfy(t,"shortname");0!=r&&(disqus_shortname=r),disqusComments(disqus_shortname),e.addClass(o).show();break;case"facebook":e.addClass(o).find("#comments").html(''),e.show();break;case"hide":e.hide();break;default:e.addClass("comments-system-blogger").show(),$(".entry-meta .entry-comments-link").addClass("show"),s.addClass("btn"),beautiAvatar(".avatar-image-container img")}var i=e.find(".comments .comment-reply"),n=e.find(".comments #top-continue"),l=e.find("#show-comment-form");i.on("click",function(){n.show(),e.addClass("comment-form-visible"),l.remove()}),n.on("click",function(){n.hide()}),l.on("click",function(){e.addClass("comment-form-visible"),l.remove(),fixedSidebarIfy()})}),$(function(){$(".index-post .entry-image-wrap .entry-thumb, .PopularPosts .entry-image-wrap .entry-thumb, .FeaturedPost .entry-image-wrap .entry-thumb,.entry-author .author-avatar,.about-author .author-avatar").lazyify(),$("#seopro-pro-mobile-menu").each(function(){var e=$(this),t=$("#seopro-pro-main-nav-menu").clone();t.attr("id","main-mobile-nav"),t.find(".mega-items").remove(),t.find(".mega-menu > a").each(function(e,t){var a=$(this);t="recent"==(e=shortCodeIfy(a.data("shortcode").trim(),"label"))?"/search":"/search/label/"+e,a.attr("href",t)}),t.appendTo(e),$(".mobile-menu-toggle, .hide-seopro-pro-mobile-menu, .overlay").on("click",function(){$("body").toggleClass("nav-active")}),$(".seopro-pro-mobile-menu .has-sub").append(''),$(".seopro-pro-mobile-menu .mega-menu").find(".submenu-toggle").remove(),$(".seopro-pro-mobile-menu ul li .submenu-toggle").on("click",function(e){$(this).parent().hasClass("has-sub")&&(e.preventDefault(),$(this).parent().hasClass("show")?$(this).parent().removeClass("show").find("> .m-sub").slideToggle(170):$(this).parent().addClass("show").children(".m-sub").slideToggle(170))})}),$(".mobile-navbar-social").each(function(){var e=$(this);$("#seopro-pro-about-section ul.social").clone().appendTo(e)}),$(".mobile-navbar-menu").each(function(){var e=$(this);$("#footer-menu ul.link-list").clone().appendTo(e)}),$(".header-inner").each(function(){var e=$(this);if(1==fixedMenu&&e.length>0){var t=$(document).scrollTop(),a=e.offset().top,o=e.height(),s=a+o+o;$(window).scroll(function(){var a=$(document).scrollTop();a<$("#footer-wrapper").offset().top-o&&(a>s?e.addClass("is-fixed"):a<=0&&e.removeClass("is-fixed"),a>t?e.removeClass("show"):e.addClass("show"),t=$(document).scrollTop())})}}),fixedSidebarIfy(),$("#post-body iframe").each(function(){var e=$(this);e.attr("src").match("www.youtube.com")&&e.wrap('
')}),$("p.comment-content").each(function(){var e=$(this);e.replaceText(/(https:\/\/\S+(\.png|\.jpeg|\.jpg|\.gif))/g,'
'),e.replaceText(/(?:https:\/\/)?(?:www\.)?(?:youtube\.com)\/(?:watch\?v=)?(.+)/g,'
')}),$("#seopro-pro-load-more-link").each(function(){var e=$(this).data("load");e&&$("#seopro-pro-load-more-link").show(),$("#seopro-pro-load-more-link").on("click",function(t){$("#seopro-pro-load-more-link").hide(),$.ajax({url:e,success:function(t){var a=$(t).find(".blog-posts");a.find(".index-post").addClass("post-animated post-fadeInUp"),$(".blog-posts").append(a.html()),(e=$(t).find("#seopro-pro-load-more-link").data("load"))?$("#seopro-pro-load-more-link").show():($("#seopro-pro-load-more-link").hide(),$("#blog-pager .no-more").addClass("show"))},beforeSend:function(){$("#blog-pager .loading").show()},complete:function(){$("#blog-pager .loading").hide(),fixedSidebarIfy(),$(".index-post .entry-image-wrap .entry-thumb").lazyify()}}),t.preventDefault()})}),$("#cookie-ify").each(function(){var e=$(this),t=e.find(".widget.Text").data("shortcode");null!=t&&(ok=shortCodeIfy(t,"ok"),days=shortCodeIfy(t,"days"),0!=ok&&e.find("#cookie-ify-accept").text(ok),0!=days?days=Number(days):days=7),e.length>0&&("1"!==$.cookie("cookie_ify_consent")&&(e.css("display","block"),setTimeout(function(){e.addClass("is-visible")},10)),$("#cookie-ify-accept").off("click").on("click",function(t){t.preventDefault(),t.stopPropagation(),$.cookie("cookie_ify_consent","1",{expires:days,path:"/"}),e.removeClass("is-visible"),setTimeout(function(){e.css("display","none")},500)}))}),$("#back-top").each(function(){var e=$(this);$(window).on("scroll",function(){$(this).scrollTop()>=100?e.fadeIn(170):e.fadeOut(170),e.offset().top>=$("#footer-wrapper").offset().top-34?e.addClass("on-footer"):e.removeClass("on-footer")}),e.on("click",function(){$("html, body").animate({scrollTop:0},500)})})});
//]]>