This commit is contained in:
2026-05-19 09:39:05 +02:00
parent 301cf5123e
commit 958c59b2f8
12 changed files with 562 additions and 16 deletions

View File

@@ -52,7 +52,7 @@ Make your own cookie information popup in minutes.
acceptBtnLabel: "Akceptuj", // Accept cookie button text
declineInfoBtnLabel: "Dostosuj", // Decline cookie button text
acceptBtnSettingsLabel: "Zatwierdź",
moreInfoBtnLink: "https://luxmed3.pagedev.pl/wp-content/uploads/2026/04/Obowiazek-informacyjny.pdf", // Learn more link(default: privacy policy page)
moreInfoBtnLink: "https://luxmed5.pagedev.pl/wp-content/uploads/2026/04/Obowiazek-informacyjny.pdf", // Learn more link(default: privacy policy page)
moreInfoBtnLabel: "Obowiązek informacyjny", // More info link text
cookieTypesTitle: "Wybierz pliki cookies do akceptacji", // Title of cookie preference options
necessaryCookieTypeLabel: "Wymagane", // Label text of Necessary cookie item
@@ -330,6 +330,18 @@ Make your own cookie information popup in minutes.
try {
if(consent === true) {
// if functional/preferences is accepted
if(preferences.indexOf("preferences") > -1) {
gtag('consent', 'update', {
'functionality_storage': 'granted',
'personalization_storage': 'granted'
});
} else {
gtag('consent', 'update', {
'functionality_storage': 'denied',
'personalization_storage': 'denied'
});
}
// if analytics is accepted
if(preferences.indexOf("analytics") > -1) {
if(!googleConsentAnalyticsStorage) {
@@ -386,6 +398,8 @@ Make your own cookie information popup in minutes.
}
}
const injectScripts = () => {};
const changeRootVariables = () =>{
$(':root').css('--cookieNoticeProLight', config.themeSettings.lightColor);
$(':root').css('--cookieNoticeProDark', config.themeSettings.darkColor);