diff --git a/README.md b/README.md index c4b2c93..a369845 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,7 @@ tarteaucitron.init({ "hashtag": "#tarteaucitron", /* Ouverture automatique du panel avec le hashtag */ "cookieName": "tartaucitron", /* Nom du cookie */ "highPrivacy": false, /* désactiver le consentement implicite (en naviguant) ? */ + "AcceptAllCta" : false, /* Afficher le CTA "Tout accepter" si "hightPrivacy : true" */ "orientation": "top", /* le bandeau doit être en haut (top) ou en bas (bottom) ? */ "adblocker": false, /* Afficher un message si un adblocker est détecté */ "showAlertSmall": true, /* afficher le petit bandeau en bas à droite ? */ diff --git a/tarteaucitron.js b/tarteaucitron.js index e4f4588..f7c544e 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -208,6 +208,7 @@ var tarteaucitron = { "showAlertSmall": true, "cookieslist": true, "handleBrowserDNTRequest": false, + "AcceptAllCta" : false, "moreInfoLink": true }, params = tarteaucitron.parameters; @@ -305,7 +306,7 @@ var tarteaucitron = { orientation = 'Bottom'; } - if (tarteaucitron.parameters.highPrivacy) { + if (tarteaucitron.parameters.highPrivacy && !defaults.AcceptAllCta) { html += '
'; html += ' '; html += ' ' + tarteaucitron.lang.alertBigPrivacy;