Skip to content

bueckl/cookie-warning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cookie-warning

Display Cookie Warnings on Silverstripe projects

Requirements

  • SilverStripe 3.1.*

Installation

Composer

  • composer require "bueckl/silverstripe-cookie-warning": "*"

Manual

Usage

  1. Add to your Page.php:

public static function CookieWarningShown() { $shown = Cookie::get("CookieWarningShown"); if(!$shown) { Cookie::set("CookieWarningShown", true); return false; } return true; }

  1. Link css archive:

'cookie-warning/css/CookieWarning.css'

  1. Add to template:

<% include CookieWarning %>

About

Display Cookie Warnings on Silverstripe projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published