[RSS Feed/News] Javascript inside an IF template conditional renders anyway

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Anyone had this problem? I have Javascript for adsense inside a conditional that SHOULD be false on a particular forum.

It renders in the page anyway.

Is Javascript special and ignores XF conditionals?

<xf:if is="!in_array({$__globals.forum.node_id}, [comma delimited set of forum IDs])"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4430640331206028" crossorigin="anonymous"></script> </xf:if>

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom