| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "b-blocks/timeline", |
| 5 |
"version": "1.0.0", |
| 6 |
"title": "Timeline", |
| 7 |
"category": "bBlocks", |
| 8 |
"description": "A vertical timeline block for events, history, and roadmaps with auto-alternating left/right layout.", |
| 9 |
"keywords": [ |
| 10 |
"timeline", |
| 11 |
"history", |
| 12 |
"roadmap", |
| 13 |
"events", |
| 14 |
"milestones" |
| 15 |
], |
| 16 |
"textdomain": "b-blocks", |
| 17 |
"example": { |
| 18 |
"attributes": { |
| 19 |
"layout": "alternating", |
| 20 |
"variant": "modern", |
| 21 |
"items": [ |
| 22 |
{ |
| 23 |
"date": "2022", |
| 24 |
"title": "Foundation", |
| 25 |
"description": "The company was founded with a clear vision for the future.", |
| 26 |
"icon": "", |
| 27 |
"accentColor": "#0d6efd" |
| 28 |
}, |
| 29 |
{ |
| 30 |
"date": "2023", |
| 31 |
"title": "Growth", |
| 32 |
"description": "Expanded the team and launched our first major product.", |
| 33 |
"icon": "", |
| 34 |
"accentColor": "#198754" |
| 35 |
}, |
| 36 |
{ |
| 37 |
"date": "2024", |
| 38 |
"title": "Innovation", |
| 39 |
"description": "Introduced new features and won industry recognition.", |
| 40 |
"icon": "", |
| 41 |
"accentColor": "#fd7e14" |
| 42 |
} |
| 43 |
] |
| 44 |
} |
| 45 |
}, |
| 46 |
"attributes": { |
| 47 |
"items": { |
| 48 |
"type": "array", |
| 49 |
"default": [ |
| 50 |
{ |
| 51 |
"date": "2022", |
| 52 |
"title": "Timeline Item 1", |
| 53 |
"description": "Add a short description for this milestone.", |
| 54 |
"icon": "", |
| 55 |
"accentColor": "#0d6efd" |
| 56 |
}, |
| 57 |
{ |
| 58 |
"date": "2023", |
| 59 |
"title": "Timeline Item 2", |
| 60 |
"description": "Add a short description for this milestone.", |
| 61 |
"icon": "", |
| 62 |
"accentColor": "#198754" |
| 63 |
}, |
| 64 |
{ |
| 65 |
"date": "2024", |
| 66 |
"title": "Timeline Item 3", |
| 67 |
"description": "Add a short description for this milestone.", |
| 68 |
"icon": "", |
| 69 |
"accentColor": "#fd7e14" |
| 70 |
} |
| 71 |
] |
| 72 |
}, |
| 73 |
"layout": { |
| 74 |
"type": "string", |
| 75 |
"default": "alternating" |
| 76 |
}, |
| 77 |
"variant": { |
| 78 |
"type": "string", |
| 79 |
"default": "modern" |
| 80 |
}, |
| 81 |
"alignment": { |
| 82 |
"type": "string", |
| 83 |
"default": "center" |
| 84 |
}, |
| 85 |
"lineColor": { |
| 86 |
"type": "string", |
| 87 |
"default": "#dee2e6" |
| 88 |
}, |
| 89 |
"showIcons": { |
| 90 |
"type": "boolean", |
| 91 |
"default": true |
| 92 |
} |
| 93 |
}, |
| 94 |
"supports": { |
| 95 |
"html": false, |
| 96 |
"anchor": true, |
| 97 |
"align": [ |
| 98 |
"wide", |
| 99 |
"full" |
| 100 |
], |
| 101 |
"spacing": { |
| 102 |
"margin": true, |
| 103 |
"padding": true |
| 104 |
} |
| 105 |
}, |
| 106 |
"editorScript": "file:../index.js", |
| 107 |
"render": "file:./render.php", |
| 108 |
"style": "file:./view.css", |
| 109 |
"viewScript": "file:./view.js" |
| 110 |
} |