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' => [
'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",
],
]
]
]
);