{"id":302,"date":"2025-09-23T21:10:04","date_gmt":"2025-09-24T01:10:04","guid":{"rendered":"https:\/\/turningpointmiami.com\/?page_id=302"},"modified":"2025-10-28T15:52:50","modified_gmt":"2025-10-28T19:52:50","slug":"all-events","status":"publish","type":"page","link":"https:\/\/turningpointmiami.com\/en\/who-we-are\/all-events\/","title":{"rendered":"All Events"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"302\" class=\"elementor elementor-302\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-29be2b7 e-flex e-con-boxed e-con e-parent\" data-id=\"29be2b7\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-a61cc82 elementor-widget elementor-widget-heading\" data-id=\"a61cc82\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Upcoming Events<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-31375a6 elementor-widget elementor-widget-text-editor\" data-id=\"31375a6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p data-start=\"66\" data-end=\"233\">Come to our events and gatherings\u2014worship, family activities, and community service. There\u2019s something for everyone. Share in God\u2019s blessings with us!<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-1de5ff5 e-flex e-con-boxed e-con e-parent\" data-id=\"1de5ff5\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-909d218 elementor-widget elementor-widget-shortcode\" data-id=\"909d218\" 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\">        <div class=\"pc-events-embed-container\">\n            <!-- View Toggle Buttons -->\n            <div class=\"pc-embed-view-toggle\">\n                <button class=\"pc-embed-btn active\" data-view=\"gallery\">\n                    Gallery\n                <\/button>\n                <button class=\"pc-embed-btn \" data-view=\"month\">\n                    Month\n                <\/button>\n            <\/div>\n            \n            <!-- Embed Container -->\n            <div id=\"pc-embed-content\">\n                <!-- Default view will be loaded here -->\n                <script id=\"pc-calendar-script\" \n                        src=\"https:\/\/tpmiami.churchcenter.com\/assets\/calendar_embed.js\" \n                        data-view=\"gallery\"\n                        data-show-filter=\"true\" \n                        data-height=\"auto\">\n                <\/script>\n            <\/div>\n            \n            <!-- Loading indicator -->\n            <div id=\"pc-embed-loading\" style=\"display: none; text-align: center; padding: 40px; color: #666;\">\n                Loading calendar view...\n            <\/div>\n        <\/div>\n        \n        <style>\n        .pc-embed-view-toggle {\n            display: flex;\n            gap: 10px;\n            margin-bottom: 20px;\n            justify-content: center;\n            flex-wrap: wrap;\n        }\n        \n        .pc-embed-btn {\n            background: #f3f4f6;\n            border: 2px solid #e5e7eb;\n            padding: 10px 20px;\n            border-radius: 8px;\n            cursor: pointer;\n            font-size: 14px;\n            font-weight: 500;\n            transition: all 0.2s ease;\n            color: #374151;\n        }\n        \n        .pc-embed-btn:hover {\n            background: #e5e7eb;\n            border-color: #d1d5db;\n        }\n        \n        .pc-embed-btn.active {\n            background: #A8100F;\n            border-color: #A8100F;\n            color: white;\n        }\n        \n        .pc-events-embed-container {\n            margin: 20px 0;\n        }\n        \n        @media (max-width: 768px) {\n            .pc-embed-view-toggle {\n                justify-content: stretch;\n            }\n            \n            .pc-embed-btn {\n                flex: 1;\n                text-align: center;\n                padding: 12px 10px;\n                font-size: 13px;\n            }\n        }\n        <\/style>\n        \n        <script>\n        jQuery(document).ready(function($) {\n            var switching = false;\n            \n            $('.pc-embed-btn').on('click', function(e) {\n                e.preventDefault();\n                e.stopPropagation();\n                \n                \/\/ Prevent multiple rapid clicks\n                if (switching) return false;\n                switching = true;\n                \n                \/\/ Update active button\n                $('.pc-embed-btn').removeClass('active');\n                $(this).addClass('active');\n                \n                \/\/ Get selected view\n                var view = $(this).data('view');\n                \n                \/\/ Store current scroll position\n                var scrollTop = $(window).scrollTop();\n                \n                \/\/ Show loading indicator\n                $('#pc-embed-content').hide();\n                $('#pc-embed-loading').show();\n                \n                \/\/ Remove existing script and content\n                $('#pc-calendar-script').remove();\n                $('#pc-embed-content').empty();\n                \n                \/\/ Small delay to ensure cleanup\n                setTimeout(function() {\n                    \/\/ Create new script with selected view\n                    var script = document.createElement('script');\n                    script.id = 'pc-calendar-script';\n                    script.src = 'https:\/\/tpmiami.churchcenter.com\/assets\/calendar_embed.js';\n                    script.setAttribute('data-show-filter', 'true');\n                    script.setAttribute('data-height', 'auto');\n                    \n                    \/\/ Set the correct data-view attribute\n                    if (view === 'gallery') {\n                        script.setAttribute('data-view', 'gallery');\n                    } else if (view === 'month') {\n                        script.setAttribute('data-view', 'month');\n                    }\n                    \n                    \/\/ Append new script\n                    document.getElementById('pc-embed-content').appendChild(script);\n                    \n                    \/\/ Hide loading and show content\n                    setTimeout(function() {\n                        $('#pc-embed-loading').hide();\n                        $('#pc-embed-content').show();\n                        $(window).scrollTop(scrollTop);\n                        switching = false;\n                    }, 500);\n                    \n                }, 50);\n                \n                return false;\n            });\n        });\n        <\/script>\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":"<p>Upcoming Events Come to our events and gatherings\u2014worship, family activities, and community service. There\u2019s something for everyone. Share in God\u2019s blessings with us!<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":280,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-302","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/turningpointmiami.com\/en\/wp-json\/wp\/v2\/pages\/302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/turningpointmiami.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/turningpointmiami.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/turningpointmiami.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/turningpointmiami.com\/en\/wp-json\/wp\/v2\/comments?post=302"}],"version-history":[{"count":28,"href":"https:\/\/turningpointmiami.com\/en\/wp-json\/wp\/v2\/pages\/302\/revisions"}],"predecessor-version":[{"id":1179,"href":"https:\/\/turningpointmiami.com\/en\/wp-json\/wp\/v2\/pages\/302\/revisions\/1179"}],"up":[{"embeddable":true,"href":"https:\/\/turningpointmiami.com\/en\/wp-json\/wp\/v2\/pages\/280"}],"wp:attachment":[{"href":"https:\/\/turningpointmiami.com\/en\/wp-json\/wp\/v2\/media?parent=302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}