2020-06-26 15:33:47 +02:00
|
|
|
{
|
2020-11-02 05:56:37 +01:00
|
|
|
"apiVersion": 2,
|
2020-06-26 15:33:47 +02:00
|
|
|
"name": "core/latest-posts",
|
|
|
|
"category": "widgets",
|
|
|
|
"attributes": {
|
|
|
|
"categories": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"selectedAuthor": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"postsToShow": {
|
|
|
|
"type": "number",
|
|
|
|
"default": 5
|
|
|
|
},
|
|
|
|
"displayPostContent": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"displayPostContentRadio": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "excerpt"
|
|
|
|
},
|
|
|
|
"excerptLength": {
|
|
|
|
"type": "number",
|
|
|
|
"default": 55
|
|
|
|
},
|
|
|
|
"displayAuthor": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"displayPostDate": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"postLayout": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "list"
|
|
|
|
},
|
|
|
|
"columns": {
|
|
|
|
"type": "number",
|
|
|
|
"default": 3
|
|
|
|
},
|
|
|
|
"order": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "desc"
|
|
|
|
},
|
|
|
|
"orderBy": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "date"
|
|
|
|
},
|
|
|
|
"displayFeaturedImage": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"featuredImageAlign": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"left",
|
|
|
|
"center",
|
|
|
|
"right"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"featuredImageSizeSlug": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "thumbnail"
|
|
|
|
},
|
|
|
|
"featuredImageSizeWidth": {
|
|
|
|
"type": "number",
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"featuredImageSizeHeight": {
|
|
|
|
"type": "number",
|
|
|
|
"default": null
|
2020-10-13 15:10:30 +02:00
|
|
|
},
|
|
|
|
"addLinkToFeaturedImage": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
2020-06-26 15:33:47 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"supports": {
|
|
|
|
"align": true,
|
|
|
|
"html": false
|
2021-01-28 03:04:13 +01:00
|
|
|
},
|
|
|
|
"editorStyle": "wp-block-latest-posts-editor",
|
|
|
|
"style": "wp-block-latest-posts"
|
2020-06-26 15:33:47 +02:00
|
|
|
}
|