PluginProbe
Panorama – Turn Photos into Immersive Virtual Tours / trunk
Panorama – Turn Photos into Immersive Virtual Tours vtrunk
1.8.0 1.7.4 1.7.3 1.7.2 1.7.1 1.7.0 1.6.1 trunk 1.0.0 1.0.1 1.0.10 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.1.3 1.1.4 1.1.5 1.1.6 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 All 38 releases
panorama / inc / Base / Blocks.php

Blocks.php in Panorama – Turn Photos into Immersive Virtual Tours trunk, at inc/Base/Blocks.php

30 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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