Browse Source

Configuration : ajout de la gestion de l'affichage de l'icône "cookie"

pull/4/head
Akilia 2 years ago
parent
commit
1ee086fe55
  1. 2
      formulaires/configurer_tarteaucitron_bandeau.html
  2. 5
      javascript/tarteaucitron_config.html
  3. 28
      lang/tarteaucitron_fr.php
  4. 2
      paquet.xml

2
formulaires/configurer_tarteaucitron_bandeau.html

@ -13,10 +13,10 @@
[(#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})]
</div>
<input type="hidden" name="_meta_casier" value="tarteaucitron" />
<p class="boutons"><span class="image_loading">&nbsp;</span><input type="submit" class="submit" value="<:bouton_enregistrer:>" /></p>
</div>

5
javascript/tarteaucitron_config.html

@ -10,6 +10,8 @@
"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 */
/* Gestion petit bandeau */
"showAlertSmall": false, /* afficher le petit bandeau en bas à droite ? */
"cookieslist": false, /* Afficher la liste des cookies installés ? */
@ -25,6 +27,7 @@
// "cookieDomain": ".my-multisite-domaine.fr", /* Shared cookie for multisite */
"readmoreLink": "/#CONFIG{tarteaucitron/readmoreLink}" /* Change the default readmore link */
"readmoreLink": "/#CONFIG{tarteaucitron/readmoreLink}", /* Change the default readmore link */
});
</script>

28
lang/tarteaucitron_fr.php

@ -12,6 +12,8 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
'cfg_afficher_bandeau_explication' => 'Si pas de bandeau le consentement est alors implicite.',
'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_exemple' => 'Exemple',
'cfg_exemple_explication' => 'Explication de cet exemple',
'cfg_placement_bandeau' => 'Placement vertical du bandeau',
@ -20,6 +22,32 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
'cfg_titre_ajouter_services' => 'Ajouter un service',
'cfg_titre_bandeau' => 'Bandeau de consentement',
// S
/* Google Services */
'services_gtag_label' => 'Google global site tag (gtag.js)',
'services_gtag_explication' => 'Replace GA_MEASUREMENT_ID with the ID of the Google Analytics property to which you want to send data',
'services_gtag_placeholder' => 'GA_MEASUREMENT_ID',
'services_gmap_label' => 'Google Map API Key',
'services_gmap_explication' => 'Enter your Google Map API Key',
'services_gmap_placeholder' => 'API KEY',
/* Facebook Services */
'services_fb_label' => 'Boutons de Like et Partage Facebook',
'services_fb_explication' => '',
'services_fb_placeholder' => '',
'services_fb_pixel_label' => 'Facebook Pixel',
'services_fb_pixel_explication' => 'Enter your FacebookPixel ID',
'services_fb_pixel_placeholder' => 'YOUR_ID',
/* Matomo */
'services_matomo_id_label' => 'Matomo ID',
'services_matomo_id_explication' => 'Remplacer par l’ID du site',
'services_matomo_id_placeholder' => 'YOUR_SITE_ID_FROM_MATOMO',
'services_matomo_url_label' => 'Matomo URL',
'services_matomo_url_explication' => 'Renseigner l’URL du serveur Matomo',
'services_matomo_url_placeholder' => 'YOUR_MATOMO_URL',
// T
'tarteaucitron_titre' => 'Tarteaucitron',
'titre_page_configurer_tarteaucitron' => 'Tarteaucitron'

2
paquet.xml

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

Loading…
Cancel
Save