hounddd / wn-gdprplus-plugin
Additional features for OFFLINE.Gdpr plugin
Installs: 34
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:winter-plugin
Requires
- php: ^7.2 || ^8.0
- offline/oc-gdpr-plugin: ^2.2
README
This plugin adds additional features for managing personal data to the OFFLINE.GDPR plugin.
Wide banner
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' %} ...
Additional and optional properties of the cookieBannerWide
component**
The component offers two new (optionals) properties that allow you to configure its appearance.
The available color schemes are blue (default), red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, indigo, violet, purple, fuchsia, pink and rose.
Colors schemes
Make it your own
Appearance
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.
Texts
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!', ], ], ];
Installation
Let assume you're in the root of your wintercms installation.
Using composer
Just run this command
composer require hounddd/wn-gdprplus-plugin
Clone
Clone this repository into your winter plugins folder.
cd plugins mkdir hounddd && cd hounddd git clone https://github.com/Hounddd/wn-gdprplus-plugin gdprplus
Make awesome sites with ❄ WinterCMS!