Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PLANET-6911: Update blocks frontend output to accessible HTML
Update block declaration to block.json format Replace save function with frontend component
- Loading branch information
Showing
3 changed files
with
53 additions
and
47 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,42 @@ | ||
{ | ||
"$schema": "https://schemas.wp.org/trunk/block.json", | ||
"apiVersion": 2, | ||
"name": "planet4-blocks/split-two-columns", | ||
"title": "Split Two Columns", | ||
"category": "planet4-blocks", | ||
"textdomain": "planet4-blocks-backend", | ||
"icon": "editor-table", | ||
"attributes": { | ||
"version": { "type": "number", "default": 3 }, | ||
"select_issue": { "type": "number", "default": 0 }, | ||
"title": { "type": "string", "default": "" }, | ||
"issue_description": { "type": "string", "default": "" }, | ||
"issue_link_text": { "type": "string", "default": "" }, | ||
"issue_link_path": { "type": "string", "default": "" }, | ||
"issue_image_id": { "type": "number", "default": 0 }, | ||
"issue_image_src": { "type": "string", "default": "" }, | ||
"issue_image_srcset": { "type": "string", "default": "" }, | ||
"issue_image_title": { "type": "string", "default": "" }, | ||
"focus_issue_image": { "type": "string", "default": "50% 50%" }, | ||
"select_tag": { "type": "number", "default": 0 }, | ||
"tag_name": { "type": "string", "default": "" }, | ||
"tag_description": { "type": "string", "default": "" }, | ||
"tag_link": { "type": "string", "default": "" }, | ||
"button_text": { "type": "string", "default": "" }, | ||
"button_link": { "type": "string", "default": "" }, | ||
"tag_image_id": { "type": "number", "default": 0 }, | ||
"tag_image_src": { "type": "string", "default": "" }, | ||
"tag_image_srcset": { "type": "string", "default": "" }, | ||
"tag_image_title": { "type": "string", "default": "" }, | ||
"focus_tag_image": { "type": "string", "default": "50% 50%" }, | ||
"edited": { "type": "object", "default": { | ||
"title": false, | ||
"issue_description": false, | ||
"issue_link_text": false, | ||
"tag_description": false, | ||
"button_text": false, | ||
"issue_image_id": false, | ||
"tag_image_id": 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