| 1 |
<?php |
| 2 |
|
| 3 |
namespace Getwid\Blocks; |
| 4 |
|
| 5 |
class TemplateLibrary extends \Getwid\Blocks\AbstractBlock { |
| 6 |
|
| 7 |
protected static $blockName = 'getwid/template-library'; |
| 8 |
|
| 9 |
public function __construct() { |
| 10 |
|
| 11 |
parent::__construct( self::$blockName ); |
| 12 |
|
| 13 |
register_block_type( |
| 14 |
'getwid/template-library' |
| 15 |
); |
| 16 |
} |
| 17 |
|
| 18 |
public function getLabel() { |
| 19 |
return __('Template Library', 'getwid'); |
| 20 |
} |
| 21 |
} |
| 22 |
|
| 23 |
getwid()->blocksManager()->addBlock( |
| 24 |
new \Getwid\Blocks\TemplateLibrary() |
| 25 |
); |
| 26 |
|