1
0
Fork 0

No point in printing the privacy if Matomo isn't enabled

This commit is contained in:
Carlos Mogas da Silva 2021-05-14 01:38:36 +01:00
parent 20a4458c0a
commit 3dc6b8c0cd

View file

@ -1,3 +1,4 @@
{{ if and (isset .Site.Params "matomo") (eq .Site.Params.matomo.enable true) }}
<script type="text/javascript">
window.addEventListener("load", function() {
updateCookieConsent();
@ -16,3 +17,4 @@
style="border: 0; min-width: 100%; min-height: 200px"
src="{{- .Site.Params.matomo.url -}}/index.php?module=CoreAdminHome&action=optOut&language={{ .Site.Language.Lang }}&backgroundColor={{- .Site.Params.matomo.trackingstatus.backgroundcolor -}}&fontColor={{- .Site.Params.matomo.trackingstatus.fontcolor -}}&fontSize={{- .Site.Params.matomo.trackingstatus.fontsize -}}&fontFamily={{- .Site.Params.matomo.trackingstatus.fontfamily -}}"
></iframe>
{{ end }}