A plugin for Kirby 2 CMS that shows an cookie approval banner to use in your templates.
Copy or link the cookie
directory to site/plugins/
or use the Kirby CLI:
kirby plugin:install schnti/kirby-cookie
jQuery v2.*+
$ka-cookie-bg: #222 !default;
$ka-cookie-color: #fff !default;
$ka-cookie-link-color: #31a8f0 !default;
$ka-cookie-link-color-hover: #b2f7ff !default;
$ka-cookie-btn-bg: #f1d600 !default;
$ka-cookie-btn-color: #222 !default;
$ka-cookie-position: bottom-right !default; // top-left, top-right, bottom-left, bottom-right
@import "../website/site/plugins/cookie/cookie.scss";
- ka.cookie.link: String (default: 'datenschutzerklaerung')
c::set('ka.cookie.link', 'datenschutz');
use this right before closing </body>
tag and after jQuery import
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<?= cookie(); ?>