restruct/silverstripe-cookiebar
Composer 安装命令:
composer require restruct/silverstripe-cookiebar
包简介
Drop-in configurable notice about cookies
关键字:
README 文档
README
Configurable notice about cookies, a link to a page about them and an 'accept' link to close the notice (based on the cookiebar module by Aram Balakjian & Steve Heyes).
Installation
Install via composer require and add $CookieBar just before the closing body tag:
...
$CookieBar
</body>
The included template uses bootstrap for its layout. In case the site theme does not use bootstrap, a 'sans-bs' CSS file can be included which provides a fallback layout (see config).
Configuration
The texts and image can be controlled from the CMS (SiteConfig).
Config options (with their defaults):
Restruct\CookieBar\Controls\CookieBarController: sans_bs_css: false # include no-bootstrap version CSS cookie_name: 'cookie_consent' # name of cookie with timestamp of consent cookie_age: 365 # cookie expiration in days cookie_refresh: true # refresh consent cookie upon each request
Prefab CSS inclusion can be blocked altogether from _config.php:
Requirements::block('restruct/silverstripe-cookiebar:client/dist/css/cookiebar.css');
统计信息
- 总下载量: 544
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-12-31
