page-8/total-cookie-consent 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

page-8/total-cookie-consent

Composer 安装命令:

composer require page-8/total-cookie-consent

包简介

The plugin provides total control over the cookie consent collection process and includes three consent collection options: No Consent, Implied Consent, and Explicit Consent. Collection methods can be tailored per country or state to provide an optimal non-intrusive user experience.

README 文档

README

The plugin provides total control over the cookie consent collection process and includes three consent collection options: No Consent, Implied Consent, and Explicit Consent. Collection methods can be tailored per country or state to provide an optimal non-intrusive user experience.

Requirements

This plugin requires Craft CMS 3.0.0 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require pageworks/total-cookie-consent
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Total Cookie Consent.

Usage

Add the following twig to your project base template to begin using the plugin.

{% hook 'total-cookie-consent' %}

{% set consent = craft.tcc.consent() %}
{% if consent['statistics'] %}
        {# statistics code #}
{% endif %}
{% if consent['marketing'] %}
        {# marketing code #}
{% endif %}
{% if consent['necessary'] %}
        {# necessary code #}
{% endif %}

统计信息

  • 总下载量: 30
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固