Skip to content

Commit

Permalink
Merge pull request #16 from bootscore/v5.5.0
Browse files Browse the repository at this point in the history
v5.5.0
  • Loading branch information
crftwrk authored Jan 15, 2024
2 parents 9354c97 + 91f243f commit 199a9cd
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 24 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 - 2023 bootScore
Copyright (c) 2022 - 2024 Bootscore

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
26 changes: 11 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# bS Cookie Settings
# bs Cookie Settings

[![Packagist Prerelease](https://img.shields.io/packagist/vpre/bootscore/bs-cookie-settings?logo=packagist&logoColor=fff)](https://packagist.org/packages/bootscore/bs-cookie-settings)
[![Github All Releases](https://img.shields.io/github/downloads/bootscore/bs-cookie-settings/total.svg)](https://github.com/bootscore/bs-cookie-settings/releases)

WordPress 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).

Expand All @@ -9,7 +10,7 @@ WordPress plugin to add a GDPR-ready cookie consent to Bootscore theme. Based on

## Installation

1. Download latest release [bs-cookie-settings-main.zip](https://github.com/bootscore/bs-cookie-settings/releases/latest/download/bs-cookie-settings-main.zip).
1. Download latest release [bs-cookie-settings.zip](https://github.com/bootscore/bs-cookie-settings/releases/latest/download/bs-cookie-settings.zip).
2. In your admin panel, go to Plugins > and click the Add New button.
3. Click Upload Plugin and Choose File, then select the Plugin's .zip file. Click Install Now.
4. Click Activate to use your new Plugin right away.
Expand All @@ -18,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 4** position and replace your data.
Initialize plugin with inline script in **HTML widget in Footer Info** position and replace your data.

```html
<script>
Expand Down Expand Up @@ -48,7 +49,7 @@ Initialize plugin with inline script in **HTML widget in Footer 4** position and
role: 'accept_necessary'
},
settings_btn: {
text: 'Individual settings'
text: 'Settings'
}
},
Expand Down Expand Up @@ -141,23 +142,18 @@ Initialize plugin with inline script in **HTML widget in Footer 4** position and

### 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 4** position **after** the init script.
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.

```html
<!-- Google Analytics -->
<script type="text/plain" data-cookiecategory="analytics">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXX-Y', 'auto');
ga('send', 'pageview');
// Code goes here
</script>

<!-- Advertising -->
<script type="text/plain" data-cookiecategory="advertising" src="./assets/js/my_custom_script.js" defer></script>

<script type="text/plain" data-cookiecategory="advertising">
// Code goes here
</script>
```

### Open settings modal
Expand All @@ -182,4 +178,4 @@ Make sure that the links to your legal note and privacy policy are not covered b

- cookieconsent script by Orest Bida, MIT License https://github.com/orestbida/cookieconsent/blob/master/LICENSE
- Plugin Update Checker by YahnisElsts, MIT License <a href="https://github.com/YahnisElsts/plugin-update-checker/blob/master/license.txt">https://github.com/YahnisElsts/plugin-update-checker/blob/master/license.txt
- bS Cookie Settings, MIT License https://github.com/bootscore/bs-cookie-settings/blob/main/LICENSE
- bs Cookie Settings, MIT License https://github.com/bootscore/bs-cookie-settings/blob/main/LICENSE
9 changes: 8 additions & 1 deletion css/cookie-settings.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion js/cookie-settings.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions main.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/*Plugin Name: bS Cookie Settings
/*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.4.0
Version: 5.5.0
Tested up to: 6.4.2
Requires at least: 5.0
Requires PHP: 7.4
Expand Down
16 changes: 13 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
=== bS Cookie Settings ===
=== bs Cookie Settings ===

Contributors: The Bootscore contributors

Stable tag: 5.4.0
Stable tag: 5.5.0
Tested up to: 6.4.2
Requires at least: 5.0
Requires PHP: 7.4
Requires at least: 4.5
License: MIT License
License URI: https://github.com/bootscore/bs-cookie-settings/blob/main/LICENSE

Plugin adds a GDPR-ready cookie consent to Bootscore theme, Copyright 2022 - 2023 The Bootscore Contributors.
Plugin adds a GDPR-ready cookie consent to Bootscore theme, Copyright 2022 - 2024 The Bootscore Contributors.


== Credits ==
Expand All @@ -31,6 +31,16 @@ Read documentation https://bootscore.me/documentation/plugin/bs-cookie-settings/

== Changelog ==

= 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)

= 5.4.0 - December 15 2023 =

* [IMPROVEMENT] Deny direct access
Expand Down
9 changes: 9 additions & 0 deletions src/css/cookie-settings.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*!
* bs Cookie Settings v5.5.0
*
* Based on CookieConsent v2.7.0
* https://www.github.com/orestbida/cookieconsent
* Author Orest Bida
* Released under the MIT License
*/

.cc_div *,
.cc_div :before,
.cc_div :after {
Expand Down
4 changes: 3 additions & 1 deletion src/js/cookie-settings.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/*!
* CookieConsent v2.7.0
* bs Cookie Settings v5.5.0
*
* Based on CookieConsent v2.7.0
* https://www.github.com/orestbida/cookieconsent
* Author Orest Bida
* Released under the MIT License
Expand Down

0 comments on commit 199a9cd

Please sign in to comment.