Releases: michnhokn/kirby-cookie-banner
Releases · michnhokn/kirby-cookie-banner
1.1.0
What's Changed
- Removed the wiki and moved all the configuration options into the
README.md
- Added an improved helper class to work with the cookie features
- Use sameSite: lax for cookie by @mzur in #10
- respect
media
folder name change by @moevbiz in #14 - Added a new loaded event by @philipmarnef #15
Breaking Changes
While making adjustments, it's possible to unintentionally introduce errors that might affect your website's functionality. To minimize this risk, I recommend paying close attention to how you're using the plugin's PHP functions.
Full Changelog: 1.0.9...v1.1.0
1.0.9
- Add support for none multi-lang setups.
You can now customize the cookie modal texts even without enabling multilingualism. To do this, simply change the following values in config.php:
return [
'michnhokn.cookie-banner.content' => [
'title' => '🍪 Cookie Einstellungen',
'text' => '...',
'essentialText' => '...',
'denyAll' => '...',
'acceptAll' => '...',
'save' => '...',
]
];
1.0.8
1.0.7
1.0.6
1.0.5
- JavaScript inside the snippet now loades without blocking parsing of the document (Learn more)
- Configurable features can now also be translated
<?php
// site/config/config.php
return [
'michnhokn.cookie-banner' => [
'features' => [
'analytics' => 'custom.cookie-modal.analytics',
'mapbox' => 'custom.cookie-modal.mapbox',
...
]
]
];
1.0.4
1.0.3
- Improved javascript logic
⚠️ If a selection is made an event calledcookies:saved
is triggerd on<body>
. The included data contains an array of allowed features. You can set these up in yourconfig.php
file undersite/config/
.⚠️ The way you implement the cookie modal changed:
<?php snippet('cookie-modal') ?>
- The modal can be recalled and edited by triggering the event
cookies:update
on the<bod>
tag.
<button onclick="u('body').trigger('cookies:update')">Update cookies</button>