Browse Source

cookie

master
Charly 3 years ago
parent
commit
8136a7c409
3 changed files with 38 additions and 4 deletions
  1. +7
    -2
      config/packages/ch_cookie_consent.yaml
  2. +2
    -2
      config/packages/framework.yaml
  3. +29
    -0
      translations/CHCookieConsentBundle.fr.yml

+ 7
- 2
config/packages/ch_cookie_consent.yaml View File

@@ -1,2 +1,7 @@
ch_cookie_consent:
categories: ['analytics', 'tracking', 'social_media', 'marketing']
ch_cookie_consent:
theme: 'light' # light, dark
categories: # Below are the default supported categories
- 'piwik'
use_logger: true # Logs user actions to database
position: 'bottom' # top, bottom
simplified: false # When set to true the user can only deny or accept all cookies at once

+ 2
- 2
config/packages/framework.yaml View File

@@ -1,7 +1,7 @@
# see https://symfony.com/doc/current/reference/configuration/framework.html
framework:
secret: '%env(APP_SECRET)%'
#csrf_protection: true
csrf_protection: true
#http_method_override: true

# Enables session support. Note that the session will ONLY be started if you read or write from it.
@@ -11,7 +11,7 @@ framework:
cookie_secure: auto
cookie_samesite: lax

#esi: true
esi: true
#fragments: true
php_errors:
log: true

+ 29
- 0
translations/CHCookieConsentBundle.fr.yml View File

@@ -0,0 +1,29 @@
ch_cookie_consent:
title: 'Cookies'
intro: "Un cookie est un fichier texte qui enregistre des informations concernant votre navigation sur ce site internet. Nous en utilisons notamment pour réaliser des statistiques de visite."
read_more: 'En savoir plus'
analytics:
title: 'Google Analytics'
description: "Analyse d'audience du site web"
tracking:
title: 'Do you want tracking cookies?'
description: ''
marketing:
title: 'Do you want personalised ads?'
description: ''
social_media:
title: 'Do you want social media cookies?'
description: ''
site:
title: 'Site'
description: 'Fonctionnement du site'
piwik:
title: 'Piwik'
description: 'Statistiques du site'
no: 'Non'
yes: 'Oui'
save: 'Sauvegarder'
use_only_functional_cookies: 'Only use functional cookies'
use_all_cookies: 'Allow all cookies'
show_details: 'Show details'
hide_details: 'Hide details'

Loading…
Cancel
Save