... | ... |
@@ -14,41 +14,41 @@ |
14 | 14 |
$GLOBALS['TL_LANG']['XPL']['cookieconsent_categories'][0] = array |
15 | 15 |
( |
16 | 16 |
"Example configuration for a category", |
17 |
- nl2br(str_replace(' ',' ',"ads: { |
|
18 |
- needed: false, |
|
19 |
- wanted: false, |
|
20 |
- checked: false, |
|
21 |
- language: { |
|
22 |
- locale: { |
|
23 |
- de: { |
|
24 |
- name: 'Werbung und Marketing', |
|
25 |
- description: 'Diese Cookies erlauben uns Werbung zielgerichtet für Sie azsuliefern. Dadurch sehen Sie ggf. für Sie relevantere Werbeanzeigen.', |
|
26 |
- }, |
|
27 |
- en: { |
|
28 |
- name: 'Ads and Marketing', |
|
29 |
- description: 'These cookies allow us to deliver targeted advertising to you. This allows you to see advertisements that may be more relevant to you.', |
|
30 |
- } |
|
17 |
+nl2br(str_replace(' ',' ',"ads: { |
|
18 |
+ needed: false, |
|
19 |
+ wanted: false, |
|
20 |
+ checked: false, |
|
21 |
+ language: { |
|
22 |
+ locale: { |
|
23 |
+ de: { |
|
24 |
+ name: 'Werbung und Marketing', |
|
25 |
+ description: 'Diese Cookies erlauben uns Werbung zielgerichtet für Sie azsuliefern. Dadurch sehen Sie ggf. für Sie relevantere Werbeanzeigen.', |
|
26 |
+ }, |
|
27 |
+ en: { |
|
28 |
+ name: 'Ads and Marketing', |
|
29 |
+ description: 'These cookies allow us to deliver targeted advertising to you. This allows you to see advertisements that may be more relevant to you.', |
|
31 | 30 |
} |
32 | 31 |
} |
33 |
- }")) |
|
32 |
+ } |
|
33 |
+}")) |
|
34 | 34 |
); |
35 | 35 |
|
36 | 36 |
$GLOBALS['TL_LANG']['XPL']['cookieconsent_services'][0] = array |
37 | 37 |
( |
38 | 38 |
"Example configuration for a service", |
39 |
- nl2br(str_replace(' ',' ',"analytics: { |
|
40 |
- category: 'necessary', |
|
41 |
- type: 'dynamic-script', |
|
42 |
- search: 'analytics', |
|
43 |
- language: { |
|
44 |
- locale: { |
|
45 |
- de: { |
|
46 |
- name: 'Google Analytics' |
|
47 |
- }, |
|
48 |
- en: { |
|
49 |
- name: 'Google Analytics' |
|
50 |
- } |
|
39 |
+nl2br(str_replace(' ',' ',"analytics: { |
|
40 |
+ category: 'necessary', |
|
41 |
+ type: 'dynamic-script', |
|
42 |
+ search: 'analytics', |
|
43 |
+ language: { |
|
44 |
+ locale: { |
|
45 |
+ de: { |
|
46 |
+ name: 'Google Analytics' |
|
47 |
+ }, |
|
48 |
+ en: { |
|
49 |
+ name: 'Google Analytics' |
|
51 | 50 |
} |
52 | 51 |
} |
53 |
- }")) |
|
52 |
+ } |
|
53 |
+}")) |
|
54 | 54 |
); |
... | ... |
@@ -14,7 +14,7 @@ |
14 | 14 |
$GLOBALS['TL_LANG']['XPL']['cookieconsent_categories'][0] = array |
15 | 15 |
( |
16 | 16 |
"Example configuration for a category", |
17 |
- nl2br("ads: { |
|
17 |
+ nl2br(str_replace(' ',' ',"ads: { |
|
18 | 18 |
needed: false, |
19 | 19 |
wanted: false, |
20 | 20 |
checked: false, |
... | ... |
@@ -30,13 +30,13 @@ $GLOBALS['TL_LANG']['XPL']['cookieconsent_categories'][0] = array |
30 | 30 |
} |
31 | 31 |
} |
32 | 32 |
} |
33 |
- }") |
|
33 |
+ }")) |
|
34 | 34 |
); |
35 | 35 |
|
36 | 36 |
$GLOBALS['TL_LANG']['XPL']['cookieconsent_services'][0] = array |
37 | 37 |
( |
38 | 38 |
"Example configuration for a service", |
39 |
- nl2br("analytics: { |
|
39 |
+ nl2br(str_replace(' ',' ',"analytics: { |
|
40 | 40 |
category: 'necessary', |
41 | 41 |
type: 'dynamic-script', |
42 | 42 |
search: 'analytics', |
... | ... |
@@ -50,5 +50,5 @@ $GLOBALS['TL_LANG']['XPL']['cookieconsent_services'][0] = array |
50 | 50 |
} |
51 | 51 |
} |
52 | 52 |
} |
53 |
- }") |
|
53 |
+ }")) |
|
54 | 54 |
); |
... | ... |
@@ -11,10 +11,10 @@ |
11 | 11 |
/** |
12 | 12 |
* Explanations |
13 | 13 |
*/ |
14 |
-$GLOBALS['TL_LANG']['XPL']['cookieconsent_categories'][] = array |
|
14 |
+$GLOBALS['TL_LANG']['XPL']['cookieconsent_categories'][0] = array |
|
15 | 15 |
( |
16 | 16 |
"Example configuration for a category", |
17 |
- "ads: { |
|
17 |
+ nl2br("ads: { |
|
18 | 18 |
needed: false, |
19 | 19 |
wanted: false, |
20 | 20 |
checked: false, |
... | ... |
@@ -30,13 +30,13 @@ $GLOBALS['TL_LANG']['XPL']['cookieconsent_categories'][] = array |
30 | 30 |
} |
31 | 31 |
} |
32 | 32 |
} |
33 |
- }" |
|
33 |
+ }") |
|
34 | 34 |
); |
35 | 35 |
|
36 |
-$GLOBALS['TL_LANG']['XPL']['cookieconsent_services'][] = array |
|
36 |
+$GLOBALS['TL_LANG']['XPL']['cookieconsent_services'][0] = array |
|
37 | 37 |
( |
38 | 38 |
"Example configuration for a service", |
39 |
- "analytics: { |
|
39 |
+ nl2br("analytics: { |
|
40 | 40 |
category: 'necessary', |
41 | 41 |
type: 'dynamic-script', |
42 | 42 |
search: 'analytics', |
... | ... |
@@ -50,5 +50,5 @@ $GLOBALS['TL_LANG']['XPL']['cookieconsent_services'][] = array |
50 | 50 |
} |
51 | 51 |
} |
52 | 52 |
} |
53 |
- }" |
|
53 |
+ }") |
|
54 | 54 |
); |
... | ... |
@@ -15,20 +15,40 @@ $GLOBALS['TL_LANG']['XPL']['cookieconsent_categories'][] = array |
15 | 15 |
( |
16 | 16 |
"Example configuration for a category", |
17 | 17 |
"ads: { |
18 |
- needed: false, |
|
18 |
+ needed: false, |
|
19 | 19 |
wanted: false, |
20 | 20 |
checked: false, |
21 | 21 |
language: { |
22 |
- locale: { |
|
23 |
- de: { |
|
24 |
- name: 'Werbung und Marketing', |
|
25 |
- description: 'Diese Cookies erlauben uns Werbung zielgerichtet für Sie azsuliefern. Dadurch sehen Sie ggf. für Sie relevantere Werbeanzeigen.', |
|
26 |
- }, |
|
27 |
- en: { |
|
28 |
- name: 'Ads and Marketing', |
|
29 |
- description: 'These cookies allow us to deliver targeted advertising to you. This allows you to see advertisements that may be more relevant to you.', |
|
22 |
+ locale: { |
|
23 |
+ de: { |
|
24 |
+ name: 'Werbung und Marketing', |
|
25 |
+ description: 'Diese Cookies erlauben uns Werbung zielgerichtet für Sie azsuliefern. Dadurch sehen Sie ggf. für Sie relevantere Werbeanzeigen.', |
|
26 |
+ }, |
|
27 |
+ en: { |
|
28 |
+ name: 'Ads and Marketing', |
|
29 |
+ description: 'These cookies allow us to deliver targeted advertising to you. This allows you to see advertisements that may be more relevant to you.', |
|
30 |
+ } |
|
30 | 31 |
} |
31 | 32 |
} |
32 |
- } |
|
33 |
-}" |
|
33 |
+ }" |
|
34 |
+); |
|
35 |
+ |
|
36 |
+$GLOBALS['TL_LANG']['XPL']['cookieconsent_services'][] = array |
|
37 |
+( |
|
38 |
+ "Example configuration for a service", |
|
39 |
+ "analytics: { |
|
40 |
+ category: 'necessary', |
|
41 |
+ type: 'dynamic-script', |
|
42 |
+ search: 'analytics', |
|
43 |
+ language: { |
|
44 |
+ locale: { |
|
45 |
+ de: { |
|
46 |
+ name: 'Google Analytics' |
|
47 |
+ }, |
|
48 |
+ en: { |
|
49 |
+ name: 'Google Analytics' |
|
50 |
+ } |
|
51 |
+ } |
|
52 |
+ } |
|
53 |
+ }" |
|
34 | 54 |
); |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,34 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+/* |
|
4 |
+* This file is part of eSales Media cookieconsent module |
|
5 |
+* |
|
6 |
+* (c) Benjamin Roth |
|
7 |
+* |
|
8 |
+* @license https://www.gnu.org/licenses/gpl-3.0.html GPL |
|
9 |
+*/ |
|
10 |
+ |
|
11 |
+/** |
|
12 |
+ * Explanations |
|
13 |
+ */ |
|
14 |
+$GLOBALS['TL_LANG']['XPL']['cookieconsent_categories'][] = array |
|
15 |
+( |
|
16 |
+ "Example configuration for a category", |
|
17 |
+ "ads: { |
|
18 |
+ needed: false, |
|
19 |
+ wanted: false, |
|
20 |
+ checked: false, |
|
21 |
+ language: { |
|
22 |
+ locale: { |
|
23 |
+ de: { |
|
24 |
+ name: 'Werbung und Marketing', |
|
25 |
+ description: 'Diese Cookies erlauben uns Werbung zielgerichtet für Sie azsuliefern. Dadurch sehen Sie ggf. für Sie relevantere Werbeanzeigen.', |
|
26 |
+ }, |
|
27 |
+ en: { |
|
28 |
+ name: 'Ads and Marketing', |
|
29 |
+ description: 'These cookies allow us to deliver targeted advertising to you. This allows you to see advertisements that may be more relevant to you.', |
|
30 |
+ } |
|
31 |
+ } |
|
32 |
+ } |
|
33 |
+}" |
|
34 |
+); |