Always load cookie assets and mount cookie banner modal
This commit is contained in:
@@ -26,9 +26,7 @@
|
||||
<link rel="preconnect" href="https://www.google-analytics.com/">
|
||||
{% endif %}
|
||||
{{ block.super }}
|
||||
{% if cookie_jar.needs_approval or cookie_jar.site_settings.strict_cookies %}
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'cookie_jar/css/cookie_jar.css' %}">
|
||||
{% endif %}
|
||||
{% for header_snippet in cookie_jar.activated_snippet_header_templates %}
|
||||
{% include header_snippet %}
|
||||
{% endfor %}
|
||||
@@ -62,9 +60,7 @@
|
||||
{% block extrascripts %}
|
||||
{% include "oscar/partials/extrascripts.html" %}
|
||||
{{ block.super }}
|
||||
{% if cookie_jar.needs_approval or cookie_jar.site_settings.strict_cookies %}
|
||||
<script src="{% static 'cookie_jar/js/cookie_jar.js' %}"></script>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block onbodyload %}
|
||||
@@ -94,9 +90,6 @@ oxyan.initImageZoom()
|
||||
{% for footer_snippet in cookie_jar.activated_snippet_footer_templates %}
|
||||
{% include footer_snippet %}
|
||||
{% endfor %}
|
||||
{% if cookie_jar.needs_approval or cookie_jar.site_settings.strict_cookies %}
|
||||
<script src="{% static 'cookie_jar/js/cookie_jar.js' %}"></script>
|
||||
{% endif %}
|
||||
{% include "cookie_jar/cookie_banner.html" %}
|
||||
{% if cookie_jar.needs_approval or cookie_jar.site_settings.strict_cookies %}
|
||||
{% include "cookie_jar/partials/preferences_saved_toast.html" %}
|
||||
|
||||
Reference in New Issue
Block a user