Skip to content

dfactoryplugins/cookie-notice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cookie Notice by dFactory

Cookie Notice allows you to elegantly inform users that your site uses cookies and to comply with the EU cookie law regulations.

Description

Cookie Notice allows you to elegantly inform users that your site uses cookies and to comply with the EU cookie law regulations.

For more information, check out plugin page at dFactory or plugin support forum.

Features include:

  • Customize the cookie message
  • Redirect users to specified page for more cookie information
  • Set cookie expiry
  • Link to more info page
  • Option to accept cookies on scroll
  • Option to set on scroll offset
  • Option to refuse functional cookies
  • Select the position of the cookie message box
  • Animate the message box after cookie is accepted
  • Select bottons style from None, WordPress and Bootstrap
  • Set the text and bar background colors
  • WPML and Polylang compatible
  • .pot file for translations included

Usage:

If you'd like to code a functionality depending on the cookie notice value use the function below:

if ( function_exists('cn_cookies_accepted') && cn_cookies_accepted() ) { // Your third-party non functional code here }

Get involved

Feel free to contribute to the source code on the dFactory GitHub Repository.

Installation

  1. Install Cookie Notice either via the WordPress.org plugin directory, or by uploading the files to your server
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Go to the Cookie Notice settings and set your options.

Changelog

1.3.1

  • Fix: Unable to select Privacy policy link
  • Fix: Blank Cookies policy link in a message
  • Fix: Undefined index: on_click
  • Tweak: Adjusted default opacity back to 100

1.3.0

  • New: Introducing Corona Banner that displays data about Coronavirus pandemia and five steps recommended by the WHO (World Health Organization)
  • New: Option to set bar opacity
  • New: Accept the notice with close icon
  • Fix: Policy link added to message without policy option enabled

1.2.51

  • Fix: Problems with iOS and OK/Reject button
  • Tweak: Added Separate cookie expiry for Reject, props Carlos Buchart

1.2.50

  • Fix: The body css class always set to "cookies-refused"
  • Tweak: Improve IE & Safari CustomEvent and ClassList support
  • Tweak: Change the plugin js init event

1.2.49

  • New: Option to accept the notice with any page click
  • Tweak: Remove jQuery dependency
  • Tweak: Swtich from jQuery to CSS3 animations
  • Tweak: Improve the CSS and HTML structure

1.2.48

  • Fix: HTML tags stripped from cookie message
  • Fix: Link target not accepted in inline privacy link

1.2.47

  • New: Option to select the privacy policy link position
  • Tweak: Do not relad the page on refuse button click
  • Tweak: Added aria-label attribute to cookie notice container

1.2.46

  • Tweak: Remove WP Super Cache cookie on deactivation
  • Tweak: Remove plugin version from the db on deactivation

1.2.45

  • Tweak: Improved WP Super Cache support
  • Tweak: CSS container style issue and media query for mobile

1.2.44

  • Fix: The text of the revoke button ignored in shortcode
  • Fix: Revoke consent button not displayed automatically in top position
  • Tweak: Add shortcode parsing for content of [cookies_accepted], thanks to dsturm

1.2.43

  • New: Option to revoke the user consent
  • New: Script blocking extended to header and footer
  • New: Synchronization with WordPress 4.9.6 Privacy Policy page
  • New: Custom button class option
  • Tweak: Added 1 hour cookie expiry option

1.2.42

  • New: Introducing [cookies_accepted][/cookies_accepted] shortcode
  • Fix: Infinite cookie expiry issue

1.2.41

  • Fix: Infinite redirection loop with scroll enabled

1.2.40

  • Fix: Div align center on some themes
  • Tweak: Extended list of allowed HTML tags in refuse code
  • Tweak: Minified CSS and JS

1.2.39

  • New: Option to reload the page after cookies are accepted

1.2.38

  • Tweak: Move frontend cookie js functions before the document ready call, thanks to fgreinus
  • Tweak: Adjust functional javascript code handling
  • Fix: Chhromium infinity expiration date not valid
  • Fix: Remove deprecated screen_icon() function

1.2.37

  • Tweak: Add aria landmark role="banner"
  • Tweak: Extend cn_cookie_notice_args with button class

1.2.36.1

  • Fix: Repository upload issue with 1.2.36

1.2.36

  • Fix: String translation support for WMPL 3.2+
  • Fix: Global var possible conflict with other plugins
  • Tweak: Add $options array to "cn_cookie_notice_output" filter, thanks to chesio.
  • Tweak: Removed local translation files in favor of WP repository translations.

1.2.35

  • Tweak: Use html_entity_decode on non-functional code block
  • Tweak: get_pages() function placement optimization
  • Tweak: Filterable manage cookie notice capability

1.2.21

1.2.20

  • New: Option to select scripts placement, header or footer

1.2.19

  • New: Danish translation, thanks to Lui Wallentin Gottler

1.2.18.1

  • Fix: Quick fix for 1.2.18 print_r in code

1.2.18

  • New: More info link target option
  • Tweak: Additional HTML ids, for more flexible customization

1.2.17

1.2.16

  • Tweak: Dutch translation missing due to a typo

1.2.15

  • New: Danish translation, thanks to Hans C. Jorgensen
  • Fix: Notice bar not visible if no animation selected

1.2.14

  • New: Hungarian translation, thanks to Surbma

1.2.13

1.2.12

  • New: Slovenian translation, thanks to Thomas Cuk

1.2.11

1.2.10

  • New: Italian translation, thanks to Luca
  • Tweak: Confirmed WP 4.0 compatibility

1.2.9.1

  • Tweak: Enable HTML in cookie message text
  • New: Option to donate this plugin :)

1.2.8

1.2.7

  • New: French translation, thanks to Laura Orsal
  • New: Deleting plugin settings on deactivation as an option

1.2.6

  • New: German translation, thanks to Alex Ernst

1.2.5

  • New: Spanish translation, thanks to Fernando Blasco

1.2.4

  • New: Added filter hooks to customize where and how display the cookie notice

1.2.3

  • New: Portuguese translation, thanks to Luis Maia

1.2.2

  • Fix: Read more linking to default site language in WPML & Polylang

1.2.1

  • Tweak: UI improvements for WP 3.8

1.2.0

  • Fix: Cookie not saving in IE
  • Fix: Notice hidden under Admin bar bug
  • Tweak: Improved WPML & Polylang compatibility

1.1.0

  • New: Rewritten cookie setting method to pure JS
  • Fix: Compatibility with WP Super Cache and other caching plugins

1.0.2

  • New: Dutch translation, thanks to Heleen van den Bos

1.0.1

  • Tweak: Changed setting cookie mode from AJAX to JS driven

1.0.0

Initial release