Нема описа

block.json 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 2,
  4. "name": "core/site-logo",
  5. "title": "Site Logo",
  6. "category": "theme",
  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.",
  8. "textdomain": "default",
  9. "attributes": {
  10. "width": {
  11. "type": "number"
  12. },
  13. "isLink": {
  14. "type": "boolean",
  15. "default": true
  16. },
  17. "linkTarget": {
  18. "type": "string",
  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"
  30. }
  31. },
  32. "supports": {
  33. "html": false,
  34. "align": true,
  35. "alignWide": false,
  36. "color": {
  37. "__experimentalDuotone": "img, .components-placeholder__illustration, .components-placeholder::before",
  38. "text": false,
  39. "background": false
  40. }
  41. },
  42. "styles": [
  43. {
  44. "name": "default",
  45. "label": "Default",
  46. "isDefault": true
  47. },
  48. { "name": "rounded", "label": "Rounded" }
  49. ],
  50. "editorStyle": "wp-block-site-logo-editor",
  51. "style": "wp-block-site-logo"
  52. }