Skip to content

Latest commit

 

History

History
executable file
·
43 lines (29 loc) · 924 Bytes

README.md

File metadata and controls

executable file
·
43 lines (29 loc) · 924 Bytes

Statamic v2 Mobile Detect Addon

Statamic 2.0.0-public-beta.2 + Mobile Detect 2.8.19

This plugin could not exist without the amazing work of the Mobile Detect project Mobile Detect 2.8.19

Usage

Core Tag

{{ mobile_detect }}

Example Output for {{ mobile_detect }}

  • computer
  • tablet
  • phone

Get Mobile Detect library version number

{{ mobile_detect:library_version }}

Example Output for {{ mobile_detect:library_version }}

2.8.19

Using as part of logic

Using {{ mobile_detect }} as part of an {{ if }} statement:

{{if something == { mobile_detect } }}
    ...
    {# some content #}
    ...
{{ endif }}