feat: rilascio 1.2.0, il widget parla italiano, inglese, tedesco e francese e di default segue la lingua del sito, anche con WPML o Polylang
All checks were successful
Release su wordpress.org / rilascio (push) Successful in 45s
All checks were successful
Release su wordpress.org / rilascio (push) Successful in 45s
This commit is contained in:
parent
368682bd07
commit
e9c483f885
8 changed files with 59 additions and 8 deletions
|
|
@ -2,7 +2,7 @@
|
|||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "piazza-in-festa/eventi",
|
||||
"version": "1.1.0",
|
||||
"version": "1.2.0",
|
||||
"title": "Piazza in Festa",
|
||||
"category": "widgets",
|
||||
"icon": "calendar-alt",
|
||||
|
|
@ -26,7 +26,8 @@
|
|||
"dal": { "type": "string", "default": "" },
|
||||
"al": { "type": "string", "default": "" },
|
||||
"cerca": { "type": "string", "default": "" },
|
||||
"font": { "type": "string", "default": "" }
|
||||
"font": { "type": "string", "default": "" },
|
||||
"lingua": { "type": "string", "default": "" }
|
||||
},
|
||||
"editorScript": "file:./index.js"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -143,6 +143,23 @@
|
|||
}
|
||||
}),
|
||||
campo('colore', __('Accent colour', 'piazza-in-festa'), __('Hex code, for instance #b4315a.', 'piazza-in-festa')),
|
||||
el(SelectControl, {
|
||||
label: __('Language', 'piazza-in-festa'),
|
||||
help: __('Event texts are shown translated when a translation is available.', 'piazza-in-festa'),
|
||||
value: a.lingua,
|
||||
options: [
|
||||
{ label: __('Same as the site', 'piazza-in-festa'), value: '' },
|
||||
{ label: 'Italiano', value: 'it' },
|
||||
{ label: 'English', value: 'en' },
|
||||
{ label: 'Deutsch', value: 'de' },
|
||||
{ label: 'Français', value: 'fr' }
|
||||
],
|
||||
__next40pxDefaultSize: true,
|
||||
__nextHasNoMarginBottom: true,
|
||||
onChange: function (v) {
|
||||
set({ lingua: v });
|
||||
}
|
||||
}),
|
||||
el(SelectControl, {
|
||||
label: __('Font', 'piazza-in-festa'),
|
||||
value: a.font,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue