Update $base_url parameter since the block location changed.

This commit is contained in:
2023-12-15 12:33:26 +02:00
parent 0a4fd3608f
commit 0e91c42e89
+2 -2
View File
@@ -71,8 +71,8 @@ class Component_Builder {
$this->register_default_handlebar_helpers(); $this->register_default_handlebar_helpers();
$this->add_handlebar( 'base_url', function ( $context ) { $this->add_handlebar( 'base_url', function ( $context ) {
$path = join( '/', [ 'blocks', $this->block_project, $this->block_name, 'templates' ] ); $path = join( '/', [ $this->block_project, $this->block_name, 'templates' ] );
return plugins_url( $path . '/', 'axeweb-blocks-library/axeweb-blocks-library.php' ); return join( '/', [ get_site_url(),'wp-content', 'axe-web-blocks', $path, '' ] );
} ); } );
} }