1 | <?php |
||
3 | class VideoPress_Gutenberg { |
||
4 | |||
5 | /** |
||
6 | * Initialize the VideoPress Gutenberg extension |
||
7 | */ |
||
8 | public static function init() { |
||
13 | |||
14 | /** |
||
15 | * Check whether conditions indicate the VideoPress Gutenberg extension should be initialized |
||
16 | * |
||
17 | * @return bool |
||
18 | */ |
||
19 | public static function should_initialize() { |
||
38 | |||
39 | /** |
||
40 | * Register the Jetpack Gutenberg extension that adds VideoPress support to the core video block. |
||
41 | */ |
||
42 | public static function register_video_block_with_videopress() { |
||
47 | |||
48 | /** |
||
49 | * Render the core video block replacing the src attribute with the VideoPress URL |
||
50 | * |
||
51 | * @param array $attributes Array containing the video block attributes. |
||
52 | * @param string $content String containing the video block content. |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | public function render_video_block_with_videopress( $attributes, $content ) { |
||
82 | } |
||
83 | |||
85 |