{"id":2603,"date":"2021-04-23T14:07:33","date_gmt":"2021-04-23T08:37:33","guid":{"rendered":"https:\/\/agriculturereview.com\/newsletter.html"},"modified":"2026-11-21T14:05:02","modified_gmt":"2026-11-21T08:35:02","slug":"newsletter","status":"publish","type":"page","link":"https:\/\/agriculturereview.com\/hi\/newsletter\/","title":{"rendered":"\u0928\u094d\u092f\u0942\u091c\u093c\u0932\u0947\u091f\u0930"},"content":{"rendered":"    <div class=\"anm-sub-box\" data-ajax=\"https:\/\/agriculturereview.com\/wp-admin\/admin-ajax.php\" data-nonce=\"fa4c2cef84\">\r\n        <div class=\"anm-sub-head\">\r\n            <h3>\ud83c\udf31 Join the Agriculture Review Weekly Digest<\/h3>\r\n            <p>Get a once-a-week roundup of practical farming guides, home gardening tips, and newly featured agritourism destinations.<\/p>\r\n        <\/div>\r\n        <form class=\"anm-sub-form\" novalidate>\r\n            <input type=\"text\" name=\"anm_hp\" style=\"position:absolute;left:-9999px;\" tabindex=\"-1\" autocomplete=\"off\">\r\n            <input type=\"text\" name=\"sub_name\" placeholder=\"Your Name (Optional)\" aria-label=\"Your Name\">\r\n            <input type=\"email\" name=\"sub_email\" required placeholder=\"Your Email Address *\" aria-label=\"Your Email\">\r\n            <button type=\"submit\">Subscribe Free \u2192<\/button>\r\n        <\/form>\r\n        <div class=\"anm-sub-msg\"><\/div>\r\n    <\/div>\r\n\r\n    <style>\r\n        .anm-sub-box, .anm-sub-box * { box-sizing: border-box; }\r\n        .anm-sub-box {\r\n            background: linear-gradient(135deg, #20531C 0%, #163B13 100%);\r\n            color: #ffffff;\r\n            border-radius: 22px;\r\n            padding: 26px 28px;\r\n            margin: 24px 0;\r\n            box-shadow: 0 14px 34px rgba(32, 83, 28, 0.22);\r\n            font-family: inherit;\r\n        }\r\n        .anm-sub-head h3 {\r\n            font-size: 1.3rem !important;\r\n            font-weight: 800 !important;\r\n            color: #ffffff !important;\r\n            margin: 0 0 6px 0 !important;\r\n        }\r\n        .anm-sub-head p {\r\n            font-size: 0.92rem;\r\n            color: #e2e8f0;\r\n            margin: 0 0 16px 0;\r\n            line-height: 1.55;\r\n        }\r\n        .anm-sub-form {\r\n            display: grid;\r\n            grid-template-columns: 1fr 1.3fr auto;\r\n            gap: 10px;\r\n        }\r\n        .anm-sub-form input[type=\"text\"],\r\n        .anm-sub-form input[type=\"email\"] {\r\n            width: 100%;\r\n            padding: 12px 15px;\r\n            border-radius: 50px;\r\n            border: none !important;\r\n            background: #ffffff;\r\n            color: #0F172A;\r\n            font-size: 0.92rem;\r\n            font-weight: 600;\r\n            font-family: inherit;\r\n        }\r\n        .anm-sub-form button {\r\n            padding: 12px 24px !important;\r\n            border-radius: 50px !important;\r\n            border: none !important;\r\n            background: #F6BE00 !important;\r\n            color: #0F172A !important;\r\n            font-size: 0.92rem !important;\r\n            font-weight: 800 !important;\r\n            font-family: inherit;\r\n            cursor: pointer;\r\n            white-space: nowrap;\r\n            transition: transform 0.2s ease;\r\n        }\r\n        .anm-sub-form button:hover { transform: translateY(-2px); }\r\n        .anm-sub-msg {\r\n            margin-top: 10px;\r\n            font-size: 0.88rem;\r\n            font-weight: 700;\r\n            color: #F6BE00;\r\n        }\r\n        @media (max-width: 720px) {\r\n            .anm-sub-box { padding: 22px 18px; border-radius: 18px; }\r\n            .anm-sub-form { grid-template-columns: 1fr; }\r\n        }\r\n    <\/style>\r\n\r\n    <script>\r\n    (function() {\r\n        document.querySelectorAll('.anm-sub-box').forEach(box => {\r\n            if (box.dataset.bound) return;\r\n            box.dataset.bound = '1';\r\n            const form = box.querySelector('.anm-sub-form');\r\n            const msg  = box.querySelector('.anm-sub-msg');\r\n            form.addEventListener('submit', (e) => {\r\n                e.preventDefault();\r\n                const name  = form.querySelector('[name=\"sub_name\"]').value.trim();\r\n                const email = form.querySelector('[name=\"sub_email\"]').value.trim();\r\n                const hp    = form.querySelector('[name=\"anm_hp\"]').value;\r\n                if (!email) {\r\n                    msg.textContent = 'Please enter your email address.';\r\n                    return;\r\n                }\r\n                const btn = form.querySelector('button');\r\n                const orig = btn.textContent;\r\n                btn.disabled = true;\r\n                btn.textContent = 'Subscribing...';\r\n\r\n                fetch(box.dataset.ajax, {\r\n                    method: 'POST',\r\n                    headers: { 'Content-Type': 'application\/x-www-form-urlencoded; charset=UTF-8' },\r\n                    body: new URLSearchParams({\r\n                        action: 'agri_nm_subscribe',\r\n                        nonce: box.dataset.nonce,\r\n                        name: name,\r\n                        email: email,\r\n                        hp: hp\r\n                    }).toString()\r\n                })\r\n                .then(r => r.json())\r\n                .then(res => {\r\n                    btn.disabled = false;\r\n                    btn.textContent = orig;\r\n                    if (res && res.success) {\r\n                        msg.textContent = res.data.message;\r\n                        form.reset();\r\n                    } else {\r\n                        msg.textContent = (res && res.data && res.data.message) ? res.data.message : 'Subscription failed. Please try again.';\r\n                    }\r\n                })\r\n                .catch(() => {\r\n                    btn.disabled = false;\r\n                    btn.textContent = orig;\r\n                    msg.textContent = 'Network error. Please try again.';\r\n                });\r\n            });\r\n        });\r\n    })();\r\n    <\/script>\r\n    \n","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-2603","page","type-page","status-publish"],"permalink_manager":null,"_links":{"self":[{"href":"https:\/\/agriculturereview.com\/hi\/wp-json\/wp\/v2\/pages\/2603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/agriculturereview.com\/hi\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/agriculturereview.com\/hi\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/agriculturereview.com\/hi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/agriculturereview.com\/hi\/wp-json\/wp\/v2\/comments?post=2603"}],"version-history":[{"count":1,"href":"https:\/\/agriculturereview.com\/hi\/wp-json\/wp\/v2\/pages\/2603\/revisions"}],"predecessor-version":[{"id":24199,"href":"https:\/\/agriculturereview.com\/hi\/wp-json\/wp\/v2\/pages\/2603\/revisions\/24199"}],"wp:attachment":[{"href":"https:\/\/agriculturereview.com\/hi\/wp-json\/wp\/v2\/media?parent=2603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}