All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Added Craft Cloud compatibility (via Pixel and Tonic) - #48
- Merged pull request to correct minimum version number - #40
- Update plugin for Craft 4
- Change how CSS and JS options are passed to resolve conflict with Craft 3.7.22 #37
- Add '#' to colour setting hex code outputs where these have been dropped in newer versions of Craft
- All namespaces PSR-4-compliant (thanks, @qrazi)
- Allow translation of button text (thanks, @drifteaur)
- Ensure
entry
variable is instance of craft elements entry (thanks, @chrislkeefer)
- Support for detecting/honouring
doNotTrack
headers
- Refactor
validateCookiesAccepted()
intovalidateCookieConsentSet()
- Correct function calls when banner type is opt out and consent not given
- Resolved issue when using variable rather than auto-injecting banner
- Increased required Craft version to 3.1.0
- Resolved issue with migration where table prefix incorrectly assumed
{warning} This is a major update which changes how config data is stored and introduces a lot of additional config options, so as the plugin is initialised on all page loads, we would strongly recommend taking a backup before updating and testing in dev environments first.
- Full release of 1.2.0-beta.1
- Add Project Config compatibility
- Update Cookie Consent library, add clutch of new settings
- Add plugin services and variable so doesn't have to be auto-injected
- Add key param to registered
<script>
block to prevent being overwritten
- Update decline
href
attribute to be#
instead of empty
- Add empty
href
attribute to 'Decline' button so works for keyboard users
- Full release of 1.1.3-beta.1
- Added test for HTTP status code less than 400 so banner not shown on error pages
- Added test of content type so banner not shown on pages where the content type is not text/html
- Changed order of nl2br/translate method calls on message field so messages with line breaks can be added to static translation files
- The message / learn more text now hyphenates words across line breaks
- The message, learn more text and dismiss button text fields are now translated on output as long as a translation has been supplied
- Resolved issue where JS would break if new line used in message text
- Tightened up checking around excluded entry types/categories
- Fixed excluded entry type/category checking when none specified
- Removed some commented code
- Removed some redundant checking
- Added new setting to disable in live preview
- Added new setting to exclude from certain entry types
- Added new setting to exclude from certain categories
- Added JS to settings template so preloaded stylesheets are properly included in admin
- Added checking for if console request or getIsAjax() method does not exist
- Updated SVG icon classes to be more specific
- Added new plugin icon
- Added 'as style' value to preloaded CSS
- Updated documentation and support urls
- Initial release
Brought to you by A Digital