introducing photo archives component
This commit is contained in:
parent
5701aed4b3
commit
0b898771bc
25
acf-blocks/photos-archives/block.json
Normal file
25
acf-blocks/photos-archives/block.json
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
"name": "acf/photos-archives",
|
||||||
|
"title": "Archives photographiques",
|
||||||
|
"category": "homegrade-blocks",
|
||||||
|
"multiple": false,
|
||||||
|
"icon": {
|
||||||
|
"foreground": "#DF1E1E",
|
||||||
|
"src": "format-gallery"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"Archives",
|
||||||
|
"photos",
|
||||||
|
"historique"
|
||||||
|
],
|
||||||
|
"supports": {
|
||||||
|
"align": [
|
||||||
|
"full"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"acf": {
|
||||||
|
"mode": "auto",
|
||||||
|
"renderTemplate": "photos-archives.php"
|
||||||
|
},
|
||||||
|
"align": "full"
|
||||||
|
}
|
||||||
20
acf-blocks/photos-archives/photos-archives.php
Executable file
20
acf-blocks/photos-archives/photos-archives.php
Executable file
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?php
|
||||||
|
$home_header = get_field('home_header_datas');
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="home-header header_top">
|
||||||
|
<div class="home-header__titling">
|
||||||
|
<h1 class="home-header__title">
|
||||||
|
<?php echo $home_header['title'] ?>
|
||||||
|
</h1>
|
||||||
|
<p><?php echo $home_header['description'] ?></p>
|
||||||
|
<a class="home-header__scroll-down-indicator" href="#section-show-thematiques">
|
||||||
|
<img class="home-header__scroll-down-indicator__arrow" src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/arrow-down-white.svg' alt=''>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="home-header__fresque">
|
||||||
|
<img src="<?php echo get_template_directory_uri() . '/resources/img/illustrations/illustration-accueil-thematiques.jpg' ?>" alt="">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
@ -93,6 +93,7 @@ function create_block_multiblocks_block_init()
|
||||||
// ACF
|
// ACF
|
||||||
register_block_type(__DIR__ . '/acf-blocks/google-map');
|
register_block_type(__DIR__ . '/acf-blocks/google-map');
|
||||||
register_block_type(__DIR__ . '/acf-blocks/sitemap');
|
register_block_type(__DIR__ . '/acf-blocks/sitemap');
|
||||||
|
register_block_type(__DIR__ . '/acf-blocks/photos-archives');
|
||||||
register_block_type(__DIR__ . '/acf-blocks/home/home-header');
|
register_block_type(__DIR__ . '/acf-blocks/home/home-header');
|
||||||
register_block_type(__DIR__ . '/acf-blocks/home/latest-news');
|
register_block_type(__DIR__ . '/acf-blocks/home/latest-news');
|
||||||
register_block_type(__DIR__ . '/acf-blocks/home/show-thematiques');
|
register_block_type(__DIR__ . '/acf-blocks/home/show-thematiques');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user