linkthom/kirby-kookie

Kirby Kookie

Installs: 345

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 1

Type:kirby-plugin

1.0.3 2020-10-06 08:26 UTC

This package is auto-updated.

Last update: 2024-09-06 20:48:07 UTC


README

Let users accept/reject cookies and display the <script> tags in site/snippets/cookies_accepted.php conditionally.

Simply insert <?php snippet('kookie') ?> and you're good to go.

Preview

Options

# site/config/config.php
return [
  'kookie.color' => '#000000',
  'kookie.background-color' => '#ffffff',
  'kookie.color-accept' => '#ffffff',
  'kookie.background-color-accept' => '#000000',
  'kookie.color-reject' => '#ffffff',
  'kookie.background-color-reject' => '#777777',
  'kookie.text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
  'kookie.link' => 'privacy',
  'kookie.linkText' => 'Learn more',
  'kookie.accept' => 'Accept',
  'kookie.reject' => 'Reject',
]