Skip to content

The user agent plugin provides a simple way to detect the kind of device that made the request.

License

Notifications You must be signed in to change notification settings

fansoro/fansoro-plugin-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agent

The user agent plugin provides a simple way to detect the kind of device that made the request.

Installation

See this instruction

Usage in templates

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}

Options

name value description
enabled true or false to disable the plugin

License

See LICENSE

About

The user agent plugin provides a simple way to detect the kind of device that made the request.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages