io-sanita-theme 2.5.3 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/RELEASE.md +6 -0
- package/locales/de/LC_MESSAGES/volto.po +10 -0
- package/locales/en/LC_MESSAGES/volto.po +10 -0
- package/locales/es/LC_MESSAGES/volto.po +10 -0
- package/locales/fr/LC_MESSAGES/volto.po +10 -0
- package/locales/it/LC_MESSAGES/volto.po +10 -0
- package/locales/volto.pot +11 -1
- package/package.json +1 -1
- package/src/components/Blocks/Accordion/accordion.scss +2 -2
- package/src/components/Blocks/Alert/alert.scss +4 -4
- package/src/components/Blocks/Icons/icons.scss +2 -2
- package/src/components/Blocks/SearchBandi/Body.jsx +4 -2
- package/src/components/BrandWrapper/BrandWrapper.jsx +3 -3
- package/src/components/Breadcrumbs/Breadcrumbs.jsx +3 -1
- package/src/components/Search/Search.jsx +1 -0
- package/src/components/View/Bando/Dates.jsx +6 -3
- package/src/components/View/Evento/Dates.jsx +21 -11
- package/src/components/Widgets/SearchCheckbox/SearchCheckbox.jsx +1 -1
- package/src/components/index.js +1 -1
- package/src/components/layout/Footer/FooterInfos.jsx +3 -2
- package/src/components/layout/Footer/FooterMain.jsx +3 -1
- package/src/components/layout/Footer/FooterSmall.jsx +5 -3
- package/src/components/layout/Footer/{SubsiteFooter.jsx → SubsiteFooter/SubsiteFooter.jsx} +1 -0
- package/src/components/layout/Footer/SubsiteFooter/subsite-footer.scss +23 -0
- package/src/components/layout/Header/HeaderSlim/HeaderSlim.jsx +3 -2
- package/src/components/layout/Header/HeaderSlim/ParentSiteMenu.jsx +3 -2
- package/src/components/manage/Widgets/SubsiteSocialLinksWidget/SubsiteSocialLinksWidget.jsx +71 -0
- package/src/config/blocks/index.js +9 -5
- package/src/config/loadables.js +2 -1
- package/src/config/subsites/index.js +28 -0
- package/src/config/subsites/light-blue.jsx +1 -0
- package/src/config/subsites/light-pink.jsx +1 -0
- package/src/config/subsites/light-teal.jsx +1 -0
- package/src/config/subsites/light-yellow.jsx +1 -0
- package/src/config/subsites/magenta.jsx +1 -0
- package/src/config/subsites/teal.jsx +1 -0
- package/src/config/subsites/white.jsx +1 -0
- package/src/config/subsites/yellow.jsx +1 -0
- package/src/config/widgets/widgets.js +7 -0
- package/src/helpers/RichText/RichTextSection.jsx +1 -4
- package/src/helpers/index.js +3 -1
- package/src/helpers/url.js +16 -0
- package/src/theme/_cms-ui.scss +7 -2
- package/src/theme/_css_variables.scss +1 -0
- package/src/theme/_variables.scss +2 -0
- package/src/theme/bootstrap-italia/custom/_buttons.scss +2 -2
- package/src/theme/io-sanita/_main.scss +8 -3
- package/src/theme/io-sanita/components/blocks/_skeleton.scss +0 -11
- package/src/theme/io-sanita/components/layout/_footer.scss +2 -4
- package/src/theme/io-sanita/subsites/_all_variables.scss +12 -0
- package/src/theme/io-sanita/subsites/_common.scss +9 -18
- package/src/theme/io-sanita/subsites/_mixin.scss +257 -0
- package/src/theme/io-sanita/subsites/bootstrap-italia/_brand-text.scss +58 -0
- package/src/theme/io-sanita/subsites/bootstrap-italia/custom/_buttons.scss +123 -0
- package/src/theme/io-sanita/subsites/bootstrap-italia/custom/_card.scss +36 -0
- package/src/theme/io-sanita/subsites/bootstrap-italia/custom/_chips.scss +66 -0
- package/src/theme/io-sanita/subsites/bootstrap-italia/custom/_dropdown.scss +17 -0
- package/src/theme/io-sanita/subsites/bootstrap-italia/custom/_header.scss +48 -0
- package/src/theme/io-sanita/subsites/bootstrap-italia/custom/_headercenter.scss +121 -0
- package/src/theme/io-sanita/subsites/bootstrap-italia/custom/_headernavbar.scss +25 -0
- package/src/theme/io-sanita/subsites/bootstrap-italia/custom/_headerslim.scss +48 -0
- package/src/theme/io-sanita/subsites/bootstrap-italia/custom/_linklist.scss +48 -0
- package/src/theme/io-sanita/subsites/bootstrap-italia/custom/_megamenu.scss +53 -0
- package/src/theme/io-sanita/subsites/bootstrap-italia/custom/_nav.scss +24 -0
- package/src/theme/io-sanita/subsites/bootstrap-italia/custom/_navigation.scss +168 -0
- package/src/theme/io-sanita/subsites/bootstrap-italia/custom/_navscroll.scss +71 -0
- package/src/theme/io-sanita/subsites/io-sanita-theme/Blocks/_calendar.scss +12 -0
- package/src/theme/io-sanita/subsites/io-sanita-theme/Blocks/_cardWithImageAndInEvidence.scss +25 -0
- package/src/theme/io-sanita/subsites/io-sanita-theme/Blocks/_cta.scss +11 -0
- package/src/theme/io-sanita/subsites/io-sanita-theme/Blocks/_form.scss +49 -0
- package/src/theme/io-sanita/subsites/io-sanita-theme/Blocks/_iconBlock.scss +14 -0
- package/src/theme/io-sanita/subsites/io-sanita-theme/Blocks/_ribbonCardTemplate.scss +18 -0
- package/src/theme/io-sanita/subsites/io-sanita-theme/Blocks/_squaresImageTemplateAndSlideUp.scss +52 -0
- package/src/theme/io-sanita/subsites/io-sanita-theme/Blocks/_tableOfContents.scss +17 -0
- package/src/theme/io-sanita/subsites/io-sanita-theme/Components/_cards.scss +11 -0
- package/src/theme/io-sanita/subsites/io-sanita-theme/Components/_subsiteFooter.scss +37 -0
- package/src/theme/io-sanita/subsites/io-sanita-theme/Components/_subsiteHeader.scss +37 -0
- package/src/theme/io-sanita/subsites/io-sanita-theme/Views/_common.scss +107 -0
- package/src/theme/io-sanita/subsites/io-sanita-theme/Widgets/reactSelect.scss +14 -0
- package/src/theme/io-sanita/subsites/io-sanita-theme/_common.scss +252 -0
- package/src/theme/io-sanita/subsites/light-blue.scss +17 -0
- package/src/theme/io-sanita/subsites/light-pink.scss +18 -0
- package/src/theme/io-sanita/subsites/light-teal.scss +19 -0
- package/src/theme/io-sanita/subsites/light-yellow.scss +18 -0
- package/src/theme/io-sanita/subsites/magenta.scss +16 -0
- package/src/theme/io-sanita/subsites/teal.scss +14 -0
- package/src/theme/io-sanita/subsites/templates/_light-pink.scss +21 -0
- package/src/theme/io-sanita/subsites/templates/_light-teal.scss +21 -0
- package/src/theme/io-sanita/subsites/templates/_light-yellow.scss +21 -0
- package/src/theme/io-sanita/subsites/templates/_white.scss +109 -0
- package/src/theme/io-sanita/subsites/white.scss +18 -0
- package/src/theme/io-sanita/subsites/yellow.scss +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.7.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.6.0...2.7.0) (2025-03-12)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* Subsites styles ([#72](https://github.com/RedTurtle/io-sanita-theme/issues/72)) ([813af14](https://github.com/RedTurtle/io-sanita-theme/commit/813af14ea6e8ea1a46b96ddf8c61c925147d6088))
|
|
8
|
+
|
|
9
|
+
### Maintenance
|
|
10
|
+
|
|
11
|
+
* locales ([f8e4092](https://github.com/RedTurtle/io-sanita-theme/commit/f8e4092efe0edef933fe3a8c785b994a5047670b))
|
|
12
|
+
|
|
13
|
+
## [2.6.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.5.3...2.6.0) (2025-03-11)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* added all listing variation to Search block ([100880f](https://github.com/RedTurtle/io-sanita-theme/commit/100880f76bcccab88f4055eef6a8a996bc4bc108))
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* a11y Bando and Event dates ([233d8d1](https://github.com/RedTurtle/io-sanita-theme/commit/233d8d10bd6e6c606fbc79f2b7f4c46196cf5b2a))
|
|
22
|
+
|
|
3
23
|
## [2.5.3](https://github.com/RedTurtle/io-sanita-theme/compare/2.5.2...2.5.3) (2025-03-05)
|
|
4
24
|
|
|
5
25
|
### Bug Fixes
|
package/RELEASE.md
CHANGED
|
@@ -1493,6 +1493,11 @@ msgstr ""
|
|
|
1493
1493
|
msgid "documento_servizio_riferimento"
|
|
1494
1494
|
msgstr ""
|
|
1495
1495
|
|
|
1496
|
+
#. Default: "Fatto"
|
|
1497
|
+
#: components/manage/Widgets/SubsiteSocialLinksWidget/SubsiteSocialLinksWidget
|
|
1498
|
+
msgid "done_edit_social_links"
|
|
1499
|
+
msgstr ""
|
|
1500
|
+
|
|
1496
1501
|
#. Default: "Navigazione elementi slider"
|
|
1497
1502
|
#: components/Blocks/Listing/Carousel/CarouselTemplate
|
|
1498
1503
|
msgid "dots"
|
|
@@ -1513,6 +1518,11 @@ msgstr ""
|
|
|
1513
1518
|
msgid "dropdownmenu-close-menu-button"
|
|
1514
1519
|
msgstr ""
|
|
1515
1520
|
|
|
1521
|
+
#. Default: "Modifica i social"
|
|
1522
|
+
#: components/manage/Widgets/SubsiteSocialLinksWidget/SubsiteSocialLinksWidget
|
|
1523
|
+
msgid "edit_social_links"
|
|
1524
|
+
msgstr ""
|
|
1525
|
+
|
|
1516
1526
|
#. Default: "Email"
|
|
1517
1527
|
#: components/View/PuntoDiContatto/PuntoDiContattoContatti
|
|
1518
1528
|
msgid "email"
|
|
@@ -1488,6 +1488,11 @@ msgstr "Responsabile"
|
|
|
1488
1488
|
msgid "documento_servizio_riferimento"
|
|
1489
1489
|
msgstr "Referral service"
|
|
1490
1490
|
|
|
1491
|
+
#. Default: "Fatto"
|
|
1492
|
+
#: components/manage/Widgets/SubsiteSocialLinksWidget/SubsiteSocialLinksWidget
|
|
1493
|
+
msgid "done_edit_social_links"
|
|
1494
|
+
msgstr ""
|
|
1495
|
+
|
|
1491
1496
|
#. Default: "Navigazione elementi slider"
|
|
1492
1497
|
#: components/Blocks/Listing/Carousel/CarouselTemplate
|
|
1493
1498
|
msgid "dots"
|
|
@@ -1508,6 +1513,11 @@ msgstr "Open menu"
|
|
|
1508
1513
|
msgid "dropdownmenu-close-menu-button"
|
|
1509
1514
|
msgstr "Close menu"
|
|
1510
1515
|
|
|
1516
|
+
#. Default: "Modifica i social"
|
|
1517
|
+
#: components/manage/Widgets/SubsiteSocialLinksWidget/SubsiteSocialLinksWidget
|
|
1518
|
+
msgid "edit_social_links"
|
|
1519
|
+
msgstr ""
|
|
1520
|
+
|
|
1511
1521
|
#. Default: "Email"
|
|
1512
1522
|
#: components/View/PuntoDiContatto/PuntoDiContattoContatti
|
|
1513
1523
|
msgid "email"
|
|
@@ -1495,6 +1495,11 @@ msgstr ""
|
|
|
1495
1495
|
msgid "documento_servizio_riferimento"
|
|
1496
1496
|
msgstr ""
|
|
1497
1497
|
|
|
1498
|
+
#. Default: "Fatto"
|
|
1499
|
+
#: components/manage/Widgets/SubsiteSocialLinksWidget/SubsiteSocialLinksWidget
|
|
1500
|
+
msgid "done_edit_social_links"
|
|
1501
|
+
msgstr ""
|
|
1502
|
+
|
|
1498
1503
|
#. Default: "Navigazione elementi slider"
|
|
1499
1504
|
#: components/Blocks/Listing/Carousel/CarouselTemplate
|
|
1500
1505
|
msgid "dots"
|
|
@@ -1515,6 +1520,11 @@ msgstr ""
|
|
|
1515
1520
|
msgid "dropdownmenu-close-menu-button"
|
|
1516
1521
|
msgstr "Cerrar menú"
|
|
1517
1522
|
|
|
1523
|
+
#. Default: "Modifica i social"
|
|
1524
|
+
#: components/manage/Widgets/SubsiteSocialLinksWidget/SubsiteSocialLinksWidget
|
|
1525
|
+
msgid "edit_social_links"
|
|
1526
|
+
msgstr ""
|
|
1527
|
+
|
|
1518
1528
|
#. Default: "Email"
|
|
1519
1529
|
#: components/View/PuntoDiContatto/PuntoDiContattoContatti
|
|
1520
1530
|
msgid "email"
|
|
@@ -1495,6 +1495,11 @@ msgstr ""
|
|
|
1495
1495
|
msgid "documento_servizio_riferimento"
|
|
1496
1496
|
msgstr ""
|
|
1497
1497
|
|
|
1498
|
+
#. Default: "Fatto"
|
|
1499
|
+
#: components/manage/Widgets/SubsiteSocialLinksWidget/SubsiteSocialLinksWidget
|
|
1500
|
+
msgid "done_edit_social_links"
|
|
1501
|
+
msgstr ""
|
|
1502
|
+
|
|
1498
1503
|
#. Default: "Navigazione elementi slider"
|
|
1499
1504
|
#: components/Blocks/Listing/Carousel/CarouselTemplate
|
|
1500
1505
|
msgid "dots"
|
|
@@ -1515,6 +1520,11 @@ msgstr ""
|
|
|
1515
1520
|
msgid "dropdownmenu-close-menu-button"
|
|
1516
1521
|
msgstr "Fermer le menu"
|
|
1517
1522
|
|
|
1523
|
+
#. Default: "Modifica i social"
|
|
1524
|
+
#: components/manage/Widgets/SubsiteSocialLinksWidget/SubsiteSocialLinksWidget
|
|
1525
|
+
msgid "edit_social_links"
|
|
1526
|
+
msgstr ""
|
|
1527
|
+
|
|
1518
1528
|
#. Default: "Email"
|
|
1519
1529
|
#: components/View/PuntoDiContatto/PuntoDiContattoContatti
|
|
1520
1530
|
msgid "email"
|
|
@@ -1488,6 +1488,11 @@ msgstr ""
|
|
|
1488
1488
|
msgid "documento_servizio_riferimento"
|
|
1489
1489
|
msgstr ""
|
|
1490
1490
|
|
|
1491
|
+
#. Default: "Fatto"
|
|
1492
|
+
#: components/manage/Widgets/SubsiteSocialLinksWidget/SubsiteSocialLinksWidget
|
|
1493
|
+
msgid "done_edit_social_links"
|
|
1494
|
+
msgstr ""
|
|
1495
|
+
|
|
1491
1496
|
#. Default: "Navigazione elementi slider"
|
|
1492
1497
|
#: components/Blocks/Listing/Carousel/CarouselTemplate
|
|
1493
1498
|
msgid "dots"
|
|
@@ -1508,6 +1513,11 @@ msgstr ""
|
|
|
1508
1513
|
msgid "dropdownmenu-close-menu-button"
|
|
1509
1514
|
msgstr "Chiudi il menu"
|
|
1510
1515
|
|
|
1516
|
+
#. Default: "Modifica i social"
|
|
1517
|
+
#: components/manage/Widgets/SubsiteSocialLinksWidget/SubsiteSocialLinksWidget
|
|
1518
|
+
msgid "edit_social_links"
|
|
1519
|
+
msgstr ""
|
|
1520
|
+
|
|
1511
1521
|
#. Default: "Email"
|
|
1512
1522
|
#: components/View/PuntoDiContatto/PuntoDiContattoContatti
|
|
1513
1523
|
msgid "email"
|
package/locales/volto.pot
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
msgid ""
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Plone\n"
|
|
4
|
-
"POT-Creation-Date: 2025-03-
|
|
4
|
+
"POT-Creation-Date: 2025-03-12T11:53:17.365Z\n"
|
|
5
5
|
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
6
6
|
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
7
7
|
"Content-Type: text/plain; charset=utf-8\n"
|
|
@@ -1490,6 +1490,11 @@ msgstr ""
|
|
|
1490
1490
|
msgid "documento_servizio_riferimento"
|
|
1491
1491
|
msgstr ""
|
|
1492
1492
|
|
|
1493
|
+
#. Default: "Fatto"
|
|
1494
|
+
#: components/manage/Widgets/SubsiteSocialLinksWidget/SubsiteSocialLinksWidget
|
|
1495
|
+
msgid "done_edit_social_links"
|
|
1496
|
+
msgstr ""
|
|
1497
|
+
|
|
1493
1498
|
#. Default: "Navigazione elementi slider"
|
|
1494
1499
|
#: components/Blocks/Listing/Carousel/CarouselTemplate
|
|
1495
1500
|
msgid "dots"
|
|
@@ -1510,6 +1515,11 @@ msgstr ""
|
|
|
1510
1515
|
msgid "dropdownmenu-close-menu-button"
|
|
1511
1516
|
msgstr ""
|
|
1512
1517
|
|
|
1518
|
+
#. Default: "Modifica i social"
|
|
1519
|
+
#: components/manage/Widgets/SubsiteSocialLinksWidget/SubsiteSocialLinksWidget
|
|
1520
|
+
msgid "edit_social_links"
|
|
1521
|
+
msgstr ""
|
|
1522
|
+
|
|
1513
1523
|
#. Default: "Email"
|
|
1514
1524
|
#: components/View/PuntoDiContatto/PuntoDiContattoContatti
|
|
1515
1525
|
msgid "email"
|
package/package.json
CHANGED
|
@@ -89,7 +89,7 @@ $accordion-icon-color: #7fb2e5;
|
|
|
89
89
|
button {
|
|
90
90
|
display: flex;
|
|
91
91
|
align-items: center;
|
|
92
|
-
color: var(--bs-
|
|
92
|
+
color: var(--bs-link-color);
|
|
93
93
|
font-size: 1.2rem;
|
|
94
94
|
font-weight: bold;
|
|
95
95
|
text-align: left;
|
|
@@ -108,7 +108,7 @@ $accordion-icon-color: #7fb2e5;
|
|
|
108
108
|
align-items: center;
|
|
109
109
|
|
|
110
110
|
.title {
|
|
111
|
-
color: var(--bs-
|
|
111
|
+
color: var(--bs-link-color);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
button {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
h5,
|
|
16
16
|
h6,
|
|
17
17
|
a {
|
|
18
|
-
color: $alert-danger-text;
|
|
18
|
+
color: $alert-danger-text !important;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
&,
|
|
24
24
|
.cms-ui &.ui.button,
|
|
25
25
|
.cms-ui &.ui.button.active {
|
|
26
|
-
background-color: $alert-warning;
|
|
26
|
+
background-color: $alert-warning !important;
|
|
27
27
|
}
|
|
28
28
|
&,
|
|
29
29
|
h1,
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
h5,
|
|
34
34
|
h6,
|
|
35
35
|
a {
|
|
36
|
-
color: $alert-warning-text;
|
|
36
|
+
color: $alert-warning-text !important;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
h5,
|
|
52
52
|
h6,
|
|
53
53
|
a {
|
|
54
|
-
color: $alert-info-text;
|
|
54
|
+
color: $alert-info-text !important;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
&.bg-primary-lightest:after {
|
|
65
65
|
background-color: rgb(
|
|
66
66
|
from var(--primary-lightest) r g b / 85%
|
|
67
|
-
); //
|
|
67
|
+
); // serve per fare la trasparenza sull'immagine di sfondo.
|
|
68
68
|
}
|
|
69
69
|
&.bg-primary-dark:after {
|
|
70
70
|
background-color: rgb(
|
|
71
71
|
from var(--primary-dark) r g b / 85%
|
|
72
|
-
); //
|
|
72
|
+
); // serve per fare la trasparenza sull'immagine di sfondo.
|
|
73
73
|
}
|
|
74
74
|
&.transparent:after {
|
|
75
75
|
background-color: none;
|
|
@@ -10,7 +10,7 @@ import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
|
10
10
|
import { BandiTemplate } from 'io-sanita-theme/components/Blocks';
|
|
11
11
|
import { Pagination } from 'io-sanita-theme/components';
|
|
12
12
|
import { resetQuerystringResults } from 'io-sanita-theme/actions';
|
|
13
|
-
import { scrollIntoView } from 'io-sanita-theme/helpers';
|
|
13
|
+
import { scrollIntoView, useHomePath } from 'io-sanita-theme/helpers';
|
|
14
14
|
|
|
15
15
|
const messages = defineMessages({
|
|
16
16
|
find: {
|
|
@@ -30,6 +30,7 @@ const messages = defineMessages({
|
|
|
30
30
|
const Body = ({ data, id, inEditMode, path, onChangeBlock, blocksConfig }) => {
|
|
31
31
|
const intl = useIntl();
|
|
32
32
|
const b_size = 6;
|
|
33
|
+
const homepath = useHomePath();
|
|
33
34
|
|
|
34
35
|
moment.locale(intl.locale);
|
|
35
36
|
|
|
@@ -128,7 +129,8 @@ const Body = ({ data, id, inEditMode, path, onChangeBlock, blocksConfig }) => {
|
|
|
128
129
|
return newState;
|
|
129
130
|
};
|
|
130
131
|
|
|
131
|
-
const pathSearch =
|
|
132
|
+
const pathSearch =
|
|
133
|
+
data?.location?.length > 0 ? data.location[0]['@id'] : homepath;
|
|
132
134
|
const FiltersConfigFN = blocksConfig['searchBandi'].filtersConfig;
|
|
133
135
|
const filtersConfig = FiltersConfigFN
|
|
134
136
|
? FiltersConfigFN(null, pathSearch)
|
|
@@ -4,7 +4,7 @@ import { useSelector } from 'react-redux';
|
|
|
4
4
|
import { useIntl, defineMessages } from 'react-intl';
|
|
5
5
|
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
6
6
|
import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
|
|
7
|
-
import { getSiteProperty } from 'io-sanita-theme/helpers';
|
|
7
|
+
import { getSiteProperty, useHomePath } from 'io-sanita-theme/helpers';
|
|
8
8
|
import { Logo, BrandText } from 'io-sanita-theme/components';
|
|
9
9
|
|
|
10
10
|
const messages = defineMessages({
|
|
@@ -20,7 +20,7 @@ const messages = defineMessages({
|
|
|
20
20
|
|
|
21
21
|
const BrandWrapper = ({ mobile = false, setCollapseOpen }) => {
|
|
22
22
|
const subsite = useSelector((state) => state.subsite?.data);
|
|
23
|
-
|
|
23
|
+
const homepath = useHomePath();
|
|
24
24
|
const intl = useIntl();
|
|
25
25
|
|
|
26
26
|
let wrapperAttrs = {};
|
|
@@ -34,7 +34,7 @@ const BrandWrapper = ({ mobile = false, setCollapseOpen }) => {
|
|
|
34
34
|
return (
|
|
35
35
|
<div className="it-brand-wrapper" {...wrapperAttrs}>
|
|
36
36
|
<UniversalLink
|
|
37
|
-
href={subsite?.['@id'] ? flattenToAppURL(subsite['@id']) :
|
|
37
|
+
href={subsite?.['@id'] ? flattenToAppURL(subsite['@id']) : homepath}
|
|
38
38
|
title={intl.formatMessage(messages.homepage)}
|
|
39
39
|
{...linkAttrs}
|
|
40
40
|
>
|
|
@@ -20,6 +20,7 @@ import UniversalLink from '@plone/volto/components/manage/UniversalLink/Universa
|
|
|
20
20
|
import { Row, Col, BreadcrumbItem } from 'design-react-kit';
|
|
21
21
|
import GoogleBreadcrumbs from 'io-sanita-theme/components/Breadcrumbs/GoogleBreadcrumbs';
|
|
22
22
|
import config from '@plone/volto/registry';
|
|
23
|
+
import { useHomePath } from 'io-sanita-theme/helpers';
|
|
23
24
|
|
|
24
25
|
const messages = defineMessages({
|
|
25
26
|
home: {
|
|
@@ -36,6 +37,7 @@ const Breadcrumbs = ({ pathname, match }) => {
|
|
|
36
37
|
const intl = useIntl();
|
|
37
38
|
const dispatch = useDispatch();
|
|
38
39
|
const location = useLocation();
|
|
40
|
+
const homepath = useHomePath();
|
|
39
41
|
|
|
40
42
|
let items =
|
|
41
43
|
useSelector((state) => {
|
|
@@ -142,7 +144,7 @@ const Breadcrumbs = ({ pathname, match }) => {
|
|
|
142
144
|
>
|
|
143
145
|
<ol className="breadcrumb" data-element="breadcrumb">
|
|
144
146
|
<BreadcrumbItem tag="li">
|
|
145
|
-
<UniversalLink href=
|
|
147
|
+
<UniversalLink href={homepath}>
|
|
146
148
|
{intl.formatMessage(messages.home)}
|
|
147
149
|
</UniversalLink>
|
|
148
150
|
<span className="separator">/</span>
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
|
|
21
21
|
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
22
22
|
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
23
|
+
import { resetSubsite } from 'volto-subsites';
|
|
23
24
|
import { getSearchFilters, getSearchResults } from 'io-sanita-theme/actions';
|
|
24
25
|
import {
|
|
25
26
|
SearchBar,
|
|
@@ -90,11 +90,14 @@ const BandoDates = ({ content }) => {
|
|
|
90
90
|
return (
|
|
91
91
|
item.date && (
|
|
92
92
|
<div className="point-list" key={index}>
|
|
93
|
-
<div
|
|
94
|
-
|
|
93
|
+
<div
|
|
94
|
+
className="point-list-aside point-list-warning"
|
|
95
|
+
aria-label={item.date.format('DD MMMM Y')}
|
|
96
|
+
>
|
|
97
|
+
<span className="point-date text-monospace" aria-hidden={true}>
|
|
95
98
|
{item.date.format('DD')}
|
|
96
99
|
</span>
|
|
97
|
-
<span className="point-month text-monospace">
|
|
100
|
+
<span className="point-month text-monospace" aria-hidden={true}>
|
|
98
101
|
{item.date.format('MMM')}/{item.date.format('YY')}
|
|
99
102
|
</span>
|
|
100
103
|
</div>
|
|
@@ -80,13 +80,20 @@ const Dates = ({ content, show_image, moment: momentlib, rrule }) => {
|
|
|
80
80
|
<>
|
|
81
81
|
<div className="point-list-wrapper my-4 mb-5">
|
|
82
82
|
<div className="point-list">
|
|
83
|
-
<div
|
|
84
|
-
|
|
83
|
+
<div
|
|
84
|
+
className="point-list-aside point-list-primary fw-normal"
|
|
85
|
+
aria-label={start.format('DD MMMM Y')}
|
|
86
|
+
>
|
|
87
|
+
<span className="point-date font-monospace" aria-hidden={true}>
|
|
85
88
|
{start.format('DD')}
|
|
86
89
|
</span>
|
|
87
|
-
<span className="point-month font-monospace"
|
|
90
|
+
<span className="point-month font-monospace" aria-hidden={true}>
|
|
91
|
+
{start.format('MMMM')}
|
|
92
|
+
</span>
|
|
88
93
|
{!start.isSame(end, 'year') && (
|
|
89
|
-
<span className="point-month font-monospace"
|
|
94
|
+
<span className="point-month font-monospace" aria-hidden={true}>
|
|
95
|
+
{start.format('YYYY')}
|
|
96
|
+
</span>
|
|
90
97
|
)}
|
|
91
98
|
</div>
|
|
92
99
|
<div className="point-list-content">
|
|
@@ -111,15 +118,18 @@ const Dates = ({ content, show_image, moment: momentlib, rrule }) => {
|
|
|
111
118
|
</div>
|
|
112
119
|
{!openEnd && (
|
|
113
120
|
<div className="point-list">
|
|
114
|
-
<div
|
|
115
|
-
|
|
121
|
+
<div
|
|
122
|
+
className="point-list-aside point-list-primary fw-normal"
|
|
123
|
+
aria-label={end.format('DD MMMM Y')}
|
|
124
|
+
>
|
|
125
|
+
<span className="point-date font-monospace" aria-hidden={true}>
|
|
116
126
|
{end.format('DD')}
|
|
117
127
|
</span>
|
|
118
|
-
<span className="point-month font-monospace">
|
|
128
|
+
<span className="point-month font-monospace" aria-hidden={true}>
|
|
119
129
|
{end.format('MMMM')}
|
|
120
130
|
</span>
|
|
121
131
|
{!end.isSame(start, 'year') && (
|
|
122
|
-
<span className="point-month font-monospace">
|
|
132
|
+
<span className="point-month font-monospace" aria-hidden={true}>
|
|
123
133
|
{end.format('YYYY')}
|
|
124
134
|
</span>
|
|
125
135
|
)}
|
|
@@ -149,7 +159,7 @@ const Dates = ({ content, show_image, moment: momentlib, rrule }) => {
|
|
|
149
159
|
{additionalDates.length > 0 && (
|
|
150
160
|
<div className="mt-4">
|
|
151
161
|
<h5>{intl.formatMessage(messages.additional_dates)}</h5>
|
|
152
|
-
{additionalDates.map((additionalDate,i) => (
|
|
162
|
+
{additionalDates.map((additionalDate, i) => (
|
|
153
163
|
<div className="font-serif" key={i}>
|
|
154
164
|
{viewDate(intl.locale, additionalDate, 'dddd DD MMMM YYYY')}
|
|
155
165
|
</div>
|
|
@@ -159,8 +169,8 @@ const Dates = ({ content, show_image, moment: momentlib, rrule }) => {
|
|
|
159
169
|
{exdates.length > 0 && (
|
|
160
170
|
<div className="mt-4">
|
|
161
171
|
<h5>{intl.formatMessage(messages.excluded_dates)}</h5>
|
|
162
|
-
{exdates.map((exDate,i) => (
|
|
163
|
-
<div className="font-serif" key={'exdate'+i}>
|
|
172
|
+
{exdates.map((exDate, i) => (
|
|
173
|
+
<div className="font-serif" key={'exdate' + i}>
|
|
164
174
|
{viewDate(intl.locale, exDate, 'dddd DD MMMM YYYY')}
|
|
165
175
|
</div>
|
|
166
176
|
))}
|
|
@@ -148,7 +148,7 @@ const SearchCheckbox = ({
|
|
|
148
148
|
{/* NUMBER OF CHECKBOX SELECTED */}
|
|
149
149
|
{showActiveOptions && (
|
|
150
150
|
<span
|
|
151
|
-
className={cx('badge bg-
|
|
151
|
+
className={cx('badge bg-primary ms-3', {
|
|
152
152
|
'visually-hidden': activeOptions === 0,
|
|
153
153
|
})}
|
|
154
154
|
aria-live="polite"
|
package/src/components/index.js
CHANGED
|
@@ -50,7 +50,7 @@ export FooterInfos from 'io-sanita-theme/components/layout/Footer/FooterInfos';
|
|
|
50
50
|
export FooterNewsletterSubscribe from 'io-sanita-theme/components/layout/Footer/FooterInfos';
|
|
51
51
|
export FooterSocials from 'io-sanita-theme/components/layout/Footer/FooterSocials';
|
|
52
52
|
export FooterSmall from 'io-sanita-theme/components/layout/Footer/FooterSmall';
|
|
53
|
-
export SubsiteFooter from 'io-sanita-theme/components/layout/Footer/SubsiteFooter';
|
|
53
|
+
export SubsiteFooter from 'io-sanita-theme/components/layout/Footer/SubsiteFooter/SubsiteFooter';
|
|
54
54
|
|
|
55
55
|
//Menu
|
|
56
56
|
export CollapseNavigation from 'io-sanita-theme/components/layout/Navigation/CollapseNavigation';
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
FooterNewsletterSubscribe,
|
|
20
20
|
FooterSocials,
|
|
21
21
|
} from 'io-sanita-theme/components';
|
|
22
|
-
import { richTextHasContent } from 'io-sanita-theme/helpers';
|
|
22
|
+
import { richTextHasContent, useHomePath } from 'io-sanita-theme/helpers';
|
|
23
23
|
|
|
24
24
|
import { fromHtml } from 'volto-slate-italia/config/Slate/utils';
|
|
25
25
|
|
|
@@ -35,6 +35,7 @@ const FooterInfos = () => {
|
|
|
35
35
|
const N_COLUMNS = 3;
|
|
36
36
|
const location = useLocation();
|
|
37
37
|
const dispatch = useDispatch();
|
|
38
|
+
const homepath = useHomePath();
|
|
38
39
|
|
|
39
40
|
const req = useSelector((state) => state.editableFooterColumns);
|
|
40
41
|
const footerConfiguration = useSelector(
|
|
@@ -50,7 +51,7 @@ const FooterInfos = () => {
|
|
|
50
51
|
//filter rootpaths
|
|
51
52
|
let footerColumns = getItemsByPath(
|
|
52
53
|
footerConfiguration,
|
|
53
|
-
location?.pathname?.length ? location.pathname :
|
|
54
|
+
location?.pathname?.length ? location.pathname : homepath,
|
|
54
55
|
).filter((c) => c.visible);
|
|
55
56
|
|
|
56
57
|
footerColumns.forEach((column) => {
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
LogoFooter,
|
|
14
14
|
BrandTextFooter,
|
|
15
15
|
} from 'io-sanita-theme/components/';
|
|
16
|
+
import { useHomePath } from 'io-sanita-theme/helpers';
|
|
16
17
|
|
|
17
18
|
import { FooterTop } from 'volto-editablefooter';
|
|
18
19
|
|
|
@@ -24,6 +25,7 @@ import { FooterTop } from 'volto-editablefooter';
|
|
|
24
25
|
const FooterMain = () => {
|
|
25
26
|
const footerTopContent = FooterTop();
|
|
26
27
|
const footerNavigation = FooterNavigation();
|
|
28
|
+
const homepath = useHomePath();
|
|
27
29
|
return (
|
|
28
30
|
<div className="it-footer-main">
|
|
29
31
|
<Container tag="div">
|
|
@@ -32,7 +34,7 @@ const FooterMain = () => {
|
|
|
32
34
|
<Col sm={12} tag="div" widths={['xs', 'sm', 'md', 'lg', 'xl']}>
|
|
33
35
|
<div className="it-brand-wrapper">
|
|
34
36
|
{footerTopContent ?? (
|
|
35
|
-
<UniversalLink href=
|
|
37
|
+
<UniversalLink href={homepath}>
|
|
36
38
|
<LogoFooter />
|
|
37
39
|
<BrandTextFooter />
|
|
38
40
|
</UniversalLink>
|
|
@@ -15,7 +15,7 @@ import { displayBanner } from 'volto-gdpr-privacy';
|
|
|
15
15
|
|
|
16
16
|
import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
|
|
17
17
|
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
18
|
-
import { getSiteProperty } from 'io-sanita-theme/helpers';
|
|
18
|
+
import { getSiteProperty, useHomePath } from 'io-sanita-theme/helpers';
|
|
19
19
|
|
|
20
20
|
const messages = defineMessages({
|
|
21
21
|
goToPage: {
|
|
@@ -37,7 +37,7 @@ const FooterSmall = () => {
|
|
|
37
37
|
const intl = useIntl();
|
|
38
38
|
const pathname = useLocation().pathname;
|
|
39
39
|
const dispatch = useDispatch();
|
|
40
|
-
|
|
40
|
+
const homepath = useHomePath();
|
|
41
41
|
const subFooter = useSelector((state) => state.subFooter?.result);
|
|
42
42
|
const subFooterItems = getItemsByPath(subFooter, pathname)?.filter(
|
|
43
43
|
(item) => item.visible,
|
|
@@ -56,7 +56,9 @@ const FooterSmall = () => {
|
|
|
56
56
|
{subFooterItems?.length > 0 &&
|
|
57
57
|
subFooterItems.map((item, index) => {
|
|
58
58
|
let url =
|
|
59
|
-
item.href ||
|
|
59
|
+
item.href ||
|
|
60
|
+
flattenToAppURL(item.linkUrl?.[0]?.['@id']) ||
|
|
61
|
+
homepath;
|
|
60
62
|
return (
|
|
61
63
|
<li
|
|
62
64
|
className={cx('list-inline-item', {
|
|
@@ -9,6 +9,7 @@ import { useLocation } from 'react-router-dom';
|
|
|
9
9
|
import { isCmsUi } from '@plone/volto/helpers/Url/Url';
|
|
10
10
|
import { flattenHTMLToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
11
11
|
import { richTextHasContent } from 'io-sanita-theme/helpers';
|
|
12
|
+
import './subsite-footer.scss';
|
|
12
13
|
|
|
13
14
|
const SubsiteFooter = () => {
|
|
14
15
|
const location = useLocation();
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@import 'io-sanita-theme/theme/bootstrap-italia-base-config';
|
|
2
|
+
|
|
3
|
+
.subsite-footer {
|
|
4
|
+
//default bg color as main site
|
|
5
|
+
padding: 2rem 0;
|
|
6
|
+
background-color: $footer-top-background;
|
|
7
|
+
color: $white;
|
|
8
|
+
border-bottom: var(--is-footer-borders); // $footer-borders;
|
|
9
|
+
|
|
10
|
+
&,
|
|
11
|
+
p,
|
|
12
|
+
ul {
|
|
13
|
+
font-size: $footer-font-size;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
a {
|
|
17
|
+
color: $white;
|
|
18
|
+
|
|
19
|
+
&:hover:not(.disabled) {
|
|
20
|
+
text-decoration: underline;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
HeaderRightZone,
|
|
14
14
|
} from 'design-react-kit';
|
|
15
15
|
import { useIntl, defineMessages } from 'react-intl';
|
|
16
|
-
import { getSiteProperty } from 'io-sanita-theme/helpers';
|
|
16
|
+
import { getSiteProperty, useHomePath } from 'io-sanita-theme/helpers';
|
|
17
17
|
import { SiteProperty } from 'volto-site-settings';
|
|
18
18
|
|
|
19
19
|
const messages = defineMessages({
|
|
@@ -25,9 +25,10 @@ const messages = defineMessages({
|
|
|
25
25
|
const HeaderSlim = () => {
|
|
26
26
|
const subsite = useSelector((state) => state.subsite?.data);
|
|
27
27
|
const intl = useIntl();
|
|
28
|
+
const homepath = useHomePath();
|
|
28
29
|
|
|
29
30
|
const parentSiteURL = subsite
|
|
30
|
-
?
|
|
31
|
+
? homepath
|
|
31
32
|
: getSiteProperty('parentSiteURL', intl.locale);
|
|
32
33
|
|
|
33
34
|
const staticParentSiteTitle = getSiteProperty('parentSiteTitle', intl.locale);
|
|
@@ -8,7 +8,7 @@ import { useSelector } from 'react-redux';
|
|
|
8
8
|
import { Link } from 'react-router-dom';
|
|
9
9
|
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
10
10
|
import { Nav, NavItem, NavLink } from 'design-react-kit';
|
|
11
|
-
|
|
11
|
+
import { useHomePath } from 'io-sanita-theme/helpers';
|
|
12
12
|
import { defineMessages, useIntl } from 'react-intl';
|
|
13
13
|
|
|
14
14
|
const messages = defineMessages({
|
|
@@ -24,6 +24,7 @@ const ParentSiteMenu = () => {
|
|
|
24
24
|
(state) => state.dropdownMenuNavItems?.result,
|
|
25
25
|
);
|
|
26
26
|
const subsite = useSelector((state) => state.subsite?.data);
|
|
27
|
+
const homepath = useHomePath();
|
|
27
28
|
|
|
28
29
|
let menu = null;
|
|
29
30
|
if (subsite) {
|
|
@@ -33,7 +34,7 @@ const ParentSiteMenu = () => {
|
|
|
33
34
|
let i = url_split.length - 1;
|
|
34
35
|
while (i > 0) {
|
|
35
36
|
let s = url_split.slice(0, i).join('/');
|
|
36
|
-
s = s.length === 0 ?
|
|
37
|
+
s = s.length === 0 ? homepath : s;
|
|
37
38
|
// eslint-disable-next-line no-loop-func
|
|
38
39
|
dropdownMenu.forEach((m) => {
|
|
39
40
|
if (m.rootPath === s) {
|