Heisenberg submitted a new resource:
You must be registered for see links
- A light-weight shim around[Mobile_detect for XenForoA light-weight shim around Mobile_detect for XenForo 2
Usage (in templates)
The add-on injects the global variable $mobileDetect, check that the variable is set before calling any methods to prevent errors during upgrades or if the add-on is disabled.
HTML:<xf:if is="$mobileDetect && $mobileDetect.isMobile()"> Is Mobile <xf:else /> Not Mobile </xf:if>
HTML:<xf:if is="$mobileDetect && $mobileDetect.is('Firefox')"> Is Firefox <xf:else /> Not Firefox...
You must be registered for see links