16
|
1 |
{ |
|
2 |
"name": "core/latest-posts", |
|
3 |
"category": "widgets", |
|
4 |
"attributes": { |
|
5 |
"align": { |
|
6 |
"type": "string", |
|
7 |
"enum": [ |
|
8 |
"left", |
|
9 |
"center", |
|
10 |
"right", |
|
11 |
"wide", |
|
12 |
"full" |
|
13 |
] |
|
14 |
}, |
|
15 |
"className": { |
|
16 |
"type": "string" |
|
17 |
}, |
|
18 |
"categories": { |
|
19 |
"type": "array", |
|
20 |
"items": { |
|
21 |
"type": "object" |
|
22 |
} |
|
23 |
}, |
|
24 |
"selectedAuthor": { |
|
25 |
"type": "number" |
|
26 |
}, |
|
27 |
"postsToShow": { |
|
28 |
"type": "number", |
|
29 |
"default": 5 |
|
30 |
}, |
|
31 |
"displayPostContent": { |
|
32 |
"type": "boolean", |
|
33 |
"default": false |
|
34 |
}, |
|
35 |
"displayPostContentRadio": { |
|
36 |
"type": "string", |
|
37 |
"default": "excerpt" |
|
38 |
}, |
|
39 |
"excerptLength": { |
|
40 |
"type": "number", |
|
41 |
"default": 55 |
|
42 |
}, |
|
43 |
"displayAuthor": { |
|
44 |
"type": "boolean", |
|
45 |
"default": false |
|
46 |
}, |
|
47 |
"displayPostDate": { |
|
48 |
"type": "boolean", |
|
49 |
"default": false |
|
50 |
}, |
|
51 |
"postLayout": { |
|
52 |
"type": "string", |
|
53 |
"default": "list" |
|
54 |
}, |
|
55 |
"columns": { |
|
56 |
"type": "number", |
|
57 |
"default": 3 |
|
58 |
}, |
|
59 |
"order": { |
|
60 |
"type": "string", |
|
61 |
"default": "desc" |
|
62 |
}, |
|
63 |
"orderBy": { |
|
64 |
"type": "string", |
|
65 |
"default": "date" |
|
66 |
}, |
|
67 |
"displayFeaturedImage": { |
|
68 |
"type": "boolean", |
|
69 |
"default": false |
|
70 |
}, |
|
71 |
"featuredImageAlign": { |
|
72 |
"type": "string", |
|
73 |
"enum": [ |
|
74 |
"left", |
|
75 |
"center", |
|
76 |
"right" |
|
77 |
] |
|
78 |
}, |
|
79 |
"featuredImageSizeSlug": { |
|
80 |
"type": "string", |
|
81 |
"default": "thumbnail" |
|
82 |
}, |
|
83 |
"featuredImageSizeWidth": { |
|
84 |
"type": "number", |
|
85 |
"default": null |
|
86 |
}, |
|
87 |
"featuredImageSizeHeight": { |
|
88 |
"type": "number", |
|
89 |
"default": null |
|
90 |
} |
|
91 |
}, |
|
92 |
"supports": { |
|
93 |
"align": true, |
|
94 |
"html": false |
|
95 |
} |
|
96 |
} |