MX Mobile Detect is a small and simple plugin to detect if the template was requested by Mobile Device or not…
Requirements
- ExpressionEngine 2
Example
{exp:mobile_detect:redirect location="http://m.site.com/"}
{exp:mobile_detect:redirect location="http://site.com/" redirect="not_mobile"}
{exp:mobile_detect:redirect location="http://site.com/" ipad="http://site.com/ipad/" android="http://site.com/android/"}
{exp:mobile_detect:pair custom_agents="mobile/8a293"}
{if device == "ipad"}
Hello Steve
{/if}
{if device == "android" }
Hello Bender
{/if}
{if not_mobile}
Hello ...
{/if}
{if device == "mobile/8a293" }
Hello iPhone4
{/if}
{/exp:mobile_detect:pair}
is this code works?
[ Test it NOW! ]