Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Detect Plugin for Fansoro CMS

version DLE MIT License

The plugin to define the different types of devices from which the user browses the site. Based on Mobile_Detect class.

Special thanks https://github.com/Awilum for an example implementation code.

Install

See this instruction

Usage

In any site template:

{Detect::getUserAgent()}

{Detect::mobileGrade()}

{if Detect::isMobile()}
    {* Do something fot Mobile *}
{/if}

{if Detect::isTablet()}
    {* Do something fot Tablet *}
{/if}

{if Detect::isiPhone()}
    {* Do something fot iPhone *}
{/if}

{if Detect::isiPad()}
    {* Do something fot iPad *}
{/if}

{if Detect::isIOS()}
    {* Do something fot IOS *}
{/if}

{if Detect::isAndroid()}
    {* Do something fot Android *}
{/if}

{if Detect::isChrome()}
    {* Do something fot Chrome *}
{/if}

{if Detect::isOpera()}
    {* Do something fot Opera *}
{/if}

{if Detect::isFirefox()}
    {* Do something fot Firefox *}
{/if}

{if Detect::isIE()}
    {* Do something fot IE *}
{/if}

License

MIT

About

Detect plugin for Morfy CMS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages