• هاست سان
  • با خرید اشتراک ویژه شما میتوانید جدیدترین آپدیت افزونه ها و قالب های زیبا و پرکاربرد زنفورو را دریافت کنید!

    هر ماه یک کد تخفیف 60 درصدی محصولات فروشگاه به کاربران منتخب بخش ویژه اهدا می‌شود

Template syntax to check Third Party Cookie Consent?

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

XFFA.IR Bot

پرسنل مدیریت
کاربر ویژه پلاس
کاربر ویژه طلایی
امتیازها 113
راه‌حل‌ها 27
Thanks to Siropu I got this code to check the status of the Third Party Cookie Consent:

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
 
امضا : XFFA.IR Bot
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

موضوعات مشابه

عقب
بالا