AudioBlock.php
3 years ago
ReusableEditBlock.php
2 years ago
ReusableVideoBlock.php
5 years ago
SelfHostedBlock.php
2 years ago
VimeoBlock.php
3 years ago
YouTubeBlock.php
3 years ago
VimeoBlock.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | namespace PrestoPlayer\Blocks; |
| 4 | |
| 5 | use PrestoPlayer\Support\Block; |
| 6 | |
| 7 | class VimeoBlock extends Block |
| 8 | { |
| 9 | /** |
| 10 | * Block name |
| 11 | * |
| 12 | * @var string |
| 13 | */ |
| 14 | protected $name = 'vimeo'; |
| 15 | |
| 16 | /** |
| 17 | * Register the block type. |
| 18 | * |
| 19 | * @return void |
| 20 | */ |
| 21 | public function registerBlockType() |
| 22 | { |
| 23 | register_block_type( |
| 24 | PRESTO_PLAYER_PLUGIN_DIR . 'src/admin/blocks/blocks/vimeo', |
| 25 | array( |
| 26 | 'render_callback' => [$this, 'html'], |
| 27 | ) |
| 28 | ); |
| 29 | } |
| 30 | } |
| 31 |