PluginProbe
Polylang / trunk
Polylang vtrunk
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
polylang / src / modules / Blocks / Language_Switcher / Navigation / block.json

block.json in Polylang trunk, at src/modules/Blocks/Language_Switcher/Navigation/block.json

86 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "polylang/navigation-language-switcher",
5 "version": "3.9",
6 "title": "Navigation Language Switcher",
7 "category": "design",
8 "parent": [ "core/navigation" ],
9 "description": "Language switcher suitable for navigation.",
10 "example": {},
11 "attributes": {
12 "layout": {
13 "type": "string",
14 "enum": ["vertical", "horizontal", "dropdown", "select"],
15 "default": "horizontal"
16 },
17 "show_labels": {
18 "type": "string",
19 "enum": ["names", "codes", ""],
20 "default": "names"
21 },
22 "show_flags": {
23 "type": "boolean",
24 "default": false
25 },
26 "force_home": {
27 "type": "boolean",
28 "default": false
29 },
30 "hide_current": {
31 "type": "boolean",
32 "default": false
33 },
34 "hide_if_no_translation": {
35 "type": "boolean",
36 "default": false
37 },
38 "flag_aspect_ratio": {
39 "type": "string",
40 "enum": ["3:2", "1:1"],
41 "default": "3:2"
42 },
43 "flag_border_radius": {
44 "type": "number",
45 "default": 0
46 },
47 "flag_width": {
48 "type": "string",
49 "default": "18px"
50 },
51 "flag_label_spacing": {
52 "type": "string",
53 "default": "0.3em"
54 },
55 "className": {
56 "type": "string",
57 "default": ""
58 }
59 },
60 "usesContext": [
61 "textColor",
62 "customTextColor",
63 "backgroundColor",
64 "customBackgroundColor",
65 "overlayTextColor",
66 "customOverlayTextColor",
67 "overlayBackgroundColor",
68 "customOverlayBackgroundColor",
69 "fontSize",
70 "customFontSize",
71 "showSubmenuIcon",
72 "maxNestingLevel",
73 "openSubmenusOnClick",
74 "style",
75 "isResponsive",
76 "submenuVisibility"
77 ],
78 "supports": {
79 "contentRole": true
80 },
81 "textdomain": "polylang",
82 "style": "pll-navigation-language-switcher",
83 "editorStyle": "pll-navigation-language-switcher-editor",
84 "editorScript": "pll_blocks"
85 }
86