You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All cookie types are prepared by the PHP class CookieHandler. This class allows you to prepare the scripts to be processed by the JS plugin. See Hooks for integration.
Functions
addScript(string $strScript, int $mode, int $pos)
Adds a script at the desired position (e.g. <script>console.log(1);</script>)
Attention: The $mode parameter of the addScript function must be passed as a boolean value before Version 1.10. If true, the script is loaded only if the cookie is accepted.
Parameter
Description
string $strScript
Enables the integration of your own cookie types. (see Create own Cookie-Types)
int $mode
Defines the loading mode (see "Constants": Loading-Constants)
int $pos
Defines the position in HTML (see "Constants": Position-Constants)
addResource(string $strSrc, array $flags, int $mode)
Adds an external resource in the header area (e.g. <script src="www.vendor.com/script.js" async></script>)