1. Go to this page and download the library: Download zephir/kirby-cookieconsent library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
'zephir.cookieconsent' => [
'categories' => [
'necessary' => [
'enabled' => true, // marks the category as enabled by default
'readOnly' => true
],
'measurement' => [],
'functionality' => [],
'experience' => [],
'marketing' => []
],
]
'zephir.cookieconsent' => [
'categories' => [
'necessary' => [
'enabled' => true,
'readOnly' => true
],
'measurement' => [],
'functionality' => false, // will not be shown
'experience' => false, // will not be shown
'marketing' => []
],
]
'zephir.cookieconsent' => [
'language' => [
'locale' => 'de', // The translation to use, default is en
'direction' => 'ltr' // Either ltr or rtl, default is ltr
]
]
// site/cc-translations/en.php
return array_replace_recursive(
// We assume the plugin was installed as suggested in the installation section of the readme.
ons" => [
[ // Add a new category in sections
"title" => "Custom scripts",
"description" => "Diese Cookies helfen uns, Ihnen personalisierte Werbung oder Marketinginhalte bereitzustellen und deren Leistung zu messen.",
"linkedCategory" => "custom-scripts",
],
]
]
]
);