Skip to content

Releases: michnhokn/kirby-cookie-banner

1.1.0

24 Mar 14:29
Compare
Choose a tag to compare

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

15 Feb 16:13
Compare
Choose a tag to compare
  • 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

19 Jan 16:44
Compare
Choose a tag to compare
  • Add new option to hide cookie modal on initial pageload (from Issue #5)
<?php snippet('cookie-modal', ['assets' => true, 'showOnFirst' => true]) ?>

1.0.7

18 Dec 13:05
Compare
Choose a tag to compare
  • The JavaScript has been rewritten and no longer requires Umbrella.js
  • Adjusted version number in composer.json

1.0.6

20 Oct 20:26
Compare
Choose a tag to compare
  • Remove secure option from cookie
  • Features can now also be added inside the snippet
<?php snippet('cookie-modal', [
  'assets' => true,
  'features' => ['mapBox' => 'Map Box'],
]) ?>

1.0.5

16 Sep 10:52
Compare
Choose a tag to compare
  • 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

16 Sep 10:09
Compare
Choose a tag to compare

Its now possible to place the cookie-modal snippet without assets. Make sure you update your template if you want to keep the assets included with the snippet:

<?php snippet('cookie-modal', ['assets' => true]) ?>

Learn more in the wiki.

1.0.3

15 Sep 15:57
Compare
Choose a tag to compare
  • Improved javascript logic
  • ⚠️ If a selection is made an event called cookies:saved is triggerd on <body>. The included data contains an array of allowed features. You can set these up in your config.php file under site/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>

1.0.2

15 Sep 14:33
Compare
Choose a tag to compare
  • improve cookie modal accessibility
  • improve markup
  • improve styling
  • fix: removed last comma in cookie-value

1.0.1

15 Sep 13:10
Compare
Choose a tag to compare

🐛 fixed some bugs