| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 2, |
| 4 |
"name": "core/social-links", |
| 5 |
"title": "Social Icons", |
| 6 |
"category": "widgets", |
| 7 |
"description": "Display icons linking to your social media profiles or sites.", |
| 8 |
"keywords": [ "links" ], |
| 9 |
"textdomain": "default", |
| 10 |
"attributes": { |
| 11 |
"iconColor": { |
| 12 |
"type": "string" |
| 13 |
}, |
| 14 |
"customIconColor": { |
| 15 |
"type": "string" |
| 16 |
}, |
| 17 |
"iconColorValue": { |
| 18 |
"type": "string" |
| 19 |
}, |
| 20 |
"iconBackgroundColor": { |
| 21 |
"type": "string" |
| 22 |
}, |
| 23 |
"customIconBackgroundColor": { |
| 24 |
"type": "string" |
| 25 |
}, |
| 26 |
"iconBackgroundColorValue": { |
| 27 |
"type": "string" |
| 28 |
}, |
| 29 |
"openInNewTab": { |
| 30 |
"type": "boolean", |
| 31 |
"default": false |
| 32 |
}, |
| 33 |
"size": { |
| 34 |
"type": "string" |
| 35 |
} |
| 36 |
}, |
| 37 |
"providesContext": { |
| 38 |
"openInNewTab": "openInNewTab", |
| 39 |
"iconColorValue": "iconColorValue", |
| 40 |
"iconBackgroundColorValue": "iconBackgroundColorValue" |
| 41 |
}, |
| 42 |
"supports": { |
| 43 |
"align": [ "left", "center", "right" ], |
| 44 |
"anchor": true, |
| 45 |
"__experimentalExposeControlsToChildren": true, |
| 46 |
"__experimentalLayout": { |
| 47 |
"allowSwitching": false, |
| 48 |
"allowInheriting": false, |
| 49 |
"default": { |
| 50 |
"type": "flex" |
| 51 |
} |
| 52 |
}, |
| 53 |
"spacing": { |
| 54 |
"blockGap": true, |
| 55 |
"margin": [ "top", "bottom" ], |
| 56 |
"units": [ "px", "em", "rem", "vh", "vw" ], |
| 57 |
"__experimentalDefaultControls": { |
| 58 |
"blockGap": true |
| 59 |
} |
| 60 |
} |
| 61 |
}, |
| 62 |
"styles": [ |
| 63 |
{ "name": "default", "label": "Default", "isDefault": true }, |
| 64 |
{ "name": "logos-only", "label": "Logos Only" }, |
| 65 |
{ "name": "pill-shape", "label": "Pill Shape" } |
| 66 |
], |
| 67 |
"editorStyle": "wp-block-social-links-editor", |
| 68 |
"style": "wp-block-social-links" |
| 69 |
} |
| 70 |
|