| 1 |
<?php |
| 2 |
|
| 3 |
namespace Getwid\Blocks; |
| 4 |
|
| 5 |
class TemplatePostLayoutHelper extends \Getwid\Blocks\AbstractBlock { |
| 6 |
|
| 7 |
protected static $blockName = 'getwid/template-post-layout-helper'; |
| 8 |
|
| 9 |
public function __construct() { |
| 10 |
|
| 11 |
parent::__construct( self::$blockName ); |
| 12 |
|
| 13 |
register_block_type( |
| 14 |
self::$blockName |
| 15 |
); |
| 16 |
|
| 17 |
} |
| 18 |
|
| 19 |
public function isDisabled() { |
| 20 |
|
| 21 |
return apply_filters( 'getwid/blocks/is_disabled', false, self::$blockName ); |
| 22 |
} |
| 23 |
|
| 24 |
} |
| 25 |
|
| 26 |
new \Getwid\Blocks\TemplatePostLayoutHelper(); |