This commit is contained in:
+14
-6
@@ -18,14 +18,10 @@ defined('ABSPATH') || exit;
|
||||
final class Config {
|
||||
use Singleton;
|
||||
|
||||
protected function __construct() {
|
||||
|
||||
}
|
||||
|
||||
public function get_config(): array
|
||||
{
|
||||
// See https://klaro.org/docs/integration/annotated-configuration
|
||||
$config = [
|
||||
return apply_filters('ogre_consent_config', [
|
||||
'elementID' => Plugin::get_id(),
|
||||
'storageMethod' => 'localStorage',
|
||||
'storageName' => Plugin::get_id(),
|
||||
@@ -34,9 +30,21 @@ final class Config {
|
||||
'mustConsent' => true,
|
||||
'acceptAll' => true,
|
||||
'hideLearnMore' => true,
|
||||
'disablePoweredBy' => true,
|
||||
'services' => Services::instance()->get_config(),
|
||||
]);
|
||||
}
|
||||
|
||||
public static function get_purposes(): array
|
||||
{
|
||||
return [
|
||||
'advertising' => Plugin::__('Advertising'),
|
||||
'analytics' => Plugin::__('Analytics'),
|
||||
'livechat' => Plugin::__('Livechat'),
|
||||
'marketing' => Plugin::__('Marketing'),
|
||||
'security' => Plugin::__('Security'),
|
||||
'styling' => Plugin::__('Styling'),
|
||||
];
|
||||
return apply_filters('ogre_consent_config', $config);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user