Dashboard
PHP:
8.4.22
OS:
Linux
User:
provencez
/
/
home
/
provencez
/
www
/
wp-content
/
plugins
/
flexa-block
/
build
/
blocks
/
taxonomy
📤 Upload
📝 New File
📁 New Folder
Close
Editing: block.json
{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "flexa/taxonomy", "version": "1.0.0", "title": "Taxonomy", "category": "flexa", "description": "List the terms of any taxonomy (categories, tags or custom) as a list, inline row, dropdown or grid — show the post count, include empty terms or the full hierarchy, limit and order them, add an icon or text prefix/suffix and a separator, and style each term chip with light/dark colours, hover, gap and padding.", "keywords": [ "flexa", "taxonomy", "categories", "tags", "terms", "list" ], "textdomain": "flexa-block", "example": { "attributes": { "isExamplePreview": true }, "viewportWidth": 500 }, "attributes": { "isExamplePreview": { "type": "boolean", "default": false }, "blockId": { "type": "string" }, "htmlTag": { "type": "string", "default": "div" }, "taxonomy": { "type": "string", "default": "category" }, "displayStyle": { "type": "string", "default": "list", "enum": [ "list", "inline", "dropdown", "grid" ] }, "columns": { "type": "object", "default": { "desktop": { "value": "3", "unit": "" }, "tablet": { "value": "2", "unit": "" }, "mobile": { "value": "1", "unit": "" } } }, "orderBy": { "type": "string", "default": "name", "enum": [ "name", "count", "slug" ] }, "order": { "type": "string", "default": "asc", "enum": [ "asc", "desc" ] }, "showCount": { "type": "boolean", "default": true }, "showEmpty": { "type": "boolean", "default": false }, "hierarchical": { "type": "boolean", "default": false }, "limit": { "type": "number", "default": 0 }, "prefixType": { "type": "string", "default": "none", "enum": [ "none", "icon", "text" ] }, "prefixIcon": { "type": "object", "default": {} }, "prefixText": { "type": "string", "default": "" }, "suffixType": { "type": "string", "default": "none", "enum": [ "none", "icon", "text" ] }, "suffixIcon": { "type": "object", "default": {} }, "suffixText": { "type": "string", "default": "" }, "showSeparator": { "type": "boolean", "default": false }, "separator": { "type": "string", "default": "/" }, "alignment": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "gap": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "itemPadding": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "itemBorderRadius": { "type": "object", "default": { "value": "", "unit": "px" } }, "typography": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "itemColor": { "type": "object", "default": { "light": "", "dark": "" } }, "itemBackground": { "type": "object", "default": { "light": "", "dark": "" } }, "itemHoverColor": { "type": "object", "default": { "light": "", "dark": "" } }, "itemHoverBackground": { "type": "object", "default": { "light": "", "dark": "" } }, "countColor": { "type": "object", "default": { "light": "", "dark": "" } }, "prefixColor": { "type": "object", "default": { "light": "", "dark": "" } }, "suffixColor": { "type": "object", "default": { "light": "", "dark": "" } }, "iconHoverColor": { "type": "object", "default": { "light": "", "dark": "" } }, "separatorColor": { "type": "object", "default": { "light": "", "dark": "" } }, "prefixIconSize": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "suffixIconSize": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "spacing": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "background": { "type": "object", "default": { "type": "none", "color": { "light": "", "dark": "" }, "gradient": { "light": "", "dark": "" }, "image": { "url": "", "id": null, "position": "center center", "repeat": "no-repeat", "size": "cover", "attachment": "scroll" }, "lazyLoad": false } }, "border": { "type": "object", "default": { "desktop": { "style": "", "width": { "top": "", "right": "", "bottom": "", "left": "", "unit": "px" }, "color": { "light": "", "dark": "" }, "radius": { "topLeft": "", "topRight": "", "bottomRight": "", "bottomLeft": "", "unit": "px" } }, "tablet": {}, "mobile": {} } }, "boxShadow": { "type": "object", "default": { "horizontal": "0", "vertical": "4", "blur": "12", "spread": "0", "color": { "light": "rgba(0,0,0,0.1)", "dark": "" }, "inset": false, "enabled": false } }, "advancedLayout": { "type": "object", "default": { "desktop": { "zIndex": "", "overflow": "", "position": "" }, "tablet": {}, "mobile": {} } }, "responsiveVisibility": { "type": "object", "default": { "hideOnDesktop": false, "hideOnTablet": false, "hideOnMobile": false } }, "animation": { "type": "object", "default": { "type": "none", "duration": "normal", "delay": "" } }, "htmlAttributes": { "type": "object", "default": { "customAttributes": [] } } }, "supports": { "anchor": true, "className": true, "html": false, "align": false }, "editorScript": "file:./index.js", "editorStyle": "file:./index.css", "style": "file:./style-index.css", "viewScript": "file:./view.js", "render": "file:./render.php" }
Save
Cancel