introducing google map block

This commit is contained in:
Antoine M 2023-11-24 11:19:08 +01:00
parent 63ac1dd382
commit d5cc036743
4 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,19 @@
{
"name": "acf/google-map",
"title": "Carte",
"category": "homegrade-google-map",
"multiple": false,
"icon": {
"foreground": "#DF1E1E",
"src": "welcome-widgets-menus"
},
"keywords": [
"Carte",
"google",
"map"
],
"acf": {
"mode": "auto",
"renderTemplate": "google-map.php"
}
}

View File

@ -0,0 +1,17 @@
.section_latest_news {
@apply py-24;
.section_titling {
@apply max-w-md mx-auto;
}
.articles_container {
@apply grid
grid-cols-1
sm:grid-cols-2
xl:grid-cols-4
max-w-screen-2xl
px-8
py-16
gap-8
mx-auto;
}
}

View File

@ -0,0 +1,9 @@
<?php
?>
<section class="map">
<p>salmut</p>
</section>

View File

@ -79,6 +79,9 @@ function create_block_multiblocks_block_init()
// CHILDREN (STATIC) // CHILDREN (STATIC)
register_block_type(__DIR__ . '/blocks/monoblock/build'); // — ALLOWED IN GREYBOX / WHITE BOX register_block_type(__DIR__ . '/blocks/monoblock/build'); // — ALLOWED IN GREYBOX / WHITE BOX
// ACF
register_block_type(__DIR__ . '/blocks/google-map');