PluginProbe
Getwid – Gutenberg Blocks / 2.1.3
Getwid – Gutenberg Blocks v2.1.3
3.0.1 3.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.2.0 trunk 1.8.7 1.9.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9
getwid / includes / blocks / template-library.php

template-library.php in Getwid – Gutenberg Blocks 2.1.3, at includes/blocks/template-library.php

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