1
1
# A Cookie Consent Modal for Kirby3
2
+
2
3
![ Release] ( https://flat.badgen.net/packagist/v/michnhokn/kirby3-cookie-banner?color=92a9c4 )
3
4
![ Last Commit] ( https://flat.badgen.net/github/last-commit/michnhokn/kirby3-cookie-banner?color=92c496 )
4
5
7
8
## Commercial Usage
8
9
9
10
This plugin is free but if you use it in a commercial project please consider to
11
+
10
12
- [ buy me a 🍺] ( https://buymeacoff.ee/michnhokn )
11
13
12
14
## 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
14
18
- ` git submodule add https://github.com/michnhokn/kirby3-cookie-banner.git site/plugins/kirby3-cookie-banner ` or
15
19
- ` composer require michnhokn/kirby3-cookie-banner `
16
20
17
21
## Features
22
+
18
23
- Add a custom cookie consent modal
19
24
- 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
21
27
- [ PHP functions] ( https://github.com/michnhokn/kirby3-cookie-banner/wiki/03-PHP-functions ) to check for allowed features
22
28
23
29
For more features check out the [ wiki] ( https://github.com/michnhokn/kirby3-cookie-banner/wiki ) .
24
30
25
31
## Setup
32
+
26
33
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
+ ````
30
41
2. Set up your features for the cookie modal.
31
42
````php
32
43
return [
@@ -48,9 +59,11 @@ For more features check out the [wiki](https://github.com/michnhokn/kirby3-cooki
48
59
Learn more in the [ wiki] ( https://github.com/michnhokn/kirby3-cookie-banner/wiki/01-How-to-set-it-up ) .
49
60
50
61
## Methods
62
+
51
63
See all available functions in the [ wiki] ( https://github.com/michnhokn/kirby3-cookie-banner/wiki/03-PHP-functions ) .
52
64
53
65
## Misc
66
+
54
67
** Roadmap** : Have a look at this [ project] ( https://github.com/michnhokn/kirby3-cookie-banner/projects/1 ) .
55
68
56
69
** License** : ` MIT `
0 commit comments