← Back
Editing: block.json
{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "directorist/account-button", "version": "1.0.0", "title": "Account Button", "category": "directorist-blocks-collection", "description": "Directorist login-registration popup with account management dropdown menu.", "keywords": ["directorist", "account", "popup", "avatar", "navigation"], "attributes": { "showDashboardMenu": { "type": "boolean", "default": true }, "styleDisplay": { "type": "string", "enum": ["icon", "text", "icon_and_text"] }, "iconSource": { "type": "string", "enum": ["library", "image"], "default": "library" }, "iconClass": { "type": "string", "default": "las la-user" }, "iconId": { "type": "number", "default": 0 }, "iconUrl": { "type": "string", "default": "" }, "iconSize": { "type": "number", "default": 24 }, "iconColor": { "type": "string", "default": "" }, "iconPosition": { "type": "string", "enum": ["before", "after"], "default": "before" }, "iconGap": { "type": "number", "default": 8 }, "accessibleLabel": { "type": "string", "default": "Open account" }, "loggedInDisplay": { "type": "string", "enum": ["avatar", "avatar_and_name", "icon", "icon_and_name"], "default": "avatar" }, "transparentLoggedInBackground": { "type": "boolean", "default": false }, "loggedInTextColor": { "type": "string", "default": "" }, "avatarSource": { "type": "string", "enum": ["user", "image"], "default": "user" }, "avatarId": { "type": "number", "default": 0 }, "avatarUrl": { "type": "string", "default": "" }, "avatarAlt": { "type": "string", "default": "" }, "avatarSize": { "type": "number", "default": 40 }, "avatarRadius": { "type": "number", "default": 50 }, "authorIconSource": { "type": "string", "enum": ["library", "image"], "default": "library" }, "authorIconClass": { "type": "string", "default": "las la-user-circle" }, "authorIconId": { "type": "number", "default": 0 }, "authorIconUrl": { "type": "string", "default": "" }, "authorIconSize": { "type": "number", "default": 40 }, "authorIconColor": { "type": "string", "default": "" }, "authorIconGap": { "type": "number", "default": 8 }, "textAlign": { "type": "string" }, "url": { "type": "string", "source": "attribute", "selector": "a", "attribute": "href", "__experimentalRole": "content" }, "title": { "type": "string", "source": "attribute", "selector": "a,button", "attribute": "title", "__experimentalRole": "content" }, "text": { "type": "rich-text", "source": "rich-text", "selector": "a,button", "__experimentalRole": "content" }, "linkTarget": { "type": "string", "source": "attribute", "selector": "a", "attribute": "target", "__experimentalRole": "content" }, "rel": { "type": "string", "source": "attribute", "selector": "a", "attribute": "rel", "__experimentalRole": "content" }, "placeholder": { "type": "string" }, "backgroundColor": { "type": "string" }, "textColor": { "type": "string" }, "gradient": { "type": "string" }, "width": { "type": "number" } }, "supports": { "anchor": true, "splitting": true, "align": false, "alignWide": false, "color": { "__experimentalSkipSerialization": true, "gradients": true, "__experimentalDefaultControls": { "background": true, "text": true } }, "typography": { "fontSize": true, "lineHeight": true, "__experimentalFontFamily": true, "__experimentalFontWeight": true, "__experimentalFontStyle": true, "__experimentalTextTransform": true, "__experimentalTextDecoration": true, "__experimentalLetterSpacing": true, "__experimentalDefaultControls": { "fontSize": true } }, "reusable": false, "shadow": { "__experimentalSkipSerialization": true }, "spacing": { "__experimentalSkipSerialization": true, "padding": ["horizontal", "vertical"], "__experimentalDefaultControls": { "padding": true } }, "__experimentalBorder": { "color": true, "radius": true, "style": true, "width": true, "__experimentalSkipSerialization": true, "__experimentalDefaultControls": { "color": true, "radius": true, "style": true, "width": true } }, "__experimentalSelector": ".wp-block-button .wp-block-button__link", "interactivity": { "clientNavigation": true } }, "styles": [ { "name": "fill", "label": "Fill", "isDefault": true }, { "name": "outline", "label": "Outline" } ], "textdomain": "directorist", "editorScript": "file:./index.js", "editorStyle": "file:./editor.css", "style": "file:./style-index.css", "render": "file:./render.php", "script": ["directorist-account", "file:./script.js"] }
Save File
Cancel