| 1 |
<?php |
| 2 |
|
| 3 |
namespace Getwid\Blocks; |
| 4 |
|
| 5 |
class ContentTimeline extends AbstractBlock { |
| 6 |
|
| 7 |
public function __construct() { |
| 8 |
|
| 9 |
parent::__construct( 'getwid/content-timeline' ); |
| 10 |
|
| 11 |
register_block_type( |
| 12 |
getwid_get_plugin_path( 'assets/blocks/content-timeline/content-timeline' ) |
| 13 |
); |
| 14 |
|
| 15 |
register_block_type( |
| 16 |
getwid_get_plugin_path( 'assets/blocks/content-timeline/content-timeline-item' ) |
| 17 |
); |
| 18 |
} |
| 19 |
|
| 20 |
public function get_label() { |
| 21 |
return __( 'Content Timeline', 'getwid' ); |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
getwid()->blocksManager()->addBlock( |
| 26 |
new ContentTimeline() |
| 27 |
); |
| 28 |
|