‘; break; case “side3”: o = ‘
‘; break; case “comments”: o = ‘
‘; break; case “related”: o = ‘
‘ var n = i.feed.entry; if (n) if (“related” == t) 1 == n.length && “recent” != s && (n = (i = getRecentPostsData(t, a)).feed.entry); for (let e = 0; e < n.length; e++) if (1 != n.length && getPostID(n, e) == r) n.splice(e, 1); break for (var c = 0, l = n; c < l.length; c++) o += getPostContent(t, l, c, a) else switch (t) case "mega": o = '
‘ + msgError() + “
“; break; default: o = msgError() switch (t) case “mega”: o += “
“, e.append(o).addClass(“mega”), e.find(“a:first”).attr(“href”, function(e, t) switch (s) case “recent”: t = t.replace(t, “/search”); break; default: t = t.replace(t, “/search/label/” + s) return t ); break; case “ticker”: o += “
“, e.html(o).templateifyTicker(); break; default: o += “
“, e.html(o) e.find(“span.entry-image”).templateifyThumb() , error: function() switch (t) case “mega”: e.append(‘
‘ + msgError() + “
“); break; default: e.html(msgError()) ) function getMega(e, t, a, s, r) r.match(“getposts”) && (“mega” == t ? getPosts(e, t, a, s) : e.append(‘
‘ + msgError() + “
“)) function getTicker(e, t, a, s, r) if (r.match(“getposts”)) if (“ticker” == t) return getPosts(e, t, a, s); e.html(msgError()) function getFeatured(e, t, a, s, r) if (r.match(“getposts”)) “feat2” == t function getBlock(e, t, a, s, r, i, o) if (r.match(“getposts”)) if (“block” == t function getWidget(e, t, a, s, r) function getRelated(e, t, a, s, r) getPosts(e, t, a, s, r) function disqusComments(e) var t = document.createElement(“script”); t.type = “text/javascript”, t.async = !0, t.src = “http://” + e + “.disqus.com/blogger_item.js”, document.getElementsByTagName(“head”)[0].appendChild(t) function beautiAvatar(e) $(e).attr(“src”, function(e, t, a) return a = “//1.bp.blogspot.com/-QN2lgvtYZco/YN3mUSryAVI/AAAAAAAAADs/KrR-etCcvUMcPl06jopTs9pzq59IAXhMQCLcBGAsYHQ/s35/avatar.jpg”, t = (t = (t = t.replace(“//resources.blogblog.com/img/blank.gif”, a)).replace(“//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SA=s35”, a)).replace(“/s35”, “/s39”) ) function templateifyFixedSidebar(e) $(e).each(function(e, t) ) fixedMenu = “undefined” == typeof fixedMenu || fixedMenu, viewAllText = “undefined” != typeof viewAllText ? viewAllText : templateifyMessages.viewAll, $(“#spotnews-pro-main-nav”).templateifyMenu().find(“.widget”).addClass(“show-menu”), $(“.show-search”).click(function(e) e.preventDefault(), $(“body”).addClass(“search-active”), $(“#main-search-wrap”).fadeIn(170).find(“input”).focus() ), $(“.search-close”).click(function(e) e.preventDefault(), $(“body”).removeClass(“search-active”), $(“#main-search-wrap”).fadeOut(170).find(“input”).blur() ), $(“html”).each(function() userDarkMode, 1 != darkMode && 0 != userDarkMode && (“true” == t && (e.addClass(“is-dark”), darkModeLogo(t)), $(“.darkmode-toggle”).click(function(a) a.preventDefault(), e.toggleClass(“is-dark”), t = “true” != t ? “true” : “false”, localStorage.darkMode = t, darkModeLogo(t) )) ), $(“#ticker .PopularPosts .widget-content”).templateifyTicker(), $(“.main-title a.title-link”).each(function() “” != viewAllText.trim() && $(this).html(viewAllText) ), $(“.sidebar .social-icons a”).each(function(e) var t = $(this), a = t.attr(“href”).split(“#”); a[1] && “” != (e = a[1].trim()) && t.append(‘
‘ + e + ““), t.attr(“href”, a[0].trim()) ), $(“.post-body a”).each(function() var e = $(this), t = e.text(), a = t.toLowerCase(), s = templateifyShortCode(t, “text”); a.match(“getbutton”) && 0 != s && (e.replaceText(/([^]+(?=))/g, “
$1“), e.find(“em”).replaceText(“$”, “%s”), e.each(function() var e = $(this), t = e.text(), a = templateifyShortCode(t, “text”), s = templateifyShortCode(t, “icon”), r = templateifyShortCode(t, “color”), i = templateifyShortCode(t, “size”), o = templateifyShortCode(t, “info”), n = e.parent().attr(“style”); e.addClass(0 != i ? “button btn x2” : “button btn”).text(a.replace(“%s”, “$”)), n && n.match(“center”) && e.addClass(“is-c”), 0 != o ? (e.addClass(0 != s ? “x2 ” + s : “x2”), e.append(‘
‘ + o.replace(“%s”, “$”) + ““)) : 0 != s && e.addClass(s), 0 != r && e.addClass(“color”).attr(“style”, “background-color:” + r + “;”) )) }), $(“.post-body b”).each(function() var e = $(this), t = e.text(), a = t.toLowerCase().trim(); a.match(/(?:$ads=1)/g) && e.replaceWith(‘
‘), a.match(/(?:$ads=2)/g) && e.replaceWith(‘
‘), a.match(“tocify”) && (t = 0 != (t = templateifyShortCode(t, “title”)) ? t : “Table of Contents”, e.replaceWith(‘
‘), $(“.templateify-toc-title”).each(function() var e = $(this); e.click(function(t) t.preventDefault(), e.toggleClass(“is-expanded”), $(“#templateify-toc”).slideToggle(170) ) ), $(“#templateify-toc”).toc( content: “#post-body”, headings: “h2,h3,h4” ), $(“#templateify-toc li a”).each(function() var e = $(this); e.click(function(t) return t.preventDefault(), $(“html,body”).animate( scrollTop: $(e.attr(“href”)).offset().top – 20 , 500), !1 ) )), a.match(“contactform”) && (e.replaceWith(‘
‘), $(“#post-body .contact-form-widget”).append($(“#ContactForm1 .contact-form-form”))), a.match(“leftsidebar”) && ($(“body”).addClass(“is-left”), e.remove()), a.match(“rightsidebar”) && ($(“body”).addClass(“is-right”).removeClass(“is-left”), e.remove()), a.match(“fullwidth”) && ($(“body”).addClass(“no-sidebar”), e.remove()) ), $(“#spotnews-pro-new-before-ad”).each(function() var e = $(this); e.length && $(“#before-ad”).appendTo(e) ), $(“#spotnews-pro-new-after-ad”).each(function() var e = $(this); e.length && $(“#after-ad”).appendTo(e) ), $(“#spotnews-pro-main-before-ad .widget”).each(function() var e = $(this); e.length && e.appendTo($(“#before-ad”)) ), $(“#spotnews-pro-main-after-ad .widget”).each(function() var e = $(this); e.length && e.appendTo($(“#after-ad”)) ), $(“#spotnews-pro-post-footer-ads .widget”).each(function() var e = $(this); e.length && e.appendTo($(“#post-footer-ads”)) ), $(“.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 + "
“) ), $(“.share-links .templateify-window”).click(function(e) e.preventDefault(); var t = $(this), a = t.data(“url”), s = t.data(“width”), r = t.data(“height”); window.open(a, “_blank”, “scrollbars=yes,resizable=yes,toolbar=0,width=” + s + “,height=” + r + “,top=50,left=50”).focus() ), $(“.share-links .show-hid a”).click(function(e) e.preventDefault(), $(this).parent().parent().toggleClass(“expanded”) ), $(“.about-author .author-text”).each(function() var e = $(this), t = e.find(“a”); t.length && (t.each(function() var e = $(this), t = e.text().trim(), a = e.attr(“href”); e.replaceWith(‘
‘) ), e.parent().append(‘
‘), e.find(“li”).appendTo(e.parent().find(“.author-links”))) ), $(“#spotnews-pro-main-nav-menu li.mega-menu”).each(function(e, t) var a = $(this), s = a.find(“a”).data(“shortcode”); s && (e = s.toLowerCase(), getMega(a, “mega”, 5, templateifyShortCode(s, “label”), e)) ), $(“#ticker .HTML .widget-content”).each(function(e, t) var a = $(this), s = $(window), r = a.data(“shortcode”); r && (mtc = r.toLowerCase(), e = templateifyShortCode(r, “results”), t = templateifyShortCode(r, “label”), s.on(“load resize scroll”, function r() s.scrollTop() + s.height() >= a.offset().top && (s.off(“load resize scroll”, r), getTicker(a, “ticker”, e, t, mtc)) ).trigger(“scroll”)) ), $(“#featured .HTML .widget-content”).each(function(e, t, a) “feat3” == t ? 5 : 4, r.on(“load resize scroll”, function i() r.scrollTop() + r.height() >= s.offset().top && (r.off(“load resize scroll”, i), getFeatured(s, t, a, e, mtc)) ).trigger(“scroll”)) ), $(“.content-section .HTML .widget-content”).each(function(e, t, a, s, r) (i.parent().addClass(“column-style”).attr(“data-align”, “col-left” == a ? “left” : “right”), a = “column”), “video” == a && “1” == r && i.parent().addClass(“video-style”), o.on(“load resize scroll”, function s() o.scrollTop() + o.height() >= i.offset().top && (o.off(“load resize scroll”, s), getBlock(i, a, e, t, mtc)) ).trigger(“scroll”)) ), $(“.templateify-section .HTML .widget-content”).each(function(e, t, a, s, r) var i = $(this), o = $(window), n = i.data(“shortcode”), c = i.data(“is”); n && (e = n.toLowerCase(), t = templateifyShortCode(n, “results”), a = templateifyShortCode(n, “label”), s = templateifyShortCode(n, “type”), r = 0 != (r = templateifyShortCode(n, “style”)) ? r : “1”, s = “posts” != (s = 0 != s ? s : “posts”) ? s : “side” + r, c && “footer” == c && (s = “side1” != s ? s : “side2”), o.on(“load resize scroll”, function r() o.scrollTop() + o.height() >= i.offset().top && (o.off(“load resize scroll”, r), getWidget(i, s, t, a, e)) ).trigger(“scroll”)) ), $(“#spotnews-pro-related-posts .HTML”).each(function(e, t) var a = $(this).data(“shortcode”); if (a) function s() return e = templateifyShortCode(a, “title”), t = templateifyShortCode(a, “results”), [e, t] $(“#related-wrap”).each(function(e, t, a) var r = $(this), i = r.find(“.related-tag”), o = $(window), n = r.find(“.related-content”), c = s(); e = 0 != c[1] ? c[1] : 3, 0 != c[0] && r.find(“.related-title .title > span”).text(c[0]), t = i.data(“label”), a = i.data(“id”), o.on(“load resize scroll”, function s() o.scrollTop() + o.height() >= n.offset().top && (o.off(“load resize scroll”, s), getRelated(n, “related”, e, t, a)) ).trigger(“scroll”) ) ), $(“.spotnews-pro-blog-post-comments”).each(function() var e = $(this), t = e.data(“shortcode”), a = templateifyShortCode(t, “type”), s = “comments-system-” + a, r = e.find(“#top-continue .comment-reply”); switch (a) case “disqus”: var i = templateifyShortCode(t, “shortname”); 0 != i && (disqus_shortname = i), disqusComments(disqus_shortname), e.addClass(s + ” is-visible”); break; case “facebook”: var o = templateifyShortCode(t, “lang”), n = 0 != o ? “https://connect.facebook.net/” + o + “/all.js#xfbml=1&version=v11.0” : “https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v11.0”; $(“head”).append(”), e.addClass(s).find(“#comments”).html(‘ ‘), e.addClass(“is-visible”); break; case “hide”: e.addClass(“is-hidden”); break; default: e.addClass(“comments-system-blogger is-visible”), $(“.entry-meta .entry-comments-link”).addClass(“show”), r.addClass(“btn”), beautiAvatar(“.avatar-image-container img”) var c = e.find(“.comments .comment-reply”), l = e.find(“.comments #top-continue”), d = e.find(“#top-ce.comment-replybox-thread”); c.click(function(e) e.preventDefault(), l.show(), d.hide() ), l.click(function(e) e.preventDefault(), l.hide(), d.show() ) ), $(function() $(“.entry-image-wrap .entry-image,.author-avatar-wrap .author-avatar”).templateifyThumb(), $(“.mobile-logo”).each(function() var e = $(this), t = $(“.main-logo a”).clone(); t.find(“h1”).remove(), t.appendTo(e) ), $(“#mobile-menu”).each(function() var e = $(this), t = $(“#spotnews-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), s = a.data(“shortcode”); s && (t = “recent” == (e = templateifyShortCode(s, “label”)) ? “/search” : “/search/label/” + e, a.attr(“href”, t)) ), t.appendTo(e), $(“.mobile-menu-toggle, .hide-mobile-menu, .overlay”).click(function(e) e.preventDefault(), $(“body”).toggleClass(“nav-active”) ), $(“.mobile-menu .has-sub > a”).after(‘‘), $(“.mobile-menu .mega-menu”).find(“.submenu-toggle”).remove(), $(“.mobile-menu ul li .submenu-toggle”).click(function() var e = $(this); e.parent().hasClass(“has-sub”) && (e.parent().hasClass(“expanded”) ? e.parent().removeClass(“expanded”).find(“> .m-sub”).slideToggle(170) : e.parent().addClass(“expanded”).children(“.m-sub”).slideToggle(170)) ) ), $(“.mm-footer .mm-social”).each(function() var e = $(this); $(“#topbar ul.social”).clone().appendTo(e) ), $(“.mm-footer .mm-menu”).each(function() var e = $(this); $(“#topbar 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, s = e.height(), r = a + s + s; $(window).scroll(function(s) ) ), templateifyFixedSidebar(“#main-wrapper, #sidebar-wrapper”), $(“#post-body iframe”).each(function() var e = $(this); e.attr(“src”).match(“www.youtube.com”) && e.wrap(‘
‘) ), $(“p.comment-content”).each(function() .gif))/g, ‘

‘), e.replaceText(/(?:https://)?(?:www.)?(?:youtube.com)/(?:watch?v=)?(.+)/g, ‘
[embed]https://www.youtube.com/watch?v=$1[/embed]
‘) ), $(“#spotnews-pro-load-more-link”).each(function() var e = $(this), t = e.data(“load”); t && e.show(), e.click(function(a) a.preventDefault(), e.hide(), $.ajax( url: t, success: function(a) var s = $(a).find(“.blog-posts”); s.find(“.index-post”).addClass(“post-animated post-fadeInUp”), $(“.blog-posts”).append(s.html()), (t = $(a).find(“#spotnews-pro-load-more-link”).data(“load”)) ? e.show() : (e.hide(), $(“#blog-pager .no-more”).addClass(“show”)) , beforeSend: function() $(“#blog-pager .loading”).show() , complete: function() $(“#blog-pager .loading”).hide(), $(“.index-post .entry-image-wrap .entry-image”).templateifyThumb(), templateifyFixedSidebar(“#main-wrapper, #sidebar-wrapper”) ) ) ), $(“#spotnews-pro-cookie-consent”).each(function() var e = $(this), t = e.find(“.widget.Text”).data(“shortcode”), a = e.find(“.consent-button”); e.length > 0 && (t && (ok = templateifyShortCode(t, “ok”), days = templateifyShortCode(t, “days”), 0 != ok && a.text(ok), days = 0 != days ? Number(days) : 7), “1” !== $.cookie(“spotnews_pro_cookie_consent”) && (e.css(“display”, “block”), $(window).on(“load”, function() e.addClass(“is-visible”) )), a.off(“click”).click(function(t) t.preventDefault(), t.stopPropagation(), $.cookie(“spotnews_pro_cookie_consent”, “1”, expires: days, path: “/” ), e.removeClass(“is-visible”), setTimeout(function() e.css(“display”, “none”) , 500) ), cookieChoices = ) ), $(“#back-top”).each(function() var e = $(this); $(window).on(“scroll”, function() $(this).scrollTop() >= 100 ? e.addClass(“show”) : e.removeClass(“show”), e.offset().top >= $(“#footer-wrapper”).offset().top – 34 ? e.addClass(“on-footer”) : e.removeClass(“on-footer”) ), e.click(function(e) e.preventDefault(), $(“html, body”).animate( scrollTop: 0 , 500) ) ) ); //]]>
Fonte: AVSQ