{"id":18485619,"url":"https://github.com/bootscore/bs-cookie-settings","last_synced_at":"2025-04-08T19:32:51.355Z","repository":{"id":38458435,"uuid":"437239604","full_name":"bootscore/bs-cookie-settings","owner":"bootscore","description":"WordPress plugin to add a GDPR-ready cookie consent to Bootscore theme. Based on the cookieconsent script by Orest Bida.","archived":false,"fork":false,"pushed_at":"2024-10-17T06:46:05.000Z","size":515,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-30T05:43:04.095Z","etag":null,"topics":["bootscore","bootstrap","bootstrap5","javascript","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"https://bootscore.me/documentation/plugin/bs-cookie-settings/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bootscore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"bootscore"}},"created_at":"2021-12-11T09:30:11.000Z","updated_at":"2024-10-17T06:46:09.000Z","dependencies_parsed_at":"2023-10-04T13:18:09.795Z","dependency_job_id":"7ed70d45-b7a5-46c0-b2af-91ff3fcc12f4","html_url":"https://github.com/bootscore/bs-cookie-settings","commit_stats":{"total_commits":193,"total_committers":3,"mean_commits":64.33333333333333,"dds":0.1968911917098446,"last_synced_commit":"8e33578ba61ca0d2bce42f0b7527b22fe4df5c36"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootscore%2Fbs-cookie-settings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootscore%2Fbs-cookie-settings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootscore%2Fbs-cookie-settings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootscore%2Fbs-cookie-settings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bootscore","download_url":"https://codeload.github.com/bootscore/bs-cookie-settings/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222885581,"owners_count":17052808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootscore","bootstrap","bootstrap5","javascript","wordpress","wordpress-plugin"],"created_at":"2024-11-06T12:45:48.296Z","updated_at":"2024-11-06T12:45:49.094Z","avatar_url":"https://github.com/bootscore.png","language":"PHP","funding_links":["https://github.com/sponsors/bootscore"],"categories":[],"sub_categories":[],"readme":"# bs Cookie Settings\n\n[![Packagist Prerelease](https://img.shields.io/packagist/vpre/bootscore/bs-cookie-settings?logo=packagist\u0026logoColor=fff)](https://packagist.org/packages/bootscore/bs-cookie-settings)\n[![Github All Releases](https://img.shields.io/github/downloads/bootscore/bs-cookie-settings/total.svg)](https://github.com/bootscore/bs-cookie-settings/releases)\n\n### Read this in\n\n- [Español](https://github.com/bootscore/bs-cookie-settings/blob/main/translations/espanol.md)\n\nWordPress plugin to add a GDPR-ready cookie consent to Bootscore theme. Based on the [cookieconsent](https://orestbida.com/demo-projects/cookieconsent/) script by [Orest Bida](https://github.com/orestbida/cookieconsent).\n\n\u003cimg src=\"https://lh3.googleusercontent.com/pw/AM-JKLVzgrDgCd68uGMaxBPYAMYB4wg6cg7orzuNU5sr41XOkGFuxueA9eEgkHRCp1HfoxTghl5giVRdnewa8-Lx7GmDyNeastxvBKpvjRNQ0saP5vspSRGCRP7N0-pLkyJqtcltBR32ZsbWfZjCBvOzvRjIHA=w1200-h954-no\" alt=\"bs Cookie Settings\"\u003e\n\n## Installation\n\n1. Download latest release [bs-cookie-settings.zip](https://github.com/bootscore/bs-cookie-settings/releases/latest/download/bs-cookie-settings.zip).\n2. In your admin panel, go to Plugins \u003e and click the Add New button.\n3. Click Upload Plugin and Choose File, then select the Plugin's .zip file. Click Install Now.\n4. Click Activate to use your new Plugin right away.\n\n## Usage\n\n### Init\n\nInitialize plugin with inline script in a **Custom HTML** widget in **Footer Info** widget position and replace your data.\n\n```html\n\u003cscript\u003e\n  // Init\n  window.addEventListener('load', function () {\n\n    // obtain plugin\n    var cc = initCookieConsent();\n\n    // run plugin with your configuration\n    cc.run({\n      current_lang: 'en',\n      autoclear_cookies: true,\n      page_scripts: true,\n\n      languages: {\n        'en': {\n          consent_modal: {\n            title: 'We use cookies!',\n            description: 'We use cookies on our website to enhance your browsing experience by remembering your preferences and analyzing site traffic. By clicking \"Accept all\", you consent to the use of all cookies. However, you can manage your \u003ca data-bs-toggle=\"modal\" href=\"#bs-cookie-modal\"\u003ecookie preferences\u003c/a\u003e to provide a controlled consent.',\n            primary_btn: {\n              text: 'Accept all',\n              role: 'accept_all'\n            },\n            secondary_btn: {\n              text: 'Reject all',\n              role: 'accept_necessary'\n            },\n            settings_btn: {\n              text: 'Manage preferences'\n            },\n            consent_footer: {\n              description: '\u003ca class=\"small link-secondary text-decoration-none\" href=\"#\"\u003ePrivacy Policy\u003c/a\u003e • \u003ca class=\"small link-secondary text-decoration-none\" href=\"#\"\u003eTerms \u0026 Conditions\u003c/a\u003e • \u003ca class=\"small link-secondary text-decoration-none\" href=\"#\"\u003eImprint\u003c/a\u003e'\n            }\n          },\n\n          settings_modal: {\n            title: 'Cookie preferences',\n            save_settings_btn: 'Save preferences',\n            accept_all_btn: 'Accept all',\n            reject_all_btn: 'Reject all',\n            close_btn_label: 'Close',\n            cookie_table_headers: [\n              { col1: 'Name' },\n              { col2: 'Domain' },\n              { col3: 'Expiration' },\n              { col4: 'Description' }\n            ],\n            blocks: [\n              {\n                title: 'Cookie usage',\n                description: 'We use cookies to ensure the basic functionalities of the website and to enhance your online experience. You can choose for each category to opt-in/out whenever you want. For more details relative to cookies and other sensitive data, please read the full \u003ca href=\"#\"\u003ePrivacy Policy\u003c/a\u003e.'\n              }, {\n                title: 'Necessary',\n                description: 'These cookies are essential for the proper functioning of our website. Without these cookies, the website would not work properly',\n                toggle: {\n                  value: 'necessary',\n                  enabled: true,\n                  readonly: true          // cookie categories with readonly=true are all treated as \"necessary cookies\"\n                }\n              }, {\n                title: 'Analytics',\n                description: 'These cookies allow the website to remember the choices you have made in the past',\n                toggle: {\n                  value: 'analytics',     // your cookie category\n                  enabled: false,\n                  readonly: false\n                },\n                cookie_table: [           // list of all expected cookies\n                  {\n                    col1: '^_ga',         // match all cookies starting with \"_ga\"\n                    col2: 'google.com',\n                    col3: '2 years',\n                    col4: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.',\n                    is_regex: true\n                  }, {\n                    col1: '_gid',\n                    col2: 'google.com',\n                    col3: '1 day',\n                    col4: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.',\n                  }\n                ]\n              }, {\n                title: 'Advertising',\n                description: 'These cookies collect information about how you use the website, which pages you visited and which links you clicked on. All of the data is anonymized and cannot be used to identify you',\n                toggle: {\n                  value: 'advertising',\n                  enabled: false,\n                  readonly: false\n                },\n                cookie_table: [             // list of all expected cookies\n                  {\n                    col1: '_name',\n                    col2: 'xyz.com',\n                    col3: '2 weeks',\n                    col4: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.',\n                    is_regex: true\n                  }, {\n                    col1: '_name',\n                    col2: 'xyz.com',\n                    col3: '3 days',\n                    col4: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.',\n                  }\n                ]\n              }, {\n                title: 'More information',\n                description: 'For any queries in relation to our policy on cookies and your choices, please \u003ca href=\"#yourcontactpage\"\u003econtact us\u003c/a\u003e.',\n              },\n\n            ]\n          }\n\n        }\n      }\n\n    });\n  });\n\u003c/script\u003e\n\n```\n\n### Block / manage scripts\n\nSet `type=\"text/plain\"` and `data-cookiecategory=\"\u003ccategory\u003e\"` to any script tag you want to manage. Use inline-script in a **Custom HTML** widget in **Footer Info** position **after** the init script.\n\n```html\n\u003c!-- Google Analytics --\u003e\n\u003cscript type=\"text/plain\" data-cookiecategory=\"analytics\"\u003e\n  // Code goes here\n\u003c/script\u003e\n\n\u003c!-- Advertising --\u003e\n\u003cscript type=\"text/plain\" data-cookiecategory=\"advertising\"\u003e\n  // Code goes here\n\u003c/script\u003e\n```\n\n### Open preferences modal\n\nBy clicking one of the \"Accept all\", \"Reject all\" or \"Save preferences\" button, the cookie `bs_cookie_settings` is set with your preferences and hides banner and modal for 182 days. To open preferences modal again, add following link to your privacy policy and to a **Custom HTML** widget in a **Footer** widget position.\n\n#### Link\n\n```html\n\u003ca data-bs-toggle=\"modal\" href=\"#bs-cookie-modal\"\u003eCookie Preferences\u003c/a\u003e\n```\n\n#### Button\n\n```html\n\u003cbutton type=\"button\" class=\"btn btn-primary\" data-bs-toggle=\"modal\" data-bs-target=\"#bs-cookie-modal\"\u003eCookie Preferences\u003c/button\u003e\n```\n## License \u0026 Credits\n\n- cookieconsent script by Orest Bida, MIT License https://github.com/orestbida/cookieconsent/blob/master/LICENSE\n- Plugin Update Checker by YahnisElsts, MIT License \u003ca href=\"https://github.com/YahnisElsts/plugin-update-checker/blob/master/license.txt\"\u003ehttps://github.com/YahnisElsts/plugin-update-checker/blob/master/license.txt\n- bs Cookie Settings, MIT License https://github.com/bootscore/bs-cookie-settings/blob/main/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbootscore%2Fbs-cookie-settings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbootscore%2Fbs-cookie-settings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbootscore%2Fbs-cookie-settings/lists"}