A light-weight shim around Mobile_detect for XenForo 2
Usage (in templates)
The add-on injects the global variable $xf.mobileDetect, check that the variable is set before calling any methods to prevent errors during upgrades or if the add-on is disabled.
<xf:if is="$xf.mobileDetect &&...
Tested with XF 2.1.5.
Not tested yet with XF 2.0, but i think it should work.
Check FAQ section above.
With this addon you can use template syntax in any template like this :
You are using mobile
You are not using mobile