{"id":3557,"date":"2026-07-06T13:18:27","date_gmt":"2026-07-06T13:18:27","guid":{"rendered":"https:\/\/svipblog.com\/?post_type=novela&#038;p=3557"},"modified":"2026-07-07T18:16:20","modified_gmt":"2026-07-07T18:16:20","slug":"test-2","status":"publish","type":"novela","link":"https:\/\/svipblog.com\/es\/test-2\/","title":{"rendered":"prueba"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. <\/p>\n\n\n\n<div id=\"avn-widget-container\" style=\"width: 100%; max-width: 450px; margin: 15px auto;\"><\/div>\n<script>\n(function () {\n\n    \/\/ \u2500\u2500 Configura\u00e7\u00e3o \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n    \/\/ Dom\u00ednio do WordPress onde o plugin Matter Componentes est\u00e1 ativo\n    \/\/ e a Avalia\u00e7\u00e3o Novela global est\u00e1 cadastrada\/ativada.\n    var AVN_SITE_URL = 'https:\/\/svipblog.com\/';\n\n    \/\/ Pega o id da novela da URL da p\u00e1gina onde este script est\u00e1 instalado\n    var urlParams = new URLSearchParams(window.location.search);\n    var novelId = urlParams.get('novel_id') || '6a0bd62c9c107ac109085e82';\n\n    \/\/ \u2500\u2500 Mapa novela \u2192 \u00edndice da variante \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n    \/\/ O \u00edndice segue a ORDEM das variantes cadastradas no painel\n    \/\/ \"Avalia\u00e7\u00e3o Novela\" (Componentes Globais) do WordPress:\n    \/\/   0 = 1\u00aa variante (Variante A), 1 = 2\u00aa variante (Variante B), ...\n    \/\/ Ex.: novela 1 -> avalia\u00e7\u00e3o A, novela 2 -> avalia\u00e7\u00e3o B.\n    var NOVELA_VARIANTE = {\n        '6a0bd62c9c107ac109085e82': 0, \/\/ novela 1 -> variante A\n        '7f31ac9088bb64c214b90fd0': 1  \/\/ novela 2 -> variante B\n    };\n\n    \/\/ Fallback: se a novela n\u00e3o estiver mapeada acima, escolhe uma\n    \/\/ variante de forma determin\u00edstica (hash do pr\u00f3prio ID) \u2014 assim a\n    \/\/ mesma novela sempre cai na mesma variante, mesmo sem mapear.\n    function hashPick(id, max) {\n        var hash = 0;\n        for (var i = 0; i < id.length; i++) {\n            hash = (hash * 31 + id.charCodeAt(i)) >>> 0;\n        }\n        return hash % max;\n    }\n\n    function renderWidget(base, variant) {\n        var ratingValue = base.rating_value;\n        var ratingMax   = base.rating_max;\n        var fillPercent = Math.max(0, Math.min(100, (ratingValue \/ ratingMax) * 100));\n\n        var container = document.getElementById('avn-widget-container');\n        if (!container) return;\n\n        container.innerHTML =\n            '<div class=\"avn-wrap\">' +\n                '<div class=\"avn-box\" style=\"--avn-bar-color:' + base.bar_color + '; --avn-bg-color:' + base.bg_color + ';\">' +\n                    '<div class=\"avn-text\">' +\n                        '<p class=\"avn-label\">' + variant.top_label + '<\/p>' +\n                        '<div class=\"avn-box-star\">' +\n                            '<div class=\"avn-stars\" role=\"img\" aria-label=\"' + ratingValue + '\/' + ratingMax + '\">' +\n                                '<div class=\"avn-stars__empty\" aria-hidden=\"true\">&#9733;&#9733;&#9733;&#9733;&#9733;<\/div>' +\n                                '<div class=\"avn-stars__filled\" aria-hidden=\"true\" style=\"width:' + fillPercent + '%;\">&#9733;&#9733;&#9733;&#9733;&#9733;<\/div>' +\n                            '<\/div>' +\n                            '<p class=\"avn-score-title\">' + variant.score_title + '<\/p>' +\n                        '<\/div>' +\n                    '<\/div>' +\n                    '<p class=\"avn-quote\">&#8220;' + variant.quote_text + '&#8221;<\/p>' +\n                '<\/div>' +\n            '<\/div>';\n\n        injectStyleOnce();\n    }\n\n    function injectStyleOnce() {\n        if (document.getElementById('avn-widget-style')) return;\n        var style = document.createElement('style');\n        style.id = 'avn-widget-style';\n        style.textContent =\n            '.avn-wrap{width:100%;font-family:sans-serif;}' +\n            '.avn-box{position:relative;background:var(--avn-bg-color,#fdf1f1);border-radius:4px;padding:16px 20px 18px 24px;}' +\n            '.avn-box::before{content:\"\";position:absolute;top:0;left:0;width:4px;height:100%;background:var(--avn-bar-color,#e0294b);border-radius:4px 0 0 4px;}' +\n            '.avn-label{font-size:13px;color:#555;margin:0 0 8px;}' +\n            '.avn-box-star{margin-bottom:8px;}' +\n            '.avn-stars{position:relative;display:inline-block;font-size:20px;line-height:1;letter-spacing:4px;}' +\n            '.avn-stars__empty{color:#e2e2e2;}' +\n            '.avn-stars__filled{position:absolute;top:0;left:0;overflow:hidden;white-space:nowrap;color:#f5a623;}' +\n            '.avn-score-title{font-size:16px;font-weight:700;color:#14142b;margin:4px 0 0;}' +\n            '.avn-quote{font-size:14px;font-style:italic;color:#333;margin:0;}';\n        document.head.appendChild(style);\n    }\n\n    \/\/ Idioma da p\u00e1gina (opcional) \u2014 se o WordPress tiver Polylang e a\n    \/\/ tradu\u00e7\u00e3o existir, o endpoint devolve o texto j\u00e1 traduzido.\n    var lang = (document.documentElement.lang || '').slice(0, 2);\n    var siteBase = AVN_SITE_URL.replace(\/\\\/+$\/, ''); \/\/ remove barra(s) final(is), evita \"\/\/wp-json\"\n    var endpoint = siteBase + '\/wp-json\/matter-novela\/v1\/avaliacao-novela' + (lang ? '?lang=' + encodeURIComponent(lang) : '');\n\n    fetch(endpoint)\n        .then(function (r) { return r.json(); })\n        .then(function (data) {\n            if (!data || !data.active) return; \/\/ nenhuma Avalia\u00e7\u00e3o Novela ativa no WordPress\n\n            var idx = NOVELA_VARIANTE.hasOwnProperty(novelId)\n                ? NOVELA_VARIANTE[novelId]\n                : hashPick(novelId, data.variants.length);\n\n            var variant = data.variants[idx] || data.variants[0];\n            renderWidget(data.base, variant);\n        })\n        .catch(function () {\n            \/\/ Falha de rede n\u00e3o deve quebrar o resto da p\u00e1gina.\n        });\n\n})();\n<\/script>\n\n\n\n\n<p class=\"wp-block-paragraph\">The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using &#8216;Content here, content here&#8217;, making it look like readable English. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for &#8216;lorem ipsum&#8217; will uncover many web sites still in their infancy. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at&#8230;<\/p>","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_mc_carrossel_selected":[],"_mc_comparador_selected":[],"_mc_card_download_selected":[],"_mc_quiz_inline_enabled":"","_mc_quiz_inline_paragraph":0,"_mc_cin_selected":[{"id":3524,"variant":0,"paragraph":2}],"_mc_avn_selected":[{"id":3571,"variant":0,"paragraph":4}],"_mc_archive_visibility":"default","_mc_enabled_global_quizzes":[],"_mc_quiz_text_variant":{"matter\/quiz-cta":0},"_mc_botao_redirect_selected":[],"footnotes":""},"categories":[],"tags":[],"class_list":["post-3557","novela","type-novela","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/svipblog.com\/es\/wp-json\/wp\/v2\/novela\/3557","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/svipblog.com\/es\/wp-json\/wp\/v2\/novela"}],"about":[{"href":"https:\/\/svipblog.com\/es\/wp-json\/wp\/v2\/types\/novela"}],"author":[{"embeddable":true,"href":"https:\/\/svipblog.com\/es\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/svipblog.com\/es\/wp-json\/wp\/v2\/comments?post=3557"}],"version-history":[{"count":15,"href":"https:\/\/svipblog.com\/es\/wp-json\/wp\/v2\/novela\/3557\/revisions"}],"predecessor-version":[{"id":3597,"href":"https:\/\/svipblog.com\/es\/wp-json\/wp\/v2\/novela\/3557\/revisions\/3597"}],"wp:attachment":[{"href":"https:\/\/svipblog.com\/es\/wp-json\/wp\/v2\/media?parent=3557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/svipblog.com\/es\/wp-json\/wp\/v2\/categories?post=3557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/svipblog.com\/es\/wp-json\/wp\/v2\/tags?post=3557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}