Skip to content

Commit

Permalink
Removed usercentricId check
Browse files Browse the repository at this point in the history
  • Loading branch information
RahatHameed committed Nov 21, 2024
1 parent 4fd3ec6 commit 4d7a699
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions views/twig/extensions/themes/default/layout/base.html.twig
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{% extends "layout/base.html.twig" %}

{% set settings = oViewConf.getUsercentricsModuleSettings %}

{% block base_js %}

{% if settings.getUsercentricsId %}
{{ oViewConf.getUsercentricsScript()|raw }}
{% endif %}
{{ oViewConf.getUsercentricsScript()|raw }}
{{ parent() }}

{% endblock %}
Expand All @@ -15,9 +11,9 @@
{% block head_meta_description %}

{{ parent() }}
{% set settings = oViewConf.getUsercentricsModuleSettings %}


{% if settings.getUsercentricsId and settings.isSmartProtectorEnabled %}
{% if settings.isSmartProtectorEnabled %}
<meta data-privacy-proxy-server="https://privacy-proxy-server.usercentrics.eu">
<script type="application/javascript" src="https://privacy-proxy.usercentrics.eu/latest/uc-block.bundle.js"></script>

Expand All @@ -27,7 +23,7 @@
{% endif %}
{% endif %}

{% if settings.getUsercentricsId and settings.isDevelopmentAutomaticConsentActive %}
{% if settings.isDevelopmentAutomaticConsentActive %}
<script type="application/javascript">
console.log('Warning! Development section. Not intended to be used in Live environment!');
function consentsCheck() {
Expand Down

0 comments on commit 4d7a699

Please sign in to comment.