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 */
|
||||
|
||||
"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 */
|
||||
"highPrivacy": true, /* Disable auto consent */
|
||||
"handleBrowserDNTRequest": false, /* If Do Not Track == 1, disallow all */
|
||||
|
|
|
|||
|
|
@ -210,6 +210,7 @@ var tarteaucitron = {
|
|||
"showAlertSmall": true,
|
||||
"cookieslist": true,
|
||||
"handleBrowserDNTRequest": false,
|
||||
"DenyAllCta": true,
|
||||
"AcceptAllCta" : true,
|
||||
"moreInfoLink": true,
|
||||
"privacyUrl": "",
|
||||
|
|
@ -406,7 +407,7 @@ var tarteaucitron = {
|
|||
html += ' </button>';
|
||||
|
||||
|
||||
if (tarteaucitron.parameters.orientation === 'middle') {
|
||||
if (tarteaucitron.parameters.DenyAllCta) {
|
||||
html += ' <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" onclick="tarteaucitron.userInterface.respondAll(false);">';
|
||||
html += ' ✗ ' + tarteaucitron.lang.denyAll;
|
||||
html += ' </button>';
|
||||
|
|
|
|||
Loading…
Reference in New Issue