diff --git a/plugins/CookieNoticePro/cookienoticepro.script.js b/plugins/CookieNoticePro/cookienoticepro.script.js
index 02e28f6..d08b70d 100644
--- a/plugins/CookieNoticePro/cookienoticepro.script.js
+++ b/plugins/CookieNoticePro/cookienoticepro.script.js
@@ -8,29 +8,29 @@ Make your own cookie information popup in minutes.
* Changelog: https://cookienoticepro.flerosoft.com/docs/getting-started#item-1-4
*/
-(function ($) {
-
+;(function ($) {
'use strict'
const settingsIcon =
- '';
+ ''
const cookieIcon =
- '';
+ ''
- const closeIcon = '';
+ const closeIcon =
+ ''
/*
- *--------------------------------------------------------------------------
- * CONFIG OR SETTINGS - Customize the popup banner START
- *--------------------------------------------------------------------------
- */
+ *--------------------------------------------------------------------------
+ * CONFIG OR SETTINGS - Customize the popup banner START
+ *--------------------------------------------------------------------------
+ */
const config = {
themeSettings: {
- primaryColor: "#000", // Primary Color of Popup Banner
- darkColor: "#3b3e4a", // Dark Theme Color
- lightColor: "#ffffff", // Light Theme Color
- themeMode: "light", // Theme Mode (light|dark)
+ primaryColor: '#232323', // Primary Color of Popup Banner
+ darkColor: '#3b3e4a', // Dark Theme Color
+ lightColor: '#ffffff', // Light Theme Color
+ themeMode: 'light', // Theme Mode (light|dark)
},
enableGoogleConsentMode: true, // Add support for Google consent mode v2 (https://cookiebannergenerator.com/implementing-google-consent-mode-v2-with-cookie-notice-pro-a-step-by-step-guide/)
enableMinimize: true, // Enable minimized floating cookie icon to adjust preferences
@@ -41,182 +41,302 @@ Make your own cookie information popup in minutes.
fullWidth: false, // Full width popup works only when "displayPosition" is set to top/bottom
allCheckboxesChecked: true, // The setting checkboxes should be checked by default initially or not(true|false)
- displayPosition: "bottom", // Where popup should appear(top|right|bottom|left)
- settingsBtnLabel: "Customize", // Text of settings button
+ displayPosition: 'bottom', // Where popup should appear(top|right|bottom|left)
+ settingsBtnLabel: 'Adjust', // Text of settings button
delay: 1, // After how much time should popup appear(2000 is equal to 2 seconds)
expires: 365, // Expiry date of cookie(365 is equal to 365 days)
- title: "We value user privacy.", // Title of popup bannner
- description: "We use cookies to improve browsing quality, display ads or content tailored to individual user needs, and analyze site traffic. Clicking the „Accept all” button signifies consent to us using cookies.", // Message
- acceptBtnLabel: "Accept", // Accept cookie button text
- declineInfoBtnLabel: "Reject", // Decline cookie button text
- moreInfoBtnLink: "/privacy-policy", // Learn more link(default: privacy policy page)
- moreInfoBtnLabel: "Privacy Policy", // More info link text
- cookieTypesTitle: "Select the cookies to accept", // Title of cookie preference options
- necessaryCookieTypeLabel: "Required", // Label text of Necessary cookie item
- floatingIconTooltip: "Customize", // Tooltip of floating cookie icon (Minimized)
- necessaryCookieTypeDesc: "These cookies are necessary for the website to function and cannot be switched off in our systems.", // Hover text of necessary cookies
- onConsentAccept: ()=> { // It will inject scripts in head if cookie preferences menu(showSettingsBtn) is enabled
- console.log("Consent accepted!")
+ title: 'We value users privacy', // Title of popup bannner
+ // description: 'Używamy plików cookie, aby poprawić jakość przeglądania, wyświetlać reklamy lub treści dostosowane do indywidualnych potrzeb użytkowników oraz analizować ruch na stronie. Kliknięcie przycisku „Akceptuj wszystkie” oznacza zgodę na wykorzystywanie przez nas plików cookie.', // Message
+ description: `
+ We use cookies and similar technologies to ensure the proper functioning of the website, analyze traffic and statistics, enable ad personalization, and measure their effectiveness.
+Personal data (e.g., IP address, cookie identifiers) may be used for analytical and advertising purposes.
+Google and our partners may use this data in accordance with the Google Data Processing Terms.
+Clicking the “Accept all” button means you consent to the processing of your data in accordance with our Privacy Policy.
+ `,
+ acceptBtnLabel: 'Accept all', // Accept cookie button text
+ declineInfoBtnLabel: 'Decline', // Decline cookie button text
+ showSettingsLabel: 'Cookie Settings',
+ ifOpenedSettings_acceptBtnLabel: 'Accept',
+ // moreInfoBtnLink: '/polityka-prywatnosci', // Learn more link(default: privacy policy page)
+ // moreInfoBtnLabel: 'Polityka prywatności', // More info link text
+ cookieTypesTitle: 'Select cookies to accept', // Title of cookie preference options
+ necessaryCookieTypeLabel: 'Necessary', // Label text of Necessary cookie item
+ floatingIconTooltip: 'Adjust', // Tooltip of floating cookie icon (Minimized)
+ necessaryCookieTypeDesc:
+ 'These cookies are essential for the website to function and cannot be disabled in our systems.', // Hover text of necessary cookies
+ onConsentAccept: () => {
+ // It will inject scripts in head if cookie preferences menu(showSettingsBtn) is enabled
+ console.log('Consent accepted!')
},
- onConsentReject: ()=> { // This code will run on cookie reject/decline
- console.log("Consent Rejected!");
+ onConsentReject: () => {
+ // This code will run on cookie reject/decline
+ console.log('Consent Rejected!')
},
cookieTypes: [
// Cookie types, value and description (Cookie Preferences Selection)
{
- type: "Functional",
- value: "preferences", // WARNING: DO NOT EDIT THIS VALUE
- description: "Essential cookies are crucial for basic website functions, and the website will not function properly without them. These cookies do not store any personally identifiable information.",
+ type: 'Functional',
+ value: 'preferences', // WARNING: DO NOT EDIT THIS VALUE
+ description:
+ 'These cookies are essential for the website to function and cannot be disabled in our systems. These cookies do not store any personally identifiable information.',
},
{
- type: "Advertisement",
- value: "marketing", // WARNING: DO NOT EDIT THIS VALUE
- description: "Advertising cookies are used to deliver personalized ads to users based on the pages they have visited previously and to analyze the effectiveness of advertising campaigns.",
+ type: 'Advertising',
+ value: 'marketing', // WARNING: DO NOT EDIT THIS VALUE
+ description:
+ 'Advertising cookies are used to provide users with personalized ads based on the pages they have previously visited and to analyze the effectiveness of advertising campaigns.',
},
{
- type: "Analytics",
- value: "analytics", // WARNING: DO NOT EDIT THIS VALUE
- description: "Analytical cookies are used to understand how users interact with the website. These cookies help provide information about metrics such as the number of visitors, bounce rate, traffic source, etc.",
+ type: 'Analytics',
+ value: 'analytics', // WARNING: DO NOT EDIT THIS VALUE
+ description:
+ 'Analytics cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.',
},
],
- };
+ }
/*
- *--------------------------------------------------------------------------
- * CONFIG OR SETTINGS - Customize the popup banner END
- *--------------------------------------------------------------------------
- */
+ *--------------------------------------------------------------------------
+ * CONFIG OR SETTINGS - Customize the popup banner END
+ *--------------------------------------------------------------------------
+ */
- const COOKIE_CONSENT = "cnp_consent"; // WARNING: DO NOT EDIT THIS VALUE
- const COOKIE_CONSENT_PREFS = "cnp_prefs"; // WARNING: DO NOT EDIT THIS VALUE
- const GOOGLE_CONSENT_MODE_AD_PREFS = "cnp_gconsent_ad_prefs" // WARNING: DO NOT EDIT THIS VALUE
- const GOOGLE_CONSENT_MODE_ANALYTICS_STORAGE = "cnp_gconsent_analytics_storage" // WARNING: DO NOT EDIT THIS VALUE
+ const COOKIE_CONSENT = 'cnp_consent' // WARNING: DO NOT EDIT THIS VALUE
+ const COOKIE_CONSENT_PREFS = 'cnp_prefs' // WARNING: DO NOT EDIT THIS VALUE
+ const GOOGLE_CONSENT_MODE_AD_PREFS = 'cnp_gconsent_ad_prefs' // WARNING: DO NOT EDIT THIS VALUE
+ const GOOGLE_CONSENT_MODE_ANALYTICS_STORAGE = 'cnp_gconsent_analytics_storage' // WARNING: DO NOT EDIT THIS VALUE
$.fn.cookieNoticePro = (event) => {
- changeRootVariables();
- let cookieConsentExists = cookieExists(COOKIE_CONSENT);
- let cookiePrefsValue = accessCookie(COOKIE_CONSENT_PREFS);
+ changeRootVariables()
+ let cookieConsentExists = cookieExists(COOKIE_CONSENT)
+ let cookiePrefsValue = accessCookie(COOKIE_CONSENT_PREFS)
- if ( !cookieConsentExists) {
- // add layer to the body below cookies to prevent click
- $('body').append('