[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 { 2 "$schema": "https://schemas.wp.org/trunk/block.json", 3 "apiVersion": 3, 4 "name": "core/cover", 5 "title": "Cover", 6 "category": "media", 7 "description": "Add an image or video with a text overlay.", 8 "textdomain": "default", 9 "attributes": { 10 "url": { 11 "type": "string" 12 }, 13 "useFeaturedImage": { 14 "type": "boolean", 15 "default": false 16 }, 17 "id": { 18 "type": "number" 19 }, 20 "alt": { 21 "type": "string", 22 "default": "" 23 }, 24 "hasParallax": { 25 "type": "boolean", 26 "default": false 27 }, 28 "isRepeated": { 29 "type": "boolean", 30 "default": false 31 }, 32 "dimRatio": { 33 "type": "number", 34 "default": 100 35 }, 36 "overlayColor": { 37 "type": "string" 38 }, 39 "customOverlayColor": { 40 "type": "string" 41 }, 42 "isUserOverlayColor": { 43 "type": "boolean" 44 }, 45 "backgroundType": { 46 "type": "string", 47 "default": "image" 48 }, 49 "focalPoint": { 50 "type": "object" 51 }, 52 "minHeight": { 53 "type": "number" 54 }, 55 "minHeightUnit": { 56 "type": "string" 57 }, 58 "gradient": { 59 "type": "string" 60 }, 61 "customGradient": { 62 "type": "string" 63 }, 64 "contentPosition": { 65 "type": "string" 66 }, 67 "isDark": { 68 "type": "boolean", 69 "default": true 70 }, 71 "allowedBlocks": { 72 "type": "array" 73 }, 74 "templateLock": { 75 "type": [ "string", "boolean" ], 76 "enum": [ "all", "insert", "contentOnly", false ] 77 }, 78 "tagName": { 79 "type": "string", 80 "default": "div" 81 }, 82 "sizeSlug": { 83 "type": "string" 84 } 85 }, 86 "usesContext": [ "postId", "postType" ], 87 "supports": { 88 "anchor": true, 89 "align": true, 90 "html": false, 91 "shadow": true, 92 "spacing": { 93 "padding": true, 94 "margin": [ "top", "bottom" ], 95 "blockGap": true, 96 "__experimentalDefaultControls": { 97 "padding": true, 98 "blockGap": true 99 } 100 }, 101 "__experimentalBorder": { 102 "color": true, 103 "radius": true, 104 "style": true, 105 "width": true, 106 "__experimentalDefaultControls": { 107 "color": true, 108 "radius": true, 109 "style": true, 110 "width": true 111 } 112 }, 113 "color": { 114 "__experimentalDuotone": "> .wp-block-cover__image-background, > .wp-block-cover__video-background", 115 "heading": true, 116 "text": true, 117 "background": false, 118 "__experimentalSkipSerialization": [ "gradients" ], 119 "enableContrastChecker": false 120 }, 121 "dimensions": { 122 "aspectRatio": true 123 }, 124 "typography": { 125 "fontSize": true, 126 "lineHeight": true, 127 "__experimentalFontFamily": true, 128 "__experimentalFontWeight": true, 129 "__experimentalFontStyle": true, 130 "__experimentalTextTransform": true, 131 "__experimentalTextDecoration": true, 132 "__experimentalLetterSpacing": true, 133 "__experimentalDefaultControls": { 134 "fontSize": true 135 } 136 }, 137 "layout": { 138 "allowJustification": false 139 }, 140 "interactivity": { 141 "clientNavigation": true 142 } 143 }, 144 "editorStyle": "wp-block-cover-editor", 145 "style": "wp-block-cover" 146 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Sat Feb 22 08:20:01 2025 | Cross-referenced by PHPXref |