[ 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/post-featured-image", 5 "title": "Featured Image", 6 "category": "theme", 7 "description": "Display a post's featured image.", 8 "textdomain": "default", 9 "attributes": { 10 "isLink": { 11 "type": "boolean", 12 "default": false 13 }, 14 "aspectRatio": { 15 "type": "string" 16 }, 17 "width": { 18 "type": "string" 19 }, 20 "height": { 21 "type": "string" 22 }, 23 "scale": { 24 "type": "string", 25 "default": "cover" 26 }, 27 "sizeSlug": { 28 "type": "string" 29 }, 30 "rel": { 31 "type": "string", 32 "attribute": "rel", 33 "default": "" 34 }, 35 "linkTarget": { 36 "type": "string", 37 "default": "_self" 38 }, 39 "overlayColor": { 40 "type": "string" 41 }, 42 "customOverlayColor": { 43 "type": "string" 44 }, 45 "dimRatio": { 46 "type": "number", 47 "default": 0 48 }, 49 "gradient": { 50 "type": "string" 51 }, 52 "customGradient": { 53 "type": "string" 54 }, 55 "useFirstImageFromPost": { 56 "type": "boolean", 57 "default": false 58 } 59 }, 60 "usesContext": [ "postId", "postType", "queryId" ], 61 "example": { 62 "viewportWidth": 350 63 }, 64 "supports": { 65 "align": [ "left", "right", "center", "wide", "full" ], 66 "color": { 67 "text": false, 68 "background": false 69 }, 70 "__experimentalBorder": { 71 "color": true, 72 "radius": true, 73 "width": true, 74 "__experimentalSkipSerialization": true, 75 "__experimentalDefaultControls": { 76 "color": true, 77 "radius": true, 78 "width": true 79 } 80 }, 81 "filter": { 82 "duotone": true 83 }, 84 "shadow": { 85 "__experimentalSkipSerialization": true 86 }, 87 "html": false, 88 "spacing": { 89 "margin": true, 90 "padding": true 91 }, 92 "interactivity": { 93 "clientNavigation": true 94 } 95 }, 96 "selectors": { 97 "border": ".wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay", 98 "shadow": ".wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder", 99 "filter": { 100 "duotone": ".wp-block-post-featured-image img, .wp-block-post-featured-image .wp-block-post-featured-image__placeholder, .wp-block-post-featured-image .components-placeholder__illustration, .wp-block-post-featured-image .components-placeholder::before" 101 } 102 }, 103 "editorStyle": "wp-block-post-featured-image-editor", 104 "style": "wp-block-post-featured-image" 105 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Sat Dec 21 08:20:01 2024 | Cross-referenced by PHPXref |