Dashboard
PHP:
8.4.22
OS:
Linux
User:
provencez
/
/
home
/
provencez
/
www
/
wp-content
/
plugins
/
flexa-block
/
build
/
blocks
/
cta
📤 Upload
📝 New File
📁 New Folder
Close
Editing: block.json
{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "flexa/cta", "version": "1.0.0", "title": "CTA", "category": "flexa", "description": "Call-to-action banner — a heading, description and primary plus optional secondary button, arranged centred or split (text one side, buttons the other), with background, border, shadow and light/dark styling.", "keywords": [ "flexa", "cta", "call to action", "banner", "button", "promo" ], "textdomain": "flexa-block", "attributes": { "blockId": { "type": "string" }, "htmlTag": { "type": "string", "default": "section" }, "arrangement": { "type": "string", "default": "centered", "enum": [ "centered", "split" ] }, "containerType": { "type": "string", "default": "boxed", "enum": [ "boxed", "full-width" ] }, "widthBoxed": { "type": "object", "default": { "desktop": { "value": "1200", "unit": "px" }, "tablet": {}, "mobile": {} } }, "widthFullWidth": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "size": { "type": "object", "default": { "desktop": { "minHeight": { "value": "", "unit": "px" } }, "tablet": {}, "mobile": {} } }, "heading": { "type": "string", "default": "Ready to get started?" }, "headingTag": { "type": "string", "default": "h2" }, "headingTypography": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "headingColor": { "type": "object", "default": { "light": "", "dark": "" } }, "description": { "type": "string", "default": "Add a short line that nudges visitors to take the next step." }, "descriptionTypography": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "descriptionColor": { "type": "object", "default": { "light": "", "dark": "" } }, "contentAlign": { "type": "object", "default": { "desktop": "", "tablet": "", "mobile": "" } }, "contentGap": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "contentMaxWidth": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "primaryText": { "type": "string", "default": "Get started" }, "primaryUrl": { "type": "string", "default": "" }, "primaryTarget": { "type": "string", "default": "" }, "primaryRel": { "type": "string", "default": "" }, "primaryIcon": { "type": "object", "default": { "source": "none", "name": "", "markup": "", "url": "", "id": null, "position": "after" } }, "primaryTextColor": { "type": "object", "default": { "light": "", "dark": "" } }, "primaryBgColor": { "type": "object", "default": { "light": "", "dark": "" } }, "primaryHover": { "type": "object", "default": { "text": { "light": "", "dark": "" }, "background": { "light": "", "dark": "" } } }, "showSecondary": { "type": "boolean", "default": false }, "secondaryText": { "type": "string", "default": "Contact us" }, "secondaryUrl": { "type": "string", "default": "" }, "secondaryTarget": { "type": "string", "default": "" }, "secondaryRel": { "type": "string", "default": "" }, "secondaryIcon": { "type": "object", "default": { "source": "none", "name": "", "markup": "", "url": "", "id": null, "position": "after" } }, "secondaryTextColor": { "type": "object", "default": { "light": "", "dark": "" } }, "secondaryBgColor": { "type": "object", "default": { "light": "", "dark": "" } }, "secondaryHover": { "type": "object", "default": { "text": { "light": "", "dark": "" }, "background": { "light": "", "dark": "" } } }, "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