XenForo Template syntax to check Third Party Cookie Consent?

T

twollert

Guest
Thanks to Siropu I got this code to check the status of the Third Party Cookie Consent:

Code:

Code:
<xf:set var="$cookieConsent" value="{$xf.app.request.getCookie('consent')}" />

<xf:if is="$cookieConsent && !contains($cookieConsent, '_third_party')">
    no third party consent
<xf:else />
    third party consent / no option selected yet
</xf:if>

How can this be modified to

  • first option "no option selected yet / no third party consent" and
  • second option "third party consent given"...

Read more

Continue reading...