|
|
@ -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, '' ] ); |
|
|
} ); |
|
|
} ); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|