silverstripe-module silverstripe-cookie-warning
Cookie warnings for Silverstripe Projects.
bueckl/silverstripe-cookie-warning
Cookie warnings for Silverstripe Projects.
- Tuesday, March 22, 2016
- by bueckl
- Repository
- 1 Watchers
- 1 Stars
- 111 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 1 Open issues
- 1 Versions
- 6 % Grown
cookie-warning
Display Cookie Warnings on Silverstripe projects, (*1)
Requirements
Installation
Composer
composer require "bueckl/silverstripe-cookie-warning": "*"
Manual
- Download and copy module in SilverStripe root directory: https://github.com/bueckl/cookie-warning/
Usage
- Add to your Page.php:
public static function CookieWarningShown() {
$shown = Cookie::get("CookieWarningShown");
if(!$shown) {
Cookie::set("CookieWarningShown", true);
return false;
}
return true;
}, (*2)
- Link css archive:
'cookie-warning/css/CookieWarning.css', (*3)
- Add to template:
, (*4)
dev-master
9999999-dev
Cookie warnings for Silverstripe Projects.
Sources
Download
BSD-3-Clause
by
Antonia Lorente
silverstripe
cookies