2021-05-07 13:48:27 +02:00
|
|
|
{
|
2022-04-12 17:12:47 +02:00
|
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
2021-05-07 13:48:27 +02:00
|
|
|
"apiVersion": 2,
|
|
|
|
"name": "core/cover",
|
2021-05-19 17:09:27 +02:00
|
|
|
"title": "Cover",
|
2021-05-07 13:48:27 +02:00
|
|
|
"category": "media",
|
2021-05-19 17:09:27 +02:00
|
|
|
"description": "Add an image or video with a text overlay — great for headers.",
|
|
|
|
"textdomain": "default",
|
2021-05-07 13:48:27 +02:00
|
|
|
"attributes": {
|
|
|
|
"url": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-04-12 17:12:47 +02:00
|
|
|
"useFeaturedImage": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
2021-05-07 13:48:27 +02:00
|
|
|
"id": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
2021-11-08 15:29:21 +01:00
|
|
|
"alt": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "img",
|
|
|
|
"attribute": "alt",
|
|
|
|
"default": ""
|
|
|
|
},
|
2021-05-07 13:48:27 +02:00
|
|
|
"hasParallax": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"isRepeated": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"dimRatio": {
|
|
|
|
"type": "number",
|
2021-11-08 15:29:21 +01:00
|
|
|
"default": 100
|
2021-05-07 13:48:27 +02:00
|
|
|
},
|
|
|
|
"overlayColor": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"customOverlayColor": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"backgroundType": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "image"
|
|
|
|
},
|
|
|
|
"focalPoint": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
|
|
|
"minHeight": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"minHeightUnit": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"gradient": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"customGradient": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"contentPosition": {
|
|
|
|
"type": "string"
|
2021-11-08 15:29:21 +01:00
|
|
|
},
|
|
|
|
"isDark": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"allowedBlocks": {
|
|
|
|
"type": "array"
|
|
|
|
},
|
|
|
|
"templateLock": {
|
2021-11-10 07:01:30 +01:00
|
|
|
"type": [ "string", "boolean" ],
|
2022-09-20 17:43:29 +02:00
|
|
|
"enum": [ "all", "insert", "contentOnly", false ]
|
2021-05-07 13:48:27 +02:00
|
|
|
}
|
|
|
|
},
|
2022-04-12 17:12:47 +02:00
|
|
|
"usesContext": [ "postId", "postType" ],
|
2021-05-07 13:48:27 +02:00
|
|
|
"supports": {
|
|
|
|
"anchor": true,
|
|
|
|
"align": true,
|
|
|
|
"html": false,
|
|
|
|
"spacing": {
|
2021-11-08 15:29:21 +01:00
|
|
|
"padding": true,
|
2022-09-20 17:43:29 +02:00
|
|
|
"margin": [ "top", "bottom" ],
|
2021-11-08 15:29:21 +01:00
|
|
|
"__experimentalDefaultControls": {
|
|
|
|
"padding": true
|
|
|
|
}
|
2021-05-19 17:09:27 +02:00
|
|
|
},
|
|
|
|
"color": {
|
|
|
|
"__experimentalDuotone": "> .wp-block-cover__image-background, > .wp-block-cover__video-background",
|
|
|
|
"text": false,
|
|
|
|
"background": false
|
2022-09-20 17:43:29 +02:00
|
|
|
},
|
|
|
|
"typography": {
|
|
|
|
"fontSize": true,
|
|
|
|
"lineHeight": true,
|
|
|
|
"__experimentalFontFamily": true,
|
|
|
|
"__experimentalFontWeight": true,
|
|
|
|
"__experimentalFontStyle": true,
|
|
|
|
"__experimentalTextTransform": true,
|
|
|
|
"__experimentalTextDecoration": true,
|
|
|
|
"__experimentalLetterSpacing": true,
|
|
|
|
"__experimentalDefaultControls": {
|
|
|
|
"fontSize": true
|
|
|
|
}
|
2021-05-07 13:48:27 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"editorStyle": "wp-block-cover-editor",
|
|
|
|
"style": "wp-block-cover"
|
|
|
|
}
|