| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "bbp-core/search", |
| 5 |
"version": "0.1.0", |
| 6 |
"title": "Forumax Search", |
| 7 |
"category": "bbp-core", |
| 8 |
"icon": "search", |
| 9 |
"description": "Displays a search form with optional keywords.", |
| 10 |
"attributes": { |
| 11 |
"placeholder": { |
| 12 |
"type": "string", |
| 13 |
"default": "Search for Topics...." |
| 14 |
}, |
| 15 |
"submit_btn_type": { |
| 16 |
"type": "string", |
| 17 |
"default": "icon" |
| 18 |
}, |
| 19 |
"submit_btn_icon": { |
| 20 |
"type": "object", |
| 21 |
"default": { |
| 22 |
"value": "fas fa-search", |
| 23 |
"library": "solid" |
| 24 |
} |
| 25 |
}, |
| 26 |
"submit_btn_text": { |
| 27 |
"type": "string", |
| 28 |
"default": "Search" |
| 29 |
}, |
| 30 |
"submit_btn_align": { |
| 31 |
"type": "string", |
| 32 |
"default": "left" |
| 33 |
}, |
| 34 |
"is_keywords": { |
| 35 |
"type": "boolean", |
| 36 |
"default": true |
| 37 |
}, |
| 38 |
"keywords_label": { |
| 39 |
"type": "string", |
| 40 |
"default": "Popular:" |
| 41 |
}, |
| 42 |
"keywords_align": { |
| 43 |
"type": "string", |
| 44 |
"default": "center" |
| 45 |
}, |
| 46 |
"keywords": { |
| 47 |
"type": "array", |
| 48 |
"default": [ |
| 49 |
{ |
| 50 |
"title": "Keyword #1" |
| 51 |
}, |
| 52 |
{ |
| 53 |
"title": "Keyword #2" |
| 54 |
} |
| 55 |
] |
| 56 |
}, |
| 57 |
"color_text": { |
| 58 |
"type": "string" |
| 59 |
}, |
| 60 |
"color_placeholder": { |
| 61 |
"type": "string" |
| 62 |
}, |
| 63 |
"input_bg_color": { |
| 64 |
"type": "string" |
| 65 |
}, |
| 66 |
"color_icon": { |
| 67 |
"type": "string" |
| 68 |
}, |
| 69 |
"search_bg": { |
| 70 |
"type": "string" |
| 71 |
}, |
| 72 |
"color_keywords_label": { |
| 73 |
"type": "string" |
| 74 |
}, |
| 75 |
"bbpc_color_keywords": { |
| 76 |
"type": "string" |
| 77 |
}, |
| 78 |
"bbpc_color_keywords_bg": { |
| 79 |
"type": "string" |
| 80 |
}, |
| 81 |
"bbpc_color_keywords_hover": { |
| 82 |
"type": "string" |
| 83 |
}, |
| 84 |
"bbpc_color_keywords_bg_hover": { |
| 85 |
"type": "string" |
| 86 |
} |
| 87 |
}, |
| 88 |
"supports": { |
| 89 |
"html": false, |
| 90 |
"typography": { |
| 91 |
"fontSize": true |
| 92 |
} |
| 93 |
}, |
| 94 |
"textdomain": "bbp-core", |
| 95 |
"editorScript": "file:./index.js", |
| 96 |
"editorStyle": "file:./index.css", |
| 97 |
"style": "file:./style-index.css" |
| 98 |
} |
| 99 |
|