Commit 33006ca0 authored by Stefan Bublies's avatar Stefan Bublies

Umfangreicher "Code clean", Support für 6.2-9.5.17 abgekündigt und auch für...

Umfangreicher "Code clean", Support für 6.2-9.5.17 abgekündigt und auch für php5. Des Weiteren die BE-User Abfrage im Setup geändert. Im Template das HTML ein wenig angepasst für ein individuelles Styling. FlexForm-PlugIn-Zuweisung von ext_tables.php nach Configuration/TCA/Overrides/tt_content.php verschoben.
parent 35db1de6
Pipeline #85 failed with stages
<?php
namespace DTInternet\DtiCookienote\Controller;
/***************************************************************
* Copyright notice
*
* (c) 2019 Stefan Bublies <bublies@dt-internet.de>
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
use \TYPO3\CMS\Core\Utility\GeneralUtility;
use \TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
use \TYPO3\CMS\Extbase\Utility\LocalizationUtility;
class CookienoteController extends ActionController
{
/**
* action list
*
* @param \DTInternet\DtiCookienote\Domain\Model\Cookienote $cookienote
* @return void
*/
public function listAction() {
$iElementUid = time().rand(0,10000);
$this->view->assign('id', $iElementUid);
}
}
<?php
namespace DTInternet\DtiCookienote\Domain\Model;
/***
*
* This file is part of the "Cookienote" Extension for TYPO3 CMS.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* (c) 2017 D&T Internet GmbH, Stefan Bublies <bublies@dt-internet.de>, D&T Internet GmbH
*
***/
/**
* MenueService
*/
class Cookienote extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
{
}
#
# Extension Builder settings for extension dti_cookienote
# generated 2019-10-14T14:28:00Z
#
# See http://www.yaml.org/spec/1.2/spec.html
#
---
########### Overwrite settings ###########
#
# These settings only apply, if the roundtrip feature of the extension builder
# is enabled in the extension manager
#
# Usage:
# nesting reflects the file structure
# a setting applies to a file or recursive to all files and subfolders
#
# merge:
# means for classes: All properties ,methods and method bodies
# of the existing class will be modified according to the new settings
# but not overwritten
#
# for locallang xlf files: Existing keys and labels are always
# preserved (renaming a property or DomainObject will result in new keys and new labels)
#
# for other files: You will find a Split token at the end of the file
# see: \EBT\ExtensionBuilder\Service\RoundTrip::SPLIT_TOKEN
#
# After this token you can write whatever you want and it will be appended
# everytime the code is generated
#
# keep:
# files are never overwritten
# These settings may break the functionality of the extension builder!
# Handle with care!
#
#
############ extension settings ##############
overwriteSettings:
Classes:
Controller: merge
Domain:
Model: merge
Repository: merge
Configuration:
#TCA merge not possible - use overrides directory
#TypoScript: keep
Resources:
Private:
#Language: merge
#Templates: keep
user_extension.svg: keep
# ext_localconf.php: merge
# ext_tables.php: merge
# ext_tables.sql: merge
## use static date attribute in xliff files ##
#staticDateInXliffFiles: 2019-10-14T14:28:00Z
## skip docComment (license header) ##
#skipDocComment
## list of error codes for warnings that should be ignored ##
#ignoreWarnings:
#503
######### settings for classBuilder #############################
#
# here you may define default parent classes for your classes
# these settings only apply for new generated classes
# you may also just change the parent class in the generated class file.
# It will be kept on next code generation, if the overwrite settings
# are configured to merge it
#
#################################################################
classBuilder:
Controller:
parentClass: \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
Model:
AbstractEntity:
parentClass: \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
AbstractValueObject:
parentClass: \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject
Repository:
parentClass: \TYPO3\CMS\Extbase\Persistence\Repository
setDefaultValuesForClassProperties: true
\ No newline at end of file
<T3DataStructure>
<sheets>
<sDEF>
<ROOT>
<TCEforms>
<sheetTitle>Einbindung HTML-Code</sheetTitle>
</TCEforms>
<type>array</type>
<el>
<settings.htmldata>
<TCEforms>
<label>HTML-Code (Bitte keine HTML-Kommentare einfügen)</label>
<config>
<type>text</type>
<rows>7</rows>
<renderType>t3editor</renderType>
<format>html</format>
</config>
</TCEforms>
</settings.htmldata>
<settings.placeholder>
<TCEforms>
<label>Platzhalter-Text</label>
<config>
<type>text</type>
<cols>24</cols>
<rows>3</rows>
<default>Leider haben Sie der Einwilligung zum setzen von Cookies widersprochen, daher können wir den gewünschten Inhalt nicht anzeigen. Wenn Sie den Inhalt trotzdem sehen möchten und einverstanden sind, dass wir für diese zwecke Cookies setzen, klicken Sie auf den nachstehenden Link.</default>
</config>
<defaultExtras>richtext[*]:rte_transform[mode=ts_css]</defaultExtras>
</TCEforms>
</settings.placeholder>
<settings.placeholderlink>
<TCEforms>
<label>Link-Text</label>
<config>
<type>input</type>
<default>Ich akzeptiere, dass Cookies gesetzt werden und möchte den Inhalt sehen</default>
</config>
</TCEforms>
</settings.placeholderlink>
</el>
</ROOT>
</sDEF>
</sheets>
</T3DataStructure>
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$_EXTKEY = 'dti_cookienote';
// ExtensionName
$extensionName = \TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($_EXTKEY);
// PlugIn HTML-PLugIn
$pluginSignatureGeneral = strtolower($extensionName) . '_cookienotehtml';
// Disable the display of layout, select_key and page fields
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignatureGeneral] = 'select_key,recursive,pages';
// Add FlexForm
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignatureGeneral] = 'pi_flexform';
// Activate the display of the plugin FlexForm field and set FlexForm definition
// FlexForms
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignatureGeneral,
'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_cookienotehtml.xml');
\ No newline at end of file
### Basic Cookie Constants
tx_dti_cookienote {
GoogleSite {
# cat=Google-Site-Verification - Einstellungen/Einstellungen/001; type=string; label= Verification Code
VerificationCode = 0
}
basicSettings {
# cat=Auswahl Tracking Tool - Einstellungen/Einstellungen/001; type=boolean; label= Matomo
Piwik = 0
# cat=Auswahl Tracking Tool - Einstellungen/Einstellungen/002; type=boolean; label= Google Analytics
Analytics = 0
# cat=Auswahl Tracking Tool - Einstellungen/Einstellungen/003; type=boolean; label= Google Tag-Manager
TagManager = 0
# cat=Auswahl Tracking Tool - Einstellungen/Einstellungen/004; type=boolean; label= Eigenes Script
CustomScript = 0
# cat=Auswahl Tracking Tool - Einstellungen/Einstellungen/005; type=boolean; label= Maotomo und Google
MatomoandGoogle = 0
}
settings {
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/001; type=string; label= Domain für den Cookie
Domain = domain.de
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/002; type=string; label= Ablauf des Cookies
ExpiryDays = 365
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/003; type=string; label= ID der Piwik/Matomo Site
SiteId = 0
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/004; type=string; label= Piwik/Matomo URL
MatomoURL = hostedpiwik.de/
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/005; type=string; label= ID der Datenschutzseite
Datenschutz = 527
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/006; type=string; label= Hintergrundfarbe des Banners (Bsp.: #000)
BackgroundColor = #fff
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/007; type=string; label= Textfarbe des Banners (Bsp.: #000)
TextColor = #554f4a
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/008; type=string; label= Farbe des Buttons (Bsp.: #000)
ButtonColor = #0075a9
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/008; type=string; label= Farbe des oberen Randes (Bsp.: #000)
BorderColor = #D3D5D9
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/009; type=string; label= UA Code von Google Analytics
GoogleAnalytics = UA-1234567
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/010; type=string; label= GTM Code Google-Tag-Manager
GoogleTag = GTM-XXXX
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/011; type=string; label= Cookie-Banner Text Matomo
CookieMessage = Diese Webseite verwendet Matomo/Piwik, um die Bedienfreundlichkeit zu erhöhen.
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/012; type=string; label= Cookie-Banner Google Analytics
CookieMessageAnalytics = Diese Webseite verwendet Google Analytics, um die Bedienfreundlichkeit zu erhöhen.
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/013; type=string; label= Cookie-Banner Google Tag-Manager
CookieMessageGoogleTag = Diese Webseite verwendet Google Tag-Manager, um die Bedienfreundlichkeit zu erhöhen.
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/014; type=string; label= Text Button verbieten
DismissButton = Ablehnen
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/015; type=string; label= Text Button erlauben
AllowButton = OK
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/016; type=string; label= Text Weiterlesen
MoreLink = Weitere Informationen
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/017; type=string; label= Cookie Einstellung widerrufen
Revoke = Cookie Einstellung
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/018; type=string; label= Eigenes Script
CustomScript =
# cat=Cookie Einstellungen - Einstellungen/Einstellungen/019; type=string; label= Cookie-Banner eigener Text
CookieMessageCustom = Diese Webseite verwendet mein eigenes Script, um die Bedienfreundlichkeit zu erhöhen.
}
}
page.headerData.80997 = TEXT
page.headerData.80997.value (
<link rel="stylesheet" type="text/css" href="/typo3conf/ext/dti_cookienote/Resources/Public/Stylesheets/cookieconsent.min.css" />
<script src="/typo3conf/ext/dti_cookienote/Resources/Public/Javascript/cookieconsent.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "{$tx_dti_cookienote.settings.BackgroundColor}",
"text": "{$tx_dti_cookienote.settings.TextColor}"
},
"button": {
"background": "{$tx_dti_cookienote.settings.ButtonColor}"
}
},
"theme": "edgeless",
"type": "opt-in",
"cookie": {
// This is the name of this cookie - you can ignore this
name: 'cookieconsent_status',
// This is the url path that the cookie 'name' belongs to. The cookie can only be read at this location
path: '/',
// This is the domain that the cookie 'name' belongs to. The cookie can only be read on this domain.
// - Guide to cookie domains - http://erik.io/blog/2014/03/04/definitive-guide-to-cookie-domains/
domain: '{$tx_dti_cookienote.settings.Domain}',
// The cookies expire date, specified in days (specify -1 for no expiry)
expiryDays: {$tx_dti_cookienote.settings.ExpiryDays},
},
"content": {
"message": "{$tx_dti_cookienote.settings.CookieMessage}",
"dismiss": "{$tx_dti_cookienote.settings.DismissButton}",
"allow": "{$tx_dti_cookienote.settings.AllowButton}",
"link": "{$tx_dti_cookienote.settings.MoreLink}",
"href": "/index.php?id={$tx_dti_cookienote.settings.Datenschutz}"
},
"revokeBtn": "<div class='cc-revoke {{classes}}'>{$tx_dti_cookienote.settings.Revoke}</div>",
onInitialise: function (status) {
var type = this.options.type;
var didConsent = this.hasConsented();
if (type == 'opt-in' && didConsent) {
// enable cookies
_paq.push(['rememberConsentGiven']);
// Dieser Teil kommt aus dem Matomo/Piwik Code
(function() {
var u="//{$tx_dti_cookienote.settings.MatomoURL}";
_paq.push(['setTrackerUrl', u+'js/']);
_paq.push(['setSiteId', '{$tx_dti_cookienote.settings.SiteId}']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'js/'; s.parentNode.insertBefore(g,s);
})();
}
if (type == 'opt-in' && !didConsent) {
// disable cookies
_paq.push(['forgetConsentGiven']);
}
},
onStatusChange: function(status, chosenBefore) {
var type = this.options.type;
var didConsent = this.hasConsented();
if (type == 'opt-in' && didConsent) {
// enable cookies
_paq.push(['rememberConsentGiven']);
// Dieser Teil kommt aus dem Matomo/Piwik Code
(function() {
var u="//{$tx_dti_cookienote.settings.MatomoURL}";
_paq.push(['setTrackerUrl', u+'js/']);
_paq.push(['setSiteId', '{$tx_dti_cookienote.settings.SiteId}']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'js/'; s.parentNode.insertBefore(g,s);
})();
}
if (type == 'opt-in' && !didConsent) {
// disable cookies
_paq.push(['forgetConsentGiven']);
}
}
})
});
</script>
)
page.footerData{
99999 = TEXT
99999.value(
<!-- Matomo -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['requireConsent']);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
</script>
<!-- End Matomo Code -->
)
}
page.headerData.80997 = TEXT
page.headerData.80997.value (
<link rel="stylesheet" type="text/css" href="/typo3conf/ext/dti_cookienote/Resources/Public/Stylesheets/cookieconsent.min.css" />
<script src="/typo3conf/ext/dti_cookienote/Resources/Public/Javascript/cookieconsent.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "{$tx_dti_cookienote.settings.BackgroundColor}",
"text": "{$tx_dti_cookienote.settings.TextColor}"
},
"button": {
"background": "{$tx_dti_cookienote.settings.ButtonColor}"
}
},
"theme": "edgeless",
"type": "opt-in",
"cookie": {
// This is the name of this cookie - you can ignore this
name: 'cookieconsent_status',
// This is the url path that the cookie 'name' belongs to. The cookie can only be read at this location
path: '/',
// This is the domain that the cookie 'name' belongs to. The cookie can only be read on this domain.
// - Guide to cookie domains - http://erik.io/blog/2014/03/04/definitive-guide-to-cookie-domains/
domain: '{$tx_dti_cookienote.settings.Domain}',
// The cookies expire date, specified in days (specify -1 for no expiry)
expiryDays: {$tx_dti_cookienote.settings.ExpiryDays},
},
"content": {
"message": "{$tx_dti_cookienote.settings.CookieMessageAnalytics}",
"dismiss": "{$tx_dti_cookienote.settings.DismissButton}",
"allow": "{$tx_dti_cookienote.settings.AllowButton}",
"link": "{$tx_dti_cookienote.settings.MoreLink}",
"href": "/index.php?id={$tx_dti_cookienote.settings.Datenschutz}"
},
"revokeBtn": "<div class='cc-revoke {{classes}}'>{$tx_dti_cookienote.settings.Revoke}</div>",
onInitialise: function (status) {
var type = this.options.type;
var didConsent = this.hasConsented();
if (type == 'opt-in' && didConsent) {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{$tx_dti_cookienote.settings.GoogleAnalytics}', {
'cookieDomain': 'auto',
'cookieName': '_gua',
'cookieExpires': 20000
});
ga('set', 'anonymizeIp', true);
ga('send', 'pageview');
}
if (type == 'opt-in' && !didConsent) {
}
},
onStatusChange: function(status, chosenBefore) {
var type = this.options.type;
var didConsent = this.hasConsented();
if (type == 'opt-in' && didConsent) {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{$tx_dti_cookienote.settings.GoogleAnalytics}', {
'cookieDomain': 'auto',
'cookieName': '_gua',
'cookieExpires': 20000
});
ga('set', 'anonymizeIp', true);
ga('send', 'pageview');
}
if (type == 'opt-in' && !didConsent) {
}
}
})
});
</script>
)
page.footerData {
99999 >
}
page.headerData.80997 = TEXT
page.headerData.80997.value (
<link rel="stylesheet" type="text/css" href="/typo3conf/ext/dti_cookienote/Resources/Public/Stylesheets/cookieconsent.min.css" />
<script src="/typo3conf/ext/dti_cookienote/Resources/Public/Javascript/cookieconsent.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id={$tx_dti_cookienote.settings.GoogleTag}"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "{$tx_dti_cookienote.settings.BackgroundColor}",
"text": "{$tx_dti_cookienote.settings.TextColor}"
},
"button": {
"background": "{$tx_dti_cookienote.settings.ButtonColor}"
}
},
"theme": "edgeless",
"type": "opt-in",
"cookie": {
// This is the name of this cookie - you can ignore this
name: 'cookieconsent_status',
// This is the url path that the cookie 'name' belongs to. The cookie can only be read at this location
path: '/',
// This is the domain that the cookie 'name' belongs to. The cookie can only be read on this domain.
// - Guide to cookie domains - http://erik.io/blog/2014/03/04/definitive-guide-to-cookie-domains/
domain: '{$tx_dti_cookienote.settings.Domain}',
// The cookies expire date, specified in days (specify -1 for no expiry)
expiryDays: {$tx_dti_cookienote.settings.ExpiryDays},
},
"content": {
"message": "{$tx_dti_cookienote.settings.CookieMessageGoogleTag}",
"dismiss": "{$tx_dti_cookienote.settings.DismissButton}",
"allow": "{$tx_dti_cookienote.settings.AllowButton}",
"link": "{$tx_dti_cookienote.settings.MoreLink}",
"href": "/index.php?id={$tx_dti_cookienote.settings.Datenschutz}"
},
"revokeBtn": "<div class='cc-revoke {{classes}}'>{$tx_dti_cookienote.settings.Revoke}</div>",
onInitialise: function (status) {
var type = this.options.type;
var didConsent = this.hasConsented();
if (type == 'opt-in' && didConsent) {
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{$tx_dti_cookienote.settings.GoogleTag}', { 'anonymize_ip': true });
}
if (type == 'opt-in' && !didConsent) {
}
},
onStatusChange: function(status, chosenBefore) {
var type = this.options.type;
var didConsent = this.hasConsented();
if (type == 'opt-in' && didConsent) {
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{$tx_dti_cookienote.settings.GoogleTag}', { 'anonymize_ip': true });
}
if (type == 'opt-in' && !didConsent) {
}
}
})
});
</script>
)
page.footerData {
99999 >
}
### Google Site Verification
[{$tx_dti_cookienote.GoogleSite.VerificationCode} > 0]
page.headerData.80990 = TEXT
page.headerData.80990.value = <meta name="google-site-verification" content="{$tx_dti_cookienote.GoogleSite.VerificationCode}">
[END]
page.headerData.80997 = TEXT
page.headerData.80997.value (
<link rel="stylesheet" type="text/css" href="/typo3conf/ext/dti_cookienote/Resources/Public/Stylesheets/cookieconsent.min.css" />
<script src="/typo3conf/ext/dti_cookienote/Resources/Public/Javascript/cookieconsent.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "{$tx_dti_cookienote.settings.BackgroundColor}",
"text": "{$tx_dti_cookienote.settings.TextColor}"
},
"button": {
"background": "{$tx_dti_cookienote.settings.ButtonColor}"
}
},
"theme": "edgeless",
"type": "opt-in",
"cookie": {
// This is the name of this cookie - you can ignore this
name: 'cookieconsent_status',
// This is the url path that the cookie 'name' belongs to. The cookie can only be read at this location
path: '/',
// This is the domain that the cookie 'name' belongs to. The cookie can only be read on this domain.
// - Guide to cookie domains - http://erik.io/blog/2014/03/04/definitive-guide-to-cookie-domains/
domain: '{$tx_dti_cookienote.settings.Domain}',
// The cookies expire date, specified in days (specify -1 for no expiry)
expiryDays: {$tx_dti_cookienote.settings.ExpiryDays},
},
"content": {
"message": "{$tx_dti_cookienote.settings.CookieMessageCustom}",
"dismiss": "{$tx_dti_cookienote.settings.DismissButton}",
"allow": "{$tx_dti_cookienote.settings.AllowButton}",
"link": "{$tx_dti_cookienote.settings.MoreLink}",
"href": "/index.php?id={$tx_dti_cookienote.settings.Datenschutz}"
},
"revokeBtn": "<div class='cc-revoke {{classes}}'>{$tx_dti_cookienote.settings.Revoke}</div>",
onInitialise: function (status) {
var type = this.options.type;
var didConsent = this.hasConsented();
if (type == 'opt-in' && didConsent) {
{$tx_dti_cookienote.settings.CustomScript}
}
if (type == 'opt-in' && !didConsent) {
}
},
onStatusChange: function(status, chosenBefore) {
var type = this.options.type;
var didConsent = this.hasConsented();
if (type == 'opt-in' && didConsent) {
{$tx_dti_cookienote.settings.CustomScript}
}
if (type == 'opt-in' && !didConsent) {
}
}
})
});
</script>
)
page.footerData {
99999 >
}
page.headerData.80997 = TEXT
page.headerData.80997.value (
<link rel="stylesheet" type="text/css" href="/typo3conf/ext/dti_cookienote/Resources/Public/Stylesheets/cookieconsent.min.css" />
<script src="/typo3conf/ext/dti_cookienote/Resources/Public/Javascript/cookieconsent.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "{$tx_dti_cookienote.settings.BackgroundColor}",
"text": "{$tx_dti_cookienote.settings.TextColor}"
},
"button": {
"background": "{$tx_dti_cookienote.settings.ButtonColor}"
}
},
"theme": "edgeless",
"type": "opt-in",
"cookie": {
// This is the name of this cookie - you can ignore this
name: 'cookieconsent_status',