2017 © Pedro Peláez
 

wordpress-plugin wp-cookie-banner

Provides an obnoxious cookie warning

image

rareloop/wp-cookie-banner

Provides an obnoxious cookie warning

  • Saturday, November 28, 2015
  • by rareloop
  • Repository
  • 0 Watchers
  • 0 Stars
  • 403 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

Cookie Banner

Adds one of those obnoxious cookie warning banners to your site. Instead of using JavaScript to add the banner, the markup is on the DOM at page load., (*1)

Setup

Add the following to your templates where you want the banner to appear:, (*2)

[cookiebanner]We know you don't care but we use cookies. <a href="/cookies">More information</a>[/cookiebanner]

Optional attributes:, (*3)

  • class - defaults to cookiebanner
  • maxAge - defaults to 1 year

Example output

<div class="cookiebanner">
    We know you don't care but we use cookies. <a href="/cookies">More information</a>
</div>

Ironically, the plugin needs to create a cookie so that the server knows not to show the banner after its been shown once. In case you need to add this to your privacy policy, the cookie created is called _seen_cookie_notice., (*4)

The Versions

28/11 2015

dev-master

9999999-dev

Provides an obnoxious cookie warning

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

28/11 2015

v1.0.0

1.0.0.0

Provides an obnoxious cookie warning

  Sources   Download

The Requires

  • php >=5.5.0