{"id":38906,"date":"2025-09-06T01:37:19","date_gmt":"2025-09-05T22:37:19","guid":{"rendered":"https:\/\/petrolheads.ee\/kalender\/"},"modified":"2025-09-26T10:56:08","modified_gmt":"2025-09-26T07:56:08","slug":"kalender","status":"publish","type":"page","link":"https:\/\/petrolheads.ee\/en\/kalender\/","title":{"rendered":"Calendar"},"content":{"rendered":"\n<div class=\"calendar-with-legend\">\n  <div class=\"calendar-wrapper\">\n    <div class=\"event_listings\" data-location=\"\" data-keywords=\"\" data-show_filters=\"false\" data-show_pagination=\"false\" data-per_page=\"10\" data-orderby=\"event_start_date\" data-order=\"ASC\" data-datetimes=\"\" data-categories=\"\" data-event_types=\"\" data-ticket_prices=\"\" data-event_online=\"\" ><div class=\"wpem-main wpem-event-listings-header\">\n    <div class=\"wpem-row\">\n        <div class=\"wpem-col wpem-col-12 wpem-col-sm-6 wpem-col-md-6 wpem-col-lg-8\">\n            <div class=\"wpem-event-listing-header-title\">\n                                    <h2 class=\"wpem-heading-text\">Events<\/h2>\n                            <\/div>\n        <\/div>\n        <div class=\"wpem-col wpem-col-12 wpem-col-sm-6 wpem-col-md-6 wpem-col-lg-4\">\n            <div class=\"wpem-event-layout-action-wrapper\">\n                <div class=\"wpem-event-layout-action\">\n                                                                    <div class=\"wpem-event-layout-icon wpem-event-box-layout\" title=\"Events Box View\" id=\"wpem-event-box-layout\"><i class=\"wpem-icon-stop2\"><\/i><\/div>\n                        <div class=\"wpem-event-layout-icon wpem-event-list-layout wpem-active-layout\" title=\"Events List View\" id=\"wpem-event-list-layout\"><i class=\"wpem-icon-menu\"><\/i><\/div>\n                        <div class=\"wpem-event-layout-icon wpem-event-calendar-layout\" id=\"wpem-event-calendar-layout\" title=\"Events Calendar View\"><i class=\"wpem-icon-calendar\"><\/i><\/div><select class=\"wpem-event-layout-dropdown check-event-page\" id=\"calendar_default_view\" name=\"calendar_default_view\"><option value=\"month\" selected=\"selected\">Monthly<\/option><\/select>                                    <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<!-- Event listing view -->\n<div class=\"event_listings_main\">\n    <div id=\"event-listing-view\" class=\"wpem-main wpem-event-listings event_listings wpem-event-listing-list-view\" data-id=\"all\">\t<div class=\"no_event_listings_found wpem-alert wpem-alert-danger wpem-mb-0\">\n\t\tThere are currently no events.\t<\/div>\n<\/div>\n<\/div><\/div>\n  <\/div>\n  <div class=\"event-category-legend\"><span class=\"event-category-legend-item\">\n                <span class=\"legend-color\" style=\"background:#fce37f; color:;\"><\/span>\n                <span class=\"legend-label\">Petrolheads esindatud<\/span>\n             <\/span><span class=\"event-category-legend-item\">\n                <span class=\"legend-color\" style=\"background:#e8e8e8; color:#333;\"><\/span>\n                <span class=\"legend-label\">\u00dcritus<\/span>\n             <\/span><\/div>\n<\/div>\n<div class=\"events-map\">\n  <div id='googleMap' class=\"google-map-loadmore\" style=\"width:;height:400px\";><\/div>        <script type=\"text\/javascript\">\n            jQuery(function() {\n                \/\/ create map marker\n                function createMarker(latlng, text, address, style = 'default') {\n                    var marker = new google.maps.Marker({\n                        position: latlng\n                    });\n                    \/\/\/get array of markers currently in cluster\n                    var allMarkers = mc.getMarkers();\n\n                    \/\/check to see if any of the existing markers match the latlng of the new marker\n                    if (allMarkers.length != 0) {\n                        for (i = 0; i < allMarkers.length; i++) {\n                            var currentMarker = allMarkers[i];\n                            var pos = currentMarker.getPosition();\n\n                            if (latlng.equals(pos)) {\n                                text = text + \"<\/br>\" + locations[i]['tool_tip'];\n                            }\n                        }\n                    }\n                    google.maps.event.addListener(marker, 'click', function() {\n\t\t\t\t\t\t if(style == 'style-2' && text.indexOf('<div class=\"wpem-google-tooltip-location list-view-style-2\">' + address + '<\/div>') == -1) {\n\n                            text = '<div class=\"wpem-google-tooltip-location list-view-style-2\">' + address + '<\/div>' + text;\n\n                        }\n                        infowindow.close();\n                        infowindow.setContent(text);\n                        infowindow.open(map, marker);\n                    });\n                    return marker;\n                }\n\n                \/**\n                 * Script for loadin map at events page.\n                 * This script load the map in googleMap id.\n                 *\/\n                var locations = [];\n                var options = {\n                    mapTypeId: google.maps.MapTypeId.roadmap,\n                    styles: []                }\n                window.map = new google.maps.Map(document.getElementById('googleMap'), options);\n\n                var infowindow = new google.maps.InfoWindow();\n                var bounds = new google.maps.LatLngBounds();\n\n                \/\/marker cluster\n                var mc;\n                var mcOptions = {\n                    gridSize: 50,\n                    maxZoom: 4,\n                    imagePath: 'https:\/\/developers.google.com\/maps\/documentation\/javascript\/examples\/markerclusterer\/m'\n                };\n                mc = new MarkerClusterer(map, [], mcOptions);\n\t\t\t\t style = 'default';\n                \/\/ get each location and add it into google marker\n                for (var i = 0; i < locations.length; i++) {\n                    var latlng = new google.maps.LatLng(locations[i]['lat'], locations[i]['long']);\n                    var marker = createMarker(latlng, locations[i]['tool_tip']);\n                    marker.setIcon('https:\/\/maps.google.com\/mapfiles\/ms\/icons\/red-dot.png');\n                    mc.addMarker(marker);\n                    bounds.extend(latlng);\n                }\n\n                \/\/now fit the map to the newly inclusive bounds\n                map.setCenter(bounds.getCenter());\n                map.fitBounds(bounds);\n\n                \/\/(optional) restore the zoom level after the map is done scaling\n                var listener = google.maps.event.addListener(map, \"idle\", function() {\n                    google.maps.event.removeListener(listener);\n                });\n            });\n        <\/script>\n    \n<\/div>\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":{"_wp_convertkit_post_meta":{"form":"-1","landing_page":"0","tag":"0","restrict_content":"0"},"footnotes":""},"class_list":["post-38906","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Calendar - petrolheads.ee<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/petrolheads.ee\/en\/kalender\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Calendar - petrolheads.ee\" \/>\n<meta property=\"og:url\" content=\"https:\/\/petrolheads.ee\/en\/kalender\/\" \/>\n<meta property=\"og:site_name\" content=\"petrolheads.ee\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-26T07:56:08+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/petrolheads.ee\\\/en\\\/kalender\\\/\",\"url\":\"https:\\\/\\\/petrolheads.ee\\\/en\\\/kalender\\\/\",\"name\":\"Calendar - petrolheads.ee\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/petrolheads.ee\\\/en\\\/#website\"},\"datePublished\":\"2025-09-05T22:37:19+00:00\",\"dateModified\":\"2025-09-26T07:56:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/petrolheads.ee\\\/en\\\/kalender\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/petrolheads.ee\\\/en\\\/kalender\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/petrolheads.ee\\\/en\\\/kalender\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/petrolheads.ee\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Calendar\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/petrolheads.ee\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/petrolheads.ee\\\/en\\\/\",\"name\":\"petrolheads.ee\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/petrolheads.ee\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/petrolheads.ee\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/petrolheads.ee\\\/en\\\/#organization\",\"name\":\"petrolheads.ee\",\"url\":\"https:\\\/\\\/petrolheads.ee\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/petrolheads.ee\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/petrolheads.ee\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/logo_header.png\",\"contentUrl\":\"https:\\\/\\\/petrolheads.ee\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/logo_header.png\",\"width\":410,\"height\":100,\"caption\":\"petrolheads.ee\"},\"image\":{\"@id\":\"https:\\\/\\\/petrolheads.ee\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Calendar - petrolheads.ee","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/petrolheads.ee\/en\/kalender\/","og_locale":"en_US","og_type":"article","og_title":"Calendar - petrolheads.ee","og_url":"https:\/\/petrolheads.ee\/en\/kalender\/","og_site_name":"petrolheads.ee","article_modified_time":"2025-09-26T07:56:08+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/petrolheads.ee\/en\/kalender\/","url":"https:\/\/petrolheads.ee\/en\/kalender\/","name":"Calendar - petrolheads.ee","isPartOf":{"@id":"https:\/\/petrolheads.ee\/en\/#website"},"datePublished":"2025-09-05T22:37:19+00:00","dateModified":"2025-09-26T07:56:08+00:00","breadcrumb":{"@id":"https:\/\/petrolheads.ee\/en\/kalender\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/petrolheads.ee\/en\/kalender\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/petrolheads.ee\/en\/kalender\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/petrolheads.ee\/en\/"},{"@type":"ListItem","position":2,"name":"Calendar"}]},{"@type":"WebSite","@id":"https:\/\/petrolheads.ee\/en\/#website","url":"https:\/\/petrolheads.ee\/en\/","name":"petrolheads.ee","description":"","publisher":{"@id":"https:\/\/petrolheads.ee\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/petrolheads.ee\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/petrolheads.ee\/en\/#organization","name":"petrolheads.ee","url":"https:\/\/petrolheads.ee\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/petrolheads.ee\/en\/#\/schema\/logo\/image\/","url":"https:\/\/petrolheads.ee\/wp-content\/uploads\/2025\/09\/logo_header.png","contentUrl":"https:\/\/petrolheads.ee\/wp-content\/uploads\/2025\/09\/logo_header.png","width":410,"height":100,"caption":"petrolheads.ee"},"image":{"@id":"https:\/\/petrolheads.ee\/en\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/petrolheads.ee\/en\/wp-json\/wp\/v2\/pages\/38906","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/petrolheads.ee\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/petrolheads.ee\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/petrolheads.ee\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/petrolheads.ee\/en\/wp-json\/wp\/v2\/comments?post=38906"}],"version-history":[{"count":9,"href":"https:\/\/petrolheads.ee\/en\/wp-json\/wp\/v2\/pages\/38906\/revisions"}],"predecessor-version":[{"id":39297,"href":"https:\/\/petrolheads.ee\/en\/wp-json\/wp\/v2\/pages\/38906\/revisions\/39297"}],"wp:attachment":[{"href":"https:\/\/petrolheads.ee\/en\/wp-json\/wp\/v2\/media?parent=38906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}