{"id":10699,"date":"2024-04-22T09:19:16","date_gmt":"2024-04-22T09:19:16","guid":{"rendered":"http:\/\/immifocus.ca\/demo\/events-grid-style\/"},"modified":"2024-09-24T04:18:21","modified_gmt":"2024-09-24T04:18:21","slug":"events-grid-style","status":"publish","type":"page","link":"https:\/\/immigopro.ca\/essential-demo\/events-grid-style\/","title":{"rendered":"Events \u2013 Grid Style"},"content":{"rendered":"                <div class='mage list_with_filter_section mep_event_list' id='mage-container'>\n\t\t\t\t\t                            <div class=\"all_filter_item mep_event_list_sec\" id='mep_event_list_abr69de95edacf6a'\n                                 data-unq-id=\"abr69de95edacf6a\"\n                                 data-style=\"grid\"\n                                 data-column=\"3\"\n                                 data-cat=\"0\"\n                                 data-org=\"0\"\n                                 data-tag=\"0\"\n                                 data-city=\"\"\n                                 data-country=\"\"\n                                 data-status=\"upcoming\"\n                                 data-year=\"\"\n                                 data-sort=\"ASC\"\n                                 data-show=\"10\"\n                                 data-pagination=\"no\"\n                                 data-pagination-style=\"load_more\"\n                            >\n                                <div class=\"mage_grid_box \" id=\"\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t    <div class='filter_item mep-event-list-loop mix column_style event-availabe-seat  mep_event_grid_item  abr69de95edacf6amage-69 abr69de95edacf6amage-68 '\r\n         data-title=\"The Future of Immigration in Canada\"\r\n         data-city-name=\"\"\r\n         data-state=\"\"\r\n         data-date=\"\"\r\n         data-category=\"Canadian Immigration\"\r\n         data-organizer=\"Immifocus Events\"\r\n         style=\"width:calc(33.333333333333% - 14px);\">\r\n\t\t\t\t\t\t\r\n\t\t                <div class=\"mep_list_thumb mpwem_style\">\r\n                    <div data-href=\"https:\/\/immigopro.ca\/essential-demo\/events\/the-future-of-immigration-in-canada\/\" data-bg-image=\"https:\/\/immigopro.ca\/essential-demo\/wp-content\/uploads\/2024\/04\/video-bg-1.jpg\"><\/div>\r\n\t\t\t\t\t                <div class=\"mepev-ribbons\">\r\n\t\t\t\t\t                            <div class='mepev-ribbon online'><i class=\"fas fa-vr-cardboard\"><\/i> Virtual<\/div>                <\/div>\r\n\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t        <div class=\"mep_list_event_details\">\r\n            <a href=\"https:\/\/immigopro.ca\/essential-demo\/events\/the-future-of-immigration-in-canada\/\">\r\n                <h5 class='mep_list_title'>The Future of Immigration in Canada<\/h5>\r\n\t\t\t\t                    <p class=\"list_price\">Price: <span class=\"woocommerce-Price-amount amount\"><span class=\"woocommerce-Price-currencySymbol\">&#036;<\/span>150.00<\/span><\/p>\r\n\t\t\t\t\t                    <div class=\"list_content upcomming_organizer\">\r\n                        <span class=\"far fa-list-alt\"><\/span>\r\n\t\t\t\t\tOrganized By: Immifocus Events                    <\/div>\r\n\t\t\t            <\/a>\r\n\t\t\t        <\/div>\r\n\t\t    <\/div>\r\n    <div class='filter_item mep-event-list-loop mix column_style event-availabe-seat  mep_event_grid_item  abr69de95edacf6amage-69 abr69de95edacf6amage-68 '\r\n         data-title=\"Canadian Housing Solutions: Accommodation Choices for Newcomers\"\r\n         data-city-name=\"\"\r\n         data-state=\"\"\r\n         data-date=\"\"\r\n         data-category=\"Canadian Immigration\"\r\n         data-organizer=\"Immifocus Events\"\r\n         style=\"width:calc(33.333333333333% - 14px);\">\r\n\t\t\t\t\t\t\r\n\t\t                <div class=\"mep_list_thumb mpwem_style\">\r\n                    <div data-href=\"https:\/\/immigopro.ca\/essential-demo\/events\/canadian-housing-solutions-accommodation-choices-for-newcomers\/\" data-bg-image=\"https:\/\/immigopro.ca\/essential-demo\/wp-content\/uploads\/2024\/03\/20200823_174532-scaled-2-1.jpg\"><\/div>\r\n\t\t\t\t\t                <div class=\"mepev-ribbons\">\r\n\t\t\t\t\t                            <div class='mepev-ribbon online'><i class=\"fas fa-vr-cardboard\"><\/i> Virtual<\/div>                <\/div>\r\n\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t        <div class=\"mep_list_event_details\">\r\n            <a href=\"https:\/\/immigopro.ca\/essential-demo\/events\/canadian-housing-solutions-accommodation-choices-for-newcomers\/\">\r\n                <h5 class='mep_list_title'>Canadian Housing Solutions: Accommodation Choices for Newcomers<\/h5>\r\n\t\t\t\t                    <p class=\"list_price\">Price Starts from: <span class=\"woocommerce-Price-amount amount\"><span class=\"woocommerce-Price-currencySymbol\">&#036;<\/span>100.00<\/span><\/p>\r\n\t\t\t\t\t                    <div class=\"list_content upcomming_organizer\">\r\n                        <span class=\"far fa-list-alt\"><\/span>\r\n\t\t\t\t\tOrganized By: Immifocus Events                    <\/div>\r\n\t\t\t            <\/a>\r\n\t\t\t        <\/div>\r\n\t\t    <\/div>\r\n    <div class='filter_item mep-event-list-loop mix column_style event-availabe-seat  mep_event_grid_item  abr69de95edacf6amage-69 abr69de95edacf6amage-68 '\r\n         data-title=\"Preparing Yourself for your first Weeks in Canada\"\r\n         data-city-name=\"\"\r\n         data-state=\"\"\r\n         data-date=\"\"\r\n         data-category=\"Canadian Immigration\"\r\n         data-organizer=\"Immifocus Events\"\r\n         style=\"width:calc(33.333333333333% - 14px);\">\r\n\t\t\t\t\t\t\r\n\t\t                <div class=\"mep_list_thumb mpwem_style\">\r\n                    <div data-href=\"https:\/\/immigopro.ca\/essential-demo\/events\/preparing-yourself-for-your-first-weeks-in-canada\/\" data-bg-image=\"https:\/\/immigopro.ca\/essential-demo\/wp-content\/uploads\/2024\/03\/zi4-2-1.jpg\"><\/div>\r\n\t\t\t\t\t                <div class=\"mepev-ribbons\">\r\n\t\t\t\t\t                            <div class='mepev-ribbon online'><i class=\"fas fa-vr-cardboard\"><\/i> Virtual<\/div>                <\/div>\r\n\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t        <div class=\"mep_list_event_details\">\r\n            <a href=\"https:\/\/immigopro.ca\/essential-demo\/events\/preparing-yourself-for-your-first-weeks-in-canada\/\">\r\n                <h5 class='mep_list_title'>Preparing Yourself for your first Weeks in Canada<\/h5>\r\n\t\t\t\t                    <p class=\"list_price\">Price Starts from: <span class=\"woocommerce-Price-amount amount\"><span class=\"woocommerce-Price-currencySymbol\">&#036;<\/span>50.00<\/span><\/p>\r\n\t\t\t\t\t                    <div class=\"list_content upcomming_organizer\">\r\n                        <span class=\"far fa-list-alt\"><\/span>\r\n\t\t\t\t\tOrganized By: Immifocus Events                    <\/div>\r\n\t\t\t            <\/a>\r\n\t\t\t        <\/div>\r\n\t\t    <\/div>\r\n    <div class='filter_item mep-event-list-loop mix column_style event-availabe-seat  mep_event_grid_item  abr69de95edacf6amage-69 abr69de95edacf6amage-68 '\r\n         data-title=\"Kickstart Your Canadian Immigration Journey\"\r\n         data-city-name=\"\"\r\n         data-state=\"\"\r\n         data-date=\"\"\r\n         data-category=\"Canadian Immigration\"\r\n         data-organizer=\"Immifocus Events\"\r\n         style=\"width:calc(33.333333333333% - 14px);\">\r\n\t\t\t\t\t\t\r\n\t\t                <div class=\"mep_list_thumb mpwem_style\">\r\n                    <div data-href=\"https:\/\/immigopro.ca\/essential-demo\/events\/kickstart-your-canadian-immigration-journey\/\" data-bg-image=\"https:\/\/immigopro.ca\/essential-demo\/wp-content\/uploads\/2024\/03\/Screenshot_20201013-231847_Christmas-Mahjong-2-1.jpg\"><\/div>\r\n\t\t\t\t\t                <div class=\"mepev-ribbons\">\r\n\t\t\t\t\t                            <div class='mepev-ribbon online'><i class=\"fas fa-vr-cardboard\"><\/i> Virtual<\/div>                <\/div>\r\n\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t        <div class=\"mep_list_event_details\">\r\n            <a href=\"https:\/\/immigopro.ca\/essential-demo\/events\/kickstart-your-canadian-immigration-journey\/\">\r\n                <h5 class='mep_list_title'>Kickstart Your Canadian Immigration Journey<\/h5>\r\n\t\t\t\t                    <p class=\"list_price\">Price: <span class=\"woocommerce-Price-amount amount\"><span class=\"woocommerce-Price-currencySymbol\">&#036;<\/span>200.00<\/span><\/p>\r\n\t\t\t\t\t                    <div class=\"list_content upcomming_organizer\">\r\n                        <span class=\"far fa-list-alt\"><\/span>\r\n\t\t\t\t\tOrganized By: Immifocus Events                    <\/div>\r\n\t\t\t            <\/a>\r\n\t\t\t        <\/div>\r\n\t\t    <\/div>\r\n    <div class='filter_item mep-event-list-loop mix column_style event-availabe-seat  mep_event_grid_item  abr69de95edacf6amage-69 abr69de95edacf6amage-68 '\r\n         data-title=\"Mastering Your Finances as a Newcomer to Canada\"\r\n         data-city-name=\"\"\r\n         data-state=\"\"\r\n         data-date=\"\"\r\n         data-category=\"Canadian Immigration\"\r\n         data-organizer=\"Immifocus Events\"\r\n         style=\"width:calc(33.333333333333% - 14px);\">\r\n\t\t\t\t\t\t\r\n\t\t                <div class=\"mep_list_thumb mpwem_style\">\r\n                    <div data-href=\"https:\/\/immigopro.ca\/essential-demo\/events\/mastering-your-finances-as-a-newcomer-to-canada\/\" data-bg-image=\"https:\/\/immigopro.ca\/essential-demo\/wp-content\/uploads\/2024\/04\/slider-2-1.jpg\"><\/div>\r\n\t\t\t\t\t                <div class=\"mepev-ribbons\">\r\n\t\t\t\t\t                            <div class='mepev-ribbon online'><i class=\"fas fa-vr-cardboard\"><\/i> Virtual<\/div>                <\/div>\r\n\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t        <div class=\"mep_list_event_details\">\r\n            <a href=\"https:\/\/immigopro.ca\/essential-demo\/events\/mastering-your-finances-as-a-newcomer-to-canada\/\">\r\n                <h5 class='mep_list_title'>Mastering Your Finances as a Newcomer to Canada<\/h5>\r\n\t\t\t\t                    <p class=\"list_price\">Price: <span class=\"woocommerce-Price-amount amount\"><span class=\"woocommerce-Price-currencySymbol\">&#036;<\/span>100.00<\/span><\/p>\r\n\t\t\t\t\t                    <div class=\"list_content upcomming_organizer\">\r\n                        <span class=\"far fa-list-alt\"><\/span>\r\n\t\t\t\t\tOrganized By: Immifocus Events                    <\/div>\r\n\t\t\t            <\/a>\r\n\t\t\t        <\/div>\r\n\t\t    <\/div>\r\n    <div class='filter_item mep-event-list-loop mix column_style event-availabe-seat  mep_event_grid_item  abr69de95edacf6amage-69 abr69de95edacf6amage-68 '\r\n         data-title=\"Navigating Labor Market Impact Assessments: Enhancing Success and Steering Clear of Pitfalls.\"\r\n         data-city-name=\"\"\r\n         data-state=\"\"\r\n         data-date=\"2034-12-15\"\r\n         data-category=\"Canadian Immigration\"\r\n         data-organizer=\"Immifocus Events\"\r\n         style=\"width:calc(33.333333333333% - 14px);\">\r\n\t\t\t\t                    <div class=\"mep-ev-start-date\">\r\n                        <div class=\"mep-day\">15<\/div>\r\n                        <div class=\"mep-month\">Dec<\/div>\r\n                    <\/div>\r\n\t\t\t\t\t\t\r\n\t\t                <div class=\"mep_list_thumb mpwem_style\">\r\n                    <div data-href=\"https:\/\/immigopro.ca\/essential-demo\/events\/navigating-labor-market-impact-assessments-enhancing-success-and-steering-clear-of-pitfalls\/\" data-bg-image=\"https:\/\/immigopro.ca\/essential-demo\/wp-content\/uploads\/2024\/03\/zi3-2-1.jpg\"><\/div>\r\n\t\t\t\t\t                <div class=\"mepev-ribbons\">\r\n\t\t\t\t\t                            <div class='mepev-ribbon online'><i class=\"fas fa-vr-cardboard\"><\/i> Virtual<\/div>                <\/div>\r\n\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t        <div class=\"mep_list_event_details\">\r\n            <a href=\"https:\/\/immigopro.ca\/essential-demo\/events\/navigating-labor-market-impact-assessments-enhancing-success-and-steering-clear-of-pitfalls\/\">\r\n                <h5 class='mep_list_title'>Navigating Labor Market Impact Assessments: Enhancing Success and Steering Clear of Pitfalls.<\/h5>\r\n\t\t\t\t                    <p class=\"list_price\">Price Starts from: <span class=\"woocommerce-Price-amount amount\"><span class=\"woocommerce-Price-currencySymbol\">&#036;<\/span>100.00<\/span><\/p>\r\n\t\t\t\t\t                    <div class=\"list_content upcomming_organizer\">\r\n                        <span class=\"far fa-list-alt\"><\/span>\r\n\t\t\t\t\tOrganized By: Immifocus Events                    <\/div>\r\n\t\t\t                    <div class=\"list_content upcomming_date_only_only\">\r\n                        <span class=\"far fa-calendar-alt\"><\/span>December 15, 2034  10:00 am - July 10, 2025                    <\/div>\r\n\t\t\t\t            <\/a>\r\n\t\t\t        <\/div>\r\n\t\t    <\/div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t                                <\/div>\n                            <\/div>\n\t\t\t\t\t\t\t                <input type=\"hidden\" name=\"pagination_per_page\" value=\"10\"\/>\n                <input type=\"hidden\" name=\"pagination_style\" value=\"load_more\"\/>\n\t\t\t\t                <\/div>\n                <script>\n                    jQuery(document).ready(function () {\n                        var containerEl = document.querySelector('#mep_event_list_abr69de95edacf6a');\n                        var mixer = mixitup(containerEl, {\n                            selectors: {\n                                target: '.mep-event-list-loop',\n                                control: '[data-mixitup-control]'\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                            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                        \/\/ 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                            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                                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                                    if (itemDate.getTime() === filterDate.getTime()) {\n                                        jQuery(this).show();\n                                    } else {\n                                        jQuery(this).hide();\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                            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                        \/\/ Handle city filter change\n                        jQuery('select[name=\"filter_with_city\"]').on('change', function () {\n                            applyAllFilters();\n                        });\n                        \/\/ Handle category filter change\n                        jQuery('select[name=\"filter_with_category\"]').on('change', function () {\n                            applyAllFilters();\n                        });\n                        \/\/ Handle organizer filter change\n                        jQuery('select[name=\"filter_with_organizer\"]').on('change', function () {\n                            applyAllFilters();\n                        });\n                        \/\/ Combined filter function that applies all filters\n                        function applyAllFilters() {\n                            var titleFilter = jQuery('input[name=\"filter_with_title\"]').val().toLowerCase();\n                            var dateFilter = jQuery('input[name=\"filter_with_date\"]').val();\n                            var stateFilter = jQuery('select[name=\"filter_with_state\"]').val();\n                            var cityFilter = jQuery('select[name=\"filter_with_city\"]').val();\n                            var categoryFilter = jQuery('select[name=\"filter_with_category\"]').val();\n                            var organizerFilter = jQuery('select[name=\"filter_with_organizer\"]').val();\n                            var visibleCount = 0;\n                            jQuery('.mep-event-list-loop').each(function () {\n                                var $item = jQuery(this);\n                                var show = true;\n                                \/\/ Title filter\n                                if (titleFilter) {\n                                    var itemTitle = ($item.data('title') || '').toLowerCase();\n                                    if (itemTitle.indexOf(titleFilter) === -1) {\n                                        show = false;\n                                    }\n                                }\n                                \/\/ Date filter\n                                if (show && dateFilter) {\n                                    var itemDate = $item.data('date');\n                                    if (itemDate) {\n                                        var filterDate = new Date(dateFilter);\n                                        filterDate.setHours(0, 0, 0, 0);\n                                        var itemDateObj = new Date(itemDate);\n                                        itemDateObj.setHours(0, 0, 0, 0);\n                                        if (itemDateObj.getTime() !== filterDate.getTime()) {\n                                            show = false;\n                                        }\n                                    } else {\n                                        show = false;\n                                    }\n                                }\n                                \/\/ State filter\n                                if (show && stateFilter) {\n                                    var itemState = $item.data('state') || '';\n                                    if (itemState !== stateFilter) {\n                                        show = false;\n                                    }\n                                }\n                                \/\/ City filter\n                                if (show && cityFilter) {\n                                    var itemCity = $item.data('city-name') || '';\n                                    if (itemCity !== cityFilter) {\n                                        show = false;\n                                    }\n                                }\n                                \/\/ Category filter\n                                if (show && categoryFilter) {\n                                    var itemCategory = $item.data('category') || '';\n                                    \/\/ Check if category matches (can be comma-separated)\n                                    var itemCategories = itemCategory.split(',').map(function (c) {\n                                        return c.trim();\n                                    });\n                                    if (itemCategories.indexOf(categoryFilter) === -1) {\n                                        show = false;\n                                    }\n                                }\n                                \/\/ Organizer filter\n                                if (show && organizerFilter) {\n                                    var itemOrganizer = $item.data('organizer') || '';\n                                    \/\/ Check if organizer matches (can be comma-separated)\n                                    var itemOrganizers = itemOrganizer.split(',').map(function (o) {\n                                        return o.trim();\n                                    });\n                                    if (itemOrganizers.indexOf(organizerFilter) === -1) {\n                                        show = false;\n                                    }\n                                }\n                                if (show) {\n                                    $item.show();\n                                    visibleCount++;\n                                } else {\n                                    $item.hide();\n                                }\n                            });\n                            \/\/ Update count display\n                            jQuery('.qty_count').text(visibleCount);\n                        }\n                        \/\/ Update title filter to use combined function\n                        jQuery('input[name=\"filter_with_title\"]').off('keyup').on('keyup', function () {\n                            applyAllFilters();\n                        });\n                        \/\/ Update date filter to use combined function\n                        jQuery('input[name=\"filter_with_date\"]').off('change').on('change', function () {\n                            applyAllFilters();\n                        });\n                        \/\/ Update state filter to use combined function\n                        jQuery('select[name=\"filter_with_state\"]').off('change').on('change', function () {\n                            applyAllFilters();\n                        });\n\t\t\t\t\t\t                    });\n                <\/script>\n                ","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":199,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-10699","page","type-page","status-publish","has-post-thumbnail","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/immigopro.ca\/essential-demo\/wp-json\/wp\/v2\/pages\/10699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/immigopro.ca\/essential-demo\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/immigopro.ca\/essential-demo\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/immigopro.ca\/essential-demo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/immigopro.ca\/essential-demo\/wp-json\/wp\/v2\/comments?post=10699"}],"version-history":[{"count":1,"href":"https:\/\/immigopro.ca\/essential-demo\/wp-json\/wp\/v2\/pages\/10699\/revisions"}],"predecessor-version":[{"id":21536,"href":"https:\/\/immigopro.ca\/essential-demo\/wp-json\/wp\/v2\/pages\/10699\/revisions\/21536"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/immigopro.ca\/essential-demo\/wp-json\/wp\/v2\/media\/199"}],"wp:attachment":[{"href":"https:\/\/immigopro.ca\/essential-demo\/wp-json\/wp\/v2\/media?parent=10699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}