{"id":1297,"date":"2026-03-18T12:56:04","date_gmt":"2026-03-18T12:56:04","guid":{"rendered":"https:\/\/winehouse.lv\/?page_id=1297"},"modified":"2026-03-18T12:56:04","modified_gmt":"2026-03-18T12:56:04","slug":"unsubscribe","status":"publish","type":"page","link":"https:\/\/winehouse.lv\/ru\/unsubscribe\/","title":{"rendered":"\u041e\u0442\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439"},"content":{"rendered":"<div class=\"wh-unsub-wrap\" style=\"max-width:480px;margin:0 auto;text-align:center;padding:40px 20px;\">\n        <h2 style=\"margin-bottom:12px\">\u041e\u0442\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439<\/h2>\n        <p style=\"margin-bottom:24px;opacity:.8\">\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043e\u0439 \u0430\u0434\u0440\u0435\u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438 WINE HOUSE.<\/p>\n        <div id=\"wh-unsub-result\" style=\"margin-bottom:16px\"><\/div>\n        <input type=\"email\" id=\"wh-unsub-email\" placeholder=\"jusu@epasts.lv\"\n            style=\"width:100%;padding:12px 16px;border-radius:10px;border:1px solid rgba(117,21,29,.3);font-size:15px;margin-bottom:12px;box-sizing:border-box\">\n        <button id=\"wh-unsub-btn\"\n            style=\"background:#75151d;color:#fff;border:none;padding:12px 32px;border-radius:10px;font-size:15px;font-weight:700;cursor:pointer;width:100%\">\n            \u041e\u0442\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f\n        <\/button>\n    <\/div>\n    <script>\n    document.getElementById('wh-unsub-btn').addEventListener('click', function () {\n        var email  = document.getElementById('wh-unsub-email').value.trim();\n        var result = document.getElementById('wh-unsub-result');\n        var btn    = this;\n\n        if (!email) {\n            result.innerHTML = '<p style=\"color:#c0392b\">Ludzu ievadiet e-pasta adresi.<\/p>';\n            return;\n        }\n\n        btn.disabled = true;\n        btn.textContent = '...';\n\n        var fd = new FormData();\n        fd.append('action', 'wh_unsubscribe');\n        fd.append('_wpnonce', '4e2c28c76b');\n        fd.append('email', email);\n\n        fetch('https:\/\/winehouse.lv\/wp-admin\/admin-ajax.php', { method: 'POST', body: fd, credentials: 'same-origin' })\n        .then(function (r) { return r.json(); })\n        .then(function (data) {\n            result.innerHTML = '<p style=\"color:' + (data.success ? '#27ae60' : '#c0392b') + '\">' + data.msg + '<\/p>';\n            if (data.success) document.getElementById('wh-unsub-email').value = '';\n            btn.disabled = false;\n            btn.textContent = 'Atteikties';\n        });\n    });\n    <\/script>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1297","page","type-page","status-publish","hentry"],"_hostinger_reach_plugin_has_subscription_block":false,"_hostinger_reach_plugin_is_elementor":false,"_links":{"self":[{"href":"https:\/\/winehouse.lv\/ru\/wp-json\/wp\/v2\/pages\/1297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/winehouse.lv\/ru\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/winehouse.lv\/ru\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/winehouse.lv\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/winehouse.lv\/ru\/wp-json\/wp\/v2\/comments?post=1297"}],"version-history":[{"count":2,"href":"https:\/\/winehouse.lv\/ru\/wp-json\/wp\/v2\/pages\/1297\/revisions"}],"predecessor-version":[{"id":1299,"href":"https:\/\/winehouse.lv\/ru\/wp-json\/wp\/v2\/pages\/1297\/revisions\/1299"}],"wp:attachment":[{"href":"https:\/\/winehouse.lv\/ru\/wp-json\/wp\/v2\/media?parent=1297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}