Skip to content

History of commits

4477 commits

docs(consent): document cookie banner and analytics counter consent

Add a CHANGELOG entry under 9.9 for the cookie banner and the per-counter cookie-consent flag, and bump the docs submodule pointer with the upgrade-guide section (cms_counters.require_cookie_consent column and install/update_counters_cookie_consent.php).
simba77 12 iyl 2026 15:20 Branch: 9.x 0b161a7

feat(consent): add cookie banner and gate analytics counters by consent

Cookie banner: - Add configurable banner (enable, manual reset version, multilingual text) on a new admin page in the consent module; values stored in config('johncms'). - Render a sticky banner in the default theme with an Accept button and versioned localStorage consent; default translatable text links to the Privacy Policy. Counters: - Add per-counter 'Load only after cookie consent' flag (cms_counters.require_cookie_consent). Gated counters are deferred inside a <template> and injected only after the visitor accepts the banner (Accept dispatches a cookie-consent-accepted event; scripts are re-created to execute). - Add an 'Enabled' checkbox to the counter form; new counters default to enabled. - Add install/update_counters_cookie_consent.php for existing installs. Localization: - Scan themes/admin sidebar into the admin gettext domain so menu strings persist. UI: - Fix nav-tabs contrast in the admin dark theme.
simba77 12 iyl 2026 15:18 Branch: 9.x 8f878d9