carhop__plugins__PROD-DEV/plugins/carhop-blocks/build/narrative-card/block.json
Antoine M 9729258a45
All checks were successful
continuous-integration/drone/push Build is passing
FIX handlign a dynamic render.php to avoid wp kses problem when injecting svg background
2026-01-15 14:01:56 +01:00

63 lines
1.2 KiB
JSON

{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "carhop-blocks/narrative-card",
"version": "0.1.0",
"title": "Carte narrative",
"category": "carhop-blocks",
"icon": "smiley",
"description": "Une carte narrative",
"example": {},
"supports": {
"html": false
},
"textdomain": "carhop-blocks",
"editorScript": "file:./index.js",
"editorStyle": "file:./index.css",
"style": "file:./style-index.css",
"viewScript": "file:./view.js",
"render": "file:./render.php",
"attributes": {
"hasCover": {
"type": "boolean",
"default": true
},
"aspectRatio": {
"type": "string",
"default": "auto",
"enum": [
"auto",
"1/1",
"4/3",
"3/4",
"3/2",
"2/3",
"16/9",
"21/9",
"9/16",
"9/21"
]
},
"coverPosition": {
"type": "string",
"default": "right",
"enum": [
"left",
"right"
]
},
"coverId": {
"type": "number"
},
"coverUrl": {
"type": "string"
},
"coverAlt": {
"type": "string"
},
"blackWhiteCoverFilter": {
"type": "boolean",
"default": true
}
}
}