This plugin adds additional features for managing personal data to the OFFLINE.GDPR plugin.
A new component is available to replace the simple banner provided by the original plugin.
It can be implemented by just substituting the name of the cookieBanner component in your layout with cookieBannerWide:
...
[cookieBannerWide]
...
==
...
{% component 'cookieBannerWide' %}
...The component offers two new (optionals) properties that allow you to configure its appearance.
| Property | Type | Description |
|---|---|---|
bg_cookie |
Boolean | Show or not a cookie background in the banner (default off) |
color_scheme |
String | The color scheme to use for toggles and buttons (default blue) |
The available color schemes are blue (default), red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, indigo, violet, purple, fuchsia, pink and rose.
If you wish, you can define your own color scheme by specifying the following css variables in a .gdpr-bannerwide selector:
.gdpr-bannerwide {
--color-background: #bfdbfe;
--color-border: #3b82f6;
--color-accent: #1d4ed8;
}You can also define the size of the toggles by setting the --toggle-size variable in a .gdpr-bannerwide selector:
.gdpr-bannerwide {
--toggle-size: 20px;
}The default size is 20px on smartphones, 22px on small screens, 24px on medium screens and 28px on large screens.
You can replace the basic title and message by defining a translation file in your site ./lang/en/hounddd/gdprplus/lang.php:
<?php
return [
'components' => [
'bannerwide' => [
'title' => 'We love cookies.',
'message' => 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Itaque et quos quam! Beatae, culpa consectetur!',
],
],
];Let assume you're in the root of your wintercms installation.
Just run this command
composer require hounddd/wn-gdprplus-pluginClone this repository into your winter plugins folder.
cd plugins
mkdir hounddd && cd hounddd
git clone https://github.com/Hounddd/wn-gdprplus-plugin gdprplusMake awesome sites with ❄ WinterCMS!

