Skip to content

Commit

Permalink
Events: Update templates to use Map block directly
Browse files Browse the repository at this point in the history
The Event Filters block was merged into the main block.
  • Loading branch information
iandunn committed Nov 21, 2023
1 parent ff45a52 commit 333aea5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace WordPressdotorg\Events_2023;
use WP, WP_Post, DateTimeZone, DateTime;
use WordPressdotorg\MU_Plugins\Google_Map_Event_Filters;
use WordPressdotorg\MU_Plugins\Google_Map;

defined( 'WPINC' ) || die();

Expand Down Expand Up @@ -95,7 +95,7 @@ function prime_query_cache(): void {
'landing_page' => $request_uri
);

$cache_key = Google_Map_Event_Filters\get_cache_key( $parts );
$cache_key = Google_Map\get_cache_key( $parts );
$events = get_city_landing_page_events( $request_uri, true );

set_transient( $cache_key, $events, DAY_IN_SECONDS );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ <h1 class="wp-block-heading">Meet the community behind WordPress</h1>
</div>
<!-- /wp:group -->

<!-- wp:wporg/google-map-event-filters {"style":{"layout":{"selfStretch":"fixed","flexSize":"50%"}},"filterSlug":"all-upcoming","googleMapBlockAttributes":{"id":"all-upcoming-map","apiKey":"WORDCAMP_DEV_GOOGLE_MAPS_API_KEY","showList":false,"showSearch":false}} /-->
<!-- wp:wporg/google-map {"style":{"layout":{"selfStretch":"fixed","flexSize":"50%"}},"filterSlug":"all-upcoming","id":"all-upcoming-map","apiKey":"WORDCAMP_DEV_GOOGLE_MAPS_API_KEY","showList":false,"showSearch":false} /-->
</div>
<!-- /wp:group -->
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<h2 class="wp-block-heading has-medium-font-size" style="font-style:normal;font-weight:700">Upcoming Events</h2>
<!-- /wp:heading -->

<!-- wp:wporg/google-map-event-filters {"filterSlug":"all-upcoming","googleMapBlockAttributes":{"id":"all-upcoming-list","apiKey":"WORDCAMP_DEV_GOOGLE_MAPS_API_KEY","showMap":false}} /-->
<!-- wp:wporg/google-map {"filterSlug":"all-upcoming","id":"all-upcoming-list","apiKey":"WORDCAMP_DEV_GOOGLE_MAPS_API_KEY","showMap":false} /-->

<!-- wp:buttons {"style":{"spacing":{"margin":{"top":"var:preset|spacing|40"}}}} -->
<div class="wp-block-buttons" style="margin-top:var(--wp--preset--spacing--40)">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- wp:group {"tagName":"main","className":"entry-content"} -->
<main class="wp-block-group entry-content">
<!-- wp:wporg/google-map-event-filters {"filterSlug":"city-landing-pages","googleMapBlockAttributes":{"id":"city-landing-page","apiKey":"WORDCAMP_DEV_GOOGLE_MAPS_API_KEY"}} /-->
<!-- wp:wporg/google-map {"filterSlug":"city-landing-pages","id":"city-landing-page","apiKey":"WORDCAMP_DEV_GOOGLE_MAPS_API_KEY"} /-->
</main>
<!-- /wp:group -->

Expand Down

0 comments on commit 333aea5

Please sign in to comment.