-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* RSS block: use block.json * Use single quote string for consistency. * RSS block: refactor edit component to use hooks. * RSS block: update editor classes for consistency, Co-authored-by: Sören Wrede <soerenwrede@gmail.com>
- Loading branch information
1 parent
586e216
commit df7315e
Showing
5 changed files
with
171 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"name": "core/rss", | ||
"category": "widgets", | ||
"attributes": { | ||
"align": { | ||
"type": "string", | ||
"enum": [ "left", "center", "right", "wide", "full" ] | ||
}, | ||
"className": { | ||
"type": "string" | ||
}, | ||
"columns": { | ||
"type": "number", | ||
"default": 2 | ||
}, | ||
"blockLayout": { | ||
"type": "string", | ||
"default": "list" | ||
}, | ||
"feedURL": { | ||
"type": "string", | ||
"default": "" | ||
}, | ||
"itemsToShow": { | ||
"type": "number", | ||
"default": 5 | ||
}, | ||
"displayExcerpt": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"displayAuthor": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"displayDate": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"excerptLength": { | ||
"type": "number", | ||
"default": 55 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.