Browse Source

Gestion complète du bouton Cookie : si affiché, on peut aussi le placer où l'on veut (BottomRight, BottomLeft, TopRight and TopLeft)

+ Chaîne de langue
pull/4/head
Akilia 2 years ago
parent
commit
b58a97bb27
  1. 33
      formulaires/configurer_tarteaucitron_bandeau.html
  2. 19
      javascript/tarteaucitron_config.html
  3. 17
      lang/tarteaucitron_fr.php
  4. 2
      paquet.xml

33
formulaires/configurer_tarteaucitron_bandeau.html

@ -6,15 +6,34 @@
[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
<form method="post" action="#ENV{action}">
<div>
<div>
#ACTION_FORMULAIRE{#ENV{action}}
<div class="editer-groupe">
[(#SAISIE{radio, highprivacy, label=<:tarteaucitron:cfg_afficher_bandeau:>, explication=<:tarteaucitron:cfg_afficher_bandeau_explication:>, defaut=true, datas=[(#ARRAY{true,Oui,false,Non})]})]
[(#SAISIE{radio, orientation, label=<:tarteaucitron:cfg_placement_bandeau:>, defaut=top, datas=[(#ARRAY{top,Haut,bottom,Bas})]})]
[(#SAISIE{radio, acceptallcta, label=<:tarteaucitron:cfg_btn_accetpall:>, explication=<:tarteaucitron:cfg_btn_accetpall_explication:>, defaut=true, datas=[(#ARRAY{true,Oui,false,Non})]})]
[(#SAISIE{radio, showIcon, label=<:tarteaucitron:cfg_btn_showIcon:>, explication=<:tarteaucitron:cfg_btn_showIcon_explication:>, defaut=true, datas=[(#ARRAY{true,Oui,false,Non})]})]
[(#SAISIE{input, readmoreLink, label=<:tarteaucitron:cfg_readmoreLink:>, explication=<:tarteaucitron:cfg_readmoreLink_explication:>, defaut=cookiespolicy})]
<fieldset>
<legend><:tarteaucitron:legend_bandeau_principal:></legend>
<div class="editer-groupe">
[(#SAISIE{radio, highprivacy, label=<:tarteaucitron:cfg_afficher_bandeau:>, explication=<:tarteaucitron:cfg_afficher_bandeau_explication:>, defaut=true, datas=[(#ARRAY{true,Oui,false,Non})]})]
[(#SAISIE{radio, orientation, label=<:tarteaucitron:cfg_placement_bandeau:>, defaut=top, datas=[(#ARRAY{top,Haut,bottom,Bas})]})]
[(#SAISIE{radio, acceptallcta, label=<:tarteaucitron:cfg_btn_accetpall:>, explication=<:tarteaucitron:cfg_btn_accetpall_explication:>, defaut=true, datas=[(#ARRAY{true,Oui,false,Non})]})]
</div>
</fieldset>
<fieldset>
<legend><:tarteaucitron:legend_cookie:></legend>
<p class="explication"><:tarteaucitron:cfg_btn_showIcon_explication:></p>
<div class="editer-groupe">
[(#SAISIE{radio, showIcon, label=<:tarteaucitron:cfg_btn_showIcon:>, defaut=true, datas=[(#ARRAY{true,Oui,false,Non})]})]
[(#SAISIE{radio, iconPosition, label=<:tarteaucitron:cfg_iconposition:>, defaut=BottomRight, datas=[(#ARRAY{BottomRight, En bas à doite, BottomLeft, En bas à gauche, TopRight, En haut à droite, TopLeft, En haut à gauche})]})]
</div>
</fieldset>
<fieldset>
<legend><:tarteaucitron:divers:></legend>
<div class="editer-groupe">
[(#SAISIE{input, readmoreLink, label=<:tarteaucitron:cfg_readmoreLink:>, explication=<:tarteaucitron:cfg_readmoreLink_explication:>, defaut=cookiespolicy})]
</div>
</fieldset>
</div>
<input type="hidden" name="_meta_casier" value="tarteaucitron" />

19
javascript/tarteaucitron_config.html

@ -4,30 +4,37 @@
"hashtag": "#tarteaucitron", /* Ouverture automatique du panel avec le hashtag */
"cookieName": "tarteaucitron", /* Cookie name */
/* Gestion grand bandeau */
"highPrivacy": #CONFIG{tarteaucitron/highprivacy, true}, /* Si true, affiche le bandeau de consentement. Sinon, le consentement est implicite. */
"orientation": "#CONFIG{tarteaucitron/orientation, top}", /* le bandeau doit être en haut (top) ou en bas (bottom) ? */
"AcceptAllCta" : #CONFIG{tarteaucitron/acceptallcta, true}, /* Show the accept all button when highPrivacy on */
"showIcon": #CONFIG{tarteaucitron/showIcon, true}, /* Show cookie Icon or not */
"orientation": "#CONFIG{tarteaucitron/orientation, top}", /* le bandeau doit être en haut (top) ou en bas (bottom) ? */
/* Gestion petit bandeau */
"showAlertSmall": false, /* afficher le petit bandeau en bas à droite ? */
"cookieslist": false, /* Afficher la liste des cookies installés ? */
/* Gestion de la petite icone Cookie */
"showIcon": #CONFIG{tarteaucitron/showIcon, true}, /* Show cookie Icon or not */
"iconPosition": "#CONFIG{tarteaucitron/iconPosition, BottomRight}", /* BottomRight, BottomLeft, TopRight and TopLeft */
"adblocker": false, /* Afficher un message si un adblocker est détecté */
/* Gestion grand bandeau */
"DenyAllCta" : true, /* Show the deny all button */
"AcceptAllCta" : #CONFIG{tarteaucitron/acceptallcta, true}, /* Show the accept all button when highPrivacy on */
"highPrivacy": #CONFIG{tarteaucitron/highprivacy, true}, /* Si true, affiche le bandeau de consentement. Sinon, le consentement est implicite. */
"handleBrowserDNTRequest": false, /* If Do Not Track == 1, disallow all */
"removeCredit": false, /* supprimer le lien vers la source ? */
"moreInfoLink": true, /* Show more info link */
"useExternalCss": false, /* If false, the tarteaucitron.css file will be loaded */
"useExternalJs": false, /* If false, the tarteaucitron.js file will be loaded */
// "cookieDomain": ".my-multisite-domaine.fr", /* Shared cookie for multisite */
"readmoreLink": "/#CONFIG{tarteaucitron/readmoreLink}", /* Change the default readmore link */
"mandatory": true, /* Show a message about mandatory cookies */
});
</script>

17
lang/tarteaucitron_fr.php

@ -8,19 +8,26 @@ if (!defined('_ECRIRE_INC_VERSION')) {
$GLOBALS[$GLOBALS['idx_lang']] = array(
// C
'cfg_afficher_bandeau' => 'Afficher le bandeau ?',
'cfg_afficher_bandeau_explication' => 'Si pas de bandeau le consentement est alors implicite.',
'cfg_afficher_bandeau_explication' => 'Si pas de bandeau le consentement est alors implicite.<br>Il est hautement recommandé d’afficher le bandeau.',
'cfg_btn_accetpall' => 'Bouton ’Tout accepter’',
'cfg_btn_accetpall_explication' => 'Faut-il afficher le bouton ’Tout accepter’ ? Si non, seul le bouton ’Personnaliser’ apparaîtra.',
'cfg_btn_showicon' => 'Afficher l’icône du Cookie',
'cfg_btn_showicon_explication' => 'Faut-il afficher l’icône du cookie permettant de mofifier les paramètres de l’utilisateur à tout moment ?',
'cfg_btn_showicon' => 'Afficher le Cookie ?',
'cfg_btn_showicon_explication' => 'Ce bouton permet à l’internaute de ré-afficher le panneau de gestion des cookies à tout moment.',
'cfg_exemple' => 'Exemple',
'cfg_exemple_explication' => 'Explication de cet exemple',
'cfg_placement_bandeau' => 'Placement vertical du bandeau',
'cfg_readmorelink' => 'Lien vers votre page d’explication sur le consentement des cookies.',
'cfg_readmorelink_explication' => 'Exemple : spip.php ?article1, rgpd, etc.',
'cfg_titre_ajouter_services' => 'Ajouter un service',
'cfg_titre_bandeau' => 'Bandeau de consentement',
'cfg_titre_ajouter_services' => 'Liste des services I',
'cfg_titre_bandeau' => 'Gestion des demandes de consentement',
'cfg_iconposition' => 'Positionner le bouton…',
// L
'legend_bandeau_principal' => 'Le bandeau principal',
'legend_cookie' => 'Le Cookie',
'legend_divers' => 'Divers',
// S

2
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="tarteaucitron"
categorie="communication"
version="1.1.1"
version="1.1.2"
etat="stable"
compatibilite="[3.1.0;3.3.*]"
logo="prive/themes/spip/images/tarteaucitron-64.png"

Loading…
Cancel
Save