Merge pull request #480 from Sylry/feature/DenyAllCtaOption
Add option for the Deny All button
This commit is contained in:
commit
bb24488a02
|
|
@ -41,6 +41,7 @@ tarteaucitron.init({
|
||||||
"cookieslist": true, /* Show the cookie list */
|
"cookieslist": true, /* Show the cookie list */
|
||||||
|
|
||||||
"adblocker": false, /* Show a Warning if an adblocker is detected */
|
"adblocker": false, /* Show a Warning if an adblocker is detected */
|
||||||
|
"DenyAllCta" : true, /* Show the deny all button */
|
||||||
"AcceptAllCta" : true, /* Show the accept all button when highPrivacy on */
|
"AcceptAllCta" : true, /* Show the accept all button when highPrivacy on */
|
||||||
"highPrivacy": true, /* Disable auto consent */
|
"highPrivacy": true, /* Disable auto consent */
|
||||||
"handleBrowserDNTRequest": false, /* If Do Not Track == 1, disallow all */
|
"handleBrowserDNTRequest": false, /* If Do Not Track == 1, disallow all */
|
||||||
|
|
|
||||||
|
|
@ -210,6 +210,7 @@ var tarteaucitron = {
|
||||||
"showAlertSmall": true,
|
"showAlertSmall": true,
|
||||||
"cookieslist": true,
|
"cookieslist": true,
|
||||||
"handleBrowserDNTRequest": false,
|
"handleBrowserDNTRequest": false,
|
||||||
|
"DenyAllCta": true,
|
||||||
"AcceptAllCta" : true,
|
"AcceptAllCta" : true,
|
||||||
"moreInfoLink": true,
|
"moreInfoLink": true,
|
||||||
"privacyUrl": "",
|
"privacyUrl": "",
|
||||||
|
|
@ -406,7 +407,7 @@ var tarteaucitron = {
|
||||||
html += ' </button>';
|
html += ' </button>';
|
||||||
|
|
||||||
|
|
||||||
if (tarteaucitron.parameters.orientation === 'middle') {
|
if (tarteaucitron.parameters.DenyAllCta) {
|
||||||
html += ' <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" onclick="tarteaucitron.userInterface.respondAll(false);">';
|
html += ' <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" onclick="tarteaucitron.userInterface.respondAll(false);">';
|
||||||
html += ' ✗ ' + tarteaucitron.lang.denyAll;
|
html += ' ✗ ' + tarteaucitron.lang.denyAll;
|
||||||
html += ' </button>';
|
html += ' </button>';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue