{"id":1677,"date":"2022-12-15T19:41:02","date_gmt":"2022-12-15T18:41:02","guid":{"rendered":"https:\/\/endometrioza.eveningmedia.pl\/index.php\/privacy-settings-page\/"},"modified":"2022-12-15T19:41:02","modified_gmt":"2022-12-15T18:41:02","slug":"privacy-settings-page","status":"publish","type":"page","link":"https:\/\/endometrioza.eveningmedia.pl\/index.php\/privacy-settings-page\/","title":{"rendered":"Privacy Settings Page"},"content":{"rendered":"        <form action=\"\" method=\"POST\" class=\"njt-gdpr-privacy-settings-frm\">\n            <table>\n                <thead>\n                    <tr>\n                        <th>Nome<\/th>\n                        <th>Descri\u00e7\u00e3o<\/th>\n                        <th>Habilitar?<\/th>\n                    <\/tr>\n                <\/thead>\n                <tbody>\n                    <tr>\n                        <td>Cookie<\/td>\n                        <td>We use cookies to provide a personalised experience for our users.<\/td>\n                        <td><input type=\"checkbox\" name=\"s[]\" value=\"cookie\"  \/><\/td>\n                    <\/tr>\n                    <tr>\n                        <td>Facebook Pixel<\/td>\n                        <td>Third party service for managing advertisement activities related to the resource via Facebook<\/td>\n                        <td><input type=\"checkbox\" name=\"s[]\" value=\"fb\"  \/><\/td>\n                    <\/tr>\n                    <tr>\n                        <td>Google Analytics<\/td>\n                        <td>Used for aggregated statistics to improve user experience on the resource.<\/td>\n                        <td><input type=\"checkbox\" name=\"s[]\" value=\"gg\"  \/><\/td>\n                    <\/tr>\n                <\/tbody>\n            <\/table>\n            <button type=\"button\" class=\"njt-gdpr-privacy-settings-btn\">Salvar Altera\u00e7\u00f5es<\/button>\n        <\/form>\n        <script type=\"text\/javascript\">\n            jQuery(document).ready(function($) {\n                $('.njt-gdpr-privacy-settings-btn').on('click', function(event) {\n                    var frm = $(this).closest('form');\n                    var s = [];\n                    $.each(frm.find('input[name^=\"s\"]'), function(index, el) {\n                        if ($(el).prop('checked')) {\n                            s.push($(el).val());\n                        }\n                    });\n                    $.ajax({\n                        url: 'https:\/\/endometrioza.eveningmedia.pl\/wp-admin\/admin-ajax.php',\n                        type: 'POST',\n                        data: {\n                            action: 'njt_gdpr_save_privacy_settings',\n                            s: s\n                        },\n                    })\n                    .done(function(json) {\n                        if (json.success) {\n                            alert('Success');\n                            location.reload();\n                        } else {\n                            alert(json.data.mess);\n                        }\n                    })\n                    .fail(function() {\n                        alert('Please refresh and try again.');\n                    });\n                    return false;\n                });\n            });\n        <\/script>\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":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_uag_custom_page_level_css":"","footnotes":""},"class_list":["post-1677","page","type-page","status-publish","hentry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"et-pb-post-main-image":false,"et-pb-post-main-image-fullwidth":false,"et-pb-portfolio-image":false,"et-pb-portfolio-module-image":false,"et-pb-portfolio-image-single":false,"et-pb-gallery-module-image-portrait":false,"et-pb-post-main-image-fullwidth-large":false,"et-pb-image--responsive--desktop":false,"et-pb-image--responsive--tablet":false,"et-pb-image--responsive--phone":false},"uagb_author_info":{"display_name":"admin","author_link":"https:\/\/endometrioza.eveningmedia.pl\/index.php\/author\/admin\/"},"uagb_comment_info":0,"uagb_excerpt":null,"_links":{"self":[{"href":"https:\/\/endometrioza.eveningmedia.pl\/index.php\/wp-json\/wp\/v2\/pages\/1677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/endometrioza.eveningmedia.pl\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/endometrioza.eveningmedia.pl\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/endometrioza.eveningmedia.pl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/endometrioza.eveningmedia.pl\/index.php\/wp-json\/wp\/v2\/comments?post=1677"}],"version-history":[{"count":0,"href":"https:\/\/endometrioza.eveningmedia.pl\/index.php\/wp-json\/wp\/v2\/pages\/1677\/revisions"}],"wp:attachment":[{"href":"https:\/\/endometrioza.eveningmedia.pl\/index.php\/wp-json\/wp\/v2\/media?parent=1677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}