-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gtmconsentmodebannerfree.php
61 lines (49 loc) · 1.98 KB
/
gtmconsentmodebannerfree.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
if (!defined('_PS_VERSION_')) {
exit;
}
require_once _PS_MODULE_DIR_ . 'gtmconsentmodebannerfree/vendor/autoload.php';
class GtmConsentModeBannerFree extends Module implements TagConcierge\GtmConsentModeBannerFree\Install\TagConciergeModuleInterface
{
use TagConcierge\GtmConsentModeBannerFree\Install\ModuleTrait;
use TagConcierge\GtmConsentModeBannerFree\Install\CompatibilityTrait;
/** @var array */
const HOOKS = [
TagConcierge\GtmConsentModeBannerFree\Hook\NotificationHook::class,
TagConcierge\GtmConsentModeBannerFree\Hook\AssetsHook::class,
TagConcierge\GtmConsentModeBannerFree\Hook\InitialScriptHook::class,
TagConcierge\GtmConsentModeBannerFree\Hook\BannerScriptHook::class,
TagConcierge\GtmConsentModeBannerFree\Hook\GtmHook::class,
TagConcierge\GtmConsentModeBannerFree\Hook\CustomCssHook::class,
];
/** @var string */
const MODULE_FILE = _PS_MODULE_DIR_ . 'gtmconsentmodebannerfree/gtmconsentmodebannerfree.php';
/**
* TagConcierge constructor.
*/
public function __construct()
{
$this->name = 'gtmconsentmodebannerfree';
$this->author = 'Tag Concierge';
$this->version = '1.1.3';
$this->ps_versions_compliancy = ['min' => '1.6.0.0', 'max' => _PS_VERSION_];
$this->bootstrap = true;
$this->tab = 'advertising_marketing';
parent::__construct();
$this->displayName = $this->trans('Google Tag Manager Consent Mode Banner Free', [], 'Modules.GtmConsentModeBannerFree.Admin');
$this->description = $this->trans('Lightweight Consent/Cookies Banner compatible with GTM Consent Mode dedicated for Prestashop.', [], 'Modules.GtmConsentModeBannerFree.Admin');
$this->init();
}
public function isPro()
{
return false;
}
public function getNotificationKey()
{
return '3f06f392-93f8-4928-9135-3cfd571c8de6';
}
public function getName()
{
return $this->name;
}
}