Skip to content

Commit

Permalink
New: Better GDPR message
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnitto committed Mar 16, 2023
1 parent 613d481 commit 5b763e8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Resources/Private/Fusion/Component/Attributes.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ prototype(Jonnitto.PrettyEmbedVideoPlatforms:Component.Attributes) < prototype(N
style = ${!props.hasLightboxWithPreserveAspectRatio && props.finalRatio ? 'padding-top:' + props.finalRatio : null}
aria-label = ${props.metadataTitle}
data-gdpr = ${props.enableGdprMessage && props.gdprMessage ? props.gdprMessage : null}
data-gdpr-accept = ${props.enableGdprMessage && props.gdprMessageAccept ? props.gdprMessageAccept : null}
data-gdpr-new-window = ${props.enableGdprMessage && props.gdprMessageNewWindow ? props.gdprMessageNewWindow : null}
data-ratio = ${props.finalRatio || null}
data-fs = ${!!props.allowFullScreen}
data-embed = Jonnitto.PrettyEmbedVideoPlatforms:Component.Attributes.Embed {
Expand Down
2 changes: 2 additions & 0 deletions Resources/Private/Fusion/Component/Video/Video.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ prototype(Jonnitto.PrettyEmbedVideoPlatforms:Component.Video) < prototype(Neos.F
loadImageStrategy = ${this.configuration.loadImageStrategy}
enableGdprMessage = ${Configuration.setting('Jonnitto.PrettyEmbedHelper.enableGdprMessage')}
gdprMessage = Jonnitto.PrettyEmbedHelper:GdprMessage
gdprMessageAccept = Jonnitto.PrettyEmbedHelper:GdprMessageAccept
gdprMessageNewWindow = Jonnitto.PrettyEmbedHelper:GdprMessageNewWindow

// Pass a ratio like this: ${16 / 9}
ratio = ${null}
Expand Down
2 changes: 2 additions & 0 deletions Resources/Private/Fusion/Content/Video.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ prototype(Jonnitto.PrettyEmbedVideoPlatforms:Content.Video) < prototype(Jonnitto
loadImageStrategy = ${Configuration.setting('Jonnitto.PrettyEmbedVideoPlatforms.loadImageStrategy')}
enableGdprMessage = ${Configuration.setting('Jonnitto.PrettyEmbedHelper.enableGdprMessage')}
gdprMessage = Jonnitto.PrettyEmbedHelper:GdprMessage
gdprMessageAccept = Jonnitto.PrettyEmbedHelper:GdprMessageAccept
gdprMessageNewWindow = Jonnitto.PrettyEmbedHelper:GdprMessageNewWindow

showBackendNotification = true

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}
],
"require": {
"jonnitto/prettyembedhelper": "^4.0 || dev-master"
"jonnitto/prettyembedhelper": "^4.2 || dev-master"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 5b763e8

Please sign in to comment.