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');