'; 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 case "mega": o = '
' + msgError() + "
"; break; default: o = msgError() } switch 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; default: o += "
", e.html(o) } e.find("span.entry-image").templateifyThumb() }, error: function() { switch 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 getFeatured(e, t, a, s, r) { if (r.match("getposts")) { if ("feat1" == t || "feat2" == t || "feat3" == t) return getPosts(e, t, a, s); e.html(msgError()) } } function getBlock(e, t, a, s, r, i, o) { if (r.match("getposts")) { if ("block" == t || "grid" == t || "grid2" == t || "column" == t || "video" == t) return 0 != s && (i = "recent" == s ? "/search" : "/search/label/" + s, o = "" != viewAllText.trim() ? viewAllText : exportify.viewAll, e.parent().find(".widget-title").append('
' + o + "")), getPosts(e, t, a, s); e.html(msgError()) } } function getWidget(e, t, a, s, r) { r.match("getposts") && ("side1" == t || "side2" == t || "side3" == t || "comments" == t ? getPosts(e, t, a, s) : e.html(msgError())) } 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 = "https://" + e + ".disqus.com/blogger_item.js", document.getElementsByTagName("head")[0].appendChild } 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) { fixedSidebar = "undefined" == typeof fixedSidebar || fixedSidebar, 1 == fixedSidebar && (e = $(".header-inner").height(), t = 1 == fixedMenu ? e + 30 : 30, $(this).theiaStickySidebar({ containerSelector: "#content-wrapper > .container", additionalMarginTop: t, additionalMarginBottom: 30 })) }) } fixedMenu = "undefined" == typeof fixedMenu || fixedMenu, viewAllText = "undefined" != typeof viewAllText ? viewAllText : templateifyMessages.viewAll, $("#pikify-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() { var e = $(this), t = localStorage.darkMode; darkMode = "undefined" != typeof darkMode && darkMode, userDarkMode = "undefined" == typeof userDarkMode || userDarkMode, 1 != darkMode && 0 != userDarkMode && ("true" == t && (e.addClass("is-dark"), darkModeLogo a.preventDefault(), e.toggleClass("is-dark"), t = "true" != t ? "true" : "false", localStorage.darkMode = t, darkModeLogo })) }), $(".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.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 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()) }), $("#pikify-pro-new-before-ad").each(function() { var e = $(this); e.length && $("#before-ad").appendTo(e) }), $("#pikify-pro-new-after-ad").each(function() { var e = $(this); e.length && $("#after-ad").appendTo(e) }), $("#pikify-pro-main-before-ad .widget").each(function() { var e = $(this); e.length && e.appendTo($("#before-ad")) }), $("#pikify-pro-main-after-ad .widget").each(function() { var e = $(this); e.length && e.appendTo($("#after-ad")) }), $("#pikify-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('