homegrade_blocks_production/build/dynamic-posts/block.json

64 lines
1.5 KiB
JSON

{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "homegrade-content-blocks/wpblock-latest-posts",
"version": "0.1.0",
"title": "Wpblock Latest Posts",
"category": "wpblock-blocks",
"description": "Un bloc dynamique qu affiche les derniers posts. #BlockStylesVariation #Dynamic #ToggleControl #DropDown",
"supports": {
"html": false
},
"styles": [
{
"name": "post_grid",
"isDefault": true,
"label": "Grille de post"
},
{
"name": "post_list",
"label": "Liste de post"
}
],
"example": {
"attributes": {
"numberOfPosts": 4,
"postType": "post",
"displayFeaturedImage": true,
"showDescription": true,
"blocktitle": "Latest Posts",
"blockDescriptionText": "Ma description"
}
},
"textdomain": "wpblock-latest-posts",
"editorScript": "file:./index.js",
"editorStyle": "file:./index.css",
"style": "file:./style-index.css",
"render": "file:./render.php",
"attributes": {
"numberOfPosts": {
"type": "number",
"default": 4
},
"postType": {
"type": "string",
"default": "post"
},
"displayFeaturedImage": {
"type": "boolean",
"default": true
},
"showDescription": {
"type": "boolean",
"default": true
},
"blocktitle": {
"type": "string",
"default": "Latest Posts"
},
"blockDescriptionText": {
"type": "string",
"default": "Ma description"
}
}
}