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.2.
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
This add-on will enable clicking anywhere inside of node, discussion, member, and search listings to open content. Great for mobile visitors!
(Note how you can click anywhere on the thread list to open a thread.)
This add-on requires PHP 5.4+!
Trying to install it on earlier versions will...