XF 2.0 Mobile user variable in template

nameplay

Member
Hello.

Is there any built in template syntax to detect if visitor is using mobile ?
(i do not want to use CSS such as media-query to do this)

What i am trying to do is something like this :
PHP:
<xf:if is="{$isMobile}">
You are using mobile
<xf:else />
You are not using mobile
</xf:if>
 
Back
Top Bottom