| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "b-blocks/news-ticker", |
| 5 |
"version": "0.1.0", |
| 6 |
"title": "News Ticker", |
| 7 |
"category": "bBlocks", |
| 8 |
"textdomain": "b-blocks", |
| 9 |
"description": "Display a scrolling news ticker with posts from any post type", |
| 10 |
"example": {}, |
| 11 |
"attributes": { |
| 12 |
"postType": { |
| 13 |
"type": "string", |
| 14 |
"default": "post" |
| 15 |
}, |
| 16 |
"selectedCategories": { |
| 17 |
"type": "array", |
| 18 |
"default": [] |
| 19 |
}, |
| 20 |
"selectedPosts": { |
| 21 |
"type": "array", |
| 22 |
"default": [] |
| 23 |
}, |
| 24 |
"selectAllCategories": { |
| 25 |
"type": "boolean", |
| 26 |
"default": false |
| 27 |
}, |
| 28 |
"speed": { |
| 29 |
"type": "number", |
| 30 |
"default": 50 |
| 31 |
}, |
| 32 |
"enableClick": { |
| 33 |
"type": "boolean", |
| 34 |
"default": true |
| 35 |
}, |
| 36 |
"textColor": { |
| 37 |
"type": "string", |
| 38 |
"default": "#ffffff" |
| 39 |
}, |
| 40 |
"backgroundColor": { |
| 41 |
"type": "string", |
| 42 |
"default": "#667eea" |
| 43 |
}, |
| 44 |
"fontSize": { |
| 45 |
"type": "number", |
| 46 |
"default": 15 |
| 47 |
}, |
| 48 |
"fontWeight": { |
| 49 |
"type": "string", |
| 50 |
"default": "400" |
| 51 |
}, |
| 52 |
"fontFamily": { |
| 53 |
"type": "string", |
| 54 |
"default": "" |
| 55 |
}, |
| 56 |
"headingText": { |
| 57 |
"type": "string", |
| 58 |
"default": "News:" |
| 59 |
} |
| 60 |
}, |
| 61 |
"supports": { |
| 62 |
"html": false, |
| 63 |
"align": [ |
| 64 |
"wide", |
| 65 |
"full" |
| 66 |
] |
| 67 |
}, |
| 68 |
"editorScript": "file:../index.js", |
| 69 |
"style": "file:./view.css", |
| 70 |
"viewScript": "file:./view.js", |
| 71 |
"render": "file:./render.php" |
| 72 |
} |