mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-04 19:45:08 -04:00
Added support for always showing settings in cookie consent
This commit is contained in:
@@ -39,14 +39,25 @@
|
||||
{% set actions = ["accept", "manage"] %}
|
||||
{% endif %}
|
||||
|
||||
<!-- Determine initial settings state -->
|
||||
{% if not "manage" in actions %}
|
||||
{% set checked = "checked" %}
|
||||
{% endif %}
|
||||
|
||||
<!-- Consent title -->
|
||||
<h4>{{ config.extra.consent.title }}</h4>
|
||||
<p>{{ config.extra.consent.description }}</p>
|
||||
|
||||
<!-- Consent settings -->
|
||||
<input type="checkbox" class="md-toggle" id="__settings" />
|
||||
<input
|
||||
class="md-toggle"
|
||||
type="checkbox"
|
||||
id="__settings"
|
||||
{{ checked }}
|
||||
/>
|
||||
<div class="md-consent__settings">
|
||||
<ul class="task-list">
|
||||
{% set checked = "" %}
|
||||
{% for type in cookies %}
|
||||
{% if cookies[type] is string %}
|
||||
{% set name = cookies[type] %}
|
||||
|
||||
Reference in New Issue
Block a user