-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert all remaining dynamic blocks to use metadata format
- Loading branch information
Showing
20 changed files
with
221 additions
and
310 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"name": "core/latest-comments", | ||
"title": "Latest Comments", | ||
"category": "widgets", | ||
"icon": { | ||
"src": "./icon.js" | ||
}, | ||
"description": "Display a list of your most recent comments.", | ||
"keywords": [ "recent comments" ], | ||
"attributes": { | ||
"align": { | ||
"type": "string" | ||
}, | ||
"className": { | ||
"type": "string" | ||
}, | ||
"commentsToShow": { | ||
"type": "number", | ||
"default": 5, | ||
"minimum": 1, | ||
"maximum": 100 | ||
}, | ||
"displayAvatar": { | ||
"type": "boolean", | ||
"default": true | ||
}, | ||
"displayDate": { | ||
"type": "boolean", | ||
"default": true | ||
}, | ||
"displayExcerpt": { | ||
"type": "boolean", | ||
"default": true | ||
} | ||
}, | ||
"edit": "./edit.js", | ||
"supports": { | ||
"align": true, | ||
"html": false | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
import { G, Path, SVG } from '@wordpress/components'; | ||
|
||
export default ( | ||
<SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><Path fill="none" d="M0 0h24v24H0V0z" /><G><Path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z" /></G></SVG> | ||
); |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"name": "core/latest-posts", | ||
"title": "Latest Posts", | ||
"category": "widgets", | ||
"icon": { | ||
"src": "./icon.js" | ||
}, | ||
"description": "Display a list of your most recent posts.", | ||
"keywords": [ "recent posts" ], | ||
"attributes": { | ||
"align": { | ||
"type": "string" | ||
}, | ||
"className": { | ||
"type": "string" | ||
}, | ||
"categories": { | ||
"type": "string" | ||
}, | ||
"postsToShow": { | ||
"type": "number", | ||
"default": 5 | ||
}, | ||
"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" | ||
} | ||
}, | ||
"edit": "./edit.js", | ||
"supports": { | ||
"align": true, | ||
"html": false | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
import { Path, Rect, SVG } from '@wordpress/components'; | ||
|
||
export default ( | ||
<SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><Path d="M0,0h24v24H0V0z" fill="none" /><Rect x="11" y="7" width="6" height="2" /><Rect x="11" y="11" width="6" height="2" /><Rect x="11" y="15" width="6" height="2" /><Rect x="7" y="7" width="2" height="2" /><Rect x="7" y="11" width="2" height="2" /><Rect x="7" y="15" width="2" height="2" /><Path d="M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z" /></SVG> | ||
); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.