Dashboard
PHP:
8.4.22
OS:
Linux
User:
provencez
/
/
home
/
provencez
/
www
/
wp-content
/
plugins
/
flexa-block
/
build
/
blocks
/
video-popup
📤 Upload
📝 New File
📁 New Folder
Close
Editing: block.json
{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "flexa/video-popup", "version": "1.0.0", "title": "Video Popup", "category": "flexa", "description": "Play a YouTube, Vimeo or MP4 video in a modal lightbox — triggered by a thumbnail, a button or a text link, with a play icon, aspect ratio, autoplay and a click-to-close backdrop.", "keywords": [ "flexa", "video", "popup", "lightbox", "modal", "youtube", "vimeo", "player" ], "textdomain": "flexa-block", "example": { "attributes": { "isExamplePreview": true }, "viewportWidth": 500 }, "attributes": { "isExamplePreview": { "type": "boolean", "default": false }, "blockId": { "type": "string" }, "videoSource": { "type": "string", "default": "youtube", "enum": [ "youtube", "vimeo", "mp4" ] }, "videoUrl": { "type": "string", "default": "https://www.youtube.com/watch?v=ScMzIvxBSi4" }, "autoplay": { "type": "boolean", "default": true }, "displayMode": { "type": "string", "default": "popup", "enum": [ "popup", "inline" ] }, "trigger": { "type": "string", "default": "thumbnail", "enum": [ "thumbnail", "button", "text" ] }, "thumbnailImage": { "type": "object", "default": { "id": null, "url": "", "alt": "", "width": null, "height": null } }, "buttonText": { "type": "string", "default": "Play Video" }, "linkText": { "type": "string", "default": "Watch the video" }, "scrimOpacity": { "type": "number", "default": 30 }, "playIcon": { "type": "object", "default": { "source": "none", "name": "", "markup": "", "url": "", "id": null } }, "playIconSize": { "type": "object", "default": { "value": "", "unit": "px" } }, "playIconColor": { "type": "object", "default": { "light": "", "dark": "" } }, "playIconBackground": { "type": "object", "default": { "light": "", "dark": "" } }, "aspectRatio": { "type": "string", "default": "16:9", "enum": [ "16:9", "4:3", "1:1" ] }, "overlayColor": { "type": "object", "default": { "light": "", "dark": "" } }, "overlayOpacity": { "type": "number", "default": 90 }, "maxWidth": { "type": "object", "default": { "desktop": { "value": "", "unit": "px" }, "tablet": {}, "mobile": {} } }, "align": { "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