From 0b898771bc6aba354c64ffac4a7c1448fe8f40b9 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 20 Dec 2023 11:05:47 +0100 Subject: [PATCH] introducing photo archives component --- acf-blocks/photos-archives/block.json | 25 +++++++++++++++++++ .../photos-archives/photos-archives.php | 20 +++++++++++++++ homegrade-blocks.php | 1 + 3 files changed, 46 insertions(+) create mode 100644 acf-blocks/photos-archives/block.json create mode 100755 acf-blocks/photos-archives/photos-archives.php diff --git a/acf-blocks/photos-archives/block.json b/acf-blocks/photos-archives/block.json new file mode 100644 index 0000000..19bc63d --- /dev/null +++ b/acf-blocks/photos-archives/block.json @@ -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" +} \ No newline at end of file diff --git a/acf-blocks/photos-archives/photos-archives.php b/acf-blocks/photos-archives/photos-archives.php new file mode 100755 index 0000000..c1f5b17 --- /dev/null +++ b/acf-blocks/photos-archives/photos-archives.php @@ -0,0 +1,20 @@ + + + +
+
+

+ +

+

+ + + +
+
+ +
+
\ No newline at end of file diff --git a/homegrade-blocks.php b/homegrade-blocks.php index fe16449..1604086 100644 --- a/homegrade-blocks.php +++ b/homegrade-blocks.php @@ -93,6 +93,7 @@ function create_block_multiblocks_block_init() // ACF register_block_type(__DIR__ . '/acf-blocks/google-map'); 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/latest-news'); register_block_type(__DIR__ . '/acf-blocks/home/show-thematiques');