2021-05-19 17:09:27 +02:00
|
|
|
{
|
2022-04-12 17:12:47 +02:00
|
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
2021-05-19 17:09:27 +02:00
|
|
|
"apiVersion": 2,
|
|
|
|
"name": "core/post-featured-image",
|
|
|
|
"title": "Post Featured Image",
|
2021-06-22 12:00:50 +02:00
|
|
|
"category": "theme",
|
2021-05-19 17:09:27 +02:00
|
|
|
"description": "Display a post's featured image.",
|
|
|
|
"textdomain": "default",
|
|
|
|
"attributes": {
|
|
|
|
"isLink": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
2021-11-08 15:29:21 +01:00
|
|
|
},
|
|
|
|
"width": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"height": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"scale": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "cover"
|
2022-04-12 17:12:47 +02:00
|
|
|
},
|
|
|
|
"sizeSlug": {
|
|
|
|
"type": "string"
|
2022-09-20 17:43:29 +02:00
|
|
|
},
|
|
|
|
"rel": {
|
|
|
|
"type": "string",
|
|
|
|
"attribute": "rel",
|
|
|
|
"default": ""
|
|
|
|
},
|
|
|
|
"linkTarget": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "_self"
|
|
|
|
},
|
|
|
|
"overlayColor": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"customOverlayColor": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"dimRatio": {
|
|
|
|
"type": "number",
|
|
|
|
"default": 0
|
|
|
|
},
|
|
|
|
"gradient": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"customGradient": {
|
|
|
|
"type": "string"
|
2021-05-19 17:09:27 +02:00
|
|
|
}
|
|
|
|
},
|
2021-06-15 10:52:30 +02:00
|
|
|
"usesContext": [ "postId", "postType", "queryId" ],
|
2021-05-19 17:09:27 +02:00
|
|
|
"supports": {
|
|
|
|
"align": [ "left", "right", "center", "wide", "full" ],
|
2023-02-07 08:04:52 +01:00
|
|
|
"anchor": true,
|
2021-11-08 15:29:21 +01:00
|
|
|
"color": {
|
2022-04-12 17:12:47 +02:00
|
|
|
"__experimentalDuotone": "img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before",
|
2021-11-08 15:29:21 +01:00
|
|
|
"text": false,
|
|
|
|
"background": false
|
|
|
|
},
|
2022-09-20 17:43:29 +02:00
|
|
|
"__experimentalBorder": {
|
|
|
|
"color": true,
|
|
|
|
"radius": true,
|
|
|
|
"width": true,
|
2022-10-04 17:06:52 +02:00
|
|
|
"__experimentalSelector": "img, .block-editor-media-placeholder, .wp-block-post-featured-image__overlay",
|
2022-09-20 17:43:29 +02:00
|
|
|
"__experimentalSkipSerialization": true,
|
|
|
|
"__experimentalDefaultControls": {
|
|
|
|
"color": true,
|
|
|
|
"radius": true,
|
|
|
|
"width": true
|
|
|
|
}
|
|
|
|
},
|
2021-11-08 15:29:21 +01:00
|
|
|
"html": false,
|
|
|
|
"spacing": {
|
|
|
|
"margin": true,
|
|
|
|
"padding": true
|
|
|
|
}
|
2021-05-19 17:09:27 +02:00
|
|
|
},
|
|
|
|
"editorStyle": "wp-block-post-featured-image-editor",
|
|
|
|
"style": "wp-block-post-featured-image"
|
|
|
|
}
|