{"id":6065,"date":"2026-10-26T10:18:09","date_gmt":"2026-10-26T06:18:09","guid":{"rendered":"https:\/\/gnad.ae\/?page_id=6065"},"modified":"2026-10-26T10:20:10","modified_gmt":"2026-10-26T06:20:10","slug":"coffee-machine","status":"publish","type":"page","link":"https:\/\/gnad.ae\/en\/coffee-machine\/","title":{"rendered":"Coffee Machine"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"6065\" class=\"elementor elementor-6065\" wpc-filter-elementor-widget=\"1\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6240afe5 e-flex e-con-boxed e-con e-parent\" data-id=\"6240afe5\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3edd4360 elementor-widget elementor-widget-shortcode\" data-id=\"3edd4360\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\n    <section class=\"km-section km-category-list\" id=\"km-filter-section-coffee-machine\">\n        <h2 class=\"km-title\" style=\"text-align:center; margin-bottom:30px;\">\u0645\u0627\u0643\u064a\u0646\u0627\u062a \u0627\u0644\u0642\u0647\u0648\u0629<\/h2>\n\n        \n        <div id=\"km-ajax-results-coffee-machine\" style=\"min-height:500px; transition:opacity 0.2s;\">\n            <div class=\"km-grid\"><\/div><p style=\"text-align:center; padding:50px;\">\u0644\u0627 \u062a\u0648\u062c\u062f \u0645\u0646\u062a\u062c\u0627\u062a \u062d\u0627\u0644\u064a\u0627\u064b.<\/p>        <\/div>\n    <\/section>\n\n    <script>\n    (function($) {\n        var sectionId  = 'km-filter-section-coffee-machine';\n        var containerId = 'km-ajax-results-coffee-machine';\n        var baseSlug   = 'coffee-machine';\n        var pageUrl    = 'https:\/\/gnad.ae\/en\/coffee-machine\/';\n        var ajaxUrl    = 'https:\/\/gnad.ae\/wp-admin\/admin-ajax.php';\n        var nonce      = 'aacc99ca7d';\n        var count      = 16;\n        var currentRequest = null;\n\n        function loadProducts(filterSlug, page) {\n            page = page || 1;\n            var $container = $('#' + containerId);\n            $container.css('opacity', '0.5');\n\n            if (currentRequest) { currentRequest.abort(); }\n\n            currentRequest = $.ajax({\n                url:  ajaxUrl,\n                type: 'POST',\n                data: {\n                    action:      'km_filter_logic',\n                    base_slug:   baseSlug,\n                    filter_slug: filterSlug,\n                    count:       count,\n                    paged:       page,\n                    page_url:    pageUrl,\n                    nonce:       nonce\n                },\n                success: function(response) {\n                    $container.html(response).css('opacity', '1');\n                    currentRequest = null;\n\n                    \/\/ Scroll to top of section smoothly\n                    var sectionTop = $('#' + sectionId).offset().top - 80;\n                    $('html, body').animate({ scrollTop: sectionTop }, 400);\n                },\n                error: function(xhr) {\n                    if (xhr.statusText !== 'abort') {\n                        $container.css('opacity', '1');\n                    }\n                }\n            });\n        }\n\n        \/\/ Brand filter clicks\n        $(document).on('click', '#' + sectionId + ' .km-brand-link', function(e) {\n            e.preventDefault();\n            var slug = $(this).data('slug');\n            $('#' + sectionId + ' .km-brand-link').removeClass('active');\n            $(this).addClass('active');\n            loadProducts(slug, 1);\n\n            var newUrl = (slug === baseSlug)\n                ? window.location.pathname\n                : window.location.pathname + '?brand_filter=' + slug;\n            window.history.pushState({ path: newUrl }, '', newUrl);\n        });\n\n        \/\/ Pagination clicks\n        $(document).on('click', '#' + containerId + ' .km-pagination a', function(e) {\n            e.preventDefault();\n            var href    = $(this).attr('href');\n            var match   = href.match(\/paged=(\\d+)\/) || href.match(\/\\\/page\\\/(\\d+)\/);\n            var page    = match ? parseInt(match[1]) : 1;\n            var active  = $('#' + sectionId + ' .km-brand-link.active').data('slug') || baseSlug;\n            loadProducts(active, page);\n        });\n\n    })(jQuery);\n    <\/script>\n    \n<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","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-6065","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/gnad.ae\/en\/wp-json\/wp\/v2\/pages\/6065","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gnad.ae\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/gnad.ae\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/gnad.ae\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gnad.ae\/en\/wp-json\/wp\/v2\/comments?post=6065"}],"version-history":[{"count":7,"href":"https:\/\/gnad.ae\/en\/wp-json\/wp\/v2\/pages\/6065\/revisions"}],"predecessor-version":[{"id":6072,"href":"https:\/\/gnad.ae\/en\/wp-json\/wp\/v2\/pages\/6065\/revisions\/6072"}],"wp:attachment":[{"href":"https:\/\/gnad.ae\/en\/wp-json\/wp\/v2\/media?parent=6065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}