From 7b9d16d5b373ff9ebee367fe19546ad256b28e59 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 1 Jul 2025 16:52:00 +0200 Subject: [PATCH] ENQUEUE Block gallery and its view.js --- plugins/carhop-blocks/index.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/carhop-blocks/index.php b/plugins/carhop-blocks/index.php index 60ee973..350fa2a 100644 --- a/plugins/carhop-blocks/index.php +++ b/plugins/carhop-blocks/index.php @@ -48,6 +48,18 @@ function carhop_register_blocks() register_block_type(__DIR__ . '/blocks/decorative-shapes/build'); register_block_type(__DIR__ . '/blocks/narrative-card/build'); register_block_type(__DIR__ . '/blocks/scroll-story-block/build'); + + + register_block_type(__DIR__ . '/acf-blocks/gallery'); + + // Enregistrer le script pour le bloc gallery + wp_register_script( + 'carhop-gallery-view', + plugins_url('acf-blocks/gallery/view.js', __FILE__), + array(), + filemtime(__DIR__ . '/acf-blocks/gallery/view.js'), + true + ); } add_action('init', 'carhop_register_blocks');