Skip to content

Commit

Permalink
still need to check undefined analytics_tracking_id, theme_color_scheme
Browse files Browse the repository at this point in the history
Any template instantiated by SSP code will not have defined our variables.
  • Loading branch information
briskt committed Jul 8, 2024
1 parent dc5f782 commit 7c18365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/material/themes/material/default/header.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<base href="{{ baseurlpath }}/module.php/material/">

{% if analytics_tracking_id is not empty %}
{% if analytics_tracking_id is defined and analytics_tracking_id is not empty %}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ analytics_tracking_id }}"></script>
<script>
Expand All @@ -21,7 +21,7 @@
</script>
{% endif %}

<link rel="stylesheet" href="material.{{ theme_color_scheme | e ?: 'indigo-purple' }}.1.2.1.min.css">
<link rel="stylesheet" href="material.{{ (theme_color_scheme ?? 'indigo-purple')|e }}.1.2.1.min.css">
<link rel="stylesheet" href="styles.2.3.6.css">

<script async src="material.1.2.1.min.js"></script>
Expand Down

0 comments on commit 7c18365

Please sign in to comment.