[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/post-featured-image/ -> block.json (source)

   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      "supports": {
  62          "align": [ "left", "right", "center", "wide", "full" ],
  63          "color": {
  64              "__experimentalDuotone": "img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before",
  65              "text": false,
  66              "background": false
  67          },
  68          "__experimentalBorder": {
  69              "color": true,
  70              "radius": true,
  71              "width": true,
  72              "__experimentalSelector": "img, .block-editor-media-placeholder, .wp-block-post-featured-image__overlay",
  73              "__experimentalSkipSerialization": true,
  74              "__experimentalDefaultControls": {
  75                  "color": true,
  76                  "radius": true,
  77                  "width": true
  78              }
  79          },
  80          "html": false,
  81          "spacing": {
  82              "margin": true,
  83              "padding": true
  84          },
  85          "interactivity": {
  86              "clientNavigation": true
  87          }
  88      },
  89      "editorStyle": "wp-block-post-featured-image-editor",
  90      "style": "wp-block-post-featured-image"
  91  }


Generated : Fri May 3 08:20:01 2024 Cross-referenced by PHPXref