block.json in Friends 2.8.7, at blocks/friend-posts/block.json
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 2, |
| 4 | "name": "friends/friend-posts", |
| 5 | "title": "Friend Posts", |
| 6 | "category": "widgets", |
| 7 | "textdomain": "friends", |
| 8 | "icon": "groups", |
| 9 | "attributes": { |
| 10 | "author_inline": { |
| 11 | "type": "boolean", |
| 12 | "default": false |
| 13 | }, |
| 14 | "author_name": { |
| 15 | "type": "boolean", |
| 16 | "default": true |
| 17 | }, |
| 18 | "author_avatar": { |
| 19 | "type": "boolean", |
| 20 | "default": true |
| 21 | }, |
| 22 | "show_date": { |
| 23 | "type": "boolean", |
| 24 | "default": true |
| 25 | }, |
| 26 | "count": { |
| 27 | "type": "number", |
| 28 | "default": 5 |
| 29 | }, |
| 30 | "exclude_users": { |
| 31 | "type": "string" |
| 32 | }, |
| 33 | "only_users": { |
| 34 | "type": "string" |
| 35 | }, |
| 36 | "internal_link": { |
| 37 | "type": "boolean", |
| 38 | "default": false |
| 39 | } |
| 40 | }, |
| 41 | "example": { |
| 42 | "attributes": {} |
| 43 | }, |
| 44 | "editorScript": "file:./build/index.js" |
| 45 | } |
| 46 |