... |
... |
@@ -16,6 +16,7 @@ class TemplateListener
|
16 |
16 |
{
|
17 |
17 |
if (($rootPage = \PageModel::findByPk($GLOBALS['objPage']->rootId)) !== null && $rootPage->cookieconsent_enable)
|
18 |
18 |
{
|
|
19 |
+ $Template = new \FrontendTemplate('cookieconsent');
|
19 |
20 |
$arrServices = deserialize($rootPage->cookieconsent_services);
|
20 |
21 |
|
21 |
22 |
$arrServiceConfiguration = array();
|
... |
... |
@@ -75,12 +76,10 @@ class TemplateListener
|
75 |
76 |
),
|
76 |
77 |
);
|
77 |
78 |
}
|
|
79 |
+ $Template->services = json_encode($arrServiceConfiguration);
|
78 |
80 |
}
|
79 |
81 |
|
80 |
|
- $Template = new \FrontendTemplate('cookieconsent');
|
81 |
|
-
|
82 |
82 |
$Template->privacy_policy_link = $rootPage->cookieconsent_link != '' ? "'".$rootPage->cookieconsent_link."'" : "null";
|
83 |
|
- $Template->services = json_encode($arrServiceConfiguration);
|
84 |
83 |
|
85 |
84 |
if (strpos($strBuffer, '<head>'))
|
86 |
85 |
{
|