forked from italia/design-comuni-plone-theme
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into us_51188_a11y_edit_blocks
- Loading branch information
Showing
24 changed files
with
245 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Plone\n" | ||
"POT-Creation-Date: 2025-01-22T15:35:43.837Z\n" | ||
"POT-Creation-Date: 2025-01-27T16:32:40.367Z\n" | ||
"Last-Translator: Plone i18n <[email protected]>\n" | ||
"Language-Team: Plone i18n <[email protected]>\n" | ||
"MIME-Version: 1.0\n" | ||
|
@@ -2922,16 +2922,11 @@ msgstr "" | |
msgid "order_by" | ||
msgstr "" | ||
|
||
#: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreInterno | ||
#: components/ItaliaTheme/View/EventoView/EventoOrganizzatoDa | ||
# defaultMessage: Organizzato da | ||
msgid "organizzato_da" | ||
msgstr "" | ||
|
||
#: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno | ||
# defaultMessage: Organizzatore | ||
msgid "organizzatore" | ||
msgstr "" | ||
|
||
#: components/ItaliaTheme/View/Commons/TrasparenzaFields | ||
#: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView | ||
# defaultMessage: Organo competente adozione provvedimento finale | ||
|
@@ -2979,7 +2974,7 @@ msgstr "" | |
msgid "parteciperanno" | ||
msgstr "" | ||
|
||
#: components/ItaliaTheme/View/EventoView/EventoUlterioriInformazioni | ||
#: components/ItaliaTheme/View/EventoView/EventoPatrocinatoDa | ||
# defaultMessage: Patrocinato da | ||
msgid "patrocinato_da" | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 1 addition & 12 deletions
13
src/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 1 addition & 12 deletions
13
src/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreInterno.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/components/ItaliaTheme/View/EventoView/EventoOrganizzatoDa.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { defineMessages, useIntl } from 'react-intl'; | ||
import { richTextHasContent } from 'design-comuni-plone-theme/components/ItaliaTheme/View'; | ||
import EventoContattiOrganizzatoreInterno from 'design-comuni-plone-theme/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreInterno'; | ||
import EventoContattiOrganizzatoreEsterno from 'design-comuni-plone-theme/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno'; | ||
|
||
const messages = defineMessages({ | ||
organizzato_da: { | ||
id: 'organizzato_da', | ||
defaultMessage: 'Organizzato da', | ||
}, | ||
}); | ||
|
||
const EventoOrganizzatoDa = ({ content }) => { | ||
const intl = useIntl(); | ||
|
||
return content?.organizzato_da_interno?.length > 0 || | ||
richTextHasContent(content?.organizzato_da_esterno) || | ||
content?.telefono || | ||
content?.email || | ||
content?.fax ? ( | ||
<div className="mb-5 mt-3"> | ||
<h3 className="h5 mb-3">{intl.formatMessage(messages.organizzato_da)}</h3> | ||
|
||
{content?.organizzato_da_interno.length > 0 && ( | ||
<EventoContattiOrganizzatoreInterno content={content} /> | ||
)} | ||
|
||
{(richTextHasContent(content?.organizzato_da_esterno) || | ||
content?.telefono || | ||
content?.email || | ||
content?.fax) && ( | ||
<EventoContattiOrganizzatoreEsterno content={content} /> | ||
)} | ||
</div> | ||
) : null; | ||
}; | ||
|
||
export default EventoOrganizzatoDa; |
Oops, something went wrong.