| @@ -1,6 +1,10 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 4 | + exit; | |
| 5 | +} | |
| 6 | + | |
| 3 | 7 | use ABlocks\Controls\Alignment; |
| 4 | 8 | use ABlocks\Controls\Border; |
| 5 | 9 | use ABlocks\Controls\Dimensions; |
| 6 | 10 | use ABlocks\Controls\Typography; |
| @@ -12,8 +16,12 @@ | ||
| 12 | 16 | 'block_id' => [ |
| 13 | 17 | 'type' => 'string', |
| 14 | 18 | 'default' => '', |
| 15 | 19 | ], |
| 20 | + 'blockVersion' => array( | |
| 21 | + 'type' => 'number', | |
| 22 | + 'default' => '', | |
| 23 | + ), | |
| 16 | 24 | 'imgId' => [ |
| 17 | 25 | 'type' => 'string', |
| 18 | 26 | 'default' => '', |
| 19 | 27 | ], |
| @@ -49,8 +57,12 @@ | ||
| 49 | 57 | 'value' => 'large', |
| 50 | 58 | 'valueTablet' => '', |
| 51 | 59 | 'valueMobile' => '', |
| 52 | 60 | ], |
| 61 | + ], | |
| 62 | + 'imageDataAttribute' => [ | |
| 63 | + 'type' => 'object', | |
| 64 | + 'default' => [], | |
| 53 | 65 | ], |
| 54 | 66 | 'aspectRatio' => [ |
| 55 | 67 | 'type' => 'object', |
| 56 | 68 | 'default' => [ |