| @@ -1,6 +1,10 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 4 | + exit; | |
| 5 | +} | |
| 6 | + | |
| 3 | 7 | use ABlocks\Controls\CssFilter; |
| 4 | 8 | |
| 5 | 9 | $attributes = [ |
| 6 | 10 | 'block_id' => [ |
| @@ -6,19 +10,23 @@ | ||
| 6 | 10 | 'block_id' => [ |
| 7 | 11 | 'type' => 'string', |
| 8 | 12 | 'default' => '', |
| 9 | 13 | ], |
| 14 | + 'blockVersion' => array( | |
| 15 | + 'type' => 'number', | |
| 16 | + 'default' => '', | |
| 17 | + ), | |
| 10 | 18 | 'videoSource' => [ |
| 11 | 19 | 'type' => 'string', |
| 12 | 20 | 'default' => 'youtube', |
| 13 | 21 | ], |
| 14 | 22 | 'videoStartTime' => [ |
| 15 | - 'type' => 'string', | |
| 16 | - 'default' => '', | |
| 23 | + 'type' => 'number', | |
| 24 | + 'default' => 0, | |
| 17 | 25 | ], |
| 18 | 26 | 'videoEndTime' => [ |
| 19 | - 'type' => 'string', | |
| 20 | - 'default' => '', | |
| 27 | + 'type' => 'number', | |
| 28 | + 'default' => 0, | |
| 21 | 29 | ], |
| 22 | 30 | 'videoUrl' => [ |
| 23 | 31 | 'type' => 'string', |
| 24 | 32 | 'default' => '', |