{"id":48937,"date":"2025-02-05T07:42:30","date_gmt":"2025-02-05T05:42:30","guid":{"rendered":"https:\/\/cretanbusiness.gr\/disable-ads\/"},"modified":"2025-02-05T07:42:30","modified_gmt":"2025-02-05T05:42:30","slug":"disable-ads","status":"publish","type":"page","link":"https:\/\/cretanbusiness.gr\/en\/disable-ads\/","title":{"rendered":"Hide Ads for Premium Members"},"content":{"rendered":"<style>\r\n.quads-da-payment-box{\r\n    align-items: center;\r\n    display: flex;\r\n    flex-direction: column;\r\n    gap: 16px;\r\n    margin-top: 43px;\r\n}\r\n.quads-da-payment-box2{\r\n    align-items: center;\r\n    box-sizing: border-box;\r\n    display: flex;\r\n    gap: 16px;\r\n    justify-content: center;\r\n    margin: auto;\r\n    width: 100%;\r\n}\r\n.quads-da-payment-box3{\r\n    padding: 0px 16px 24px 32px;background-color: #fff;\r\n    border: 1px solid #bbb;\r\n    border-radius: 4px;\r\n    width: 100%;align-items: center;\r\n    box-sizing: border-box;\r\n    display: flex;\r\n    flex-direction: column;\r\n    justify-content: center;\r\n    position: relative;\r\n}\r\n.quads-da-title1{\r\n    border-bottom: 1px solid #e3e3e3;\r\n    font: 600 22px 'Work Sans', sans-serif;\r\n    line-height: 22px;\r\n    margin-bottom: 32px;\r\n    padding-bottom: 8px;\r\n    text-align: center;\r\n    text-transform: uppercase;\r\n    width: 100%;\r\n}\r\n.quads-da-content-box{\r\n    align-items: center;display: flex;flex-direction: column;\r\n}\r\n.quads-da-sub-content{\r\n    font: 700 55px 'Merriweather', 'GeorgiaCustom';\r\n    gap: 4px;\r\n    padding-bottom: 8px;\r\n    margin:0px;\r\n}\r\n.quads-da-sub-content2{\r\n    font: 400 18px 'Work Sans', sans-serif;\r\n    padding-bottom: 16px;\r\n    line-height : 1.5;\r\n    text-align:center;\r\n}\r\n.quads-da-subcribe-btn{\r\n    background-color: #dc0000;height: 48px;border: none;\r\n    border-radius: 8px;\r\n    color: #fff;\r\n    font: 600 14px 'Work Sans', sans-serif;\r\n    width: 100%;\r\n    cursor:pointer\r\n}\r\n.quads-da-open-button {\r\n  background-color: #555;\r\n  color: white;\r\n  padding: 16px 20px;\r\n  border: none;\r\n  cursor: pointer;\r\n  opacity: 0.8;\r\n  position: fixed;\r\n  bottom: 23px;\r\n  right: 28px;\r\n  width: 280px;\r\n}\r\n\r\n.quads-da-modal {\r\n  display: none; \/* Hidden by default *\/\r\n  position: fixed; \/* Stay in place *\/\r\n  z-index: 1; \/* Sit on top *\/\r\n  top: 50%;\r\n    left: 50%;\r\n    transform: translate(-50%, -50%);\r\n    width: 50%;\r\n  \r\n  height: 100%; \/* Full height *\/\r\n  overflow: auto; \/* Enable scroll if needed *\/\r\n  background-color: rgb(0,0,0); \/* Fallback color *\/\r\n  background-color: rgba(0,0,0,0.4); \/* Black w\/ opacity *\/\r\n}\r\n\r\n\/* Modal Content\/Box *\/\r\n.quads-da-modal-content {\r\n  background-color: #fefefe;\r\n  margin: 15% auto; \/* 15% from the top and centered *\/\r\n  padding: 20px;\r\n  border: 1px solid #888;\r\n  width: 80%; \/* Could be more or less, depending on screen size *\/\r\n}\r\n\r\n\/* The Close Button *\/\r\n.quads-da-close {\r\n  color: #aaa;\r\n  float: right;\r\n  font-size: 28px;\r\n  font-weight: bold;\r\n}\r\n\r\n.quads-da-close:hover,\r\n.quads-da-close:focus {\r\n  color: black;\r\n  text-decoration: none;\r\n  cursor: pointer;\r\n}\r\n#quads-adbuy-form {\r\n    font-family: Arial, sans-serif;\r\n}\r\n\r\n#quads-adbuy-form h2 {\r\n    margin-bottom: 15px;\r\n    font-size: 20px;\r\n    color: #333;\r\n}\r\n\r\n\/* Form Sections *\/\r\n#quads-adbuy-form .form-section {\r\n    margin-bottom: 25px;\r\n    padding-bottom: 20px;\r\n    border-bottom: 1px solid #ddd;\r\n}\r\n\r\n#quads-adbuy-form .form-section:last-child {\r\n    border-bottom: none;\r\n}\r\n\r\n\/* Form Fields *\/\r\n#quads-adbuy-form label {\r\n    display: block;\r\n    margin-bottom: 5px;\r\n    font-weight: bold;\r\n}\r\n\r\n#quads-adbuy-form input[type=\"text\"],\r\n#quads-adbuy-form input[type=\"email\"],\r\n#quads-adbuy-form input[type=\"password\"],\r\n#quads-adbuy-form input[type=\"url\"],\r\n#quads-adbuy-form input[type=\"date\"],\r\n#quads-adbuy-form select,\r\n#quads-adbuy-form textarea {\r\n    width: 100%;\r\n    padding: 10px;\r\n    margin-bottom: 15px;\r\n    border: 1px solid #ddd;\r\n    border-radius: 4px;\r\n    font-size: 16px;\r\n    box-sizing: border-box;\r\n}\r\n\r\n#quads-adbuy-form input[type=\"file\"] {\r\n    margin-bottom: 15px;\r\n}\r\n\r\n#quads-adbuy-form input[type=\"submit\"],\r\n#quads-adbuy-form button {\r\n    display: inline-block;\r\n    background-color: #007bff;\r\n    color: #fff;\r\n    padding: 10px 15px;\r\n    border: none;\r\n    border-radius: 4px;\r\n    font-size: 16px;\r\n    cursor: pointer;\r\n    transition: background-color 0.3s;\r\n}\r\n\r\n#quads-adbuy-form input[type=\"submit\"]:hover,\r\n#quads-adbuy-form button:hover {\r\n    background-color: #0056b3;\r\n}\r\n\r\n\/* Summary Section *\/\r\n#quads-adbuy-form #summary-section {\r\n    background-color: #e9ecef;\r\n    padding: 15px;\r\n    border-radius: 8px;\r\n}\r\n\r\n#quads-adbuy-form #summary-section p {\r\n    margin: 10px 0;\r\n    font-size: 16px;\r\n}\r\n\r\n#quads-adbuy-form #summary-section strong {\r\n    font-weight: bold;\r\n}\r\n\r\n#quads-adbuy-form #total-cost {\r\n    font-size: 18px;\r\n    color: #d9534f;\r\n}\r\n\r\n#quads-adbuy-form #paypal-button-container {\r\n    margin-top: 20px;\r\n}\r\n.quads-danotice-success {\r\n    margin: 20px 0; \r\n    padding: 15px; \r\n    border: 1px solid #4caf50;\r\n    background-color: #dff0d8; \r\n    color: #3c763d; \r\n    border-radius: 4px; \r\n    position: relative; \r\n}\r\n\r\n.quads-danotice-success p {\r\n    margin: 0;\r\n}\r\n\r\n.quads-danotice-error {\r\n    margin: 20px 0; \r\n    padding: 15px; \r\n    border: 1px solid #d9534f; \r\n    background-color: #f2dede; \r\n    color: #a94442; \r\n    border-radius: 4px; \r\n    position: relative; \r\n}\r\n\r\n.quads-danotice-error p {\r\n    margin: 0;\r\n}\r\n\r\n.quads-danotice-dismiss {\r\n    cursor: pointer; \r\n    position: absolute; \r\n    top: 15px; \r\n    right: 15px;\r\n    background: none; \r\n    border: none; \r\n    font-size: 20px;\r\n    line-height: 1; \r\n    color: #a94442;\r\n}\r\n\r\n<\/style>\r\n<div class=\"quads-da-payment-box2\">\r\n   <div class=\"quads-da-payment-box3\">\r\n       <p class=\"quads-da-title1\">monthly<\/p>\r\n       <div class=\"quads-da-content-box\">\r\n           <p class=\"quads-da-sub-content\">$<\/p>\r\n           <p class=\"quads-da-sub-content2\">Take your browsing to the next level by upgrading to our premium plan, where you can enjoy an uninterrupted, completely ad-free experience, ensuring faster loading times, a cleaner interface, and seamless access to all your favorite content without any distractions<\/p>\r\n       <\/div>\r\n       <button type=\"button\" class=\"quads-da-subcribe-btn\" onclick=\"quadsOpenAdsBlockForm()\">Subscribe<\/button>\r\n   <\/div>\r\n<\/div>\r\n<div id=\"quads-ads-block-form\" class=\"quads-da-modal\">\r\n  <!-- Modal content -->\r\n  <form id=\"quads-adbuy-form\" method=\"POST\" action=\"https:\/\/cretanbusiness.gr\/wp-admin\/admin-ajax.php\" enctype=\"multipart\/form-data\">\r\n    <div class=\"quads-da-modal-content\">\r\n        <span class=\"quads-da-close\" onclick=\"quadsCloseAdsBlockForm()\">&times;<\/span>\r\n                    <div id=\"user-info-section\" class=\"form-section\">\r\n                <h2>User Information<\/h2>\r\n                <label for=\"full_name\">Full Name<\/label>\r\n                <input type=\"text\" name=\"full_name\" id=\"full_name\" required \/>\r\n\r\n                <label for=\"email\">Email<\/label>\r\n                <input type=\"email\" name=\"email\" id=\"email\" required \/>\r\n\r\n                <label for=\"password\">Password<\/label>\r\n                <input type=\"password\" name=\"password\" id=\"password\" required \/>\r\n            <\/div>\r\n                <input type=\"hidden\" name=\"action\" value=\"quads_submit_disablead_form\" \/>\r\n        <input type=\"hidden\" name=\"nonce\" value=\"f30c701495\" \/>\r\n        <input type=\"hidden\" name=\"redirect_link\" id=\"disablead_redirect_link\" value=\"https:\/\/cretanbusiness.gr\/en\/wp-json\/wp\/v2\/pages\/48937\" \/>\r\n        <!-- PayPal Payment Button -->\r\n        <div id=\"paypal-button-container\"><\/div>\r\n                <button type=\"submit\">Proceed for Payment<\/button>\r\n    <\/div>\r\n<\/form>\r\n<\/div>\r\n<script data-jetpack-boost=\"ignore\">\r\n    document.addEventListener('DOMContentLoaded', function() {\r\n        document.getElementById('quads-adbuy-form').addEventListener('submit', function(e) {\r\n            e.preventDefault(); \/\/ Prevent the form from submitting normally\r\n\r\n            var form = this;\r\n            var formData = new FormData(form);\r\n\r\n            \/\/ Disable the submit button and change its text\r\n            var submitButton = form.querySelector('button[type=\"submit\"]');\r\n            submitButton.disabled = true;\r\n            submitButton.textContent = 'Submitting...';\r\n\r\n            var xhr = new XMLHttpRequest();\r\n            xhr.open('POST', 'https:\/\/cretanbusiness.gr\/wp-admin\/admin-ajax.php', true);\r\n\r\n\r\n            \/\/ Handle the success and error responses\r\n            xhr.onload = function() {\r\n\r\n                \/\/ Re-enable the submit button and reset its text\r\n                submitButton.disabled = false;\r\n\r\n                if (xhr.status >= 200 && xhr.status < 400) {\r\n                    var response = JSON.parse(xhr.responseText);\r\n                    if (response.success) {\r\n                        var paypalFormContainer = document.createElement('div');\r\n                        if(response.data.paypal_form){\r\n                            paypalFormContainer.innerHTML = response.data.paypal_form;\r\n                            document.body.appendChild(paypalFormContainer);\r\n                        }\r\n                        \/\/ Automatically submit the PayPal form\r\n                        var paypalForm = paypalFormContainer.querySelector('form');\r\n                        if (paypalForm) {\r\n                            paypalForm.submit();\r\n                        }else{\r\n                            console.log(response.data.id);\r\n                            \r\n                            if(response.data.id){\r\n                                quadsProcessStripePaymentSuccess(response.data);\r\n                            }\r\n                        }\r\n                    } else {\r\n                        alert('Error: ' + response.data.message);\r\n                    }\r\n                } else {\r\n                    alert('An error occurred: ' + xhr.statusText);\r\n                }\r\n            };\r\n\r\n            \/\/ Handle network errors\r\n            xhr.onerror = function() {\r\n\r\n                \/\/ Re-enable the submit button and reset its text\r\n                submitButton.disabled = false;\r\n                submitButton.textContent = 'Submit';\r\n\r\n                alert('An error occurred during the request.');\r\n            };\r\n\r\n            \/\/ Send the form data\r\n            xhr.send(formData);\r\n        });\r\n    });\r\nasync function quadsProcessStripePaymentSuccess( data ){\r\n    let client_secret = data.id;\r\n    let success_link = data.success_link;\r\n    let cancel_url = data.cancel_url;\r\n    const {error, paymentIntent} = await stripe.confirmCardPayment(client_secret, {\r\n        payment_method: {card: card}\r\n    });\r\n\r\n    if (error) {\r\n        window.location.href = cancel_url;\r\n    } else if (paymentIntent.status === 'succeeded') {\r\n        window.location.href = success_link;\r\n    } \r\n}\r\n    function quadsOpenAdsBlockForm() {\r\n        document.getElementById(\"quads-ads-block-form\").style.display = \"block\";\r\n    }\r\n\r\n    function quadsCloseAdsBlockForm() {\r\n        document.getElementById(\"quads-ads-block-form\").style.display = \"none\";\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-48937","page","type-page","status-publish","hentry"],"blocksy_meta":[],"jetpack-related-posts":[{"id":1985,"url":"https:\/\/cretanbusiness.gr\/en\/about\/","url_meta":{"origin":48937,"position":0},"title":"About The Tests","author":"\u039f\u03bc\u03ac\u03b4\u03b1 \u03a3\u03cd\u03bd\u03c4\u03b1\u03be\u03b7\u03c2","date":"25 July 2010","format":false,"excerpt":"This site is using the standard WordPress Theme Unit Test Data for content. The Theme Unit Test is a series of posts and pages that match up with a checklist on the WordPress codex. You can use the data and checklist together to test your theme. WordPress Theme Development Resources\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1134,"url":"https:\/\/cretanbusiness.gr\/en\/about\/page-markup-and-formatting\/","url_meta":{"origin":48937,"position":1},"title":"Page Markup And Formatting","author":"\u039f\u03bc\u03ac\u03b4\u03b1 \u03a3\u03cd\u03bd\u03c4\u03b1\u03be\u03b7\u03c2","date":"15 March 2013","format":false,"excerpt":"Headings Header one Header two Header three Header four Header five Header six Blockquotes Single line blockquote: Stay hungry. Stay foolish. Multi line blockquote with a cite reference: People think focus means saying yes to the thing you've got to focus on. But that's not what it means at all.\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2,"url":"https:\/\/cretanbusiness.gr\/en\/sample-page\/","url_meta":{"origin":48937,"position":2},"title":"Sample Page","author":"\u039f\u03bc\u03ac\u03b4\u03b1 \u03a3\u03cd\u03bd\u03c4\u03b1\u03be\u03b7\u03c2","date":"27 April 2021","format":false,"excerpt":"This is an example page. It's different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this: Hi\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1732,"url":"https:\/\/cretanbusiness.gr\/en\/sample-page-2-2\/","url_meta":{"origin":48937,"position":3},"title":"Sample Page","author":"\u039f\u03bc\u03ac\u03b4\u03b1 \u03a3\u03cd\u03bd\u03c4\u03b1\u03be\u03b7\u03c2","date":"28 February 2018","format":false,"excerpt":"This is an example page. It's different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this: Hi\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1992,"url":"https:\/\/cretanbusiness.gr\/en\/sample-page-2\/","url_meta":{"origin":48937,"position":4},"title":"Sample Page","author":"\u039f\u03bc\u03ac\u03b4\u03b1 \u03a3\u03cd\u03bd\u03c4\u03b1\u03be\u03b7\u03c2","date":"26 February 2018","format":false,"excerpt":"This is an example page. It's different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this: Hi\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1133,"url":"https:\/\/cretanbusiness.gr\/en\/about\/page-image-alignment\/","url_meta":{"origin":48937,"position":5},"title":"Page Image Alignment","author":"\u039f\u03bc\u03ac\u03b4\u03b1 \u03a3\u03cd\u03bd\u03c4\u03b1\u03be\u03b7\u03c2","date":"15 March 2013","format":false,"excerpt":"Welcome to image alignment! The best way to demonstrate the ebb and flow of the various image positioning options is to nestle them snuggly among an ocean of words. Grab a paddle and let's get started. On the topic of alignment, it should be noted that users can choose from\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"Image Alignment 580x300","src":"https:\/\/i0.wp.com\/cretanbusiness.gr\/wp\/wp-content\/uploads\/2013\/03\/image-alignment-580x300-1.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/cretanbusiness.gr\/wp\/wp-content\/uploads\/2013\/03\/image-alignment-580x300-1.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/cretanbusiness.gr\/wp\/wp-content\/uploads\/2013\/03\/image-alignment-580x300-1.jpg?resize=525%2C300 1.5x"},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/cretanbusiness.gr\/en\/wp-json\/wp\/v2\/pages\/48937","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cretanbusiness.gr\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cretanbusiness.gr\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cretanbusiness.gr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cretanbusiness.gr\/en\/wp-json\/wp\/v2\/comments?post=48937"}],"version-history":[{"count":0,"href":"https:\/\/cretanbusiness.gr\/en\/wp-json\/wp\/v2\/pages\/48937\/revisions"}],"wp:attachment":[{"href":"https:\/\/cretanbusiness.gr\/en\/wp-json\/wp\/v2\/media?parent=48937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}