| 1 |
<?php |
| 2 |
namespace BPPIV\Base; |
| 3 |
|
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
class Blocks { |
| 9 |
|
| 10 |
public function register() { |
| 11 |
add_action( 'init', [ $this, 'bppiv_register_blocks' ] ); |
| 12 |
} |
| 13 |
|
| 14 |
public function bppiv_register_blocks() { |
| 15 |
register_block_type( BPPIV_PATH . 'build/blocks/parent' ); |
| 16 |
register_block_type( BPPIV_PATH . 'build/blocks/image-360' ); |
| 17 |
register_block_type( BPPIV_PATH . 'build/blocks/image-3d' ); |
| 18 |
register_block_type( BPPIV_PATH . 'build/blocks/video' ); |
| 19 |
register_block_type( BPPIV_PATH . 'build/blocks/video-360' ); |
| 20 |
register_block_type( BPPIV_PATH . 'build/blocks/google-street' ); |
| 21 |
register_block_type( BPPIV_PATH . 'build/blocks/gallery' ); |
| 22 |
register_block_type( BPPIV_PATH . 'build/blocks/tour' ); |
| 23 |
if ( ! class_exists( 'WP_Block_Type_Registry' ) || ! \WP_Block_Type_Registry::get_instance()->is_registered( 'bpgb/panorama' ) ) { |
| 24 |
register_block_type( BPPIV_PATH . 'build/blocks/gutenberg-block' ); |
| 25 |
} |
| 26 |
register_block_type( BPPIV_PATH . 'build/blocks/virtual' ); |
| 27 |
register_block_type( BPPIV_PATH . 'build/blocks/product-spot' ); |
| 28 |
} |
| 29 |
} |
| 30 |
|