浏览代码

cookie

master
Charly 3 年前
父节点
当前提交
8136a7c409
共有 3 个文件被更改,包括 38 次插入4 次删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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'

正在加载...
取消
保存