Overview

MX Mobile Detect is a small and simple plugin to detect if the template was requested by Mobile Device or not…

Requirements

  1. ExpressionEngine 2

Example

{exp:mobile_detect location="http://m.site.com/"}

{exp:mobile_detect location="http://site.com/" redirect="not_mobile"}

{exp:mobile_detect location="http://site.com/" ipad="http://site.com/ipad/" android="http://site.com/android/"}

{exp:mobile_detect 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}
is this code works? [ Test it NOW! ]
Devot:ee
Compatibility
2.5.0 2.4.0 2.3.1 2.3.0 2.2.2 2.2.1
Compatible Compatible Unsure Unsure Unsure Unsure
Enjoy this Add-on?

Name your price!

Amount:
Hint: type “0” for a free download

If you trying to find the right CMS - choose ExpressionEngine

Copyright @ 2008-2012 Max Lazar. All right reserved. Terms of Use
  • twitter
  • rss
  • digg
  • delicious
  • skype
  • dribbble
  • googleplus
  • linkedin
  • vimeo
  • flickr
  • facebook
  • twitter
Scroll to top