GithubHelp home page GithubHelp logo

dheia / wn-iubendapolicy-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zaxbux/wn-iubendapolicy-plugin

0.0 0.0 0.0 28 KB

Display your Iubenda privacy policies on an Winter CMS site.

License: MIT License

PHP 99.27% HTML 0.73%

wn-iubendapolicy-plugin's Introduction

Iubenda Policy Cacher

This October CMS plugin allows you to display your Iubenda privacy/cookie policy on your website. The policy is downloaded and cached every day, ensuring the latest version is served to your users, and caching minimizes wait times.

Requirements

You must have a PRO subscription attached to your privacy policy in order to access the API.

Plugin Settings

Setting
Policy ID Your public Iubenda policy ID provided by your privacy policy embedding options.
Remove JavaScript By default, the Iubenda policy content has inline JavaScript present, which can cause issues when using a CSP. Enable to reomve inline JavaScript.
Cookie Solution Paste your Iubenda cookie policy here to embed it using an October CMS component.

Each time you save the settings, the policy is removed from the cache and re-downloaded.

Policy ID

Your Iubenda policy ID, which can be obtained from your embedding code on the Iubenda dashboard.

Components

These components are also available as snippets for the Static Pages plugin.

Privacy Policy Component

The iubendaPrivacyPolicy component allows your privacy policy to be displayed on any page.

title = "Privacy Policy"
url = "/privacy"

[iubendaPolicy]
==
{% component 'iubendaPrivacyPolicy' %}

Cookie Policy Component

The iubendaCookiePolicy component allows your cookie policy to be displayed on any page.

title = "Cookie Policy"
url = "/cookies"

[iubendaCookiePolicy]
==
{% component 'iubendaCookiePolicy' %}

Cookie Solution Component

The iubendaCookieSolution component allows your cookie solution embed code to be displayed on any page.

If you place this component in a layout, your cookie solution will display on every page that uses the layout.

{% component 'iubendaCookieSolution' %}

Errors

If there is an error when retrieving the policy, generic error messages will displayed in place of a policy. Extra information is logged in the backend.

Console Commands

These can be used for finding issues with policy retrieval, or for automating the download if you don't use the built-in scheduler.

iubenda:update - Downloads a fresh version of the policy. iubenda:forget - Remove the cached policies.

Change Log

  • 1.1.4 - Bug fix, and ability to remove javascript from policy content
  • 1.1.3 - Added support for static pages snippets
  • 1.1.2 - Added basic support for cookie solution
  • 1.1.1 - Removed incompatible policy style setting
  • 1.1.0 - Renamed plugin & cleaned up code
  • 1.0.4 - Added support for cookie policy
  • 1.0.3 - Localization improvements
  • 1.0.2 - Refactored code
  • 1.0.1 - First version

TODO

  • Add support for additional Iubenda services.

wn-iubendapolicy-plugin's People

Contributors

zaxbux 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.