Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit 1c04714

Browse files
author
michnhokn
committed
Merge branch 'release/1.0.8'
2 parents 39474bd + 3a122fc commit 1c04714

File tree

6 files changed

+3344
-12
lines changed

6 files changed

+3344
-12
lines changed

README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# A Cookie Consent Modal for Kirby3
2+
23
![Release](https://flat.badgen.net/packagist/v/michnhokn/kirby3-cookie-banner?color=92a9c4)
34
![Last Commit](https://flat.badgen.net/github/last-commit/michnhokn/kirby3-cookie-banner?color=92c496)
45

@@ -7,26 +8,36 @@
78
## Commercial Usage
89

910
This plugin is free but if you use it in a commercial project please consider to
11+
1012
- [buy me a 🍺](https://buymeacoff.ee/michnhokn)
1113

1214
## Installation
13-
- unzip [master.zip](https://github.com/michnhokn/kirby3-cookie-banner/archive/master.zip) as folder `site/plugins/kirby3-cookie-banner` or
15+
16+
- unzip [master.zip](https://github.com/michnhokn/kirby3-cookie-banner/archive/master.zip) as
17+
folder `site/plugins/kirby3-cookie-banner` or
1418
- `git submodule add https://github.com/michnhokn/kirby3-cookie-banner.git site/plugins/kirby3-cookie-banner` or
1519
- `composer require michnhokn/kirby3-cookie-banner`
1620

1721
## Features
22+
1823
- Add a custom cookie consent modal
1924
- Fully [translatable](https://github.com/michnhokn/kirby3-cookie-banner/wiki/02-Translate-the-modal).
20-
- [Intercept](https://github.com/michnhokn/kirby3-cookie-banner/wiki/01-How-to-set-it-up#-intercept-changes-to-the-cookie-settings) cookie status
25+
- [Intercept](https://github.com/michnhokn/kirby3-cookie-banner/wiki/01-How-to-set-it-up#-intercept-changes-to-the-cookie-settings)
26+
cookie status
2127
- [PHP functions](https://github.com/michnhokn/kirby3-cookie-banner/wiki/03-PHP-functions) to check for allowed features
2228

2329
For more features check out the [wiki](https://github.com/michnhokn/kirby3-cookie-banner/wiki).
2430

2531
## Setup
32+
2633
1. Put the `cookie-modal` snippet right before the closing body tag.
27-
``` php
28-
<?php snippet('cookie-modal', ['assets' => true]) ?>
29-
```
34+
```` php
35+
<?php snippet('cookie-modal', [
36+
'assets' => true,
37+
'showOnFirst' => true,
38+
'features' => [...],
39+
]) ?>
40+
````
3041
2. Set up your features for the cookie modal.
3142
````php
3243
return [
@@ -48,9 +59,11 @@ For more features check out the [wiki](https://github.com/michnhokn/kirby3-cooki
4859
Learn more in the [wiki](https://github.com/michnhokn/kirby3-cookie-banner/wiki/01-How-to-set-it-up).
4960

5061
## Methods
62+
5163
See all available functions in the [wiki](https://github.com/michnhokn/kirby3-cookie-banner/wiki/03-PHP-functions).
5264

5365
## Misc
66+
5467
**Roadmap**: Have a look at this [project](https://github.com/michnhokn/kirby3-cookie-banner/projects/1).
5568

5669
**License**: `MIT`

assets/cookie-modal.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "michnhokn/kirby3-cookie-banner",
33
"description": "Add a cookie modal to your Kirby3 website",
44
"type": "kirby-plugin",
5-
"version": "1.0.7",
5+
"version": "1.0.8",
66
"license": "MIT",
77
"authors": [
88
{

0 commit comments

Comments
 (0)