Implement Cookiefirst consent banner
This commit is contained in:
@@ -64,36 +64,6 @@ page {
|
||||
main = typo3_encore:EpThemeConfig:main
|
||||
}
|
||||
|
||||
jsFooterInline {
|
||||
10 = TEXT
|
||||
10.typolink.parameter = {$plugin.tx_eptheme.settings.dataProtectionPageUid}
|
||||
10.typolink.returnLast = url
|
||||
10.typolink.forceAbsoluteUrl = 1
|
||||
10.wrap (
|
||||
window.addEventListener("load", function () {
|
||||
window.cookieconsent.initialise({
|
||||
"palette": {
|
||||
"popup": {
|
||||
"background": "#006db6",
|
||||
"text": "#ffffff"
|
||||
},
|
||||
"button": {
|
||||
"background": "#f9cb0d",
|
||||
"text": "#ffffff"
|
||||
}
|
||||
},
|
||||
"dismissOnTimeout": 5000,
|
||||
"content": {
|
||||
"message": "Wir verwenden Cookies. Durch die Benutzung unserer Website akzeptierst Du unsere Richtlinien.",
|
||||
"dismiss": "Cookies akzeptieren",
|
||||
"link": "Mehr Infos",
|
||||
"href": "|"
|
||||
}
|
||||
})
|
||||
});
|
||||
)
|
||||
}
|
||||
|
||||
10 = FLUIDTEMPLATE
|
||||
10 {
|
||||
file {
|
||||
@@ -164,14 +134,23 @@ page {
|
||||
}
|
||||
|
||||
headerData.999 = TEXT
|
||||
headerData.999.value (
|
||||
<!-- Google Tag Manager -->
|
||||
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','{$plugin.tx_eptheme.settings.googleTagManagerId}');</script>
|
||||
<!-- End Google Tag Manager -->
|
||||
headerData.999.wrap = <script src="https://consent.cookiefirst.com/banner.js" data-cookiefirst-key="|"></script>
|
||||
headerData.999.value = {$plugin.tx_eptheme.settings.cookieFirstKey}
|
||||
|
||||
headerData.9999 = TEXT
|
||||
headerData.9999.value (
|
||||
<!--Start of Tawk.to Script-->
|
||||
<script type="text/plain" data-cookiefirst-category="functional">
|
||||
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
|
||||
(function(){
|
||||
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
|
||||
s1.async=true;
|
||||
s1.src='https://embed.tawk.to/5cf8bd64b534676f32ad987f/default';
|
||||
s1.charset='UTF-8';
|
||||
s1.setAttribute('crossorigin','*');
|
||||
s0.parentNode.insertBefore(s1,s0);
|
||||
})();
|
||||
</script>
|
||||
<!--End of Tawk.to Script-->
|
||||
)
|
||||
headerData.999.stdWrap.if.isTrue = {$plugin.tx_eptheme.settings.googleTagManagerId}
|
||||
}
|
||||
|
||||
@@ -137,8 +137,8 @@ plugin.tx_eptheme {
|
||||
# cat=eptheme/600/110; type=string; label=XML sitemap page UIDs to exclude
|
||||
xmlSitemapExcludeUids =
|
||||
|
||||
# cat=eptheme/300/100; type=string; label=Google Tag Manager ID
|
||||
googleTagManagerId =
|
||||
# cat=eptheme/300/100; type=string; label=Cookiefirst key
|
||||
cookieFirstKey = fabb1554-8932-4075-85dc-97fa68892918
|
||||
# cat=eptheme/300/110; type=string; label=Google Static Maps Base Url
|
||||
googleStaticMapsBaseUrl = https://maps.googleapis.com/maps/api/staticmap?key=AIzaSyDDOforD1O_j4xXy2nJybC2yQqbUAw9ClY
|
||||
# cat=eptheme/300/120; type=string; label=Google Maps Js API Url
|
||||
|
||||
@@ -46,7 +46,7 @@ plugin.tx_eptheme {
|
||||
eventDisturberListitems = {$plugin.tx_eptheme.settings.eventDisturberListitems}
|
||||
eventDisturberButtonLabel = {$plugin.tx_eptheme.settings.eventDisturberButtonLabel}
|
||||
eventDisturberButtonLink = {$plugin.tx_eptheme.settings.eventDisturberButtonLink}
|
||||
googleTagManagerId = {$plugin.tx_eptheme.settings.googleTagManagerId}
|
||||
cookieFirstKey = {$plugin.tx_eptheme.settings.cookieFirstKey}
|
||||
bpnBookingUrlTemplateCode = {$plugin.tx_eptheme.settings.bpnBookingUrlTemplateCode}
|
||||
groupsPricePopupPageUid = {$plugin.tx_eptheme.settings.groupsPricePopupPageUid}
|
||||
googleStaticMapsBaseUrl = {$plugin.tx_eptheme.settings.googleStaticMapsBaseUrl}
|
||||
|
||||
Reference in New Issue
Block a user