wp/wp-includes/blocks/site-logo/block.json
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
     1 {
     1 {
       
     2 	"$schema": "https://schemas.wp.org/trunk/block.json",
     2 	"apiVersion": 2,
     3 	"apiVersion": 2,
     3 	"name": "core/site-logo",
     4 	"name": "core/site-logo",
     4 	"title": "Site Logo",
     5 	"title": "Site Logo",
     5 	"category": "layout",
     6 	"category": "theme",
     6 	"description": "Useful for displaying a graphic mark, design, or symbol to represent the site. Once a site logo is set, it can be reused in different places and templates. It should not be confused with the site icon, which is the small image used in the dashboard, browser tabs, public search results, etc, to help recognize a site.",
     7 	"description": "Display a graphic to represent this site. Update the block, and the changes apply everywhere it’s used. This is different than the site icon, which is the smaller image visible in your dashboard, browser tabs, etc used to help others recognize this site.",
     7 	"textdomain": "default",
     8 	"textdomain": "default",
     8 	"attributes": {
     9 	"attributes": {
     9 		"align": {
       
    10 			"type": "string"
       
    11 		},
       
    12 		"width": {
    10 		"width": {
    13 			"type": "number"
    11 			"type": "number"
    14 		},
    12 		},
    15 		"isLink": {
    13 		"isLink": {
    16 			"type": "boolean",
    14 			"type": "boolean",
    17 			"default": true
    15 			"default": true
    18 		},
    16 		},
    19 		"linkTarget": {
    17 		"linkTarget": {
    20 			"type": "string",
    18 			"type": "string",
    21 			"default": "_self"
    19 			"default": "_self"
       
    20 		},
       
    21 		"shouldSyncIcon": {
       
    22 			"type": "boolean"
       
    23 		}
       
    24 	},
       
    25 	"example": {
       
    26 		"viewportWidth": 500,
       
    27 		"attributes": {
       
    28 			"width": 350,
       
    29 			"className": "block-editor-block-types-list__site-logo-example"
    22 		}
    30 		}
    23 	},
    31 	},
    24 	"supports": {
    32 	"supports": {
    25 		"html": false,
    33 		"html": false,
    26 		"align": true,
    34 		"align": true,
    27 		"alignWide": false
    35 		"alignWide": false,
       
    36 		"color": {
       
    37 			"__experimentalDuotone": "img, .components-placeholder__illustration, .components-placeholder::before",
       
    38 			"text": false,
       
    39 			"background": false
       
    40 		}
    28 	},
    41 	},
    29 	"styles": [
    42 	"styles": [
    30 		{
    43 		{
    31 			"name": "default",
    44 			"name": "default",
    32 			"label": "Default",
    45 			"label": "Default",