Browser Detection

Browser Detection 2.3.1

No permission to download
newimage
Lv.11
Moderating
Bronze Member
Iron Member
Joined
Jun 28, 2020
Messages
2,193
Reaction score
5,847
Credits
$6,446
newimage submitted a new resource:

Browser Detection 2.0.2 - Browser

A 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.




Code:


<xf:if is="$mobileDetect && $mobileDetect.isMobile()">
Is Mobile
<xf:else />
Not Mobile
</xf:if>




Code...

Read more about this resource...
 
Top