Add a feature to display the 'Accept All' CTA when 'hightPrivacy : true'
This commit is contained in:
parent
720eb0aaa1
commit
1a4967acae
|
|
@ -118,6 +118,7 @@ In PHP for example, you can bypass all the script by setting this var `tarteauci
|
||||||
tarteaucitron.init({
|
tarteaucitron.init({
|
||||||
"hashtag": "#tarteaucitron", /* Ouverture automatique du panel avec le hashtag */
|
"hashtag": "#tarteaucitron", /* Ouverture automatique du panel avec le hashtag */
|
||||||
"highPrivacy": false, /* désactiver le consentement implicite (en naviguant) ? */
|
"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) ? */
|
"orientation": "top", /* le bandeau doit être en haut (top) ou en bas (bottom) ? */
|
||||||
"adblocker": false, /* Afficher un message si un adblocker est détecté */
|
"adblocker": false, /* Afficher un message si un adblocker est détecté */
|
||||||
"showAlertSmall": true, /* afficher le petit bandeau en bas à droite ? */
|
"showAlertSmall": true, /* afficher le petit bandeau en bas à droite ? */
|
||||||
|
|
|
||||||
|
|
@ -186,7 +186,8 @@ var tarteaucitron = {
|
||||||
"removeCredit": false,
|
"removeCredit": false,
|
||||||
"showAlertSmall": true,
|
"showAlertSmall": true,
|
||||||
"cookieslist": true,
|
"cookieslist": true,
|
||||||
"handleBrowserDNTRequest": false
|
"handleBrowserDNTRequest": false,
|
||||||
|
"AcceptAllCta" : false
|
||||||
},
|
},
|
||||||
params = tarteaucitron.parameters;
|
params = tarteaucitron.parameters;
|
||||||
|
|
||||||
|
|
@ -275,7 +276,7 @@ var tarteaucitron = {
|
||||||
orientation = 'Bottom';
|
orientation = 'Bottom';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defaults.highPrivacy) {
|
if (defaults.highPrivacy && !defaults.AcceptAllCta) {
|
||||||
html += '<div id="tarteaucitronAlertBig" class="tarteaucitronAlertBig' + orientation + '">';
|
html += '<div id="tarteaucitronAlertBig" class="tarteaucitronAlertBig' + orientation + '">';
|
||||||
html += ' <span id="tarteaucitronDisclaimerAlert">';
|
html += ' <span id="tarteaucitronDisclaimerAlert">';
|
||||||
html += ' ' + tarteaucitron.lang.alertBigPrivacy;
|
html += ' ' + tarteaucitron.lang.alertBigPrivacy;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue