PluginProbe
Getwid – Gutenberg Blocks / 3.0.2
Getwid – Gutenberg Blocks v3.0.2
3.0.2 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
← All changes | includes/blocks/ai-text.php +7 -9 2.0.123.0.2 View file →
@@ -1,25 +1,23 @@
1 1 <?php
2 2
3 3 namespace Getwid\Blocks;
4 4
5 -class AIText extends \Getwid\Blocks\AbstractBlock {
5 +class AIText extends AbstractBlock {
6 6
7 - protected static $blockName = 'getwid/ai-text';
7 + public function __construct() {
8 8
9 - public function __construct() {
9 + parent::__construct( 'getwid/ai-text' );
10 10
11 - parent::__construct( self::$blockName );
12 -
13 11 register_block_type(
14 - 'getwid/ai-text'
12 + getwid_get_plugin_path( 'assets/blocks/ai-text' )
15 13 );
16 14 }
17 15
18 - public function getLabel() {
19 - return __('AI Assistant', 'getwid');
16 + public function get_label() {
17 + return __( 'AI Assistant', 'getwid' );
20 18 }
21 19 }
22 20
23 21 getwid()->blocksManager()->addBlock(
24 - new \Getwid\Blocks\AIText()
22 + new AIText()
25 23 );