{"id":35,"date":"2023-07-28T06:29:10","date_gmt":"2023-07-28T06:29:10","guid":{"rendered":"http:\/\/sh106.global.temp.domains\/~pkcorgin\/woocommerce\/events-list-style\/"},"modified":"2023-08-10T15:44:45","modified_gmt":"2023-08-10T15:44:45","slug":"events-list-style","status":"publish","type":"page","link":"https:\/\/pkc.org.in\/woocommerce\/","title":{"rendered":"Events"},"content":{"rendered":"    <div class='list_with_filter_section mep_event_list'>\n        \n        <div class=\"all_filter_item mep_event_list_sec\" id='mep_event_list_abr6a28eddda250a'>\n            <div class=\"mage_grid_box\">        <\/div>\n    <\/div>\n                <input type=\"hidden\" name=\"pagination_per_page\" value=\"10\"\/>\n            <input type=\"hidden\" name=\"pagination_style\" value=\"load_more\"\/>\n                <\/div>\n    <script>\n    jQuery(document).ready(function() {\n            var containerEl = document.querySelector('#mep_event_list_abr6a28eddda250a');\n            var mixer = mixitup(containerEl, {\n            selectors: {\n                target: '.mep-event-list-loop',\n                control: '[data-mixitup-control]'\n            }\n            });\n\n            \/\/ Handle title filter input\n            jQuery('input[name=\"filter_with_title\"]').on('keyup', function() {\n                var searchText = jQuery(this).val().toLowerCase();\n                var items = jQuery('.mep-event-list-loop');\n                \n                items.each(function() {\n                    var itemTitle = jQuery(this).data('title').toLowerCase();\n                    if (itemTitle.indexOf(searchText) > -1) {\n                        jQuery(this).show();\n                    } else {\n                        jQuery(this).hide();\n                    }\n                });\n            });\n\n            \/\/ Handle date filter change\n            jQuery('input[name=\"filter_with_date\"]').on('change', function() {\n                var selectedDate = jQuery(this).val();\n                var items = jQuery('.mep-event-list-loop');\n                \n                if (!selectedDate) {\n                    items.show();\n                } else {\n                    var filterDate = new Date(selectedDate);\n                    filterDate.setHours(0,0,0,0); \/\/ Reset time part for date comparison\n                    \n                    items.each(function() {\n                        var itemDate = new Date(jQuery(this).data('date'));\n                        itemDate.setHours(0,0,0,0); \/\/ Reset time part for date comparison\n                        \n                        if (itemDate.getTime() === filterDate.getTime()) {\n                            jQuery(this).show();\n                        } else {\n                            jQuery(this).hide();\n                        }\n                    });\n                }\n            });\n\n            \/\/ Handle state filter change\n            jQuery('select[name=\"filter_with_state\"]').on('change', function() {\n                var state = jQuery(this).val();\n                var items = jQuery('.mep-event-list-loop');\n                \n                if (state === '') {\n                    items.show();\n                } else {\n                    items.each(function() {\n                        var itemState = jQuery(this).data('state');\n                        if (itemState === state) {\n                            jQuery(this).show();\n                        } else {\n                            jQuery(this).hide();\n                        }\n                    });\n                }\n            });\n\n            \/\/ Handle city filter change\n            jQuery('select[name=\"filter_with_city\"]').on('change', function() {\n                var city = jQuery(this).val();\n                var items = jQuery('.mep-event-list-loop');\n                \n                if (city === '') {\n                    items.show();\n                } else {\n                    items.each(function() {\n                        var itemCity = jQuery(this).data('city-name');\n                        if (itemCity === city) {\n                            jQuery(this).show();\n                        } else {\n                            jQuery(this).hide();\n                        }\n                    });\n                }\n            });\n\n                                });\n    <\/script>\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-8f761849 wp-block-group-is-layout-flex\"><div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\"><div class=\"wp-block-button is-style-outline is-style-outline--1\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/pkc.org.in\/woocommerce\/privacy-policy\/\">Privacy Policy<\/a><\/div>\n\n<div class=\"wp-block-button is-style-outline is-style-outline--2\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/pkc.org.in\/woocommerce\/refund_returns\/\">Refund\/Returns Policy<\/a><\/div>\n\n<div class=\"wp-block-button is-style-outline is-style-outline--3\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/pkc.org.in\/woocommerce\/shipping-policy\/\">Shipping Policy<\/a><\/div><\/div><\/div><p class=\"wp-block-paragraph\"><\/p>","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-35","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pkc.org.in\/woocommerce\/wp-json\/wp\/v2\/pages\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pkc.org.in\/woocommerce\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pkc.org.in\/woocommerce\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pkc.org.in\/woocommerce\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pkc.org.in\/woocommerce\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":3,"href":"https:\/\/pkc.org.in\/woocommerce\/wp-json\/wp\/v2\/pages\/35\/revisions"}],"predecessor-version":[{"id":131,"href":"https:\/\/pkc.org.in\/woocommerce\/wp-json\/wp\/v2\/pages\/35\/revisions\/131"}],"wp:attachment":[{"href":"https:\/\/pkc.org.in\/woocommerce\/wp-json\/wp\/v2\/media?parent=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}