-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow displaying third part opt in/opt out info for iframeEmbed
REDMINE-20438
- Loading branch information
Showing
5 changed files
with
88 additions
and
7 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
entry_types/scrolled/config/locales/new/iframe_consent.de.yml
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,16 @@ | ||
de: | ||
pageflow_scrolled: | ||
editor: | ||
content_elements: | ||
iframeEmbed: | ||
attributes: | ||
requireConsent: | ||
label: "Datenschutz-Einwilligung aktivieren" | ||
inline_help: |- | ||
iframe erst laden, nachdem Besucher der | ||
Datenverarbeitung durch die eingebettete Seite | ||
zugestimmt hat. | ||
help_texts: | ||
missingConsentVendor: |- | ||
Für den Anbieter der angegeben URL stehen keine | ||
Datenschutzangaben zur Verfügung. |
15 changes: 15 additions & 0 deletions
15
entry_types/scrolled/config/locales/new/iframe_consent.en.yml
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,15 @@ | ||
en: | ||
pageflow_scrolled: | ||
editor: | ||
content_elements: | ||
iframeEmbed: | ||
attributes: | ||
requireConsent: | ||
label: "Display privacy opt-in" | ||
inline_help: | | ||
Only load iframe after the visitor has given | ||
consent to the data processing by the embedded page. | ||
help_texts: | ||
missingConsentVendor: |- | ||
No privacy policy information available for the provider | ||
of the given URL. |
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
23 changes: 23 additions & 0 deletions
23
entry_types/scrolled/package/src/contentElements/iframeEmbed/stories.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,23 @@ | ||
import '../frontend'; | ||
import {storiesOfContentElement} from 'pageflow-scrolled/spec/support/stories'; | ||
|
||
storiesOfContentElement(module, { | ||
typeName: 'iframeEmbed', | ||
baseConfiguration: { | ||
source: 'https://example.com', | ||
caption: 'Some caption' | ||
}, | ||
consent: { | ||
configuration: { | ||
requireConsent: true | ||
} | ||
}, | ||
variants: [ | ||
{ | ||
name: 'With Consent', | ||
configuration: { | ||
requireConsent: true | ||
} | ||
} | ||
] | ||
}); |