- Publicity: Public Only All
cookie-consent-procs.tcl
Integration of the Cookie Consent Library into OpenACS The Cookie Consent Library is and Cookie Consent to be free and open sourced library for alerting users about the use of cookies on a website. It is designed to help you comply with the hideous EU Cookie Law and not make you want to kill yourself in the process. So we made it fast, free, and relatively painless. Details: https://cookieconsent.insites.com/ https://github.com/insites/cookieconsent/ This package integrates the Consent Plugin with OpenACS, in particular with OpenACS subsites.
This file defines the following Objects and Classes: ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent, ::cookieconsent::CookieConsent
- Location:
- packages/cookie-consent/tcl/cookie-consent-procs.tcl
- Created:
- 13 Dec 2017
- Author:
- Gustaf Neumann
- CVS Identification:
$Id: cookie-consent-procs.tcl,v 1.12.2.18 2024/08/17 17:07:30 gustafn Exp $
Procedures in this file
- Class ::cookieconsent::CookieConsent (public)
- cookieconsent::add_to_page (public)
- cookieconsent::initialize_widget (public)
- cookieconsent::reset_cookie (public)
- cookieconsent::resource_info (public)
Detailed information
Class ::cookieconsent::CookieConsent (public)
::nx::Class ::cookieconsent::CookieConsent
Create the Class for configuring the cookie consent widget. This class requires nx from the next-scripting framework. https://next-scripting.org/xowiki/ which is automatically installed for XOTcl2 via https://openacs.org/xowiki/naviserver-openacs
- Testcases:
- No testcase defined.
cookieconsent::add_to_page (public)
cookieconsent::add_to_page [ -version version ] object
Add the necessary CSS, JavaScript and CSP to the current page.
- Switches:
- -version (optional)
- Parameters:
- object (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- cookie_consent__setup
cookieconsent::initialize_widget (public)
cookieconsent::initialize_widget [ -subsite_id subsite_id ]
Initialize a cookie-consent widget.
- Switches:
- -subsite_id (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- cookie_consent__setup
cookieconsent::reset_cookie (public)
cookieconsent::reset_cookie [ -subsite_id subsite_id ]
Reset the consent cookie.
- Switches:
- -subsite_id (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- cookie_consent__setup
cookieconsent::resource_info (public)
cookieconsent::resource_info [ -version version ]
Get information about available version(s) of the cookieconsent packages, either from the local filesystem, or from CDN.
- Switches:
- -version (optional)
- Returns:
- dict containing resourceDir, resourceName, cdn, cdnHost, prefix, cssFiles, jsFiles and extraFiles.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- cookie_consent__setup