| @@ -1,21 +1,24 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 4 | - exit; | |
| 3 | +if (! defined('ABSPATH')) { | |
| 4 | + exit; | |
| 5 | 5 | } |
| 6 | 6 | |
| 7 | -if ( ! class_exists( 'Blockspare_Import_Block_Base' ) ) { | |
| 7 | +if (! class_exists('Blockspare_Import_Block_Base')) { | |
| 8 | 8 | |
| 9 | - | |
| 10 | - class Blockspare_Import_Block_Base { | |
| 11 | - public function run() { | |
| 12 | 9 | |
| 13 | - if ( method_exists( $this, 'add_block_template_library' ) ) { | |
| 14 | - add_filter( 'blockspare_template_library', array( $this, 'add_block_template_library' ) ); | |
| 15 | - } | |
| 16 | - } | |
| 17 | - } | |
| 10 | + class Blockspare_Import_Block_Base | |
| 11 | + { | |
| 12 | + public function run() | |
| 13 | + { | |
| 14 | + | |
| 15 | + if (method_exists($this, 'add_block_template_library')) { | |
| 16 | + | |
| 17 | + add_filter('blockspare_template_library', array($this, 'add_block_template_library')); | |
| 18 | + | |
| 19 | + } | |
| 20 | + } | |
| 21 | + } | |
| 18 | 22 | } |
| 19 | 23 | |
| 20 | -require_once BLOCKSPARE_PLUGIN_DIR .'inc/template-library/blocks/block-lists.php'; | |
| 21 | - | |
| 24 | +require_once BLOCKSPARE_PLUGIN_DIR . 'inc/template-library/blocks/block-lists.php'; | |