bestyii/yii2-cookie-consent
Composer 安装命令:
composer require bestyii/yii2-cookie-consent
包简介
Yii2 Cookie Consent to alerting users about the use of cookies on your Yii2 website.
README 文档
README
Yii2 Cookie Consent to alerting users about the use of cookies on your Yii2 website, using Cookie Consent Script: https://github.com/insites/cookieconsent/tree/2.0.0
Installation Using Composer
The preferred way to install this extension is through composer.
Either run
$ php composer.phar require bestyii/yii2-cookie-consent "^1.5.1"
or add in composer.json
"bestyii/yii2-cookie-consent": "^1.5.1"
Insert Widget
You can load the CookieConsent Widget like this:
use bestyii\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
- All Options at https://silktide.com/tools/cookie-consent/docs/installation/
- If you don't want a link for more info set learnMore to null
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2020-06-30