Skip to content

Commit

Permalink
Merge pull request #21 from bootscore/v5.6.0
Browse files Browse the repository at this point in the history
v5.6.0
crftwrk authored Feb 12, 2024

Verified

This commit was signed with the committer’s verified signature.
LastDragon-ru Aleksei Lebedev
2 parents dcc8239 + 0ecf70c commit 9cfd076
Showing 3 changed files with 75 additions and 33 deletions.
28 changes: 12 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ WordPress plugin to add a GDPR-ready cookie consent to Bootscore theme. Based on

### Init

Initialize plugin with inline script in **HTML widget in Footer Info** position and replace your data.
Initialize plugin with inline script in a **Custom HTML** widget in **Footer Info** widget position and replace your data.

```html
<script>
@@ -39,7 +39,7 @@ Initialize plugin with inline script in **HTML widget in Footer Info** position
'en': {
consent_modal: {
title: 'We use cookies!',
description: 'We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking Accept all, you consent to the use of all the cookies. However, you may <a data-bs-toggle="modal" href="#bs-cookie-modal">manage your preferences</a> to provide a controlled consent.',
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 <a data-bs-toggle="modal" href="#bs-cookie-modal">cookie preferences</a> to provide a controlled consent.',
primary_btn: {
text: 'Accept all',
role: 'accept_all'
@@ -57,8 +57,8 @@ Initialize plugin with inline script in **HTML widget in Footer Info** position
},
settings_modal: {
title: 'Cookie settings',
save_settings_btn: 'Save settings',
title: 'Cookie preferences',
save_settings_btn: 'Save preferences',
accept_all_btn: 'Accept all',
reject_all_btn: 'Reject all',
close_btn_label: 'Close',
@@ -74,7 +74,7 @@ Initialize plugin with inline script in **HTML widget in Footer Info** position
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 <a href="#yourprivacypolicy">Privacy Policy</a>.'
}, {
title: 'Necessary',
description: 'These cookies are essential for the proper functioning of my website. Without these cookies, the website would not work properly',
description: 'These cookies are essential for the proper functioning of our website. Without these cookies, the website would not work properly',
toggle: {
value: 'necessary',
enabled: true,
@@ -95,8 +95,7 @@ Initialize plugin with inline script in **HTML widget in Footer Info** position
col3: '2 years',
col4: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.',
is_regex: true
},
{
}, {
col1: '_gid',
col2: 'google.com',
col3: '1 day',
@@ -118,8 +117,7 @@ Initialize plugin with inline script in **HTML widget in Footer Info** position
col3: '2 weeks',
col4: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.',
is_regex: true
},
{
}, {
col1: '_name',
col2: 'xyz.com',
col3: '3 days',
@@ -145,7 +143,7 @@ Initialize plugin with inline script in **HTML widget in Footer Info** position

### Block / manage scripts

Set `type="text/plain"` and `data-cookiecategory="<category>"` to any script tag you want to manage. Use inline-script **HTML widget in Footer Info** position **after** the init script.
Set `type="text/plain"` and `data-cookiecategory="<category>"` to any script tag you want to manage. Use inline-script in a **Custom HTML** widget in **Footer Info** position **after** the init script.

```html
<!-- Google Analytics -->
@@ -159,24 +157,22 @@ Set `type="text/plain"` and `data-cookiecategory="<category>"` to any script tag
</script>
```

### Open settings modal
### Open preferences modal

By clicking one of the "Accept all", "Reject all" or "Save settings" button, the cookie `bs_cookie_settings` is set with your preferences and hides banner and modal for 182 days. To open settings modal again, add following link to your privacy policy and to a **HTML widget** in **Footer 1** position.
By 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.

#### Link

```html
<a data-bs-toggle="modal" href="#bs-cookie-modal">Cookie Settings</a>
<a data-bs-toggle="modal" href="#bs-cookie-modal">Cookie Preferences</a>
```

#### Button

```html
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#bs-cookie-modal">Cookie Settings</button>
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#bs-cookie-modal">Cookie Preferences</button>
```

Make sure that the links to your legal note and privacy policy are not covered by the banner. Use a menu in **Footer 1** widget position for them.

## License & Credits

- cookieconsent script by Orest Bida, MIT License https://github.com/orestbida/cookieconsent/blob/master/LICENSE
4 changes: 2 additions & 2 deletions main.php
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@
/*Plugin Name: bs Cookie Settings
Plugin URI: https://bootscore.me/plugins/bs-cookie-settings/
Description: Plugin adds a cookie modal to Bootscore theme. <a href="https://bootscore.me/documentation/plugin/bs-cookie-settings/">Documentation</a> | <a href="https://bootscore.me/documentation/plugin/bs-cookie-settings/#Changelog">Changelog</a>
Version: 5.5.0
Tested up to: 6.4.2
Version: 5.6.0
Tested up to: 6.4.3
Requires at least: 5.0
Requires PHP: 7.4
Author: Bootscore
76 changes: 61 additions & 15 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@

Contributors: The Bootscore contributors

Stable tag: 5.5.0
Tested up to: 6.4.2
Stable tag: 5.6.0
Tested up to: 6.4.3
Requires at least: 5.0
Requires PHP: 7.4
Requires at least: 4.5
@@ -31,32 +31,71 @@ Read documentation https://bootscore.me/documentation/plugin/bs-cookie-settings/

== Changelog ==

= 5.6.0 - February 12 2024 =

#### Feature

* Added optional footer to consent banner to add important links like privacy policy, terms, imprint etc. Footer can be activated in init js.

#### Improvement

* Moved css and js to assets folder
* Refactored collapse icon
* Switch to scss source
* Hide Banner if modal/offcanvas is open

= 5.5.0 - January 15 2024 =

* [Feature] Added additional settings button to cookie bar. Button can be activated in init js #14 (@crftwrk)
* [Feature] Added data-bs-backdrop="static" attribute to the modal to avoid closing it when clicking on the backdrop and forcing the user to make a decision #12 (@crftwrk)
* [IMPROVEMENT] Removed -main branch suffix from plugin's folder. This does not affect existing bs-cookie-settings-main installations
* [IMPROVEMENT] Removed btn-close focus on modal show #13 (@crftwrk)
* [IMPROVEMENT] Changed all btn-outline-primary to btn primary according to the GDPR law #15 (@crftwrk)
* [IMPROVEMENT] Changed col-xxl-3 to col-lg-3 in banner to fit the sidebar width 60dc213 (@crftwrk)
* [UPDATE] Update checker 5.3 8bb10d5 (@crftwrk)
#### Feature

* Added additional settings button to cookie bar. Button can be activated in init js
* Added data-bs-backdrop="static" attribute to the modal to avoid closing it when clicking on the backdrop and forcing the user to make a decision

#### Improvement

* Removed -main branch suffix from plugin's folder. This does not affect existing bs-cookie-settings-main installations
* Removed btn-close focus on modal show
* Changed all btn-outline-primary to btn primary according to the GDPR law
* Changed col-xxl-3 to col-lg-3 in banner to fit the sidebar width

#### Update

* Update checker 5.3

= 5.4.0 - December 15 2023 =

* [IMPROVEMENT] Deny direct access
* [UPDATE] Update checker v5
#### Improvement

* Deny direct access

#### Update

* Update checker v5

= 5.3.0 - June 09 2023 =

* [FEATURE] Add composer.json
* [FEATURE] Add plugin update checker
* [IMPROVEMENT] Change btn-outline-secondary to btn-outline-primary
* [UPDATE] Bootstrap 5.3 color classes
#### Feature

* Added composer.json
* Added plugin update checker

#### Improvement

* Change btn-outline-secondary to btn-outline-primary

#### Update

* Bootstrap 5.3 color classes

= 5.2.1.0 - August 24 2022 =

#### Feature

* Refactored modal
* Removed plugin's backdrop and uses Bootstrap modal backdrop instead

#### Improvement

* Settings link triggers now modal instead modal-dialog
* Changed settings link to data-bs-toggle="modal" [Breaking]
* Hide banner if modal is open
@@ -65,11 +104,18 @@ Read documentation https://bootscore.me/documentation/plugin/bs-cookie-settings/

= 5.2.0.0 - August 20 2022 =

#### Bugfix

* Added missing modal class

= 5.1.3.2 - June 03 2022 =

#### Bugfix

* Fix modal backdrop in Chrome/Edge. Used rgba instead of opacity.

#### Improvement

* Switched to FA5 icons

= 5.0.0.0 - January 03 2022 =

0 comments on commit 9cfd076

Please sign in to comment.