The user agent plugin provides a simple way to detect the kind of device that made the request.
See this instruction
Detect mobile device
{if Agent::isMobile()}
// Do something...
{/if}
Detect robot or crawler
{if Agent::isRobot()}
// Do something...
{/if}
Detect specific device
{if Agent::is('iphone')}
// Do something...
{/if}
name | value | description |
---|---|---|
enabled | true | or false to disable the plugin |
See LICENSE