PluginProbe
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites / 3.1.1
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites v3.1.1
4.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.1.2 2.5.0 2.5.3 2.6.1 All 38 releases
← All changes | inc/template-library/init.php +13 -16 trunk3.1.1 View file →
@@ -1,24 +1,21 @@
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() {
9 12
10 - class Blockspare_Import_Block_Base
11 - {
12 - public function run()
13 - {
13 + if ( method_exists( $this, 'add_block_template_library' ) ) {
14 + add_filter( 'blockspare_template_library', array( $this, 'add_block_template_library' ) );
15 + }
16 + }
17 + }
18 +}
14 19
15 - if (method_exists($this, 'add_block_template_library')) {
20 +require_once BLOCKSPARE_PLUGIN_DIR .'inc/template-library/blocks/block-lists.php';
16 21
17 - add_filter('blockspare_template_library', array($this, 'add_block_template_library'));
18 -
19 - }
20 - }
21 - }
22 -}
23 -
24 -require_once BLOCKSPARE_PLUGIN_DIR . 'inc/template-library/blocks/block-lists.php';