feat: rilascio 1.1.0, piu' categorie insieme, periodo dal/al, parola nel titolo e scelta del carattere nel blocco e nello shortcode
All checks were successful
Release su wordpress.org / rilascio (push) Successful in 35s

This commit is contained in:
Lorenzo Iovino 2026-09-29 16:11:42 +02:00
parent 1b1dda3281
commit 368682bd07
8 changed files with 112 additions and 11 deletions

View file

@ -2,7 +2,7 @@
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "piazza-in-festa/eventi",
"version": "1.0.1",
"version": "1.1.0",
"title": "Piazza in Festa",
"category": "widgets",
"icon": "calendar-alt",
@ -22,7 +22,11 @@
"tema": { "type": "string", "default": "chiaro" },
"colore": { "type": "string", "default": "" },
"titolo": { "type": "string", "default": "" },
"altezza": { "type": "string", "default": "320" }
"altezza": { "type": "string", "default": "320" },
"dal": { "type": "string", "default": "" },
"al": { "type": "string", "default": "" },
"cerca": { "type": "string", "default": "" },
"font": { "type": "string", "default": "" }
},
"editorScript": "file:./index.js"
}

View file

@ -99,6 +99,17 @@
set({ categoria: v });
}
}),
campo(
'cerca',
__('Word in the title', 'piazza-in-festa'),
__('Optional, at least 3 letters, for instance: natale.', 'piazza-in-festa')
),
campo(
'dal',
__('Starting from', 'piazza-in-festa'),
__('Optional. Only events that start in the period, format YYYY-MM-DD.', 'piazza-in-festa')
),
campo('al', __('Until', 'piazza-in-festa'), __('Optional, format YYYY-MM-DD.', 'piazza-in-festa')),
campo('limite', __('How many events', 'piazza-in-festa'), __('From 1 to 20.', 'piazza-in-festa')),
el(SelectControl, {
label: __('Layout', 'piazza-in-festa'),
@ -132,6 +143,20 @@
}
}),
campo('colore', __('Accent colour', 'piazza-in-festa'), __('Hex code, for instance #b4315a.', 'piazza-in-festa')),
el(SelectControl, {
label: __('Font', 'piazza-in-festa'),
value: a.font,
options: [
{ label: __('Visitor device font', 'piazza-in-festa'), value: '' },
{ label: 'Helvetica / Arial', value: 'helvetica' },
{ label: 'Georgia', value: 'serif' }
],
__next40pxDefaultSize: true,
__nextHasNoMarginBottom: true,
onChange: function (v) {
set({ font: v });
}
}),
campo('titolo', __('Heading', 'piazza-in-festa'), __('Leave it empty for no heading.', 'piazza-in-festa')),
campo('altezza', __('Starting height (px)', 'piazza-in-festa'), __('It adapts by itself once loaded.', 'piazza-in-festa'))
)