block.json
50 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "awt/child-author-social-icon", |
| 5 | "title": "Social Icon", |
| 6 | "category": "author-website-templates", |
| 7 | "icon": "share-alt", |
| 8 | "description": "Individual social media icon with smart platform selection", |
| 9 | "keywords": [ |
| 10 | "social", |
| 11 | "icon", |
| 12 | "link" |
| 13 | ], |
| 14 | "textdomain": "author-website-templates", |
| 15 | "parent": [ |
| 16 | "awt/child-author-socials" |
| 17 | ], |
| 18 | "editorScript": "file:./index.js", |
| 19 | "attributes": { |
| 20 | "platform": { |
| 21 | "type": "string", |
| 22 | "default": "instagram" |
| 23 | }, |
| 24 | "url": { |
| 25 | "type": "string", |
| 26 | "default": "#" |
| 27 | }, |
| 28 | "customLabel": { |
| 29 | "type": "string", |
| 30 | "default": "" |
| 31 | }, |
| 32 | "socialsStyle": { |
| 33 | "type": "string", |
| 34 | "default": "fun" |
| 35 | }, |
| 36 | "parentIconColor": { |
| 37 | "type": "string", |
| 38 | "default": "" |
| 39 | } |
| 40 | }, |
| 41 | "usesContext": [ |
| 42 | "awt/socialsStyle", |
| 43 | "awt/iconColor" |
| 44 | ], |
| 45 | "supports": { |
| 46 | "html": false, |
| 47 | "reusable": false |
| 48 | }, |
| 49 | "style": "file:./index.css" |
| 50 | } |