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.
feat: enable/disable external link icon in listing template SmallBloc…
…ksLink * fix: smallblockslink template and accessibility icon for external links * chore: update RELEASE.md
- Loading branch information
1 parent
b478952
commit 0f9f872
Showing
13 changed files
with
104 additions
and
11 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: 2023-09-04T15:56:21.451Z\n" | ||
"POT-Creation-Date: 2023-09-19T07:30:36.575Z\n" | ||
"Last-Translator: Plone i18n <[email protected]>\n" | ||
"Language-Team: Plone i18n <[email protected]>\n" | ||
"MIME-Version: 1.0\n" | ||
|
@@ -2484,6 +2484,11 @@ msgstr "" | |
msgid "other_info" | ||
msgstr "" | ||
|
||
#: config/Blocks/ListingOptions/smallBlockLinksTemplate | ||
# defaultMessage: Non mostrare l'icona di accessibilità per i link a siti esterni | ||
msgid "override_links_accessibility_marker" | ||
msgstr "" | ||
|
||
#: components/ItaliaTheme/View/Commons/TrasparenzaFields | ||
# defaultMessage: Pagamenti previsti e modalità | ||
msgid "pagamenti" | ||
|
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
32 changes: 32 additions & 0 deletions
32
src/config/Blocks/ListingOptions/smallBlockLinksTemplate.js
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,32 @@ | ||
import { defineMessages } from 'react-intl'; | ||
|
||
import { addSchemaField } from 'design-comuni-plone-theme/config/Blocks/ListingOptions'; | ||
|
||
const messages = defineMessages({ | ||
override_links_accessibility_marker: { | ||
id: 'override_links_accessibility_marker', | ||
defaultMessage: | ||
"Non mostrare l'icona di accessibilità per i link a siti esterni", | ||
}, | ||
}); | ||
|
||
export const addSmallBlockLinksTemplateOptions = ( | ||
schema, | ||
formData, | ||
intl, | ||
position = 0, | ||
) => { | ||
let pos = position; | ||
|
||
addSchemaField( | ||
schema, | ||
'override_links_accessibility_marker', | ||
intl.formatMessage(messages.override_links_accessibility_marker), | ||
null, | ||
{ type: 'boolean' }, | ||
pos, | ||
); | ||
pos++; | ||
|
||
return pos; | ||
}; |
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