angelovcom.net

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

block.json (1691B)


      1 {
      2 	"apiVersion": 2,
      3 	"name": "core/gallery",
      4 	"title": "Gallery",
      5 	"category": "media",
      6 	"description": "Display multiple images in a rich gallery.",
      7 	"keywords": [ "images", "photos" ],
      8 	"textdomain": "default",
      9 	"attributes": {
     10 		"images": {
     11 			"type": "array",
     12 			"default": [],
     13 			"source": "query",
     14 			"selector": ".blocks-gallery-item",
     15 			"query": {
     16 				"url": {
     17 					"type": "string",
     18 					"source": "attribute",
     19 					"selector": "img",
     20 					"attribute": "src"
     21 				},
     22 				"fullUrl": {
     23 					"type": "string",
     24 					"source": "attribute",
     25 					"selector": "img",
     26 					"attribute": "data-full-url"
     27 				},
     28 				"link": {
     29 					"type": "string",
     30 					"source": "attribute",
     31 					"selector": "img",
     32 					"attribute": "data-link"
     33 				},
     34 				"alt": {
     35 					"type": "string",
     36 					"source": "attribute",
     37 					"selector": "img",
     38 					"attribute": "alt",
     39 					"default": ""
     40 				},
     41 				"id": {
     42 					"type": "string",
     43 					"source": "attribute",
     44 					"selector": "img",
     45 					"attribute": "data-id"
     46 				},
     47 				"caption": {
     48 					"type": "string",
     49 					"source": "html",
     50 					"selector": ".blocks-gallery-item__caption"
     51 				}
     52 			}
     53 		},
     54 		"ids": {
     55 			"type": "array",
     56 			"items": {
     57 				"type": "number"
     58 			},
     59 			"default": []
     60 		},
     61 		"columns": {
     62 			"type": "number",
     63 			"minimum": 1,
     64 			"maximum": 8
     65 		},
     66 		"caption": {
     67 			"type": "string",
     68 			"source": "html",
     69 			"selector": ".blocks-gallery-caption"
     70 		},
     71 		"imageCrop": {
     72 			"type": "boolean",
     73 			"default": true
     74 		},
     75 		"linkTo": {
     76 			"type": "string"
     77 		},
     78 		"sizeSlug": {
     79 			"type": "string",
     80 			"default": "large"
     81 		}
     82 	},
     83 	"supports": {
     84 		"anchor": true,
     85 		"align": true
     86 	},
     87 	"editorStyle": "wp-block-gallery-editor",
     88 	"style": "wp-block-gallery"
     89 }