Giter Club home page Giter Club logo

yii2-cookie-consent's Introduction

Yii2 Cookie Consent

Yii2 Cookie Consent to alerting users about the use of cookies on your Yii2 website, using Cookie Consent Script: https://github.com/silktide/cookieconsent2

Installation Using Composer

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require cinghie/yii2-cookie-consent "*"

or add in composer.json

"cinghie/yii2-cookie-consent": "*"

Insert Widget

You can load the CookieConsent Widget like this:

use cinghie\cookieconsent\widgets\CookieWidget;

<?= CookieWidget::widget([ 
        'message' => 'This website uses cookies to ensure you get the best experience on our website.',
		'dismiss' => 'Got It',
        'learnMore' => 'More info',
		'link' => 'http://silktide.com/privacy-policy',
		'theme' => 'dark-bottom'
]); ?>

Theme Options

Changelog

  • Version 1.4.3 - Fix #2 403 forbidden css
  • Version 1.4.2 - Updated version
  • Version 1.4.1 - Fixed composer bug
  • Version 1.4.0 - Added Cookie Consent Bower Asset
  • Version 1.3.0 - Update JS to 1.0.6 version and added new params
  • Version 1.2.0 - Update JS to 1.0.4 version and ordered after Bootstrap
  • Version 1.1.2 - Fixing error to extends yii Widget problem
  • Version 1.1.1 - Added link null option
  • Version 1.1.0 - Added Message & Dismiss Value
  • Version 1.0.1 - Updated README
  • Version 1.0.0 - Initial Release

yii2-cookie-consent's People

Contributors

cinghie avatar rubenphp avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.