🍪
Sistem

Soglasje za piškotke

Skrbniške nastavitve

GDPR-compliant cookie consent banner for EU compliance

Pregled

Customizable cookie consent banner that allows visitors to accept, decline, or customize their cookie preferences. Supports multiple consent categories (necessary, analytics, marketing, preferences) with persistent storage and easy consent checking in code.

Oblikovalski premisleki

UX vzorci in opombe vizualnega oblikovanja za to funkcionalnost:

  • Banner should be noticeable but not aggressive
  • Use clear, simple language - avoid legal jargon
  • Customize button empowers privacy-conscious users
  • Dark mode support maintains consistent experience

Ključne prednosti

Kaj naredi to funkcionalnost izjemno:

  • GDPR and CCPA compliant
  • Customizable consent categories
  • Multiple layouts: bar, box, floating
  • Easy consent checking in code
  • Persistent cookie storage
  • Dark mode support
Tehnična opomba

CookieConsentHelper manages consent state. Widget renders banner. Check consent with CookieConsentHelper::hasConsent('analytics') before loading tracking scripts.

Pomožni razredi
CookieConsentHelper

Konfiguracija

Legenda konfiguracijskih povezav
Baza podatkov prepiše params.php🔗 Nastavitev povezana z bazo podatkov📋 Baza podatkov hrani samo vrednost
params.php konfiguracija

Konfiguracijska pot: params['cookieConsent']

params['features']['cookieConsent'] => trueparams['cookieConsent']['position'] => 'bottom'params['cookieConsent']['layout'] => 'bar'params['cookieConsent']['showCustomizeButton'] => trueparams['cookieConsent']['categories']['analytics'] => [...]
Opomba: No database storage - consent stored in browser cookie. Configure categories and appearance in params.php.