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
← All changes | src/modules/Blocks/Language_Switcher/Navigation/block.json +32 -12 3.8.3 → trunk View file →
@@ -1,9 +1,9 @@
1 1 {
2 2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 3 "apiVersion": 3,
4 4 "name": "polylang/navigation-language-switcher",
5 - "version": "3.8",
5 + "version": "3.9.0.0-beta2",
6 6 "title": "Navigation Language Switcher",
7 7 "category": "design",
8 8 "parent": [ "core/navigation" ],
9 9 "description": "Language switcher suitable for navigation.",
@@ -8,32 +8,51 @@
8 8 "parent": [ "core/navigation" ],
9 9 "description": "Language switcher suitable for navigation.",
10 10 "example": {},
11 11 "attributes": {
12 - "dropdown": {
13 - "type": "boolean",
14 - "default": 0
12 + "layout": {
13 + "type": "string",
14 + "enum": ["vertical", "horizontal", "dropdown", "select"],
15 + "default": "horizontal"
15 16 },
16 - "show_names": {
17 - "type": "boolean",
18 - "default": 1
17 + "show_labels": {
18 + "type": "string",
19 + "enum": ["names", "codes", ""],
20 + "default": "names"
19 21 },
20 22 "show_flags": {
21 23 "type": "boolean",
22 - "default": 0
24 + "default": false
23 25 },
24 26 "force_home": {
25 27 "type": "boolean",
26 - "default": 0
28 + "default": false
27 29 },
28 30 "hide_current": {
29 31 "type": "boolean",
30 - "default": 0
32 + "default": false
31 33 },
32 34 "hide_if_no_translation": {
33 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",
34 45 "default": 0
35 46 },
47 + "flag_width": {
48 + "type": "string",
49 + "default": "18px"
50 + },
51 + "flag_label_spacing": {
52 + "type": "string",
53 + "default": "0.3em"
54 + },
36 55 "className": {
37 56 "type": "string",
38 57 "default": ""
39 58 }
@@ -59,7 +78,8 @@
59 78 "supports": {
60 79 "contentRole": true
61 80 },
62 81 "textdomain": "polylang",
63 - "editorScript": "pll_blocks",
64 - "editorStyle": "pll-navigation-language-switcher-editor-style"
82 + "style": "pll-navigation-language-switcher",
83 + "editorStyle": "pll-navigation-language-switcher-editor",
84 + "editorScript": "pll_blocks"
65 85 }