[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/cover/ -> block.json (source)

   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      },
  83      "usesContext": [ "postId", "postType" ],
  84      "supports": {
  85          "anchor": true,
  86          "align": true,
  87          "html": false,
  88          "spacing": {
  89              "padding": true,
  90              "margin": [ "top", "bottom" ],
  91              "blockGap": true,
  92              "__experimentalDefaultControls": {
  93                  "padding": true,
  94                  "blockGap": true
  95              }
  96          },
  97          "__experimentalBorder": {
  98              "color": true,
  99              "radius": true,
 100              "style": true,
 101              "width": true,
 102              "__experimentalDefaultControls": {
 103                  "color": true,
 104                  "radius": true,
 105                  "style": true,
 106                  "width": true
 107              }
 108          },
 109          "color": {
 110              "__experimentalDuotone": "> .wp-block-cover__image-background, > .wp-block-cover__video-background",
 111              "heading": true,
 112              "text": true,
 113              "background": false,
 114              "__experimentalSkipSerialization": [ "gradients" ],
 115              "enableContrastChecker": false
 116          },
 117          "dimensions": {
 118              "aspectRatio": true
 119          },
 120          "typography": {
 121              "fontSize": true,
 122              "lineHeight": true,
 123              "__experimentalFontFamily": true,
 124              "__experimentalFontWeight": true,
 125              "__experimentalFontStyle": true,
 126              "__experimentalTextTransform": true,
 127              "__experimentalTextDecoration": true,
 128              "__experimentalLetterSpacing": true,
 129              "__experimentalDefaultControls": {
 130                  "fontSize": true
 131              }
 132          },
 133          "layout": {
 134              "allowJustification": false
 135          },
 136          "interactivity": {
 137              "clientNavigation": true
 138          }
 139      },
 140      "editorStyle": "wp-block-cover-editor",
 141      "style": "wp-block-cover"
 142  }


Generated : Wed May 8 08:20:02 2024 Cross-referenced by PHPXref