block.json 1017 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 2,
  4. "name": "core/post-featured-image",
  5. "title": "Post 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. "width": {
  15. "type": "string"
  16. },
  17. "height": {
  18. "type": "string"
  19. },
  20. "scale": {
  21. "type": "string",
  22. "default": "cover"
  23. },
  24. "sizeSlug": {
  25. "type": "string"
  26. }
  27. },
  28. "usesContext": [ "postId", "postType", "queryId" ],
  29. "supports": {
  30. "align": [ "left", "right", "center", "wide", "full" ],
  31. "color": {
  32. "__experimentalDuotone": "img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before",
  33. "text": false,
  34. "background": false
  35. },
  36. "html": false,
  37. "spacing": {
  38. "margin": true,
  39. "padding": true
  40. }
  41. },
  42. "editorStyle": "wp-block-post-featured-image-editor",
  43. "style": "wp-block-post-featured-image"
  44. }