Vaša košarica je prazna
Vse funkcionalnosti
Soglasje za piškotke
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
CookieConsentHelper manages consent state. Widget renders banner. Check consent with CookieConsentHelper::hasConsent('analytics') before loading tracking scripts.
Pomožni razredi
CookieConsentHelperKonfiguracija
Legenda konfiguracijskih povezav
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'] => [...]